190724
This commit is contained in:
@@ -65,6 +65,7 @@ namespace FEQ0000
|
||||
|
||||
void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
e.Row["pdate"] = DateTime.Now.ToShortDateString();
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
@@ -328,7 +329,7 @@ namespace FEQ0000
|
||||
newdr.pumidx = newidx;
|
||||
newdr.EndEdit();
|
||||
}
|
||||
|
||||
|
||||
this.dsPurchase.Purchase.AddPurchaseRow(newdr);
|
||||
|
||||
int cnt = this.ta.Update(newdr);
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
System.Windows.Forms.Label poLabel;
|
||||
System.Windows.Forms.Label deptLabel;
|
||||
System.Windows.Forms.Label label1;
|
||||
System.Windows.Forms.Label stateLabel;
|
||||
System.Windows.Forms.Label label2;
|
||||
System.Windows.Forms.Label label4;
|
||||
System.Windows.Forms.Label label5;
|
||||
@@ -106,7 +105,6 @@
|
||||
poLabel = new System.Windows.Forms.Label();
|
||||
deptLabel = new System.Windows.Forms.Label();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
stateLabel = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
label5 = new System.Windows.Forms.Label();
|
||||
@@ -120,7 +118,7 @@
|
||||
// processLabel
|
||||
//
|
||||
processLabel.AutoSize = true;
|
||||
processLabel.Location = new System.Drawing.Point(57, 99);
|
||||
processLabel.Location = new System.Drawing.Point(57, 130);
|
||||
processLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
processLabel.Name = "processLabel";
|
||||
processLabel.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -130,7 +128,7 @@
|
||||
// receiveLabel
|
||||
//
|
||||
receiveLabel.AutoSize = true;
|
||||
receiveLabel.Location = new System.Drawing.Point(42, 64);
|
||||
receiveLabel.Location = new System.Drawing.Point(42, 95);
|
||||
receiveLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
receiveLabel.Name = "receiveLabel";
|
||||
receiveLabel.Size = new System.Drawing.Size(54, 20);
|
||||
@@ -140,7 +138,7 @@
|
||||
// scLabel
|
||||
//
|
||||
scLabel.AutoSize = true;
|
||||
scLabel.Location = new System.Drawing.Point(69, 129);
|
||||
scLabel.Location = new System.Drawing.Point(69, 160);
|
||||
scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
scLabel.Name = "scLabel";
|
||||
scLabel.Size = new System.Drawing.Size(27, 20);
|
||||
@@ -230,7 +228,7 @@
|
||||
// assetLabel
|
||||
//
|
||||
assetLabel.AutoSize = true;
|
||||
assetLabel.Location = new System.Drawing.Point(24, 295);
|
||||
assetLabel.Location = new System.Drawing.Point(24, 326);
|
||||
assetLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
assetLabel.Name = "assetLabel";
|
||||
assetLabel.Size = new System.Drawing.Size(69, 20);
|
||||
@@ -240,7 +238,7 @@
|
||||
// poLabel
|
||||
//
|
||||
poLabel.AutoSize = true;
|
||||
poLabel.Location = new System.Drawing.Point(66, 159);
|
||||
poLabel.Location = new System.Drawing.Point(66, 190);
|
||||
poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
poLabel.Name = "poLabel";
|
||||
poLabel.Size = new System.Drawing.Size(30, 20);
|
||||
@@ -267,20 +265,10 @@
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "입력일";
|
||||
//
|
||||
// stateLabel
|
||||
//
|
||||
stateLabel.AutoSize = true;
|
||||
stateLabel.Location = new System.Drawing.Point(27, 33);
|
||||
stateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
stateLabel.Name = "stateLabel";
|
||||
stateLabel.Size = new System.Drawing.Size(69, 20);
|
||||
stateLabel.TabIndex = 0;
|
||||
stateLabel.Text = "구매상태";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(12, 259);
|
||||
label2.Location = new System.Drawing.Point(12, 290);
|
||||
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(84, 20);
|
||||
@@ -290,7 +278,7 @@
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new System.Drawing.Point(24, 223);
|
||||
label4.Location = new System.Drawing.Point(24, 254);
|
||||
label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(69, 20);
|
||||
@@ -300,7 +288,7 @@
|
||||
// label5
|
||||
//
|
||||
label5.AutoSize = true;
|
||||
label5.Location = new System.Drawing.Point(36, 190);
|
||||
label5.Location = new System.Drawing.Point(36, 221);
|
||||
label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label5.Name = "label5";
|
||||
label5.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -309,7 +297,7 @@
|
||||
//
|
||||
// tbSC
|
||||
//
|
||||
this.tbSC.Location = new System.Drawing.Point(104, 125);
|
||||
this.tbSC.Location = new System.Drawing.Point(104, 156);
|
||||
this.tbSC.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSC.Name = "tbSC";
|
||||
this.tbSC.Size = new System.Drawing.Size(286, 27);
|
||||
@@ -433,7 +421,7 @@
|
||||
//
|
||||
// tbPO
|
||||
//
|
||||
this.tbPO.Location = new System.Drawing.Point(104, 156);
|
||||
this.tbPO.Location = new System.Drawing.Point(104, 187);
|
||||
this.tbPO.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPO.Name = "tbPO";
|
||||
this.tbPO.Size = new System.Drawing.Size(286, 27);
|
||||
@@ -442,12 +430,12 @@
|
||||
// tbBigo
|
||||
//
|
||||
this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbBigo.Location = new System.Drawing.Point(93, 390);
|
||||
this.tbBigo.Location = new System.Drawing.Point(93, 320);
|
||||
this.tbBigo.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbBigo.MaxLength = 500;
|
||||
this.tbBigo.Multiline = true;
|
||||
this.tbBigo.Name = "tbBigo";
|
||||
this.tbBigo.Size = new System.Drawing.Size(381, 91);
|
||||
this.tbBigo.Size = new System.Drawing.Size(381, 165);
|
||||
this.tbBigo.TabIndex = 8;
|
||||
this.tbBigo.TabStop = false;
|
||||
//
|
||||
@@ -461,7 +449,7 @@
|
||||
//
|
||||
// btSave
|
||||
//
|
||||
this.btSave.Location = new System.Drawing.Point(11, 540);
|
||||
this.btSave.Location = new System.Drawing.Point(11, 562);
|
||||
this.btSave.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btSave.Name = "btSave";
|
||||
this.btSave.Size = new System.Drawing.Size(492, 51);
|
||||
@@ -474,10 +462,10 @@
|
||||
//
|
||||
this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.cmbState.FormattingEnabled = true;
|
||||
this.cmbState.Location = new System.Drawing.Point(104, 28);
|
||||
this.cmbState.Location = new System.Drawing.Point(336, 65);
|
||||
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbState.Name = "cmbState";
|
||||
this.cmbState.Size = new System.Drawing.Size(286, 28);
|
||||
this.cmbState.Size = new System.Drawing.Size(139, 28);
|
||||
this.cmbState.TabIndex = 1;
|
||||
this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||
//
|
||||
@@ -488,7 +476,7 @@
|
||||
this.cbProcess.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.cbProcess.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbProcess.FormattingEnabled = true;
|
||||
this.cbProcess.Location = new System.Drawing.Point(104, 94);
|
||||
this.cbProcess.Location = new System.Drawing.Point(104, 125);
|
||||
this.cbProcess.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbProcess.Name = "cbProcess";
|
||||
this.cbProcess.Size = new System.Drawing.Size(286, 28);
|
||||
@@ -512,7 +500,7 @@
|
||||
this.cmbReceive.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.cmbReceive.FormattingEnabled = true;
|
||||
this.cmbReceive.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cmbReceive.Location = new System.Drawing.Point(104, 62);
|
||||
this.cmbReceive.Location = new System.Drawing.Point(104, 93);
|
||||
this.cmbReceive.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbReceive.Name = "cmbReceive";
|
||||
this.cmbReceive.Size = new System.Drawing.Size(286, 28);
|
||||
@@ -544,17 +532,17 @@
|
||||
//
|
||||
// dtInDate
|
||||
//
|
||||
this.dtInDate.Location = new System.Drawing.Point(93, 355);
|
||||
this.dtInDate.Location = new System.Drawing.Point(104, 58);
|
||||
this.dtInDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dtInDate.Name = "dtInDate";
|
||||
this.dtInDate.Size = new System.Drawing.Size(193, 27);
|
||||
this.dtInDate.Size = new System.Drawing.Size(286, 27);
|
||||
this.dtInDate.TabIndex = 15;
|
||||
this.dtInDate.TabStop = false;
|
||||
//
|
||||
// chkInDate
|
||||
//
|
||||
this.chkInDate.AutoSize = true;
|
||||
this.chkInDate.Location = new System.Drawing.Point(13, 357);
|
||||
this.chkInDate.Location = new System.Drawing.Point(24, 60);
|
||||
this.chkInDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.chkInDate.Name = "chkInDate";
|
||||
this.chkInDate.Size = new System.Drawing.Size(73, 24);
|
||||
@@ -566,17 +554,17 @@
|
||||
//
|
||||
// dtExpDate
|
||||
//
|
||||
this.dtExpDate.Location = new System.Drawing.Point(93, 320);
|
||||
this.dtExpDate.Location = new System.Drawing.Point(104, 26);
|
||||
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dtExpDate.Name = "dtExpDate";
|
||||
this.dtExpDate.Size = new System.Drawing.Size(193, 27);
|
||||
this.dtExpDate.Size = new System.Drawing.Size(286, 27);
|
||||
this.dtExpDate.TabIndex = 24;
|
||||
this.dtExpDate.TabStop = false;
|
||||
//
|
||||
// chkExp
|
||||
//
|
||||
this.chkExp.AutoSize = true;
|
||||
this.chkExp.Location = new System.Drawing.Point(13, 324);
|
||||
this.chkExp.Location = new System.Drawing.Point(24, 30);
|
||||
this.chkExp.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.chkExp.Name = "chkExp";
|
||||
this.chkExp.Size = new System.Drawing.Size(73, 24);
|
||||
@@ -600,7 +588,7 @@
|
||||
//
|
||||
// btSaveAdd
|
||||
//
|
||||
this.btSaveAdd.Location = new System.Drawing.Point(511, 540);
|
||||
this.btSaveAdd.Location = new System.Drawing.Point(511, 562);
|
||||
this.btSaveAdd.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btSaveAdd.Name = "btSaveAdd";
|
||||
this.btSaveAdd.Size = new System.Drawing.Size(410, 51);
|
||||
@@ -613,19 +601,15 @@
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.dtPdate);
|
||||
this.groupBox1.Controls.Add(this.tbPumStock);
|
||||
this.groupBox1.Controls.Add(this.linkLabel1);
|
||||
this.groupBox1.Controls.Add(this.tbPumAmt);
|
||||
this.groupBox1.Controls.Add(this.chkExp);
|
||||
this.groupBox1.Controls.Add(this.tbBigo);
|
||||
this.groupBox1.Controls.Add(deptLabel);
|
||||
this.groupBox1.Controls.Add(this.tbSupplyIndex);
|
||||
this.groupBox1.Controls.Add(this.dtExpDate);
|
||||
this.groupBox1.Controls.Add(pumamtLabel);
|
||||
this.groupBox1.Controls.Add(this.tbPumIDX);
|
||||
this.groupBox1.Controls.Add(this.chkInDate);
|
||||
this.groupBox1.Controls.Add(this.cmbState);
|
||||
this.groupBox1.Controls.Add(projectLabel);
|
||||
this.groupBox1.Controls.Add(this.tbSID);
|
||||
this.groupBox1.Controls.Add(this.dtInDate);
|
||||
this.groupBox1.Controls.Add(this.tbPumQty);
|
||||
this.groupBox1.Controls.Add(supplyLabel);
|
||||
this.groupBox1.Controls.Add(pumqtyLabel);
|
||||
@@ -654,13 +638,13 @@
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(350, 325);
|
||||
this.linkLabel1.Location = new System.Drawing.Point(7, 441);
|
||||
this.linkLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(124, 20);
|
||||
this.linkLabel1.Size = new System.Drawing.Size(89, 20);
|
||||
this.linkLabel1.TabIndex = 16;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "견적서 폴더 열기";
|
||||
this.linkLabel1.Text = "견적서 폴더";
|
||||
this.toolTip1.SetToolTip(this.linkLabel1, "클릭시 견적서(공유폴더) 가 열립니다.");
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
@@ -669,16 +653,20 @@
|
||||
this.groupBox2.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.groupBox2.Controls.Add(this.tbOrderNo);
|
||||
this.groupBox2.Controls.Add(label5);
|
||||
this.groupBox2.Controls.Add(this.linkLabel1);
|
||||
this.groupBox2.Controls.Add(this.cbManuProc);
|
||||
this.groupBox2.Controls.Add(label4);
|
||||
this.groupBox2.Controls.Add(this.chkExp);
|
||||
this.groupBox2.Controls.Add(this.cbEQModel);
|
||||
this.groupBox2.Controls.Add(this.cbEQManu);
|
||||
this.groupBox2.Controls.Add(label2);
|
||||
this.groupBox2.Controls.Add(this.chkInDate);
|
||||
this.groupBox2.Controls.Add(this.linkLabel4);
|
||||
this.groupBox2.Controls.Add(this.dtExpDate);
|
||||
this.groupBox2.Controls.Add(this.linkLabel3);
|
||||
this.groupBox2.Controls.Add(this.dtInDate);
|
||||
this.groupBox2.Controls.Add(this.linkLabel2);
|
||||
this.groupBox2.Controls.Add(this.pictureBox1);
|
||||
this.groupBox2.Controls.Add(this.cmbState);
|
||||
this.groupBox2.Controls.Add(this.tbPO);
|
||||
this.groupBox2.Controls.Add(poLabel);
|
||||
this.groupBox2.Controls.Add(this.tbSC);
|
||||
@@ -688,12 +676,11 @@
|
||||
this.groupBox2.Controls.Add(this.cmbReceive);
|
||||
this.groupBox2.Controls.Add(processLabel);
|
||||
this.groupBox2.Controls.Add(this.cbProcess);
|
||||
this.groupBox2.Controls.Add(stateLabel);
|
||||
this.groupBox2.Location = new System.Drawing.Point(512, 38);
|
||||
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox2.Size = new System.Drawing.Size(409, 494);
|
||||
this.groupBox2.Size = new System.Drawing.Size(409, 516);
|
||||
this.groupBox2.TabIndex = 4;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "추가정보";
|
||||
@@ -701,7 +688,7 @@
|
||||
// tbOrderNo
|
||||
//
|
||||
this.tbOrderNo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.tbOrderNo.Location = new System.Drawing.Point(104, 187);
|
||||
this.tbOrderNo.Location = new System.Drawing.Point(104, 218);
|
||||
this.tbOrderNo.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbOrderNo.Name = "tbOrderNo";
|
||||
this.tbOrderNo.Size = new System.Drawing.Size(286, 27);
|
||||
@@ -714,7 +701,7 @@
|
||||
this.cbManuProc.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbManuProc.FormattingEnabled = true;
|
||||
this.cbManuProc.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cbManuProc.Location = new System.Drawing.Point(104, 220);
|
||||
this.cbManuProc.Location = new System.Drawing.Point(104, 251);
|
||||
this.cbManuProc.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbManuProc.Name = "cbManuProc";
|
||||
this.cbManuProc.Size = new System.Drawing.Size(286, 28);
|
||||
@@ -727,7 +714,7 @@
|
||||
this.cbEQModel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbEQModel.FormattingEnabled = true;
|
||||
this.cbEQModel.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cbEQModel.Location = new System.Drawing.Point(104, 292);
|
||||
this.cbEQModel.Location = new System.Drawing.Point(104, 323);
|
||||
this.cbEQModel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbEQModel.Name = "cbEQModel";
|
||||
this.cbEQModel.Size = new System.Drawing.Size(286, 28);
|
||||
@@ -740,7 +727,7 @@
|
||||
this.cbEQManu.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbEQManu.FormattingEnabled = true;
|
||||
this.cbEQManu.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cbEQManu.Location = new System.Drawing.Point(104, 256);
|
||||
this.cbEQManu.Location = new System.Drawing.Point(104, 287);
|
||||
this.cbEQManu.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbEQManu.Name = "cbEQManu";
|
||||
this.cbEQManu.Size = new System.Drawing.Size(286, 28);
|
||||
@@ -750,7 +737,7 @@
|
||||
// linkLabel4
|
||||
//
|
||||
this.linkLabel4.AutoSize = true;
|
||||
this.linkLabel4.Location = new System.Drawing.Point(57, 355);
|
||||
this.linkLabel4.Location = new System.Drawing.Point(57, 386);
|
||||
this.linkLabel4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel4.Name = "linkLabel4";
|
||||
this.linkLabel4.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -762,7 +749,7 @@
|
||||
// linkLabel3
|
||||
//
|
||||
this.linkLabel3.AutoSize = true;
|
||||
this.linkLabel3.Location = new System.Drawing.Point(28, 327);
|
||||
this.linkLabel3.Location = new System.Drawing.Point(28, 358);
|
||||
this.linkLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel3.Name = "linkLabel3";
|
||||
this.linkLabel3.Size = new System.Drawing.Size(69, 20);
|
||||
@@ -774,7 +761,7 @@
|
||||
// linkLabel2
|
||||
//
|
||||
this.linkLabel2.AutoSize = true;
|
||||
this.linkLabel2.Location = new System.Drawing.Point(22, 382);
|
||||
this.linkLabel2.Location = new System.Drawing.Point(22, 413);
|
||||
this.linkLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel2.Name = "linkLabel2";
|
||||
this.linkLabel2.Size = new System.Drawing.Size(74, 20);
|
||||
@@ -786,7 +773,7 @@
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(104, 327);
|
||||
this.pictureBox1.Location = new System.Drawing.Point(104, 358);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(286, 148);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
@@ -812,7 +799,7 @@
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(934, 602);
|
||||
this.ClientSize = new System.Drawing.Size(934, 618);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btSaveAdd);
|
||||
|
||||
@@ -162,9 +162,6 @@
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="stateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
@@ -180,6 +177,9 @@
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>490, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>490, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
||||
@@ -290,7 +290,11 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
var taE = new dsPurchaseTableAdapters.PurchaseTableAdapter();
|
||||
if (checkBox1.Checked) taE.DeleteImport(sd.Value.ToShortDateString(), ed.Value.ToShortDateString(), FCOMMON.info.Login.no);
|
||||
if (checkBox1.Checked) taE.DeleteImport(
|
||||
sd.Value.ToShortDateString(),
|
||||
ed.Value.ToShortDateString(),
|
||||
FCOMMON.info.Login.no,
|
||||
FCOMMON.info.Login.gcode);
|
||||
taE.Update((dsPurchase.PurchaseDataTable)dt);
|
||||
|
||||
dt.AcceptChanges();
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace FEQ0000
|
||||
if (checkBox1.Checked) taE.DeleteImport(
|
||||
dtPdate.Value.ToShortDateString(),
|
||||
dtPdate.Value.ToShortDateString(),
|
||||
FCOMMON.info.Login.no);
|
||||
FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
|
||||
|
||||
taE.Update((dsPurchase.PurchaseDataTable)dt);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace FEQ0000.Purchase
|
||||
}
|
||||
void refreshData()
|
||||
{
|
||||
this.ta.FillDate(this.dsPurchase.Purchase, dtSD.Text, dtED.Text);
|
||||
this.ta.FillDate(this.dsPurchase.Purchase, dtSD.Text, dtED.Text,FCOMMON.info.Login.gcode);
|
||||
|
||||
//Set DataSource
|
||||
Microsoft.Reporting.WinForms.ReportDataSource DsEQ = new Microsoft.Reporting.WinForms.ReportDataSource();
|
||||
|
||||
102
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
102
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
@@ -341,6 +341,8 @@ namespace FEQ0000 {
|
||||
|
||||
private global::System.Data.DataColumn columnorderno;
|
||||
|
||||
private global::System.Data.DataColumn columngcode;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public PurchaseDataTable() {
|
||||
@@ -622,6 +624,14 @@ namespace FEQ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn gcodeColumn {
|
||||
get {
|
||||
return this.columngcode;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -689,7 +699,8 @@ namespace FEQ0000 {
|
||||
bool isdel,
|
||||
string bigo,
|
||||
string manuproc,
|
||||
string orderno) {
|
||||
string orderno,
|
||||
string gcode) {
|
||||
PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -722,7 +733,8 @@ namespace FEQ0000 {
|
||||
isdel,
|
||||
bigo,
|
||||
manuproc,
|
||||
orderno};
|
||||
orderno,
|
||||
gcode};
|
||||
rowPurchaseRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowPurchaseRow);
|
||||
return rowPurchaseRow;
|
||||
@@ -783,6 +795,7 @@ namespace FEQ0000 {
|
||||
this.columnbigo = base.Columns["bigo"];
|
||||
this.columnmanuproc = base.Columns["manuproc"];
|
||||
this.columnorderno = base.Columns["orderno"];
|
||||
this.columngcode = base.Columns["gcode"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -850,6 +863,8 @@ namespace FEQ0000 {
|
||||
base.Columns.Add(this.columnmanuproc);
|
||||
this.columnorderno = new global::System.Data.DataColumn("orderno", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnorderno);
|
||||
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columngcode);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, true));
|
||||
this.columnidx.AutoIncrement = true;
|
||||
@@ -881,6 +896,8 @@ namespace FEQ0000 {
|
||||
this.columnbigo.MaxLength = 500;
|
||||
this.columnmanuproc.MaxLength = 50;
|
||||
this.columnorderno.MaxLength = 50;
|
||||
this.columngcode.AllowDBNull = false;
|
||||
this.columngcode.MaxLength = 10;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -1502,6 +1519,17 @@ namespace FEQ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string gcode {
|
||||
get {
|
||||
return ((string)(this[this.tablePurchase.gcodeColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tablePurchase.gcodeColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IspdateNull() {
|
||||
@@ -2029,6 +2057,7 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("bigo", "bigo");
|
||||
tableMapping.ColumnMappings.Add("manuproc", "manuproc");
|
||||
tableMapping.ColumnMappings.Add("orderno", "orderno");
|
||||
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -2039,8 +2068,8 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._adapter.InsertCommand.Connection = this.Connection;
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO Purchase
|
||||
(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate,
|
||||
import, pumidx, isdel, bigo, manuproc, orderno)
|
||||
VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno);
|
||||
import, pumidx, isdel, bigo, manuproc, orderno, gcode)
|
||||
VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode);
|
||||
SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -2073,6 +2102,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.UpdateCommand.Connection = this.Connection;
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE Purchase
|
||||
@@ -2131,33 +2161,46 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid,
|
||||
wdate, import, pumidx, isdel, bigo, manuproc, orderno
|
||||
wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode
|
||||
FROM Purchase
|
||||
WHERE (ISNULL(isdel, 0) = 0)
|
||||
WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)
|
||||
ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "DELETE FROM Purchase\r\nWHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wu" +
|
||||
"id = @userid)";
|
||||
"id = @userid) AND (gcode = @gcode)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = @"SELECT asset, bigo, dept, edate, idx, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive, request, sc, sid, state, supply, supplyidx, wdate, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[2].CommandText = @"SELECT asset, bigo, dept, edate, idx, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive,
|
||||
request, sc, sid, state, supply, supplyidx, wdate, wuid
|
||||
FROM Purchase
|
||||
WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)
|
||||
ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(dsPurchase.PurchaseDataTable dataTable) {
|
||||
public virtual int Fill(dsPurchase.PurchaseDataTable dataTable, string gcode) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
@@ -2169,8 +2212,14 @@ ORDER BY pdate DESC, idx DESC";
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual dsPurchase.PurchaseDataTable GetData() {
|
||||
public virtual dsPurchase.PurchaseDataTable GetData(string gcode) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
||||
}
|
||||
dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -2180,7 +2229,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillDate(dsPurchase.PurchaseDataTable dataTable, string sd, string ed) {
|
||||
public virtual int FillDate(dsPurchase.PurchaseDataTable dataTable, string sd, string ed, string gcode) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((sd == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
@@ -2194,6 +2243,12 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(gcode));
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
@@ -2205,7 +2260,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsPurchase.PurchaseDataTable GetDate(string sd, string ed) {
|
||||
public virtual dsPurchase.PurchaseDataTable GetDate(string sd, string ed, string gcode) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((sd == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
@@ -2219,6 +2274,12 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(gcode));
|
||||
}
|
||||
dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -2309,7 +2370,8 @@ ORDER BY pdate DESC, idx DESC";
|
||||
global::System.Nullable<bool> isdel,
|
||||
string bigo,
|
||||
string manuproc,
|
||||
string orderno) {
|
||||
string orderno,
|
||||
string gcode) {
|
||||
if ((pdate == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -2485,6 +2547,12 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[29].Value = ((string)(orderno));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[30].Value = ((string)(gcode));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
||||
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
@@ -2734,7 +2802,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int DeleteImport(string sd, string ed, string userid) {
|
||||
public virtual int DeleteImport(string sd, string ed, string userid, string gcode) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((sd == null)) {
|
||||
command.Parameters[0].Value = global::System.DBNull.Value;
|
||||
@@ -2754,6 +2822,12 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(userid));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("gcode");
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = ((string)(gcode));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
|
||||
@@ -24,8 +24,8 @@ WHERE (idx = @Original_idx)</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>INSERT INTO Purchase
|
||||
(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate,
|
||||
import, pumidx, isdel, bigo, manuproc, orderno)
|
||||
VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno);
|
||||
import, pumidx, isdel, bigo, manuproc, orderno, gcode)
|
||||
VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode);
|
||||
SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -58,21 +58,24 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid,
|
||||
wdate, import, pumidx, isdel, bigo, manuproc, orderno
|
||||
wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode
|
||||
FROM Purchase
|
||||
WHERE (ISNULL(isdel, 0) = 0)
|
||||
WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)
|
||||
ORDER BY pdate DESC, idx DESC</CommandText>
|
||||
<Parameters />
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE Purchase
|
||||
SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit,
|
||||
pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate,
|
||||
@@ -81,38 +84,38 @@ SET pdate = @pdate, state = @state, process = @process, receive = @receiv
|
||||
WHERE (idx = @Original_idx);
|
||||
SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -150,6 +153,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
<Mapping SourceColumn="bigo" DataSetColumn="bigo" />
|
||||
<Mapping SourceColumn="manuproc" DataSetColumn="manuproc" />
|
||||
<Mapping SourceColumn="orderno" DataSetColumn="orderno" />
|
||||
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteImport" Modifier="Public" Name="DeleteImport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteImport">
|
||||
@@ -162,11 +166,12 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>DELETE FROM Purchase
|
||||
WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid)</CommandText>
|
||||
WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gcode = @gcode)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="userid" ColumnName="wuid" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@userid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -174,10 +179,15 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid)</Comman
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Purchase" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillDate" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDate" GeneratorSourceName="FillDate" GetMethodModifier="Public" GetMethodName="GetDate" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDate" UserSourceName="FillDate">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT asset, bigo, dept, edate, idx, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive, request, sc, sid, state, supply, supplyidx, wdate, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) ORDER BY pdate DESC, idx DESC</CommandText>
|
||||
<CommandText>SELECT asset, bigo, dept, edate, idx, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive,
|
||||
request, sc, sid, state, supply, supplyidx, wdate, wuid
|
||||
FROM Purchase
|
||||
WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)
|
||||
ORDER BY pdate DESC, idx DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="pdate" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -192,7 +202,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid)</Comman
|
||||
<xs:element name="dsPurchase" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPurchase" msprop:Generator_UserDSName="dsPurchase">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_RowClassName="PurchaseRow" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent">
|
||||
<xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent" msprop:Generator_RowClassName="PurchaseRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
|
||||
@@ -352,6 +362,13 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid)</Comman
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="gcode" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
Reference in New Issue
Block a user