구매신청화면에서 콤보를 버튼으로 변경하고 db검색 validation 기능 추가, 품목 추가시 sid검색기능도 추가 함
This commit is contained in:
121
SubProject/FCM0000/Item/fItemAdd.Designer.cs
generated
121
SubProject/FCM0000/Item/fItemAdd.Designer.cs
generated
@@ -38,7 +38,6 @@
|
||||
System.Windows.Forms.Label label1;
|
||||
System.Windows.Forms.Label label2;
|
||||
System.Windows.Forms.Label label3;
|
||||
System.Windows.Forms.Label label4;
|
||||
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
|
||||
this.tbName = new System.Windows.Forms.TextBox();
|
||||
this.tbSid = new System.Windows.Forms.TextBox();
|
||||
@@ -53,6 +52,7 @@
|
||||
this.dsMSSQL = new FCM0000.dsMSSQL();
|
||||
this.tbPriceD = new System.Windows.Forms.TextBox();
|
||||
this.tbStorage = new System.Windows.Forms.TextBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
nameLabel = new System.Windows.Forms.Label();
|
||||
sidLabel = new System.Windows.Forms.Label();
|
||||
modelLabel = new System.Windows.Forms.Label();
|
||||
@@ -63,109 +63,108 @@
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
label3 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// nameLabel
|
||||
//
|
||||
nameLabel.AutoSize = true;
|
||||
nameLabel.Location = new System.Drawing.Point(53, 17);
|
||||
nameLabel.Location = new System.Drawing.Point(52, 53);
|
||||
nameLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
nameLabel.Name = "nameLabel";
|
||||
nameLabel.Size = new System.Drawing.Size(55, 30);
|
||||
nameLabel.TabIndex = 0;
|
||||
nameLabel.TabIndex = 3;
|
||||
nameLabel.Text = "품명";
|
||||
//
|
||||
// sidLabel
|
||||
//
|
||||
sidLabel.AutoSize = true;
|
||||
sidLabel.Location = new System.Drawing.Point(63, 231);
|
||||
sidLabel.Location = new System.Drawing.Point(62, 14);
|
||||
sidLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
sidLabel.Name = "sidLabel";
|
||||
sidLabel.Size = new System.Drawing.Size(45, 30);
|
||||
sidLabel.TabIndex = 10;
|
||||
sidLabel.TabIndex = 0;
|
||||
sidLabel.Text = "SID";
|
||||
//
|
||||
// modelLabel
|
||||
//
|
||||
modelLabel.AutoSize = true;
|
||||
modelLabel.Location = new System.Drawing.Point(32, 63);
|
||||
modelLabel.Location = new System.Drawing.Point(31, 99);
|
||||
modelLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
modelLabel.Name = "modelLabel";
|
||||
modelLabel.Size = new System.Drawing.Size(76, 30);
|
||||
modelLabel.TabIndex = 8;
|
||||
modelLabel.TabIndex = 5;
|
||||
modelLabel.Text = "모델명";
|
||||
//
|
||||
// manuLabel
|
||||
//
|
||||
manuLabel.AutoSize = true;
|
||||
manuLabel.Location = new System.Drawing.Point(32, 147);
|
||||
manuLabel.Location = new System.Drawing.Point(31, 183);
|
||||
manuLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
manuLabel.Name = "manuLabel";
|
||||
manuLabel.Size = new System.Drawing.Size(76, 30);
|
||||
manuLabel.TabIndex = 6;
|
||||
manuLabel.TabIndex = 9;
|
||||
manuLabel.Text = "제조사";
|
||||
//
|
||||
// supplyLabel
|
||||
//
|
||||
supplyLabel.AutoSize = true;
|
||||
supplyLabel.Location = new System.Drawing.Point(32, 319);
|
||||
supplyLabel.Location = new System.Drawing.Point(31, 315);
|
||||
supplyLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
supplyLabel.Name = "supplyLabel";
|
||||
supplyLabel.Size = new System.Drawing.Size(76, 30);
|
||||
supplyLabel.TabIndex = 12;
|
||||
supplyLabel.TabIndex = 17;
|
||||
supplyLabel.Text = "공급처";
|
||||
//
|
||||
// memoLabel
|
||||
//
|
||||
memoLabel.AutoSize = true;
|
||||
memoLabel.Location = new System.Drawing.Point(53, 364);
|
||||
memoLabel.Location = new System.Drawing.Point(52, 360);
|
||||
memoLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
memoLabel.Name = "memoLabel";
|
||||
memoLabel.Size = new System.Drawing.Size(55, 30);
|
||||
memoLabel.TabIndex = 15;
|
||||
memoLabel.TabIndex = 20;
|
||||
memoLabel.Text = "비고";
|
||||
//
|
||||
// priceLabel
|
||||
//
|
||||
priceLabel.AutoSize = true;
|
||||
priceLabel.Location = new System.Drawing.Point(53, 189);
|
||||
priceLabel.Location = new System.Drawing.Point(52, 225);
|
||||
priceLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
priceLabel.Name = "priceLabel";
|
||||
priceLabel.Size = new System.Drawing.Size(55, 30);
|
||||
priceLabel.TabIndex = 8;
|
||||
priceLabel.TabIndex = 11;
|
||||
priceLabel.Text = "단가";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(53, 101);
|
||||
label1.Location = new System.Drawing.Point(52, 137);
|
||||
label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(55, 30);
|
||||
label1.TabIndex = 4;
|
||||
label1.TabIndex = 7;
|
||||
label1.Text = "단위";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.ForeColor = System.Drawing.Color.Blue;
|
||||
label2.Location = new System.Drawing.Point(364, 189);
|
||||
label2.Location = new System.Drawing.Point(363, 225);
|
||||
label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(25, 30);
|
||||
label2.TabIndex = 18;
|
||||
label2.TabIndex = 13;
|
||||
label2.Text = "$";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(4, 272);
|
||||
label3.Location = new System.Drawing.Point(3, 269);
|
||||
label3.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(104, 30);
|
||||
label3.TabIndex = 20;
|
||||
label3.TabIndex = 15;
|
||||
label3.Text = "STORAGE";
|
||||
//
|
||||
// ta
|
||||
@@ -175,93 +174,93 @@
|
||||
// tbName
|
||||
//
|
||||
this.tbName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbName.Location = new System.Drawing.Point(112, 17);
|
||||
this.tbName.Location = new System.Drawing.Point(111, 53);
|
||||
this.tbName.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbName.Name = "tbName";
|
||||
this.tbName.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbName.TabIndex = 2;
|
||||
this.tbName.TabIndex = 4;
|
||||
//
|
||||
// tbSid
|
||||
//
|
||||
this.tbSid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.tbSid.Location = new System.Drawing.Point(112, 228);
|
||||
this.tbSid.Location = new System.Drawing.Point(242, 12);
|
||||
this.tbSid.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbSid.Name = "tbSid";
|
||||
this.tbSid.Size = new System.Drawing.Size(241, 35);
|
||||
this.tbSid.TabIndex = 11;
|
||||
this.tbSid.Size = new System.Drawing.Size(415, 35);
|
||||
this.tbSid.TabIndex = 2;
|
||||
this.tbSid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbModel
|
||||
//
|
||||
this.tbModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
|
||||
this.tbModel.Location = new System.Drawing.Point(112, 58);
|
||||
this.tbModel.Location = new System.Drawing.Point(111, 94);
|
||||
this.tbModel.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbModel.Name = "tbModel";
|
||||
this.tbModel.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbModel.TabIndex = 3;
|
||||
this.tbModel.TabIndex = 6;
|
||||
//
|
||||
// tbManu
|
||||
//
|
||||
this.tbManu.Location = new System.Drawing.Point(112, 144);
|
||||
this.tbManu.Location = new System.Drawing.Point(111, 180);
|
||||
this.tbManu.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbManu.Name = "tbManu";
|
||||
this.tbManu.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbManu.TabIndex = 7;
|
||||
this.tbManu.TabIndex = 10;
|
||||
//
|
||||
// tbSupply
|
||||
//
|
||||
this.tbSupply.Location = new System.Drawing.Point(112, 316);
|
||||
this.tbSupply.Location = new System.Drawing.Point(111, 312);
|
||||
this.tbSupply.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbSupply.Name = "tbSupply";
|
||||
this.tbSupply.Size = new System.Drawing.Size(449, 35);
|
||||
this.tbSupply.TabIndex = 13;
|
||||
this.tbSupply.TabIndex = 18;
|
||||
//
|
||||
// tbMemo
|
||||
//
|
||||
this.tbMemo.Location = new System.Drawing.Point(112, 357);
|
||||
this.tbMemo.Location = new System.Drawing.Point(111, 353);
|
||||
this.tbMemo.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbMemo.Name = "tbMemo";
|
||||
this.tbMemo.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbMemo.TabIndex = 16;
|
||||
this.tbMemo.TabIndex = 21;
|
||||
this.tbMemo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbPrice
|
||||
//
|
||||
this.tbPrice.Location = new System.Drawing.Point(112, 187);
|
||||
this.tbPrice.Location = new System.Drawing.Point(111, 223);
|
||||
this.tbPrice.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbPrice.Name = "tbPrice";
|
||||
this.tbPrice.Size = new System.Drawing.Size(241, 35);
|
||||
this.tbPrice.TabIndex = 9;
|
||||
this.tbPrice.TabIndex = 12;
|
||||
this.tbPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbSupplyIdx
|
||||
//
|
||||
this.tbSupplyIdx.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.tbSupplyIdx.Enabled = false;
|
||||
this.tbSupplyIdx.Location = new System.Drawing.Point(556, 316);
|
||||
this.tbSupplyIdx.Location = new System.Drawing.Point(555, 312);
|
||||
this.tbSupplyIdx.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbSupplyIdx.Name = "tbSupplyIdx";
|
||||
this.tbSupplyIdx.Size = new System.Drawing.Size(102, 35);
|
||||
this.tbSupplyIdx.TabIndex = 14;
|
||||
this.tbSupplyIdx.TabIndex = 19;
|
||||
this.tbSupplyIdx.Text = "-1";
|
||||
this.tbSupplyIdx.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbUnit
|
||||
//
|
||||
this.tbUnit.Location = new System.Drawing.Point(112, 100);
|
||||
this.tbUnit.Location = new System.Drawing.Point(111, 136);
|
||||
this.tbUnit.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbUnit.Name = "tbUnit";
|
||||
this.tbUnit.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbUnit.TabIndex = 5;
|
||||
this.tbUnit.TabIndex = 8;
|
||||
this.tbUnit.Text = "EA";
|
||||
this.tbUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// btOK
|
||||
//
|
||||
this.btOK.Location = new System.Drawing.Point(112, 403);
|
||||
this.btOK.Location = new System.Drawing.Point(111, 399);
|
||||
this.btOK.Name = "btOK";
|
||||
this.btOK.Size = new System.Drawing.Size(546, 66);
|
||||
this.btOK.TabIndex = 17;
|
||||
this.btOK.TabIndex = 22;
|
||||
this.btOK.Text = "확인";
|
||||
this.btOK.UseVisualStyleBackColor = true;
|
||||
this.btOK.Click += new System.EventHandler(this.btOK_Click);
|
||||
@@ -274,40 +273,39 @@
|
||||
// tbPriceD
|
||||
//
|
||||
this.tbPriceD.ForeColor = System.Drawing.Color.Blue;
|
||||
this.tbPriceD.Location = new System.Drawing.Point(399, 187);
|
||||
this.tbPriceD.Location = new System.Drawing.Point(398, 223);
|
||||
this.tbPriceD.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbPriceD.Name = "tbPriceD";
|
||||
this.tbPriceD.Size = new System.Drawing.Size(259, 35);
|
||||
this.tbPriceD.TabIndex = 19;
|
||||
this.tbPriceD.TabIndex = 14;
|
||||
this.tbPriceD.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbStorage
|
||||
//
|
||||
this.tbStorage.Location = new System.Drawing.Point(112, 270);
|
||||
this.tbStorage.Location = new System.Drawing.Point(111, 267);
|
||||
this.tbStorage.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbStorage.Name = "tbStorage";
|
||||
this.tbStorage.Size = new System.Drawing.Size(241, 35);
|
||||
this.tbStorage.TabIndex = 21;
|
||||
this.tbStorage.Size = new System.Drawing.Size(546, 35);
|
||||
this.tbStorage.TabIndex = 16;
|
||||
this.tbStorage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// label4
|
||||
// checkBox1
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
|
||||
label4.Location = new System.Drawing.Point(397, 233);
|
||||
label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(230, 42);
|
||||
label4.TabIndex = 22;
|
||||
label4.Text = "신규 품목은 SID칸에 \"신규\" 를\r\n입력하세요";
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(111, 13);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(123, 34);
|
||||
this.checkBox1.TabIndex = 1;
|
||||
this.checkBox1.Text = "신규 품목";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
|
||||
//
|
||||
// fItemAdd
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 30F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(669, 478);
|
||||
this.Controls.Add(label4);
|
||||
this.ClientSize = new System.Drawing.Size(669, 477);
|
||||
this.Controls.Add(this.checkBox1);
|
||||
this.Controls.Add(label3);
|
||||
this.Controls.Add(this.tbStorage);
|
||||
this.Controls.Add(label2);
|
||||
@@ -360,5 +358,6 @@
|
||||
public System.Windows.Forms.TextBox tbUnit;
|
||||
public System.Windows.Forms.TextBox tbPriceD;
|
||||
public System.Windows.Forms.TextBox tbStorage;
|
||||
}
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -60,7 +62,26 @@ namespace FCM0000.Item
|
||||
tbModel.Focus();
|
||||
return;
|
||||
}
|
||||
|
||||
if (tbSid.Text.StartsWith("신규")) tbSid.Text = "신규";
|
||||
else
|
||||
{
|
||||
//이떄는 sid가 정상이어야 한다.
|
||||
if (tbSid.Text.StartsWith("10") == false || tbSid.TextLength != 9)
|
||||
{
|
||||
Util.MsgE("SID는 9자리 숫자이며 10으로 시작 합니다\n입력값을 확인 하세요");
|
||||
tbSid.Focus();
|
||||
tbSid.SelectAll();
|
||||
return;
|
||||
}
|
||||
|
||||
if (ta.ExistSID(FCOMMON.info.Login.gcode, tbSid.Text) > 0)
|
||||
{
|
||||
Util.MsgE("동일한 SID정보가 있습니다\n화면을 닫은 후 SID로 검색하세요");
|
||||
this.Close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var pumName = tbName.Text.Trim();
|
||||
var pumModel = tbModel.Text.Trim();
|
||||
@@ -71,6 +92,10 @@ namespace FCM0000.Item
|
||||
FCOMMON.Util.MsgE("동일 품명 모델의 정보가 존재 합니다");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (tbSupplyIdx.Text == "") tbSupplyIdx.Text = "-1";
|
||||
var newdr = this.dsMSSQL.Items.NewItemsRow();
|
||||
newdr.gcode = FCOMMON.info.Login.gcode;
|
||||
@@ -93,7 +118,7 @@ namespace FCM0000.Item
|
||||
if (decimal.TryParse(tbPriceD.Text, out decimal priced))
|
||||
{
|
||||
newdr.priceD = priced;
|
||||
if(decimal.TryParse(tbPrice.Text,out decimal priceWon)==false)
|
||||
if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false)
|
||||
{
|
||||
var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon);
|
||||
tbPrice.Text = ConvertedPrice.ToString();
|
||||
@@ -135,5 +160,11 @@ namespace FCM0000.Item
|
||||
newIDX = -1;
|
||||
}
|
||||
}
|
||||
|
||||
private void checkBox1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbSid.Enabled = !checkBox1.Enabled;
|
||||
if (checkBox1.Checked) tbSid.Text = "신규";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,4 @@
|
||||
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
1099
SubProject/FCM0000/Item/fLovItem.Designer.cs
generated
1099
SubProject/FCM0000/Item/fLovItem.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -79,7 +79,7 @@ namespace FCM0000
|
||||
if (search == "")
|
||||
{
|
||||
|
||||
FCOMMON.Util.MsgI("(품명,모델,SID)을 검색 한 후 없는 경우 '품목추가' 버튼을 이용해서 추가 하시기 바랍니다");
|
||||
//sFCOMMON.Util.MsgI("(품명,모델,SID)을 검색 한 후 없는 경우 '품목추가' 버튼을 이용해서 추가 하시기 바랍니다");
|
||||
tbFind.Focus();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wgAADsIBFShKgAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
@@ -159,7 +159,7 @@
|
||||
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
wgAADsIBFShKgAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
@@ -168,7 +168,7 @@
|
||||
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
wgAADsIBFShKgAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
@@ -177,7 +177,7 @@
|
||||
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
wgAADsIBFShKgAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
@@ -230,7 +230,7 @@
|
||||
<data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALBSURBVGhD7Zk7bxQxEMdPvApKHhWPL4FApLoCKbrc+s5e
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALBSURBVGhD7Zk7bxQxEMdPvApKHhWPL4FApDqJIrrc+s5e
|
||||
KScQ9HwFIprrAn1AEFFShdzaUh40FHwGEHwAHhUQaqCBmb1JY43Jzj6cW2l/0l+KdOPx/zZrezzX6+jo
|
||||
qM7k1eSksmYpcfqhcjpLMvNRzcxP5dSfXPD30JoP+WcQM8rSm9Pp9AQNPz6001fA+GPQV+XMX5lGX+DL
|
||||
PBpk6WVKF4/B1upFlY03++7Wb95ccWGOodPP1I66QOmbBV6Du/D0DjgzVbTiVn4kWXqHpqmfa5v3TyfW
|
||||
@@ -242,7 +242,7 @@
|
||||
LjS4/ye7ySWyV4y83cclOxbpDbJVnOWt1XOLcKnHlmPpvin2KrmkMZXYdEJ2yoG9Si5xDMFm8oRslAfv
|
||||
ocPMOG6CZqX3+m/7p8hGNbDRCsf4Pj9R/UrceLe25u4h2OSNsTPha1Pbk+fAXmUzu9P4W+UFWxTsm2K7
|
||||
Dw8Y3oxAeQ69gds2pY8Hno5YdpSpneZj9Lr4hG0CLLKw6QQLfQ1rdrx44M0Oy5F5STI6gIvSO/wMS2Ks
|
||||
KhfiZ9aOjtbT6/0Ddt5qN1uCD44AAAAASUVORK5CYII=
|
||||
KhfiZ9aOjtbT6/0Dz7VqLlxZexkAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
|
||||
128
SubProject/FCM0000/fCode.Designer.cs
generated
128
SubProject/FCM0000/fCode.Designer.cs
generated
@@ -30,14 +30,15 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fCode));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.cmbList = new System.Windows.Forms.ComboBox();
|
||||
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.btAdd = new System.Windows.Forms.ToolStripButton();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dsMSSQL = new FCM0000.dsMSSQL();
|
||||
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.btDel = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
|
||||
@@ -47,12 +48,13 @@
|
||||
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.commonBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.btSave = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
this.코드일괄생성ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.title가져오기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.s가져오기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.btAddNew = new System.Windows.Forms.ToolStripButton();
|
||||
this.commonDataGridView = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -61,7 +63,7 @@
|
||||
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ta = new FCM0000.dsMSSQLTableAdapters.CommonTableAdapter();
|
||||
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.btCancle = new System.Windows.Forms.ToolStripButton();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
this.bn.SuspendLayout();
|
||||
@@ -78,7 +80,7 @@
|
||||
this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.panel1.Size = new System.Drawing.Size(684, 48);
|
||||
this.panel1.Size = new System.Drawing.Size(817, 48);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// cmbList
|
||||
@@ -90,16 +92,16 @@
|
||||
this.cmbList.Location = new System.Drawing.Point(5, 5);
|
||||
this.cmbList.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.cmbList.Name = "cmbList";
|
||||
this.cmbList.Size = new System.Drawing.Size(674, 37);
|
||||
this.cmbList.Size = new System.Drawing.Size(807, 37);
|
||||
this.cmbList.TabIndex = 0;
|
||||
this.cmbList.SelectedIndexChanged += new System.EventHandler(this.cmbList_SelectedIndexChanged);
|
||||
//
|
||||
// bn
|
||||
//
|
||||
this.bn.AddNewItem = this.bindingNavigatorAddNewItem;
|
||||
this.bn.AddNewItem = this.btAdd;
|
||||
this.bn.BindingSource = this.bs;
|
||||
this.bn.CountItem = this.bindingNavigatorCountItem;
|
||||
this.bn.DeleteItem = this.bindingNavigatorDeleteItem;
|
||||
this.bn.DeleteItem = this.btDel;
|
||||
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripLabel6,
|
||||
@@ -112,12 +114,13 @@
|
||||
this.bindingNavigatorMoveNextItem,
|
||||
this.bindingNavigatorMoveLastItem,
|
||||
this.bindingNavigatorSeparator2,
|
||||
this.bindingNavigatorAddNewItem,
|
||||
this.bindingNavigatorDeleteItem,
|
||||
this.commonBindingNavigatorSaveItem,
|
||||
this.btAdd,
|
||||
this.btDel,
|
||||
this.btSave,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2});
|
||||
this.btAddNew,
|
||||
this.btCancle});
|
||||
this.bn.Location = new System.Drawing.Point(0, 693);
|
||||
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
|
||||
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
|
||||
@@ -125,17 +128,18 @@
|
||||
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
|
||||
this.bn.Name = "bn";
|
||||
this.bn.PositionItem = this.bindingNavigatorPositionItem;
|
||||
this.bn.Size = new System.Drawing.Size(684, 25);
|
||||
this.bn.Size = new System.Drawing.Size(817, 25);
|
||||
this.bn.TabIndex = 1;
|
||||
this.bn.Text = "bindingNavigator1";
|
||||
//
|
||||
// bindingNavigatorAddNewItem
|
||||
// btAdd
|
||||
//
|
||||
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
|
||||
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
|
||||
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(67, 22);
|
||||
this.bindingNavigatorAddNewItem.Text = "추가(&A)";
|
||||
this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image")));
|
||||
this.btAdd.Name = "btAdd";
|
||||
this.btAdd.RightToLeftAutoMirrorImage = true;
|
||||
this.btAdd.Size = new System.Drawing.Size(67, 22);
|
||||
this.btAdd.Text = "추가(&A)";
|
||||
this.btAdd.Click += new System.EventHandler(this.btAdd_Click);
|
||||
//
|
||||
// bs
|
||||
//
|
||||
@@ -154,13 +158,13 @@
|
||||
this.bindingNavigatorCountItem.Text = "/{0}";
|
||||
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
|
||||
//
|
||||
// bindingNavigatorDeleteItem
|
||||
// btDel
|
||||
//
|
||||
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
|
||||
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
|
||||
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(68, 22);
|
||||
this.bindingNavigatorDeleteItem.Text = "삭제(&D)";
|
||||
this.btDel.Image = ((System.Drawing.Image)(resources.GetObject("btDel.Image")));
|
||||
this.btDel.Name = "btDel";
|
||||
this.btDel.RightToLeftAutoMirrorImage = true;
|
||||
this.btDel.Size = new System.Drawing.Size(68, 22);
|
||||
this.btDel.Text = "삭제(&D)";
|
||||
//
|
||||
// toolStripLabel6
|
||||
//
|
||||
@@ -230,13 +234,13 @@
|
||||
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
|
||||
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// commonBindingNavigatorSaveItem
|
||||
// btSave
|
||||
//
|
||||
this.commonBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("commonBindingNavigatorSaveItem.Image")));
|
||||
this.commonBindingNavigatorSaveItem.Name = "commonBindingNavigatorSaveItem";
|
||||
this.commonBindingNavigatorSaveItem.Size = new System.Drawing.Size(66, 22);
|
||||
this.commonBindingNavigatorSaveItem.Text = "저장(&S)";
|
||||
this.commonBindingNavigatorSaveItem.Click += new System.EventHandler(this.commonBindingNavigatorSaveItem_Click);
|
||||
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
|
||||
this.btSave.Name = "btSave";
|
||||
this.btSave.Size = new System.Drawing.Size(66, 22);
|
||||
this.btSave.Text = "저장(&S)";
|
||||
this.btSave.Click += new System.EventHandler(this.commonBindingNavigatorSaveItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
@@ -277,6 +281,16 @@
|
||||
this.s가져오기ToolStripMenuItem.Text = "S 가져오기";
|
||||
this.s가져오기ToolStripMenuItem.Click += new System.EventHandler(this.s가져오기ToolStripMenuItem_Click);
|
||||
//
|
||||
// btAddNew
|
||||
//
|
||||
this.btAddNew.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.btAddNew.Image = ((System.Drawing.Image)(resources.GetObject("btAddNew.Image")));
|
||||
this.btAddNew.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.btAddNew.Name = "btAddNew";
|
||||
this.btAddNew.Size = new System.Drawing.Size(107, 22);
|
||||
this.btAddNew.Text = "누락 항목 추가";
|
||||
this.btAddNew.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
//
|
||||
// commonDataGridView
|
||||
//
|
||||
this.commonDataGridView.AutoGenerateColumns = false;
|
||||
@@ -291,12 +305,23 @@
|
||||
this.dataGridViewTextBoxColumn5,
|
||||
this.dataGridViewTextBoxColumn6});
|
||||
this.commonDataGridView.DataSource = this.bs;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.commonDataGridView.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.commonDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.commonDataGridView.Location = new System.Drawing.Point(0, 48);
|
||||
this.commonDataGridView.Name = "commonDataGridView";
|
||||
this.commonDataGridView.RowTemplate.Height = 23;
|
||||
this.commonDataGridView.Size = new System.Drawing.Size(684, 645);
|
||||
this.commonDataGridView.Size = new System.Drawing.Size(817, 645);
|
||||
this.commonDataGridView.TabIndex = 3;
|
||||
this.commonDataGridView.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.commonDataGridView_CellContentClick);
|
||||
this.commonDataGridView.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.commonDataGridView_CellDoubleClick);
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
@@ -307,10 +332,10 @@
|
||||
//
|
||||
// dataGridViewTextBoxColumn7
|
||||
//
|
||||
this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.dataGridViewTextBoxColumn7.DataPropertyName = "memo";
|
||||
this.dataGridViewTextBoxColumn7.HeaderText = "Title";
|
||||
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
|
||||
this.dataGridViewTextBoxColumn7.Width = 65;
|
||||
//
|
||||
// dataGridViewTextBoxColumn4
|
||||
//
|
||||
@@ -353,21 +378,21 @@
|
||||
this.tam.StaffTableAdapter = null;
|
||||
this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
|
||||
//
|
||||
// toolStripButton2
|
||||
// btCancle
|
||||
//
|
||||
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
|
||||
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(107, 22);
|
||||
this.toolStripButton2.Text = "누락 항목 추가";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
this.btCancle.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.btCancle.Image = ((System.Drawing.Image)(resources.GetObject("btCancle.Image")));
|
||||
this.btCancle.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.btCancle.Name = "btCancle";
|
||||
this.btCancle.Size = new System.Drawing.Size(79, 22);
|
||||
this.btCancle.Text = "선택 취소";
|
||||
this.btCancle.Click += new System.EventHandler(this.toolStripButton2_Click_1);
|
||||
//
|
||||
// fCode
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(684, 718);
|
||||
this.ClientSize = new System.Drawing.Size(817, 718);
|
||||
this.Controls.Add(this.commonDataGridView);
|
||||
this.Controls.Add(this.bn);
|
||||
this.Controls.Add(this.panel1);
|
||||
@@ -399,9 +424,9 @@
|
||||
private dsMSSQLTableAdapters.CommonTableAdapter ta;
|
||||
private dsMSSQLTableAdapters.TableAdapterManager tam;
|
||||
private System.Windows.Forms.BindingNavigator bn;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
|
||||
private System.Windows.Forms.ToolStripButton btAdd;
|
||||
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
|
||||
private System.Windows.Forms.ToolStripButton btDel;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
|
||||
@@ -410,19 +435,20 @@
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
|
||||
private System.Windows.Forms.ToolStripButton commonBindingNavigatorSaveItem;
|
||||
private System.Windows.Forms.ToolStripButton btSave;
|
||||
private System.Windows.Forms.DataGridView commonDataGridView;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripDropDownButton toolStripButton1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 코드일괄생성ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripLabel toolStripLabel6;
|
||||
private System.Windows.Forms.ToolStripMenuItem title가져오기ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem s가져오기ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
private System.Windows.Forms.ToolStripButton btAddNew;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
|
||||
private System.Windows.Forms.ToolStripButton btCancle;
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fCode : FCOMMON.fBase
|
||||
{
|
||||
public fCode()
|
||||
string defaultgubun = "";
|
||||
string defafilter = "";
|
||||
public fCode(string gubun = "",string filter="")
|
||||
{
|
||||
InitializeComponent();
|
||||
this.defaultgubun = gubun;
|
||||
this.defafilter = filter;
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.dsMSSQL.Common.TableNewRow += Common_TableNewRow;
|
||||
if (FCOMMON.info.Login.level >= 9) toolStripButton1.Visible = true;
|
||||
@@ -35,6 +37,18 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
if(this.defaultgubun.isEmpty()==false)
|
||||
{
|
||||
commonDataGridView.AllowUserToAddRows = false;
|
||||
commonDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||
btAddNew.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
btCancle.Visible = false;
|
||||
}
|
||||
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
@@ -46,7 +60,32 @@ namespace FCM0000
|
||||
toolStripButton1.Visible = FCOMMON.info.Login.no == "dev";
|
||||
// this.TopMost=true;
|
||||
// this.Activate();
|
||||
cmbList_SelectedIndexChanged(null, null);
|
||||
|
||||
|
||||
//자동선택해준다.
|
||||
if (defaultgubun.isEmpty() == false)
|
||||
{
|
||||
RefreshCodeList();
|
||||
var idx = -1;
|
||||
for (int i = 0; i < this.cmbList.Items.Count; i++)
|
||||
{
|
||||
var itemname = $"[{i:00}]";
|
||||
var item = cmbList.Items[i];
|
||||
if (item.ToString().StartsWith($"[{defaultgubun}]"))
|
||||
{
|
||||
idx = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(idx > -1)
|
||||
{
|
||||
this.cmbList.SelectedIndex = idx;
|
||||
this.cmbList.Enabled = false;
|
||||
}
|
||||
cmbList_SelectedIndexChanged(null, null);
|
||||
|
||||
}
|
||||
else cmbList_SelectedIndexChanged(null, null);
|
||||
}
|
||||
void RefreshCodeList()
|
||||
{
|
||||
@@ -70,6 +109,7 @@ namespace FCM0000
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dsMSSQL.Common, grp, FCOMMON.info.Login.gcode);
|
||||
this.bs.Filter = this.defafilter;
|
||||
this.dsMSSQL.Common.AcceptChanges();
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -88,6 +128,7 @@ namespace FCM0000
|
||||
{
|
||||
cmbList_SelectedIndexChanged(null, null);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -189,7 +230,7 @@ namespace FCM0000
|
||||
if (cmbList.SelectedIndex <= 0)
|
||||
{
|
||||
if (FCOMMON.Util.MsgQ("없는 목록을 기본값에서 생성 할까요?") != DialogResult.Yes) return;
|
||||
|
||||
|
||||
var sql = "insert into Common(gcode,grp,code,svalue,ivalue,fvalue,memo,wuid,wdate)" +
|
||||
$" select '{gcode}',grp,code,svalue,ivalue,fvalue,memo,'{uid}',getdate() from Common where gcode = 'EET1P' and grp = '99'" +
|
||||
$" and code not in (select code from Common where gcode = '{gcode}' and grp = '99')";
|
||||
@@ -213,5 +254,45 @@ namespace FCM0000
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void commonDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void commonDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
|
||||
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
|
||||
if (this.defaultgubun.isEmpty()) return;
|
||||
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
if (this.dsMSSQL.Common.GetChanges() != null)
|
||||
{
|
||||
Util.MsgE("변경된 내용이 있습니다. 저장 후 다시 시도하세요");
|
||||
return;
|
||||
}
|
||||
|
||||
var drv = bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
var dr = drv.Row as dsMSSQL.CommonRow;
|
||||
SelectedTitle = dr.memo;
|
||||
|
||||
//선택된것으로 한다.
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
public string SelectedTitle { get; set; } = "";
|
||||
|
||||
private void toolStripButton2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
this.SelectedTitle = string.Empty;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,10 +121,10 @@
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
wQAADsEBuJFr7QAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
|
||||
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
|
||||
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
|
||||
@@ -139,10 +139,10 @@
|
||||
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="btDel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
wQAADsEBuJFr7QAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
|
||||
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
|
||||
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
|
||||
@@ -154,7 +154,7 @@
|
||||
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wQAADsEBuJFr7QAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
@@ -165,7 +165,7 @@
|
||||
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
wQAADsEBuJFr7QAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
@@ -174,7 +174,7 @@
|
||||
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
wQAADsEBuJFr7QAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
@@ -183,7 +183,7 @@
|
||||
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
wQAADsEBuJFr7QAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
@@ -191,10 +191,10 @@
|
||||
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="commonBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
|
||||
wQAADsEBuJFr7QAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
|
||||
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
@@ -213,7 +213,7 @@
|
||||
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="btAddNew.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
|
||||
@@ -228,6 +228,20 @@
|
||||
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="btCancle.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEPSURBVDhPrZI9CsJAFIRzDi9gaStYCCm8gCgIYgoRISA2
|
||||
gj+9lXYieAJP4CXSC6YSbEQQCxsrk6fzcGI02dg4MMVu3vdlw8b6jmTkNWIOhiaViqzm86iLXk+L/UwJ
|
||||
Hs6aTQl9X8TztOF6LfflMuq0UEiXxOHLcKg9DwbaU7+vPbquyGiUlGDRte2fMHpot1XSyOXeEgpum00E
|
||||
IoT9UknXgClwi0XdSwgIoQhhQBSEz5MYBTwqmgbvWy0VGD+B3xmHEYBspoBv0jxhQshPAe55V6sZ69fr
|
||||
sq1WkwIEC6dc1ivkYFoBj/P5T5iJS4JOR66O81HsEQ6CIClA8BBXhL8NwyzWPLYRZnTKkNfIP2NZD+oj
|
||||
J+O97B4lAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>186, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user