diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs
index f3e994a..c5dc4ef 100644
--- a/Project/Properties/AssemblyInfo.cs
+++ b/Project/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("24.02.07.1430")]
-[assembly: AssemblyFileVersion("24.02.07.1430")]
+[assembly: AssemblyVersion("24.02.08.0950")]
+[assembly: AssemblyFileVersion("24.02.08.0950")]
diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs
index 1c3dfda..8d8daa9 100644
--- a/SubProject/FCOMMON/DataBaseManager.cs
+++ b/SubProject/FCOMMON/DataBaseManager.cs
@@ -184,8 +184,24 @@ namespace FCOMMON
" from EETGW_PurchaseCR" +
" where gcode = @gcode and state <> 'Cancled'" +
" and projectidx = @project" +
- (sid == null ? string.Empty : " and sid = @sid") +
+ (sid == null ? string.Empty : " and sid = @sid") +
+ " and isnull(isdel,0) = 0" +
+ " union all" +
+ " select " +
+ " isnull(sum(case when[state] = 'PR' then 0 when[state] = 'PO' then 0 when[state] = 'Received' then 0 when[state] = 'Cancled' then 0 else pumqtyreq end),0) as Request," +
+ " isnull(sum(case when[state] = 'PR' then pumqty else 0 end),0) as PR," +
+ " isnull(sum(case when[state] = 'PO' then pumqty else 0 end),0) as PO," +
+ " isnull(sum(case when[state] = 'Received' then inqty else 0 end),0) as Received," +
+ " isnull(sum(isnull(pumqty,pumqtyreq)),0) as Total_Request," +
+ " isnull(sum(inqty),0) as Total_Buy," +
+ " isnull(sum(isnull(pumqty,pumqtyreq)) - sum(inqty),0) as Total_Remain" +
+ " from Purchase" +
+ " where gcode = @gcode and state <> 'Cancled'" +
+ " and projectidx = @project" +
+ (sid == null ? string.Empty : " and sid = @sid") +
" and isnull(isdel,0) = 0";
+
+
var cn = getCn();
var cmd = new SqlCommand(sql, cn);
cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode;
@@ -208,14 +224,14 @@ namespace FCOMMON
var o_totalbuy = rdr["Total_Buy"];
var o_totalremain = rdr["Total_Remain"];
- if (o_request != null) retval.Request = int.Parse(o_request.ToString());
- if (o_pr != null) retval.PR = int.Parse(o_pr.ToString());
- if (o_po != null) retval.PO = int.Parse(o_po.ToString());
- if (o_received != null) retval.Received = int.Parse(o_received.ToString());
+ if (o_request != null) retval.Request += int.Parse(o_request.ToString());
+ if (o_pr != null) retval.PR += int.Parse(o_pr.ToString());
+ if (o_po != null) retval.PO += int.Parse(o_po.ToString());
+ if (o_received != null) retval.Received += int.Parse(o_received.ToString());
//if (o_cancled != null) retval.Cancled = int.Parse(o_cancled.ToString());
- if (o_totalrequest != null) retval.Total_Request = int.Parse(o_totalrequest.ToString());
- if (o_totalbuy != null) retval.Total_Ipko = int.Parse(o_totalbuy.ToString());
- if (o_totalremain != null) retval.Total_Remain = int.Parse(o_totalremain.ToString());
+ if (o_totalrequest != null) retval.Total_Request += int.Parse(o_totalrequest.ToString());
+ if (o_totalbuy != null) retval.Total_Ipko += int.Parse(o_totalbuy.ToString());
+ if (o_totalremain != null) retval.Total_Remain += int.Parse(o_totalremain.ToString());
}
rdr.Close();
cn.Dispose();
diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs
index 019cee8..a4f6217 100644
--- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs
+++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs
@@ -793,7 +793,11 @@ namespace FEQ0000
{
dr.pumpriceD = priced;
}
- else dr.SetpumpriceDNull();
+ else
+ {
+ dr.SetpumpriceDNull();
+ dr.currency = "KRW";
+ }
if (vqtyreal > 0) dr.pumamt = dr.pumqty * dr.pumprice;
else dr.pumamt = dr.pumqtyReq * dr.pumprice;
diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs
index ef0ad5a..bcf5d76 100644
--- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs
+++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs
@@ -30,11 +30,11 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR_ConfRequest));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
@@ -57,8 +57,16 @@
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton();
+ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.richTextBox1 = new System.Windows.Forms.RichTextBox();
+ this.richTextBox2 = new System.Windows.Forms.RichTextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -72,14 +80,6 @@
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.richTextBox2 = new System.Windows.Forms.RichTextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -182,6 +182,7 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
+ this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -273,6 +274,7 @@
// tbFind
//
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbFind.Name = "tbFind";
this.tbFind.Size = new System.Drawing.Size(100, 31);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
@@ -287,6 +289,20 @@
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
+ // toolStripSeparator2
+ //
+ this.toolStripSeparator2.Name = "toolStripSeparator2";
+ this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
+ //
+ // toolStripButton2
+ //
+ 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(163, 28);
+ this.toolStripButton2.Text = "구매수량 일괄 업데이트";
+ this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
+ //
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
@@ -317,14 +333,14 @@
this.bigo2DataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bs;
- dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
- dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle10;
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 25);
this.dataGridView1.Name = "dataGridView1";
@@ -333,105 +349,6 @@
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
- // pdateDataGridViewTextBoxColumn
- //
- this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
- this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
- this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
- this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // requestNameDataGridViewTextBoxColumn
- //
- this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
- this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
- this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
- this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // sidDataGridViewTextBoxColumn
- //
- this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
- this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
- this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
- this.sidDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumnameDataGridViewTextBoxColumn
- //
- this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
- this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
- this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
- this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumscaleDataGridViewTextBoxColumn
- //
- this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle7;
- this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
- this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
- this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumunitDataGridViewTextBoxColumn
- //
- this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
- this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
- this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
- this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumqtyDataGridViewTextBoxColumn
- //
- this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
- this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
- this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
- this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumqtyReqDataGridViewTextBoxColumn
- //
- this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
- this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
- this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
- this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumpriceDataGridViewTextBoxColumn
- //
- this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
- this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
- this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
- this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumamtDataGridViewTextBoxColumn
- //
- this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
- this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
- this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
- this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // supplyDataGridViewTextBoxColumn
- //
- this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
- this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
- this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
- this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // bigo2DataGridViewTextBoxColumn
- //
- this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
- this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
- this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
- this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
- //
- // bigoDataGridViewTextBoxColumn
- //
- this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
- dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
- this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
- this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
- this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
- //
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
@@ -496,19 +413,104 @@
//
this.ta.ClearBeforeFill = true;
//
- // toolStripSeparator2
+ // pdateDataGridViewTextBoxColumn
//
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
+ this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
+ this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
+ this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
+ this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
//
- // toolStripButton2
+ // requestNameDataGridViewTextBoxColumn
//
- 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(163, 28);
- this.toolStripButton2.Text = "구매수량 일괄 업데이트";
- this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
+ this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
+ this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
+ this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
+ this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // sidDataGridViewTextBoxColumn
+ //
+ this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
+ this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
+ this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
+ this.sidDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumnameDataGridViewTextBoxColumn
+ //
+ this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
+ this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
+ this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
+ this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumscaleDataGridViewTextBoxColumn
+ //
+ this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
+ this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
+ this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
+ this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumunitDataGridViewTextBoxColumn
+ //
+ this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
+ this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
+ this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
+ this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumqtyDataGridViewTextBoxColumn
+ //
+ this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
+ this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
+ this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
+ this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumqtyReqDataGridViewTextBoxColumn
+ //
+ this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
+ this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
+ this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
+ this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumpriceDataGridViewTextBoxColumn
+ //
+ this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
+ this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
+ this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
+ this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumamtDataGridViewTextBoxColumn
+ //
+ this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
+ this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
+ this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
+ this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // supplyDataGridViewTextBoxColumn
+ //
+ this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
+ this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
+ this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
+ this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // bigo2DataGridViewTextBoxColumn
+ //
+ this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
+ this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
+ this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
+ this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // bigoDataGridViewTextBoxColumn
+ //
+ this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
+ this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
+ this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
+ this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
//
// fPurchaseCR_ConfRequest
//
@@ -560,6 +562,15 @@
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.ToolStripButton toolStripButton1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.RichTextBox richTextBox1;
+ private System.Windows.Forms.RichTextBox richTextBox2;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter ta;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
+ private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
@@ -573,14 +584,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
- private System.Windows.Forms.ToolStripButton toolStripButton1;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.RichTextBox richTextBox1;
- private System.Windows.Forms.RichTextBox richTextBox2;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter ta;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
- private System.Windows.Forms.ToolStripButton toolStripButton2;
}
}
diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs
index 6852901..831e20e 100644
--- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs
+++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs
@@ -374,7 +374,7 @@ namespace FEQ0000
if (qty < 1)
{
Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 없습니다");
- break;
+ return;
}
//if(qty > qtyreq)
//{
@@ -508,6 +508,8 @@ namespace FEQ0000
{
this.Validate();
this.bs.EndEdit();
+ var dlg = FCOMMON.Util.MsgQ("입력되지 않은 구매수량을 신청수량으로 일괄 업데이트 할까요?");
+ if (dlg != DialogResult.Yes) return;
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseCRRow;
diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_Add.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_Add.cs
index baf7f21..049350b 100644
--- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_Add.cs
+++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_Add.cs
@@ -594,7 +594,11 @@ namespace FEQ0000
{
dr.pumpriceD = priced;
}
- else dr.SetpumpriceDNull();
+ else
+ {
+ dr.SetpumpriceDNull();
+ dr.currency = "KRW";
+ }
if (vqtyreal > 0) dr.pumamt = dr.pumqty * dr.pumprice;
else dr.pumamt = dr.pumqtyReq * dr.pumprice;
diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs
index a0d94ff..27d15fc 100644
--- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs
+++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs
@@ -366,7 +366,7 @@ namespace FEQ0000
if(qty < 1)
{
Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 없습니다");
- break;
+ return;
}
//if(qty > qtyreq)
//{
@@ -499,6 +499,8 @@ namespace FEQ0000
{
this.Validate();
this.bs.EndEdit();
+ var dlg = FCOMMON.Util.MsgQ("입력되지 않은 구매수량을 신청수량으로 일괄 업데이트 할까요?");
+ if (dlg != DialogResult.Yes) return;
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow;
diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs
index 9c997fb..b69030e 100644
--- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs
+++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs
@@ -480,7 +480,7 @@
this.선택목록입고양식ToolStripMenuItem});
this.메일전송ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem.Image")));
this.메일전송ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
- this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(234, 30);
+ this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(226, 22);
this.메일전송ToolStripMenuItem.Text = "메일 전송";
//
// 현재목록ToolStripMenuItem
@@ -520,7 +520,7 @@
//
this.엑셀에서가져오기ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
this.엑셀에서가져오기ToolStripMenuItem.Name = "엑셀에서가져오기ToolStripMenuItem";
- this.엑셀에서가져오기ToolStripMenuItem.Size = new System.Drawing.Size(234, 30);
+ this.엑셀에서가져오기ToolStripMenuItem.Size = new System.Drawing.Size(226, 22);
this.엑셀에서가져오기ToolStripMenuItem.Text = "엑셀에서 가져오기";
this.엑셀에서가져오기ToolStripMenuItem.Click += new System.EventHandler(this.엑셀에서가져오기ToolStripMenuItem_Click);
//
@@ -528,19 +528,19 @@
//
this.견적서폴더열기ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("견적서폴더열기ToolStripMenuItem.Image")));
this.견적서폴더열기ToolStripMenuItem.Name = "견적서폴더열기ToolStripMenuItem";
- this.견적서폴더열기ToolStripMenuItem.Size = new System.Drawing.Size(234, 30);
+ this.견적서폴더열기ToolStripMenuItem.Size = new System.Drawing.Size(226, 22);
this.견적서폴더열기ToolStripMenuItem.Text = "견적서 폴더 열기";
this.견적서폴더열기ToolStripMenuItem.Click += new System.EventHandler(this.견적서폴더열기ToolStripMenuItem_Click);
//
// toolStripMenuItem5
//
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
- this.toolStripMenuItem5.Size = new System.Drawing.Size(231, 6);
+ this.toolStripMenuItem5.Size = new System.Drawing.Size(223, 6);
//
// btMakeItemsData
//
this.btMakeItemsData.Name = "btMakeItemsData";
- this.btMakeItemsData.Size = new System.Drawing.Size(234, 30);
+ this.btMakeItemsData.Size = new System.Drawing.Size(226, 22);
this.btMakeItemsData.Text = "구매내역에서 품목정보 생성";
this.btMakeItemsData.Click += new System.EventHandler(this.구매내역에서품목정보생성ToolStripMenuItem_Click);
//
diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs
index e377274..4fa531e 100644
--- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs
+++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs
@@ -56,8 +56,17 @@
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton();
+ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.richTextBox1 = new System.Windows.Forms.RichTextBox();
+ this.richTextBox2 = new System.Windows.Forms.RichTextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
+ this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -71,15 +80,6 @@
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.richTextBox2 = new System.Windows.Forms.RichTextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
- this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
@@ -280,6 +280,20 @@
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
+ // toolStripSeparator2
+ //
+ this.toolStripSeparator2.Name = "toolStripSeparator2";
+ this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
+ //
+ // toolStripButton2
+ //
+ 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(163, 28);
+ this.toolStripButton2.Text = "구매수량 일괄 업데이트";
+ this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
+ //
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
@@ -325,105 +339,6 @@
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
- // pdateDataGridViewTextBoxColumn
- //
- this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
- this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
- this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
- this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // requestNameDataGridViewTextBoxColumn
- //
- this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
- this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
- this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
- this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // sidDataGridViewTextBoxColumn
- //
- this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
- this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
- this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
- this.sidDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumnameDataGridViewTextBoxColumn
- //
- this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
- this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
- this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
- this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumscaleDataGridViewTextBoxColumn
- //
- this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
- this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
- this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
- this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumunitDataGridViewTextBoxColumn
- //
- this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
- this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
- this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
- this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumqtyDataGridViewTextBoxColumn
- //
- this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
- this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
- this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
- this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumqtyReqDataGridViewTextBoxColumn
- //
- this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
- this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
- this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
- this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumpriceDataGridViewTextBoxColumn
- //
- this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
- this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
- this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
- this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // pumamtDataGridViewTextBoxColumn
- //
- this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
- this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
- this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
- this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // supplyDataGridViewTextBoxColumn
- //
- this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
- this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
- this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
- this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // bigo2DataGridViewTextBoxColumn
- //
- this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
- this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
- this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
- this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
- //
- // bigoDataGridViewTextBoxColumn
- //
- this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
- this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
- this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
- this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
- //
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
@@ -496,19 +411,104 @@
this.tam.PurchaseTableAdapter = this.ta;
this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
- // toolStripSeparator2
+ // pdateDataGridViewTextBoxColumn
//
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
+ this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
+ this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
+ this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
+ this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
//
- // toolStripButton2
+ // requestNameDataGridViewTextBoxColumn
//
- 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(163, 28);
- this.toolStripButton2.Text = "구매수량 일괄 업데이트";
- this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
+ this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
+ this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
+ this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
+ this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // sidDataGridViewTextBoxColumn
+ //
+ this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
+ this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
+ this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
+ this.sidDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumnameDataGridViewTextBoxColumn
+ //
+ this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
+ this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
+ this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
+ this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumscaleDataGridViewTextBoxColumn
+ //
+ this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
+ this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
+ this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
+ this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumunitDataGridViewTextBoxColumn
+ //
+ this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
+ this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
+ this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
+ this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumqtyDataGridViewTextBoxColumn
+ //
+ this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
+ this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
+ this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
+ this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumqtyReqDataGridViewTextBoxColumn
+ //
+ this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
+ this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
+ this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
+ this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumpriceDataGridViewTextBoxColumn
+ //
+ this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
+ this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
+ this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
+ this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // pumamtDataGridViewTextBoxColumn
+ //
+ this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
+ this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
+ this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
+ this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // supplyDataGridViewTextBoxColumn
+ //
+ this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
+ this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
+ this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
+ this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // bigo2DataGridViewTextBoxColumn
+ //
+ this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
+ this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
+ this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
+ this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // bigoDataGridViewTextBoxColumn
+ //
+ this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
+ this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
+ this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
+ this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
//
// fPurchaseNR_ConfRequest
//
@@ -561,6 +561,14 @@
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.ToolStripButton toolStripButton1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.RichTextBox richTextBox1;
+ private System.Windows.Forms.RichTextBox richTextBox2;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
+ private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
@@ -574,13 +582,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
- private System.Windows.Forms.ToolStripButton toolStripButton1;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.RichTextBox richTextBox1;
- private System.Windows.Forms.RichTextBox richTextBox2;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
- private System.Windows.Forms.ToolStripButton toolStripButton2;
}
}
diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs
index 5d2f2ef..0af6a51 100644
--- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs
+++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs
@@ -372,7 +372,7 @@ namespace FEQ0000
if (qty < 1)
{
Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 없습니다");
- break;
+ return;
}
//if(qty > qtyreq)
//{
@@ -505,6 +505,8 @@ namespace FEQ0000
{
this.Validate();
this.bs.EndEdit();
+ var dlg = FCOMMON.Util.MsgQ("입력되지 않은 구매수량을 신청수량으로 일괄 업데이트 할까요?");
+ if (dlg != DialogResult.Yes) return;
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow;
diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs
index b4acc2d..15228c8 100644
--- a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs
+++ b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs
@@ -28,7 +28,6 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
System.Windows.Forms.Label processLabel;
System.Windows.Forms.Label receiveLabel;
System.Windows.Forms.Label scLabel;
@@ -82,6 +81,7 @@
this.chkExp = new System.Windows.Forms.CheckBox();
this.btSaveAdd = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.lbcurrentwon = new System.Windows.Forms.Label();
this.tbPumIDX = new System.Windows.Forms.Button();
this.tbStorage = new System.Windows.Forms.ComboBox();
this.cmbRemark = new System.Windows.Forms.ComboBox();
@@ -112,12 +112,11 @@
this.button4 = new System.Windows.Forms.Button();
this.tbOrderNo = new System.Windows.Forms.TextBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
- this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.toolTip1 = new System.Windows.Forms.ToolTip();
+ this.timer1 = new System.Windows.Forms.Timer();
this.dsPurchase = new FEQ0000.dsPurchase();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.bs = new System.Windows.Forms.BindingSource();
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
- this.lbcurrentwon = new System.Windows.Forms.Label();
processLabel = new System.Windows.Forms.Label();
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
@@ -748,6 +747,19 @@
this.groupBox1.Text = "필수입력";
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
+ // lbcurrentwon
+ //
+ this.lbcurrentwon.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.lbcurrentwon.ForeColor = System.Drawing.Color.Blue;
+ this.lbcurrentwon.Location = new System.Drawing.Point(321, 202);
+ this.lbcurrentwon.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbcurrentwon.Name = "lbcurrentwon";
+ this.lbcurrentwon.Size = new System.Drawing.Size(153, 28);
+ this.lbcurrentwon.TabIndex = 54;
+ this.lbcurrentwon.Text = "통화기호를 선택하세요";
+ this.lbcurrentwon.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.lbcurrentwon.Click += new System.EventHandler(this.lbcurrentwon_Click);
+ //
// tbPumIDX
//
this.tbPumIDX.Location = new System.Drawing.Point(410, 79);
@@ -1003,6 +1015,7 @@
this.tbManager.Name = "tbManager";
this.tbManager.Size = new System.Drawing.Size(286, 28);
this.tbManager.TabIndex = 47;
+ this.tbManager.SelectedIndexChanged += new System.EventHandler(this.tbManager_SelectedIndexChanged);
//
// btEQModel
//
@@ -1139,19 +1152,6 @@
//
this.ta.ClearBeforeFill = true;
//
- // lbcurrentwon
- //
- this.lbcurrentwon.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
- this.lbcurrentwon.ForeColor = System.Drawing.Color.Blue;
- this.lbcurrentwon.Location = new System.Drawing.Point(321, 202);
- this.lbcurrentwon.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lbcurrentwon.Name = "lbcurrentwon";
- this.lbcurrentwon.Size = new System.Drawing.Size(153, 28);
- this.lbcurrentwon.TabIndex = 54;
- this.lbcurrentwon.Text = "통화기호를 선택하세요";
- this.lbcurrentwon.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.lbcurrentwon.Click += new System.EventHandler(this.lbcurrentwon_Click);
- //
// fPurchase_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs
index 16f2224..3f5891a 100644
--- a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs
+++ b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs
@@ -857,6 +857,7 @@ namespace FEQ0000
dr.pumqty = vqtyreal;// int.Parse(tbPumQty.Text);
dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text);
dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text);
+
dr.currency = cmbCurrency.Text.Trim();
var applyprice = dr.pumprice;
@@ -872,8 +873,11 @@ namespace FEQ0000
dr.pumprice = vpumprice;
}
}
- else dr.SetpumpriceDNull();
-
+ else
+ {
+ dr.SetpumpriceDNull();
+ dr.currency = "KRW";
+ }
if (vqtyreal > 0) dr.pumamt = dr.pumqty * dr.pumprice;
else dr.pumamt = dr.pumqtyReq * dr.pumprice;
@@ -1474,5 +1478,10 @@ namespace FEQ0000
{
FCOMMON.Util.MsgI("환율을 입력하려면 공용코드(68)의 Fvalue 에 값을 입력하세요");
}
+
+ private void tbManager_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.Designer.cs b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.Designer.cs
index 103b23b..9968190 100644
--- a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.Designer.cs
+++ b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.Designer.cs
@@ -35,16 +35,20 @@
System.Windows.Forms.Label label6;
System.Windows.Forms.Label label7;
System.Windows.Forms.Label label2;
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectPartToPurchaseCR));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.Label label17;
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
this.tbProject = new System.Windows.Forms.TextBox();
this.tbProjectIndex = new System.Windows.Forms.TextBox();
this.dtPdate = new System.Windows.Forms.DateTimePicker();
@@ -61,18 +65,6 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.dv1 = new arCtl.arDatagridView();
- this.toolStrip1 = new System.Windows.Forms.ToolStrip();
- this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
- this.panel1 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
- this.statusStrip1 = new System.Windows.Forms.StatusStrip();
- this.taProject = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
- this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
- this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.dvc_sid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_model = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -82,12 +74,30 @@
this.dvc_amt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_spm = new System.Windows.Forms.DataGridViewButtonColumn();
this.dvc_remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.taProject = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
+ this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
+ this.btEQManu = new System.Windows.Forms.Button();
+ this.btEQProc = new System.Windows.Forms.Button();
+ this.btEQModel = new System.Windows.Forms.Button();
+ this.tbManager = new System.Windows.Forms.ComboBox();
projectLabel = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label6 = new System.Windows.Forms.Label();
label7 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
+ label17 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.groupBox1.SuspendLayout();
@@ -110,7 +120,7 @@
// label1
//
label1.AutoSize = true;
- label1.Location = new System.Drawing.Point(7, 28);
+ label1.Location = new System.Drawing.Point(34, 28);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(47, 17);
label1.TabIndex = 0;
@@ -146,12 +156,39 @@
// label2
//
label2.AutoSize = true;
- label2.Location = new System.Drawing.Point(7, 58);
+ label2.Location = new System.Drawing.Point(34, 59);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(47, 17);
label2.TabIndex = 3;
label2.Text = "요청자";
//
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(275, 59);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(34, 17);
+ this.label4.TabIndex = 5;
+ this.label4.Text = "공정";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(8, 90);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(73, 17);
+ this.label5.TabIndex = 7;
+ this.label5.Text = "장비제조사";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(249, 90);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(60, 17);
+ this.label8.TabIndex = 9;
+ this.label8.Text = "장비모델";
+ //
// tbProject
//
this.tbProject.BackColor = System.Drawing.SystemColors.Control;
@@ -177,7 +214,7 @@
//
// dtPdate
//
- this.dtPdate.Location = new System.Drawing.Point(65, 24);
+ this.dtPdate.Location = new System.Drawing.Point(88, 24);
this.dtPdate.Name = "dtPdate";
this.dtPdate.Size = new System.Drawing.Size(251, 25);
this.dtPdate.TabIndex = 1;
@@ -188,9 +225,9 @@
this.cmbRequest.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.cmbRequest.FormattingEnabled = true;
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
- this.cmbRequest.Location = new System.Drawing.Point(65, 55);
+ this.cmbRequest.Location = new System.Drawing.Point(88, 55);
this.cmbRequest.Name = "cmbRequest";
- this.cmbRequest.Size = new System.Drawing.Size(251, 25);
+ this.cmbRequest.Size = new System.Drawing.Size(155, 25);
this.cmbRequest.TabIndex = 2;
//
// textBox2
@@ -278,6 +315,14 @@
//
// groupBox2
//
+ this.groupBox2.Controls.Add(this.tbManager);
+ this.groupBox2.Controls.Add(label17);
+ this.groupBox2.Controls.Add(this.btEQModel);
+ this.groupBox2.Controls.Add(this.btEQProc);
+ this.groupBox2.Controls.Add(this.btEQManu);
+ this.groupBox2.Controls.Add(this.label8);
+ this.groupBox2.Controls.Add(this.label5);
+ this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(label2);
this.groupBox2.Controls.Add(this.cmbRequest);
this.groupBox2.Controls.Add(label1);
@@ -285,7 +330,7 @@
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(493, 3);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(481, 155);
+ this.groupBox2.Size = new System.Drawing.Size(572, 155);
this.groupBox2.TabIndex = 24;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "구매 등록 정보";
@@ -297,7 +342,7 @@
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(5, 168);
this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new System.Drawing.Size(974, 441);
+ this.groupBox3.Size = new System.Drawing.Size(1065, 441);
this.groupBox3.TabIndex = 26;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "파트리스트";
@@ -324,24 +369,96 @@
this.dvc_amt,
this.dvc_spm,
this.dvc_remark});
- dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle9.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
- dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dv1.DefaultCellStyle = dataGridViewCellStyle9;
+ dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle45.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dv1.DefaultCellStyle = dataGridViewCellStyle45;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(3, 21);
this.dv1.Name = "dv1";
this.dv1.RowTemplate.Height = 23;
- this.dv1.Size = new System.Drawing.Size(968, 370);
+ this.dv1.Size = new System.Drawing.Size(1059, 370);
this.dv1.TabIndex = 27;
this.dv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellContentClick);
this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit_1);
this.dv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dv1_CellFormatting);
//
+ // dvc_sid
+ //
+ dataGridViewCellStyle37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dvc_sid.DefaultCellStyle = dataGridViewCellStyle37;
+ this.dvc_sid.HeaderText = "SID";
+ this.dvc_sid.Name = "dvc_sid";
+ this.dvc_sid.ReadOnly = true;
+ //
+ // dvc_name
+ //
+ dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle38.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dvc_name.DefaultCellStyle = dataGridViewCellStyle38;
+ this.dvc_name.HeaderText = "품명";
+ this.dvc_name.Name = "dvc_name";
+ this.dvc_name.ReadOnly = true;
+ //
+ // dvc_model
+ //
+ dataGridViewCellStyle39.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dvc_model.DefaultCellStyle = dataGridViewCellStyle39;
+ this.dvc_model.HeaderText = "모델";
+ this.dvc_model.Name = "dvc_model";
+ this.dvc_model.ReadOnly = true;
+ //
+ // dvc_price
+ //
+ dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+ dataGridViewCellStyle40.Format = "N0";
+ this.dvc_price.DefaultCellStyle = dataGridViewCellStyle40;
+ this.dvc_price.HeaderText = "단가";
+ this.dvc_price.Name = "dvc_price";
+ //
+ // dvc_qtyreq
+ //
+ dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle41.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dvc_qtyreq.DefaultCellStyle = dataGridViewCellStyle41;
+ this.dvc_qtyreq.HeaderText = "구매요청";
+ this.dvc_qtyreq.Name = "dvc_qtyreq";
+ this.dvc_qtyreq.ReadOnly = true;
+ //
+ // dvc_qty
+ //
+ dataGridViewCellStyle42.Format = "N0";
+ this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle42;
+ this.dvc_qty.HeaderText = "구매신청";
+ this.dvc_qty.Name = "dvc_qty";
+ //
+ // dvc_amt
+ //
+ dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+ dataGridViewCellStyle43.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ dataGridViewCellStyle43.Format = "N0";
+ this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle43;
+ this.dvc_amt.HeaderText = "구매금액";
+ this.dvc_amt.Name = "dvc_amt";
+ this.dvc_amt.ReadOnly = true;
+ //
+ // dvc_spm
+ //
+ this.dvc_spm.HeaderText = "SPM";
+ this.dvc_spm.Name = "dvc_spm";
+ //
+ // dvc_remark
+ //
+ this.dvc_remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle44;
+ this.dvc_remark.HeaderText = "비고";
+ this.dvc_remark.Name = "dvc_remark";
+ //
// toolStrip1
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -352,10 +469,11 @@
this.toolStripButton8,
this.toolStripButton1,
this.toolStripButton3,
- this.toolStripButton5});
+ this.toolStripButton5,
+ this.toolStripButton6});
this.toolStrip1.Location = new System.Drawing.Point(3, 391);
this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(968, 47);
+ this.toolStrip1.Size = new System.Drawing.Size(1059, 47);
this.toolStrip1.TabIndex = 26;
this.toolStrip1.Text = "toolStrip1";
//
@@ -407,6 +525,24 @@
this.toolStripButton3.Visible = false;
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
+ // toolStripButton5
+ //
+ this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
+ this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.toolStripButton5.Name = "toolStripButton5";
+ this.toolStripButton5.Size = new System.Drawing.Size(136, 44);
+ this.toolStripButton5.Text = "SPM사이트열기";
+ this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
+ //
+ // toolStripButton6
+ //
+ this.toolStripButton6.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton6.Image")));
+ this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.toolStripButton6.Name = "toolStripButton6";
+ this.toolStripButton6.Size = new System.Drawing.Size(135, 44);
+ this.toolStripButton6.Text = "견적서폴더열기";
+ this.toolStripButton6.Click += new System.EventHandler(this.toolStripButton6_Click);
+ //
// panel1
//
this.panel1.Controls.Add(this.groupBox2);
@@ -416,7 +552,7 @@
this.panel1.Location = new System.Drawing.Point(5, 5);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(0, 3, 0, 5);
- this.panel1.Size = new System.Drawing.Size(974, 163);
+ this.panel1.Size = new System.Drawing.Size(1065, 163);
this.panel1.TabIndex = 0;
//
// panel3
@@ -431,7 +567,7 @@
//
this.statusStrip1.Location = new System.Drawing.Point(5, 609);
this.statusStrip1.Name = "statusStrip1";
- this.statusStrip1.Size = new System.Drawing.Size(974, 22);
+ this.statusStrip1.Size = new System.Drawing.Size(1065, 22);
this.statusStrip1.TabIndex = 28;
this.statusStrip1.Text = "statusStrip1";
//
@@ -443,93 +579,65 @@
//
this.taPart.ClearBeforeFill = true;
//
- // toolStripButton5
+ // btEQManu
//
- this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
- this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.toolStripButton5.Name = "toolStripButton5";
- this.toolStripButton5.Size = new System.Drawing.Size(136, 44);
- this.toolStripButton5.Text = "SPM사이트열기";
- this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
+ this.btEQManu.Location = new System.Drawing.Point(88, 86);
+ this.btEQManu.Name = "btEQManu";
+ this.btEQManu.Size = new System.Drawing.Size(155, 25);
+ this.btEQManu.TabIndex = 13;
+ this.btEQManu.Text = "공용코드06";
+ this.btEQManu.UseVisualStyleBackColor = true;
+ this.btEQManu.Click += new System.EventHandler(this.cmbManu_Click);
//
- // dvc_sid
+ // btEQProc
//
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_sid.DefaultCellStyle = dataGridViewCellStyle1;
- this.dvc_sid.HeaderText = "SID";
- this.dvc_sid.Name = "dvc_sid";
- this.dvc_sid.ReadOnly = true;
+ this.btEQProc.Location = new System.Drawing.Point(315, 55);
+ this.btEQProc.Name = "btEQProc";
+ this.btEQProc.Size = new System.Drawing.Size(144, 25);
+ this.btEQProc.TabIndex = 14;
+ this.btEQProc.Text = " 공용코드08";
+ this.btEQProc.UseVisualStyleBackColor = true;
+ this.btEQProc.Click += new System.EventHandler(this.cmbProcess_Click);
//
- // dvc_name
+ // btEQModel
//
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_name.DefaultCellStyle = dataGridViewCellStyle2;
- this.dvc_name.HeaderText = "품명";
- this.dvc_name.Name = "dvc_name";
- this.dvc_name.ReadOnly = true;
+ this.btEQModel.Location = new System.Drawing.Point(315, 86);
+ this.btEQModel.Name = "btEQModel";
+ this.btEQModel.Size = new System.Drawing.Size(144, 25);
+ this.btEQModel.TabIndex = 15;
+ this.btEQModel.Text = "공용코드07";
+ this.btEQModel.UseVisualStyleBackColor = true;
+ this.btEQModel.Click += new System.EventHandler(this.cmbModel_Click);
//
- // dvc_model
+ // tbManager
//
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_model.DefaultCellStyle = dataGridViewCellStyle3;
- this.dvc_model.HeaderText = "모델";
- this.dvc_model.Name = "dvc_model";
- this.dvc_model.ReadOnly = true;
+ this.tbManager.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.tbManager.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.tbManager.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.tbManager.FormattingEnabled = true;
+ this.tbManager.ImeMode = System.Windows.Forms.ImeMode.Hangul;
+ this.tbManager.Location = new System.Drawing.Point(88, 116);
+ this.tbManager.Margin = new System.Windows.Forms.Padding(4);
+ this.tbManager.Name = "tbManager";
+ this.tbManager.Size = new System.Drawing.Size(155, 25);
+ this.tbManager.TabIndex = 49;
//
- // dvc_price
+ // label17
//
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
- dataGridViewCellStyle4.Format = "N0";
- this.dvc_price.DefaultCellStyle = dataGridViewCellStyle4;
- this.dvc_price.HeaderText = "단가";
- this.dvc_price.Name = "dvc_price";
- //
- // dvc_qtyreq
- //
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_qtyreq.DefaultCellStyle = dataGridViewCellStyle5;
- this.dvc_qtyreq.HeaderText = "구매요청";
- this.dvc_qtyreq.Name = "dvc_qtyreq";
- this.dvc_qtyreq.ReadOnly = true;
- //
- // dvc_qty
- //
- dataGridViewCellStyle6.Format = "N0";
- this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle6;
- this.dvc_qty.HeaderText = "구매신청";
- this.dvc_qty.Name = "dvc_qty";
- //
- // dvc_amt
- //
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- dataGridViewCellStyle7.Format = "N0";
- this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle7;
- this.dvc_amt.HeaderText = "구매금액";
- this.dvc_amt.Name = "dvc_amt";
- this.dvc_amt.ReadOnly = true;
- //
- // dvc_spm
- //
- this.dvc_spm.HeaderText = "SPM";
- this.dvc_spm.Name = "dvc_spm";
- //
- // dvc_remark
- //
- this.dvc_remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle8;
- this.dvc_remark.HeaderText = "비고";
- this.dvc_remark.Name = "dvc_remark";
+ label17.AutoSize = true;
+ label17.Location = new System.Drawing.Point(8, 119);
+ label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ label17.Name = "label17";
+ label17.Size = new System.Drawing.Size(73, 17);
+ label17.TabIndex = 48;
+ label17.Text = "구매담당자";
//
// fProjectPartToPurchaseCR
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.ClientSize = new System.Drawing.Size(984, 636);
+ this.ClientSize = new System.Drawing.Size(1075, 636);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip1);
@@ -596,5 +704,13 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_amt;
private System.Windows.Forms.DataGridViewButtonColumn dvc_spm;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_remark;
+ private System.Windows.Forms.ToolStripButton toolStripButton6;
+ private System.Windows.Forms.Button btEQModel;
+ private System.Windows.Forms.Button btEQProc;
+ private System.Windows.Forms.Button btEQManu;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.ComboBox tbManager;
}
}
\ No newline at end of file
diff --git a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.cs b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.cs
index 71ca537..e83f3d2 100644
--- a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.cs
+++ b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.cs
@@ -36,6 +36,18 @@ namespace FPJ0000
this.Text = isCR ? "파트리스트 CR등록" : "파트리스트 NR등록";
this.panel1.BackColor = isCR ? Color.FromArgb(192, 192, 255) : Color.FromArgb(192, 255, 255);
toolStripButton4.Text = isCR ? "CR구매등록" : "NR구매등록";
+ toolStripButton6.Visible = isCR == false;
+
+ if (isCR)
+ {
+ btEQManu.Visible = false;
+ btEQModel.Visible = false;
+ btEQProc.Visible = false;
+ label4.Visible = false;
+ label8.Visible = false;
+ label5.Visible = false;
+ }
+
}
int Col_Price = -1;
@@ -73,7 +85,12 @@ namespace FPJ0000
{
if (this.IDXList.Contains(dr.idx) == false) continue;
- if (dr.IsItemSidNull() || dr.ItemSid.Length != 9)
+ if (dr.IsItemSidNull())
+ {
+ emptycount += 1;
+ continue;
+ }
+ else if (dr.ItemSid.Length != 9 && isCR) //cR은 신규를 허용하지 않는다.
{
emptycount += 1;
continue;
@@ -118,14 +135,30 @@ namespace FPJ0000
this.tbProjectIndex.Text = drPrj.idx.ToString();
this.textBox1.Text = drPrj.remark_ans;
this.tbProject.Text = drPrj.name;
+ this.btEQProc.Text = drPrj.process; //공정 240207
+ this.btEQProc.Tag = "";
+ this.btEQManu.Tag = "";
+ this.btEQModel.Tag = "";
this.tbCr.Text = drPrj.orderno;
//this.tbOrderNo.Text = drPrj.orderno;
+ //구매-담당
+ var LstMan = FCOMMON.DBM.getCodeTable("65");
+ this.tbManager.DisplayMember = "Value";
+ this.tbManager.ValueMember = "Value";
+ this.tbManager.DataSource = LstMan;
+
//파트리스트 합계금액
var dtPart = taPart.GetData(this.ProjectIndex);
MakeList(dtPart);
+ if (tbManager.Text.isEmpty() && tbManager.Items.Count == 1)
+ {
+ tbManager.Text = (tbManager.Items[0] as DataRowView)["Value"].ToString();
+ }
+
+
////상태
//var stateList = FCOMMON.DBM.getCodeTable("04");
//this.cmbState.DisplayMember = "Value";
@@ -280,8 +313,26 @@ namespace FPJ0000
return false;
}
}
+ else
+ {
+ if (btEQProc.Tag.ToString() == "")
+ {
+ FCOMMON.Util.MsgE("장비 공정을 선택하세요");
+ return false;
+ }
+ if (btEQManu.Tag.ToString() == "")
+ {
+ FCOMMON.Util.MsgE("장비 제조사를 선택하세요");
+ return false;
+ }
+ }
-
+ if (tbManager.Text.isEmpty())
+ {
+ FCOMMON.Util.MsgE("구매담당자를 선택 하세요");
+ tbManager.Focus();
+ return false;
+ }
int itemCount = 0;
decimal itemAmt = 0;
@@ -397,7 +448,11 @@ namespace FPJ0000
newdr.wdate = DateTime.Now;
newdr.orderno = tbCr.Text.Trim();
newdr.bigo = item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ // if (newdr.bigo.isEmpty()) newdr.bigo = tbProject.Text;
newdr.chk1 = true;
+ newdr.currency = "KRW";
+
+
newdr.EndEdit();
dtCR.AddEETGW_PurchaseCRRow(newdr);
}
@@ -405,7 +460,15 @@ namespace FPJ0000
{
newdr.pumqtyReq += v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt += v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
- newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ if (newdr.bigo.isEmpty() == false) newdr.bigo += ",";
+ newdr.bigo += item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ if (newdr.IscurrencyNull() || newdr.currency.isEmpty())
+ newdr.currency = "KRW";
+
+ // if (newdr.bigo.isEmpty()) newdr.bigo = tbProject.Text;
+
+
+
newdr.chk1 = true;
newdr.EndEdit();
}
@@ -426,7 +489,7 @@ namespace FPJ0000
{
var newdr = dtNR.Where(t => t.sid == sid).FirstOrDefault();
//insert query
- if (newdr == null)
+ if (newdr == null || sid.Equals("신규"))
{
newdr = dtNR.NewPurchaseRow();
newadd = true;
@@ -439,6 +502,7 @@ namespace FPJ0000
if (newadd)
{
+ newdr.process = FCOMMON.info.Login.process;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.pdate = dtPdate.Value.ToShortDateString();
newdr.state = "---";// cmbState.Text.Trim();
@@ -459,8 +523,14 @@ namespace FPJ0000
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.orderno = tbCr.Text.Trim();
+ newdr.purchase_manager = tbManager.Text.Trim();
+ newdr.currency = "KRW";
newdr.bigo = item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ if (newdr.bigo.isEmpty()) newdr.bigo = $"[{tbProject.Text}]";
newdr.chk1 = true;
+ newdr.dept = btEQProc.Tag.ToString();
+ newdr.manuproc = btEQManu.Tag.ToString();
+ newdr.asset = btEQModel.Tag.ToString();
newdr.EndEdit();
dtNR.AddPurchaseRow(newdr);
}
@@ -469,7 +539,18 @@ namespace FPJ0000
newdr.chk1 = true;
newdr.pumqtyReq += v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt += v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
- newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ newdr.process = FCOMMON.info.Login.process;
+ if (newdr.bigo.isEmpty() == false) newdr.bigo += ",";
+ newdr.bigo += item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ //if (newdr.bigo.isEmpty()) newdr.bigo = $"[{tbProject.Text}]";
+
+ if (newdr.IscurrencyNull() || newdr.currency.isEmpty())
+ newdr.currency = "KRW";
+ newdr.dept = btEQProc.Tag.ToString();
+ newdr.manuproc = btEQManu.Tag.ToString();
+ newdr.asset = btEQModel.Tag.ToString();
+ //newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
+ newdr.purchase_manager = tbManager.Text.Trim();
newdr.EndEdit();
}
@@ -614,6 +695,7 @@ namespace FPJ0000
{
FCOMMON.Util.MsgI($"{ecnt} 개의 자료가 SPM에서 자료가 검색되었습니다\n각 수량을 클릭해서 내용을 확인하세요");
}
+ this.dv1.AutoResizeColumns();
}
private void toolStripButton3_Click(object sender, EventArgs e)
@@ -701,5 +783,71 @@ namespace FPJ0000
}
else dv1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.DimGray;
}
+
+ private void toolStripButton6_Click(object sender, EventArgs e)
+ {
+ var datapath = FCOMMON.DBM.getCodeSvalue("55", "02");
+ if (datapath.isEmpty())
+ {
+ FCOMMON.Util.MsgE("견적서 기본폴더 공용코드 55-02 값을 입력하세요");
+ return;
+ }
+ string path = System.IO.Path.Combine(datapath, DateTime.Now.Year.ToString("0000") + "년");// "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년";
+ if (System.IO.Directory.Exists(path) == false)
+ FCOMMON.Util.RunExplorer(datapath);
+ else
+ FCOMMON.Util.RunExplorer(path);
+ }
+
+ private void cmbProcess_Click(object sender, EventArgs e)
+ {
+ var bt = sender as Button;
+ var guun = "08";// bt.Tag.ToString();
+ var f = new FCM0000.fCode(guun);
+ var dlg = f.ShowDialog();
+ if (dlg == DialogResult.OK)
+ {
+ //장비기술공정;
+ bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
+ bt.Tag = f.SelectedTitle;
+ }
+ }
+
+ private void cmbManu_Click(object sender, EventArgs e)
+ {
+ var bt = sender as Button;
+ var guun = "06";// bt.Tag.ToString();
+ var f = new FCM0000.fCode(guun);
+ var dlg = f.ShowDialog();
+ if (dlg == DialogResult.OK)
+ {
+ //장비기술공정;
+ bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
+ bt.Tag = f.SelectedTitle;
+ }
+ }
+
+ private void cmbModel_Click(object sender, EventArgs e)
+ {
+ if (btEQManu.Text.isEmpty())
+ {
+ FCOMMON.Util.MsgE("장비 제조사가 선택되지 않았습니다");
+ btEQManu.Focus();
+ return;
+ }
+
+ string filter = "svalue='" + btEQManu.Text.Replace("'", "''") + "'";
+
+ var bt = sender as Button;
+ var guun = "07";// bt.Tag.ToString();
+ var f = new FCM0000.fCode(guun, filter);
+ var dlg = f.ShowDialog();
+ if (dlg == DialogResult.OK)
+ {
+ //장비기술공정;
+ bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
+ bt.Tag = f.SelectedTitle;
+ }
+ }
}
}
diff --git a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.resx b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.resx
index c31bd33..f38586e 100644
--- a/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.resx
+++ b/SubProject/FPJ0000/Project/fProjectPartToPurchaseCR.resx
@@ -138,6 +138,9 @@
257, 17
+
+ 257, 17
+
17, 17
@@ -147,6 +150,12 @@
195, 17
+
+ False
+
+
+ 656, 17
+
True
@@ -262,6 +271,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
+ YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
+ 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
+ bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
+ VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
+ c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
+ Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
+ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
+ TgDQASA1MVpwzwAAAABJRU5ErkJggg==
diff --git a/SubProject/FPJ0000/dsPurchase.Designer.cs b/SubProject/FPJ0000/dsPurchase.Designer.cs
index 1719e33..e46ae5c 100644
--- a/SubProject/FPJ0000/dsPurchase.Designer.cs
+++ b/SubProject/FPJ0000/dsPurchase.Designer.cs
@@ -402,6 +402,26 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnlinecode;
+ private global::System.Data.DataColumn columnpurchase_manager;
+
+ private global::System.Data.DataColumn columnpurchase_admin;
+
+ private global::System.Data.DataColumn columncurrency;
+
+ private global::System.Data.DataColumn columnprdate;
+
+ private global::System.Data.DataColumn columnbigo_admin;
+
+ private global::System.Data.DataColumn columnbigo_manager;
+
+ private global::System.Data.DataColumn columnconf_status;
+
+ private global::System.Data.DataColumn columnconf_request;
+
+ private global::System.Data.DataColumn columnconf_reponse;
+
+ private global::System.Data.DataColumn columnspmqty;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public PurchaseDataTable() {
@@ -787,6 +807,86 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn purchase_managerColumn {
+ get {
+ return this.columnpurchase_manager;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn purchase_adminColumn {
+ get {
+ return this.columnpurchase_admin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn currencyColumn {
+ get {
+ return this.columncurrency;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn prdateColumn {
+ get {
+ return this.columnprdate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn bigo_adminColumn {
+ get {
+ return this.columnbigo_admin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn bigo_managerColumn {
+ get {
+ return this.columnbigo_manager;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_statusColumn {
+ get {
+ return this.columnconf_status;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_requestColumn {
+ get {
+ return this.columnconf_request;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_reponseColumn {
+ get {
+ return this.columnconf_reponse;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn spmqtyColumn {
+ get {
+ return this.columnspmqty;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -867,7 +967,17 @@ namespace FPJ0000 {
bool chk2,
string chkremark,
string costcenter,
- string linecode) {
+ string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string prdate,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
+ int spmqty) {
PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -913,7 +1023,17 @@ namespace FPJ0000 {
chk2,
chkremark,
costcenter,
- linecode};
+ linecode,
+ purchase_manager,
+ purchase_admin,
+ currency,
+ prdate,
+ bigo_admin,
+ bigo_manager,
+ conf_status,
+ conf_request,
+ conf_reponse,
+ spmqty};
rowPurchaseRow.ItemArray = columnValuesArray;
this.Rows.Add(rowPurchaseRow);
return rowPurchaseRow;
@@ -987,6 +1107,16 @@ namespace FPJ0000 {
this.columnchkremark = base.Columns["chkremark"];
this.columncostcenter = base.Columns["costcenter"];
this.columnlinecode = base.Columns["linecode"];
+ this.columnpurchase_manager = base.Columns["purchase_manager"];
+ this.columnpurchase_admin = base.Columns["purchase_admin"];
+ this.columncurrency = base.Columns["currency"];
+ this.columnprdate = base.Columns["prdate"];
+ this.columnbigo_admin = base.Columns["bigo_admin"];
+ this.columnbigo_manager = base.Columns["bigo_manager"];
+ this.columnconf_status = base.Columns["conf_status"];
+ this.columnconf_request = base.Columns["conf_request"];
+ this.columnconf_reponse = base.Columns["conf_reponse"];
+ this.columnspmqty = base.Columns["spmqty"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1080,6 +1210,26 @@ namespace FPJ0000 {
base.Columns.Add(this.columncostcenter);
this.columnlinecode = new global::System.Data.DataColumn("linecode", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlinecode);
+ this.columnpurchase_manager = new global::System.Data.DataColumn("purchase_manager", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpurchase_manager);
+ this.columnpurchase_admin = new global::System.Data.DataColumn("purchase_admin", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpurchase_admin);
+ this.columncurrency = new global::System.Data.DataColumn("currency", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncurrency);
+ this.columnprdate = new global::System.Data.DataColumn("prdate", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnprdate);
+ this.columnbigo_admin = new global::System.Data.DataColumn("bigo_admin", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnbigo_admin);
+ this.columnbigo_manager = new global::System.Data.DataColumn("bigo_manager", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnbigo_manager);
+ this.columnconf_status = new global::System.Data.DataColumn("conf_status", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_status);
+ this.columnconf_request = new global::System.Data.DataColumn("conf_request", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_request);
+ this.columnconf_reponse = new global::System.Data.DataColumn("conf_reponse", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_reponse);
+ this.columnspmqty = new global::System.Data.DataColumn("spmqty", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnspmqty);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -1119,6 +1269,15 @@ namespace FPJ0000 {
this.columnchkremark.MaxLength = 500;
this.columncostcenter.MaxLength = 20;
this.columnlinecode.MaxLength = 20;
+ this.columnpurchase_manager.MaxLength = 50;
+ this.columnpurchase_admin.MaxLength = 50;
+ this.columncurrency.MaxLength = 10;
+ this.columnprdate.MaxLength = 10;
+ this.columnbigo_admin.MaxLength = 1000;
+ this.columnbigo_manager.MaxLength = 1000;
+ this.columnconf_status.MaxLength = 1;
+ this.columnconf_request.MaxLength = 1000;
+ this.columnconf_reponse.MaxLength = 1000;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1340,6 +1499,22 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnlinecode;
+ private global::System.Data.DataColumn columnpurchase_manager;
+
+ private global::System.Data.DataColumn columnpurchase_admin;
+
+ private global::System.Data.DataColumn columncurrency;
+
+ private global::System.Data.DataColumn columnbigo_admin;
+
+ private global::System.Data.DataColumn columnbigo_manager;
+
+ private global::System.Data.DataColumn columnconf_status;
+
+ private global::System.Data.DataColumn columnconf_request;
+
+ private global::System.Data.DataColumn columnconf_reponse;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public EETGW_PurchaseCRDataTable() {
@@ -1725,6 +1900,70 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn purchase_managerColumn {
+ get {
+ return this.columnpurchase_manager;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn purchase_adminColumn {
+ get {
+ return this.columnpurchase_admin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn currencyColumn {
+ get {
+ return this.columncurrency;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn bigo_adminColumn {
+ get {
+ return this.columnbigo_admin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn bigo_managerColumn {
+ get {
+ return this.columnbigo_manager;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_statusColumn {
+ get {
+ return this.columnconf_status;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_requestColumn {
+ get {
+ return this.columnconf_request;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn conf_reponseColumn {
+ get {
+ return this.columnconf_reponse;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1805,7 +2044,15 @@ namespace FPJ0000 {
bool chk2,
string chkremark,
string costcenter,
- string linecode) {
+ string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse) {
EETGW_PurchaseCRRow rowEETGW_PurchaseCRRow = ((EETGW_PurchaseCRRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1851,7 +2098,15 @@ namespace FPJ0000 {
chk2,
chkremark,
costcenter,
- linecode};
+ linecode,
+ purchase_manager,
+ purchase_admin,
+ currency,
+ bigo_admin,
+ bigo_manager,
+ conf_status,
+ conf_request,
+ conf_reponse};
rowEETGW_PurchaseCRRow.ItemArray = columnValuesArray;
this.Rows.Add(rowEETGW_PurchaseCRRow);
return rowEETGW_PurchaseCRRow;
@@ -1925,6 +2180,14 @@ namespace FPJ0000 {
this.columnchkremark = base.Columns["chkremark"];
this.columncostcenter = base.Columns["costcenter"];
this.columnlinecode = base.Columns["linecode"];
+ this.columnpurchase_manager = base.Columns["purchase_manager"];
+ this.columnpurchase_admin = base.Columns["purchase_admin"];
+ this.columncurrency = base.Columns["currency"];
+ this.columnbigo_admin = base.Columns["bigo_admin"];
+ this.columnbigo_manager = base.Columns["bigo_manager"];
+ this.columnconf_status = base.Columns["conf_status"];
+ this.columnconf_request = base.Columns["conf_request"];
+ this.columnconf_reponse = base.Columns["conf_reponse"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2018,6 +2281,22 @@ namespace FPJ0000 {
base.Columns.Add(this.columncostcenter);
this.columnlinecode = new global::System.Data.DataColumn("linecode", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlinecode);
+ this.columnpurchase_manager = new global::System.Data.DataColumn("purchase_manager", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpurchase_manager);
+ this.columnpurchase_admin = new global::System.Data.DataColumn("purchase_admin", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpurchase_admin);
+ this.columncurrency = new global::System.Data.DataColumn("currency", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncurrency);
+ this.columnbigo_admin = new global::System.Data.DataColumn("bigo_admin", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnbigo_admin);
+ this.columnbigo_manager = new global::System.Data.DataColumn("bigo_manager", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnbigo_manager);
+ this.columnconf_status = new global::System.Data.DataColumn("conf_status", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_status);
+ this.columnconf_request = new global::System.Data.DataColumn("conf_request", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_request);
+ this.columnconf_reponse = new global::System.Data.DataColumn("conf_reponse", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnconf_reponse);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -2057,6 +2336,14 @@ namespace FPJ0000 {
this.columnchkremark.MaxLength = 500;
this.columncostcenter.MaxLength = 20;
this.columnlinecode.MaxLength = 20;
+ this.columnpurchase_manager.MaxLength = 50;
+ this.columnpurchase_admin.MaxLength = 50;
+ this.columncurrency.MaxLength = 10;
+ this.columnbigo_admin.MaxLength = 1000;
+ this.columnbigo_manager.MaxLength = 1000;
+ this.columnconf_status.MaxLength = 1;
+ this.columnconf_request.MaxLength = 1000;
+ this.columnconf_reponse.MaxLength = 1000;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2881,6 +3168,166 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string purchase_manager {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.purchase_managerColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'purchase_manager\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.purchase_managerColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string purchase_admin {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.purchase_adminColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'purchase_admin\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.purchase_adminColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string currency {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.currencyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'currency\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.currencyColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string prdate {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.prdateColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'prdate\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.prdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string bigo_admin {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.bigo_adminColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'bigo_admin\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.bigo_adminColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string bigo_manager {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.bigo_managerColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'bigo_manager\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.bigo_managerColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_status {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.conf_statusColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'conf_status\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.conf_statusColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_request {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.conf_requestColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'conf_request\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.conf_requestColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_reponse {
+ get {
+ try {
+ return ((string)(this[this.tablePurchase.conf_reponseColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'conf_reponse\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.conf_reponseColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public int spmqty {
+ get {
+ try {
+ return ((int)(this[this.tablePurchase.spmqtyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'spmqty\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tablePurchase.spmqtyColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IspdateNull() {
@@ -3360,6 +3807,126 @@ namespace FPJ0000 {
public void SetlinecodeNull() {
this[this.tablePurchase.linecodeColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Ispurchase_managerNull() {
+ return this.IsNull(this.tablePurchase.purchase_managerColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setpurchase_managerNull() {
+ this[this.tablePurchase.purchase_managerColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Ispurchase_adminNull() {
+ return this.IsNull(this.tablePurchase.purchase_adminColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setpurchase_adminNull() {
+ this[this.tablePurchase.purchase_adminColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IscurrencyNull() {
+ return this.IsNull(this.tablePurchase.currencyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetcurrencyNull() {
+ this[this.tablePurchase.currencyColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsprdateNull() {
+ return this.IsNull(this.tablePurchase.prdateColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetprdateNull() {
+ this[this.tablePurchase.prdateColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isbigo_adminNull() {
+ return this.IsNull(this.tablePurchase.bigo_adminColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setbigo_adminNull() {
+ this[this.tablePurchase.bigo_adminColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isbigo_managerNull() {
+ return this.IsNull(this.tablePurchase.bigo_managerColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setbigo_managerNull() {
+ this[this.tablePurchase.bigo_managerColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_statusNull() {
+ return this.IsNull(this.tablePurchase.conf_statusColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_statusNull() {
+ this[this.tablePurchase.conf_statusColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_requestNull() {
+ return this.IsNull(this.tablePurchase.conf_requestColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_requestNull() {
+ this[this.tablePurchase.conf_requestColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_reponseNull() {
+ return this.IsNull(this.tablePurchase.conf_reponseColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_reponseNull() {
+ this[this.tablePurchase.conf_reponseColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsspmqtyNull() {
+ return this.IsNull(this.tablePurchase.spmqtyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetspmqtyNull() {
+ this[this.tablePurchase.spmqtyColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -4060,6 +4627,134 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string purchase_manager {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.purchase_managerColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'purchase_manager\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.purchase_managerColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string purchase_admin {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.purchase_adminColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'purchase_admin\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.purchase_adminColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string currency {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.currencyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'currency\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.currencyColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string bigo_admin {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.bigo_adminColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'bigo_admin\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.bigo_adminColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string bigo_manager {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.bigo_managerColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'bigo_manager\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.bigo_managerColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_status {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.conf_statusColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'conf_status\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.conf_statusColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_request {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.conf_requestColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'conf_request\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.conf_requestColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string conf_reponse {
+ get {
+ try {
+ return ((string)(this[this.tableEETGW_PurchaseCR.conf_reponseColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'conf_reponse\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_PurchaseCR.conf_reponseColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IspdateNull() {
@@ -4539,6 +5234,102 @@ namespace FPJ0000 {
public void SetlinecodeNull() {
this[this.tableEETGW_PurchaseCR.linecodeColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Ispurchase_managerNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.purchase_managerColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setpurchase_managerNull() {
+ this[this.tableEETGW_PurchaseCR.purchase_managerColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Ispurchase_adminNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.purchase_adminColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setpurchase_adminNull() {
+ this[this.tableEETGW_PurchaseCR.purchase_adminColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IscurrencyNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.currencyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetcurrencyNull() {
+ this[this.tableEETGW_PurchaseCR.currencyColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isbigo_adminNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.bigo_adminColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setbigo_adminNull() {
+ this[this.tableEETGW_PurchaseCR.bigo_adminColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isbigo_managerNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.bigo_managerColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setbigo_managerNull() {
+ this[this.tableEETGW_PurchaseCR.bigo_managerColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_statusNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.conf_statusColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_statusNull() {
+ this[this.tableEETGW_PurchaseCR.conf_statusColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_requestNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.conf_requestColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_requestNull() {
+ this[this.tableEETGW_PurchaseCR.conf_requestColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Isconf_reponseNull() {
+ return this.IsNull(this.tableEETGW_PurchaseCR.conf_reponseColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void Setconf_reponseNull() {
+ this[this.tableEETGW_PurchaseCR.conf_reponseColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -4778,6 +5569,16 @@ namespace FPJ0000.dsPurchaseTableAdapters {
tableMapping.ColumnMappings.Add("chkremark", "chkremark");
tableMapping.ColumnMappings.Add("costcenter", "costcenter");
tableMapping.ColumnMappings.Add("linecode", "linecode");
+ tableMapping.ColumnMappings.Add("purchase_manager", "purchase_manager");
+ tableMapping.ColumnMappings.Add("purchase_admin", "purchase_admin");
+ tableMapping.ColumnMappings.Add("currency", "currency");
+ tableMapping.ColumnMappings.Add("prdate", "prdate");
+ tableMapping.ColumnMappings.Add("bigo_admin", "bigo_admin");
+ tableMapping.ColumnMappings.Add("bigo_manager", "bigo_manager");
+ tableMapping.ColumnMappings.Add("conf_status", "conf_status");
+ tableMapping.ColumnMappings.Add("conf_request", "conf_request");
+ tableMapping.ColumnMappings.Add("conf_reponse", "conf_reponse");
+ tableMapping.ColumnMappings.Add("spmqty", "spmqty");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -4822,7 +5623,20 @@ namespace FPJ0000.dsPurchaseTableAdapters {
" OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NU" +
"LL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [co" +
"stcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linec" +
- "ode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)))";
+ "ode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsN" +
+ "ull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] " +
+ "= @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_ad" +
+ "min] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_cu" +
+ "rrency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@" +
+ "IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)) AND ((" +
+ "@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bi" +
+ "go_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_" +
+ "manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_stat" +
+ "us] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_requ" +
+ "est = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)" +
+ ") AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] " +
+ "= @Original_conf_reponse)) AND ((@IsNull_spmqty = 1 AND [spmqty] IS NULL) OR ([s" +
+ "pmqty] = @Original_spmqty)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -4906,10 +5720,50 @@ namespace FPJ0000.dsPurchaseTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_prdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [Purchase] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode);
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM Purchase WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [Purchase] ([gcode], [pdate], [state], [process], [receive], [sc], [r" +
+ "equest], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq" +
+ "], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [project" +
+ "idx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [i" +
+ "sdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [wind" +
+ "ate], [chk1], [chk2], [chkremark], [costcenter], [linecode], [purchase_manager]," +
+ " [purchase_admin], [currency], [prdate], [bigo_admin], [bigo_manager], [conf_sta" +
+ "tus], [conf_request], [conf_reponse], [spmqty]) VALUES (@gcode, @pdate, @state, " +
+ "@process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit," +
+ " @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @proj" +
+ "ect, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import" +
+ ", @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate," +
+ " @chk1, @chk2, @chkremark, @costcenter, @linecode, @purchase_manager, @purchase_" +
+ "admin, @currency, @prdate, @bigo_admin, @bigo_manager, @conf_status, @conf_reque" +
+ "st, @conf_reponse, @spmqty);\r\nSELECT idx, gcode, pdate, state, process, receive," +
+ " sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumpri" +
+ "ce, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, " +
+ "edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty" +
+ ", inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purcha" +
+ "se_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_sta" +
+ "tus, conf_request, conf_reponse, spmqty FROM Purchase WITH (nolock) WHERE (idx =" +
+ " SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4954,6 +5808,16 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", 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] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @state, [proc" +
@@ -4967,53 +5831,71 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
" @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] = @inqty," +
" [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk" +
"1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter, [lineco" +
- "de] = @linecode WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) A" +
- "ND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND " +
- "((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@" +
- "IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AN" +
- "D ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive" +
- ")) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNul" +
- "l_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@" +
- "IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumn" +
- "ame = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull" +
- "_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNul" +
- "l_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND" +
- " ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)" +
- ") AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty" +
- ")) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Origi" +
- "nal_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice" +
- "] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR" +
- " ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS N" +
- "ULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS " +
- "NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyi" +
- "dx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = " +
- "1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsN" +
- "ull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull" +
- "_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND " +
- "((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@" +
- "IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((" +
- "@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = " +
- "1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [" +
- "bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [impor" +
- "t] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel" +
- "] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [ordern" +
- "o] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [pla" +
- "ce] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND (" +
- "[wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inq" +
- "ty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([" +
- "inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) " +
- "OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NUL" +
- "L) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL" +
- ") OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([" +
- "chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR" +
- " ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcent" +
- "er] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = " +
- "1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)));\r\nSELECT idx, g" +
- "code, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscal" +
- "e, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, p" +
- "roject, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isde" +
- "l, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, ch" +
- "kremark, costcenter, linecode FROM Purchase WHERE (idx = @idx)";
+ "de] = @linecode, [purchase_manager] = @purchase_manager, [purchase_admin] = @pur" +
+ "chase_admin, [currency] = @currency, [prdate] = @prdate, [bigo_admin] = @bigo_ad" +
+ "min, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request" +
+ "] = @conf_request, [conf_reponse] = @conf_reponse, [spmqty] = @spmqty WHERE (([i" +
+ "dx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND" +
+ " [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [s" +
+ "tate] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [pr" +
+ "ocess] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AN" +
+ "D [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AN" +
+ "D [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request" +
+ "] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] I" +
+ "S NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS N" +
+ "ULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] I" +
+ "S NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumsca" +
+ "le] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND" +
+ " [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1" +
+ " AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq" +
+ " = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsN" +
+ "ull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) A" +
+ "ND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_" +
+ "pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Origi" +
+ "nal_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Orig" +
+ "inal_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyid" +
+ "x] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL" +
+ ") OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] " +
+ "IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manupro" +
+ "c] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [e" +
+ "date] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [ind" +
+ "ate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS" +
+ " NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR (" +
+ "[dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] " +
+ "= @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] =" +
+ " @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @" +
+ "Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] " +
+ "= @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] =" +
+ " @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)" +
+ " AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AN" +
+ "D ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inre" +
+ "mark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_w" +
+ "inuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Origin" +
+ "al_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_c" +
+ "hk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) A" +
+ "ND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_" +
+ "chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcent" +
+ "er] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) " +
+ "OR ([linecode] = @Original_linecode)) AND ((@IsNull_purchase_manager = 1 AND [pu" +
+ "rchase_manager] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) A" +
+ "ND ((@IsNull_purchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admi" +
+ "n] = @Original_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NUL" +
+ "L) OR ([currency] = @Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] I" +
+ "S NULL) OR ([prdate] = @Original_prdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo" +
+ "_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_ma" +
+ "nager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manage" +
+ "r)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] =" +
+ " @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NU" +
+ "LL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1" +
+ " AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND (" +
+ "(@IsNull_spmqty = 1 AND [spmqty] IS NULL) OR ([spmqty] = @Original_spmqty)));\r\nS" +
+ "ELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pum" +
+ "idx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, " +
+ "supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, " +
+ "import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, ch" +
+ "k1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, cur" +
+ "rency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse" +
+ ", spmqty FROM Purchase WITH (nolock) WHERE (idx = @idx)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -5058,6 +5940,16 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -5140,6 +6032,26 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_prdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_spmqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "spmqty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -5157,7 +6069,8 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx,
- asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode
+ asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager,
+ purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, spmqty
FROM Purchase WITH (nolock)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -5262,7 +6175,17 @@ FROM Purchase WITH (nolock)";
global::System.Nullable Original_chk2,
string Original_chkremark,
string Original_costcenter,
- string Original_linecode) {
+ string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_prdate,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse,
+ global::System.Nullable Original_spmqty) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
@@ -5589,6 +6512,86 @@ FROM Purchase WITH (nolock)";
this.Adapter.DeleteCommand.Parameters[80].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[81].Value = ((string)(Original_linecode));
}
+ if ((Original_purchase_manager == null)) {
+ this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[83].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[83].Value = ((string)(Original_purchase_manager));
+ }
+ if ((Original_purchase_admin == null)) {
+ this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[85].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[85].Value = ((string)(Original_purchase_admin));
+ }
+ if ((Original_currency == null)) {
+ this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[87].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[87].Value = ((string)(Original_currency));
+ }
+ if ((Original_prdate == null)) {
+ this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[89].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[89].Value = ((string)(Original_prdate));
+ }
+ if ((Original_bigo_admin == null)) {
+ this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[91].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[91].Value = ((string)(Original_bigo_admin));
+ }
+ if ((Original_bigo_manager == null)) {
+ this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[93].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[93].Value = ((string)(Original_bigo_manager));
+ }
+ if ((Original_conf_status == null)) {
+ this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_conf_status));
+ }
+ if ((Original_conf_request == null)) {
+ this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[97].Value = ((string)(Original_conf_request));
+ }
+ if ((Original_conf_reponse == null)) {
+ this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[99].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[99].Value = ((string)(Original_conf_reponse));
+ }
+ if ((Original_spmqty.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[100].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[101].Value = ((int)(Original_spmqty.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[100].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[101].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -5652,7 +6655,17 @@ FROM Purchase WITH (nolock)";
global::System.Nullable chk2,
string chkremark,
string costcenter,
- string linecode) {
+ string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string prdate,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
+ global::System.Nullable spmqty) {
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
@@ -5906,6 +6919,66 @@ FROM Purchase WITH (nolock)";
else {
this.Adapter.InsertCommand.Parameters[42].Value = ((string)(linecode));
}
+ if ((purchase_manager == null)) {
+ this.Adapter.InsertCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[43].Value = ((string)(purchase_manager));
+ }
+ if ((purchase_admin == null)) {
+ this.Adapter.InsertCommand.Parameters[44].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[44].Value = ((string)(purchase_admin));
+ }
+ if ((currency == null)) {
+ this.Adapter.InsertCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[45].Value = ((string)(currency));
+ }
+ if ((prdate == null)) {
+ this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[46].Value = ((string)(prdate));
+ }
+ if ((bigo_admin == null)) {
+ this.Adapter.InsertCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[47].Value = ((string)(bigo_admin));
+ }
+ if ((bigo_manager == null)) {
+ this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[48].Value = ((string)(bigo_manager));
+ }
+ if ((conf_status == null)) {
+ this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[49].Value = ((string)(conf_status));
+ }
+ if ((conf_request == null)) {
+ this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[50].Value = ((string)(conf_request));
+ }
+ if ((conf_reponse == null)) {
+ this.Adapter.InsertCommand.Parameters[51].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[51].Value = ((string)(conf_reponse));
+ }
+ if ((spmqty.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[52].Value = ((int)(spmqty.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[52].Value = global::System.DBNull.Value;
+ }
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)) {
@@ -5970,6 +7043,16 @@ FROM Purchase WITH (nolock)";
string chkremark,
string costcenter,
string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string prdate,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
+ global::System.Nullable spmqty,
int Original_idx,
string Original_gcode,
string Original_pdate,
@@ -6013,6 +7096,16 @@ FROM Purchase WITH (nolock)";
string Original_chkremark,
string Original_costcenter,
string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_prdate,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse,
+ global::System.Nullable Original_spmqty,
int idx) {
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
@@ -6267,333 +7360,473 @@ FROM Purchase WITH (nolock)";
else {
this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(linecode));
}
- this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_idx));
+ if ((purchase_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(purchase_manager));
+ }
+ if ((purchase_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(purchase_admin));
+ }
+ if ((currency == null)) {
+ this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(currency));
+ }
+ if ((prdate == null)) {
+ this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(prdate));
+ }
+ if ((bigo_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(bigo_admin));
+ }
+ if ((bigo_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(bigo_manager));
+ }
+ if ((conf_status == null)) {
+ this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(conf_status));
+ }
+ if ((conf_request == null)) {
+ this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(conf_request));
+ }
+ if ((conf_reponse == null)) {
+ this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(conf_reponse));
+ }
+ if ((spmqty.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[52].Value = ((int)(spmqty.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[53].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
}
else {
- this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_gcode));
+ this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_gcode));
}
if ((Original_pdate == null)) {
- this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_pdate));
- }
- if ((Original_state == null)) {
- this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_state));
- }
- if ((Original_process == null)) {
- this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_process));
- }
- if ((Original_receive == null)) {
- this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_receive));
- }
- if ((Original_sc == null)) {
- this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_sc));
- }
- if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_request));
+ this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_pdate));
}
- if ((Original_sid == null)) {
+ if ((Original_state == null)) {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_sid));
+ this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_state));
}
- if ((Original_pumname == null)) {
+ if ((Original_process == null)) {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_pumname));
+ this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_process));
}
- if ((Original_pumidx.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[62].Value = ((int)(Original_pumidx.Value));
- }
- else {
+ if ((Original_receive == null)) {
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
}
- if ((Original_pumscale == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_receive));
+ }
+ if ((Original_sc == null)) {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_pumscale));
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_sc));
}
- if ((Original_pumunit == null)) {
+ if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_pumunit));
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_request));
}
- if ((Original_pumqty.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_pumqty.Value));
- }
- else {
+ if ((Original_sid == null)) {
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value;
}
- if ((Original_pumqtyReq.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_pumqtyReq.Value));
- }
else {
+ this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_sid));
+ }
+ if ((Original_pumname == null)) {
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value;
}
- if ((Original_pumprice.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[70].Value = ((string)(Original_pumname));
+ }
+ if ((Original_pumidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_pumprice.Value));
+ this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(Original_pumidx.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value;
}
- if ((Original_pumpriceD.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[74].Value = ((decimal)(Original_pumpriceD.Value));
- }
- else {
+ if ((Original_pumscale == null)) {
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value;
}
- if ((Original_pumamt.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[76].Value = ((decimal)(Original_pumamt.Value));
- }
else {
+ this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_pumscale));
+ }
+ if ((Original_pumunit == null)) {
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value;
}
- if ((Original_supply == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[76].Value = ((string)(Original_pumunit));
+ }
+ if ((Original_pumqty.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[78].Value = ((int)(Original_pumqty.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_supply));
- }
- if ((Original_supplyidx.HasValue == true)) {
+ if ((Original_pumqtyReq.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[80].Value = ((int)(Original_supplyidx.Value));
+ this.Adapter.UpdateCommand.Parameters[80].Value = ((int)(Original_pumqtyReq.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value;
}
- if ((Original_projectidx.HasValue == true)) {
+ if ((Original_pumprice.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[82].Value = ((int)(Original_projectidx.Value));
+ this.Adapter.UpdateCommand.Parameters[82].Value = ((decimal)(Original_pumprice.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value;
}
- if ((Original_asset == null)) {
+ if ((Original_pumpriceD.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[84].Value = ((decimal)(Original_pumpriceD.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_asset));
+ if ((Original_pumamt.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[86].Value = ((decimal)(Original_pumamt.Value));
}
- if ((Original_manuproc == null)) {
+ else {
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_manuproc));
- }
- if ((Original_edate == null)) {
+ if ((Original_supply == null)) {
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_edate));
+ this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_supply));
}
- if ((Original_indate == null)) {
+ if ((Original_supplyidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[90].Value = ((int)(Original_supplyidx.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_indate));
+ if ((Original_projectidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[92].Value = ((int)(Original_projectidx.Value));
}
- if ((Original_po == null)) {
+ else {
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_po));
- }
- if ((Original_dept == null)) {
+ if ((Original_asset == null)) {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_dept));
+ this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_asset));
}
- if ((Original_bigo == null)) {
+ if ((Original_manuproc == null)) {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_bigo));
+ this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_manuproc));
}
- if ((Original_import.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[98].Value = ((bool)(Original_import.Value));
- }
- else {
+ if ((Original_edate == null)) {
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value;
}
- if ((Original_isdel.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[100].Value = ((bool)(Original_isdel.Value));
- }
else {
+ this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_edate));
+ }
+ if ((Original_indate == null)) {
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value;
}
- if ((Original_orderno == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_indate));
+ }
+ if ((Original_po == null)) {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_orderno));
+ this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_po));
}
- if ((Original_place == null)) {
+ if ((Original_dept == null)) {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_place));
+ this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_dept));
}
- if ((Original_wuid == null)) {
- throw new global::System.ArgumentNullException("Original_wuid");
+ if ((Original_bigo == null)) {
+ this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_bigo));
}
- this.Adapter.UpdateCommand.Parameters[106].Value = ((System.DateTime)(Original_wdate));
- if ((Original_inqty.HasValue == true)) {
+ if ((Original_import.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[108].Value = ((int)(Original_inqty.Value));
+ this.Adapter.UpdateCommand.Parameters[108].Value = ((bool)(Original_import.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value;
}
- if ((Original_inremark == null)) {
+ if ((Original_isdel.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[110].Value = ((bool)(Original_isdel.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_inremark));
- }
- if ((Original_winuid == null)) {
+ if ((Original_orderno == null)) {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_winuid));
+ this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_orderno));
}
- if ((Original_windate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[114].Value = ((System.DateTime)(Original_windate.Value));
- }
- else {
+ if ((Original_place == null)) {
this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value;
}
- if ((Original_chk1.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[116].Value = ((bool)(Original_chk1.Value));
+ else {
+ this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[114].Value = ((string)(Original_place));
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[115].Value = ((string)(Original_wuid));
}
- if ((Original_chk2.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[116].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_inqty.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[118].Value = ((bool)(Original_chk2.Value));
+ this.Adapter.UpdateCommand.Parameters[118].Value = ((int)(Original_inqty.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value;
}
- if ((Original_chkremark == null)) {
+ if ((Original_inremark == null)) {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_chkremark));
+ this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_inremark));
}
- if ((Original_costcenter == null)) {
+ if ((Original_winuid == null)) {
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_costcenter));
+ this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_winuid));
}
- if ((Original_linecode == null)) {
+ if ((Original_windate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[124].Value = ((System.DateTime)(Original_windate.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_linecode));
+ if ((Original_chk1.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[126].Value = ((bool)(Original_chk1.Value));
}
- this.Adapter.UpdateCommand.Parameters[125].Value = ((int)(idx));
+ else {
+ this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value;
+ }
+ if ((Original_chk2.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[128].Value = ((bool)(Original_chk2.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value;
+ }
+ if ((Original_chkremark == null)) {
+ this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_chkremark));
+ }
+ if ((Original_costcenter == null)) {
+ this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_costcenter));
+ }
+ if ((Original_linecode == null)) {
+ this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[134].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_linecode));
+ }
+ if ((Original_purchase_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[136].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[136].Value = ((string)(Original_purchase_manager));
+ }
+ if ((Original_purchase_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[138].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[138].Value = ((string)(Original_purchase_admin));
+ }
+ if ((Original_currency == null)) {
+ this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[140].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[140].Value = ((string)(Original_currency));
+ }
+ if ((Original_prdate == null)) {
+ this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[142].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[142].Value = ((string)(Original_prdate));
+ }
+ if ((Original_bigo_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[144].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[144].Value = ((string)(Original_bigo_admin));
+ }
+ if ((Original_bigo_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[146].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[146].Value = ((string)(Original_bigo_manager));
+ }
+ if ((Original_conf_status == null)) {
+ this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[148].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[148].Value = ((string)(Original_conf_status));
+ }
+ if ((Original_conf_request == null)) {
+ this.Adapter.UpdateCommand.Parameters[149].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[150].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[149].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[150].Value = ((string)(Original_conf_request));
+ }
+ if ((Original_conf_reponse == null)) {
+ this.Adapter.UpdateCommand.Parameters[151].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[152].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[151].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[152].Value = ((string)(Original_conf_reponse));
+ }
+ if ((Original_spmqty.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[153].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[154].Value = ((int)(Original_spmqty.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[153].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[154].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[155].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -6658,6 +7891,16 @@ FROM Purchase WITH (nolock)";
string chkremark,
string costcenter,
string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string prdate,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
+ global::System.Nullable spmqty,
int Original_idx,
string Original_gcode,
string Original_pdate,
@@ -6700,8 +7943,18 @@ FROM Purchase WITH (nolock)";
global::System.Nullable Original_chk2,
string Original_chkremark,
string Original_costcenter,
- string Original_linecode) {
- return this.Update(gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, Original_idx, Original_gcode, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumidx, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumqtyReq, Original_pumprice, Original_pumpriceD, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_manuproc, Original_edate, Original_indate, Original_po, Original_dept, Original_bigo, Original_import, Original_isdel, Original_orderno, Original_place, Original_wuid, Original_wdate, Original_inqty, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_chkremark, Original_costcenter, Original_linecode, Original_idx);
+ string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_prdate,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse,
+ global::System.Nullable Original_spmqty) {
+ return this.Update(gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, spmqty, Original_idx, Original_gcode, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumidx, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumqtyReq, Original_pumprice, Original_pumpriceD, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_manuproc, Original_edate, Original_indate, Original_po, Original_dept, Original_bigo, Original_import, Original_isdel, Original_orderno, Original_place, Original_wuid, Original_wdate, Original_inqty, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_chkremark, Original_costcenter, Original_linecode, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_prdate, Original_bigo_admin, Original_bigo_manager, Original_conf_status, Original_conf_request, Original_conf_reponse, Original_spmqty, Original_idx);
}
}
@@ -6870,6 +8123,14 @@ FROM Purchase WITH (nolock)";
tableMapping.ColumnMappings.Add("chkremark", "chkremark");
tableMapping.ColumnMappings.Add("costcenter", "costcenter");
tableMapping.ColumnMappings.Add("linecode", "linecode");
+ tableMapping.ColumnMappings.Add("purchase_manager", "purchase_manager");
+ tableMapping.ColumnMappings.Add("purchase_admin", "purchase_admin");
+ tableMapping.ColumnMappings.Add("currency", "currency");
+ tableMapping.ColumnMappings.Add("bigo_admin", "bigo_admin");
+ tableMapping.ColumnMappings.Add("bigo_manager", "bigo_manager");
+ tableMapping.ColumnMappings.Add("conf_status", "conf_status");
+ tableMapping.ColumnMappings.Add("conf_request", "conf_request");
+ tableMapping.ColumnMappings.Add("conf_reponse", "conf_reponse");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -6914,7 +8175,18 @@ FROM Purchase WITH (nolock)";
"IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremar" +
"k] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1" +
" AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNu" +
- "ll_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)))";
+ "ll_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AN" +
+ "D ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_m" +
+ "anager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [pur" +
+ "chase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@I" +
+ "sNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency))" +
+ " AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Orig" +
+ "inal_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR " +
+ "([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [co" +
+ "nf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_co" +
+ "nf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_r" +
+ "equest)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_re" +
+ "ponse] = @Original_conf_reponse)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -6998,10 +8270,45 @@ FROM Purchase WITH (nolock)";
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_PurchaseCR] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode);
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [EETGW_PurchaseCR] ([gcode], [pdate], [state], [process], [receive], " +
+ "[sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [p" +
+ "umqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], " +
+ "[projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [imp" +
+ "ort], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid" +
+ "], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode], [purchase_m" +
+ "anager], [purchase_admin], [currency], [bigo_admin], [bigo_manager], [conf_statu" +
+ "s], [conf_request], [conf_reponse]) VALUES (@gcode, @pdate, @state, @process, @r" +
+ "eceive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @p" +
+ "umqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projec" +
+ "tidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @o" +
+ "rderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk" +
+ "2, @chkremark, @costcenter, @linecode, @purchase_manager, @purchase_admin, @curr" +
+ "ency, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse);\r\n" +
+ "SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu" +
+ "midx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply," +
+ " supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo," +
+ " import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, c" +
+ "hk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, cu" +
+ "rrency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM E" +
+ "ETGW_PurchaseCR WITH (nolock) WHERE (idx = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -7046,6 +8353,14 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", 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 [EETGW_PurchaseCR] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @stat" +
@@ -7059,53 +8374,69 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
"derno] = @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] =" +
" @inqty, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1" +
"] = @chk1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter," +
- " [linecode] = @linecode WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_" +
- "gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdat" +
- "e)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state))" +
- " AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_proc" +
- "ess)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original" +
- "_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND " +
- "((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request))" +
- " AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsN" +
- "ull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND (" +
- "(@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND " +
- "((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumsca" +
- "le)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_" +
- "pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Origina" +
- "l_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] " +
- "= @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([" +
- "pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS " +
- "NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [puma" +
- "mt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [sup" +
- "ply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND " +
- "[supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_proje" +
- "ctidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AN" +
- "D ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND (" +
- "(@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manupro" +
- "c)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate))" +
- " AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)" +
- ") AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull" +
- "_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo =" +
- " 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AN" +
- "D [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AN" +
- "D [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND" +
- " [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 " +
- "AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wui" +
- "d) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) " +
- "OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NUL" +
- "L) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] I" +
- "S NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate" +
- "] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1]" +
- " IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NUL" +
- "L) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS " +
- "NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [" +
- "costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_lin" +
- "ecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)));\r\nSELEC" +
- "T idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx," +
- " pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supp" +
- "lyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, impo" +
- "rt, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, " +
- "chk2, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = @idx)";
+ " [linecode] = @linecode, [purchase_manager] = @purchase_manager, [purchase_admin" +
+ "] = @purchase_admin, [currency] = @currency, [bigo_admin] = @bigo_admin, [bigo_m" +
+ "anager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_re" +
+ "quest, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx) AND ([gcode" +
+ "] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = " +
+ "@Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Or" +
+ "iginal_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = " +
+ "@Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receiv" +
+ "e] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Orig" +
+ "inal_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Orig" +
+ "inal_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_si" +
+ "d)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_p" +
+ "umname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original" +
+ "_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @O" +
+ "riginal_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit" +
+ "] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumq" +
+ "ty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR" +
+ " ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] " +
+ "IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [" +
+ "pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt" +
+ " = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_suppl" +
+ "y = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supp" +
+ "lyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND (" +
+ "(@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_p" +
+ "rojectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original" +
+ "_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Or" +
+ "iginal_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Or" +
+ "iginal_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Or" +
+ "iginal_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po))" +
+ " AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((" +
+ "@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull" +
+ "_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNul" +
+ "l_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_o" +
+ "rderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsN" +
+ "ull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] =" +
+ " @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [in" +
+ "qty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [in" +
+ "remark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 " +
+ "AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = " +
+ "1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 " +
+ "= 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND" +
+ " [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [" +
+ "chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costce" +
+ "nter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND" +
+ " ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linec" +
+ "ode)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([pu" +
+ "rchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 " +
+ "AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) " +
+ "AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_cu" +
+ "rrency)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin]" +
+ " = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS N" +
+ "ULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1" +
+ " AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@I" +
+ "sNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Origina" +
+ "l_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR (" +
+ "[conf_reponse] = @Original_conf_reponse)));\r\nSELECT idx, gcode, pdate, state, pr" +
+ "ocess, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pu" +
+ "mqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, as" +
+ "set, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wui" +
+ "d, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, l" +
+ "inecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, c" +
+ "onf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR WITH (nolock) WHERE" +
+ " (idx = @idx)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -7150,6 +8481,14 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -7232,6 +8571,22 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_purchase_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -7249,7 +8604,8 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx,
- asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode
+ asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager,
+ purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse
FROM EETGW_PurchaseCR WITH (nolock)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -7354,7 +8710,15 @@ FROM EETGW_PurchaseCR WITH (nolock)";
global::System.Nullable Original_chk2,
string Original_chkremark,
string Original_costcenter,
- string Original_linecode) {
+ string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
@@ -7681,6 +9045,70 @@ FROM EETGW_PurchaseCR WITH (nolock)";
this.Adapter.DeleteCommand.Parameters[80].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[81].Value = ((string)(Original_linecode));
}
+ if ((Original_purchase_manager == null)) {
+ this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[83].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[83].Value = ((string)(Original_purchase_manager));
+ }
+ if ((Original_purchase_admin == null)) {
+ this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[85].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[85].Value = ((string)(Original_purchase_admin));
+ }
+ if ((Original_currency == null)) {
+ this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[87].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[87].Value = ((string)(Original_currency));
+ }
+ if ((Original_bigo_admin == null)) {
+ this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[89].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[89].Value = ((string)(Original_bigo_admin));
+ }
+ if ((Original_bigo_manager == null)) {
+ this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[91].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[91].Value = ((string)(Original_bigo_manager));
+ }
+ if ((Original_conf_status == null)) {
+ this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[93].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[93].Value = ((string)(Original_conf_status));
+ }
+ if ((Original_conf_request == null)) {
+ this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_conf_request));
+ }
+ if ((Original_conf_reponse == null)) {
+ this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[97].Value = ((string)(Original_conf_reponse));
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -7744,7 +9172,15 @@ FROM EETGW_PurchaseCR WITH (nolock)";
global::System.Nullable chk2,
string chkremark,
string costcenter,
- string linecode) {
+ string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse) {
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
@@ -7998,6 +9434,54 @@ FROM EETGW_PurchaseCR WITH (nolock)";
else {
this.Adapter.InsertCommand.Parameters[42].Value = ((string)(linecode));
}
+ if ((purchase_manager == null)) {
+ this.Adapter.InsertCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[43].Value = ((string)(purchase_manager));
+ }
+ if ((purchase_admin == null)) {
+ this.Adapter.InsertCommand.Parameters[44].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[44].Value = ((string)(purchase_admin));
+ }
+ if ((currency == null)) {
+ this.Adapter.InsertCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[45].Value = ((string)(currency));
+ }
+ if ((bigo_admin == null)) {
+ this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[46].Value = ((string)(bigo_admin));
+ }
+ if ((bigo_manager == null)) {
+ this.Adapter.InsertCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[47].Value = ((string)(bigo_manager));
+ }
+ if ((conf_status == null)) {
+ this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[48].Value = ((string)(conf_status));
+ }
+ if ((conf_request == null)) {
+ this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[49].Value = ((string)(conf_request));
+ }
+ if ((conf_reponse == null)) {
+ this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[50].Value = ((string)(conf_reponse));
+ }
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)) {
@@ -8062,6 +9546,14 @@ FROM EETGW_PurchaseCR WITH (nolock)";
string chkremark,
string costcenter,
string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
int Original_idx,
string Original_gcode,
string Original_pdate,
@@ -8105,6 +9597,14 @@ FROM EETGW_PurchaseCR WITH (nolock)";
string Original_chkremark,
string Original_costcenter,
string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse,
int idx) {
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
@@ -8359,333 +9859,445 @@ FROM EETGW_PurchaseCR WITH (nolock)";
else {
this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(linecode));
}
- this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_idx));
+ if ((purchase_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(purchase_manager));
+ }
+ if ((purchase_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(purchase_admin));
+ }
+ if ((currency == null)) {
+ this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(currency));
+ }
+ if ((bigo_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(bigo_admin));
+ }
+ if ((bigo_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(bigo_manager));
+ }
+ if ((conf_status == null)) {
+ this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(conf_status));
+ }
+ if ((conf_request == null)) {
+ this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(conf_request));
+ }
+ if ((conf_reponse == null)) {
+ this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(conf_reponse));
+ }
+ this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
}
else {
- this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_gcode));
+ this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_gcode));
}
if ((Original_pdate == null)) {
- this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_pdate));
- }
- if ((Original_state == null)) {
- this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_state));
- }
- if ((Original_process == null)) {
- this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_process));
- }
- if ((Original_receive == null)) {
- this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_receive));
- }
- if ((Original_sc == null)) {
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_sc));
+ this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_pdate));
}
- if ((Original_request == null)) {
+ if ((Original_state == null)) {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_request));
+ this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_state));
}
- if ((Original_sid == null)) {
+ if ((Original_process == null)) {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_sid));
+ this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_process));
}
- if ((Original_pumname == null)) {
+ if ((Original_receive == null)) {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_pumname));
+ this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_receive));
}
- if ((Original_pumidx.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[62].Value = ((int)(Original_pumidx.Value));
- }
- else {
+ if ((Original_sc == null)) {
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
}
- if ((Original_pumscale == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_sc));
+ }
+ if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_pumscale));
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_request));
}
- if ((Original_pumunit == null)) {
+ if ((Original_sid == null)) {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_pumunit));
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_sid));
}
- if ((Original_pumqty.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_pumqty.Value));
- }
- else {
+ if ((Original_pumname == null)) {
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value;
}
- if ((Original_pumqtyReq.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_pumname));
+ }
+ if ((Original_pumidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_pumqtyReq.Value));
+ this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_pumidx.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value;
}
- if ((Original_pumprice.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_pumprice.Value));
- }
- else {
+ if ((Original_pumscale == null)) {
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value;
}
- if ((Original_pumpriceD.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[74].Value = ((decimal)(Original_pumpriceD.Value));
- }
else {
+ this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[72].Value = ((string)(Original_pumscale));
+ }
+ if ((Original_pumunit == null)) {
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value;
}
- if ((Original_pumamt.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_pumunit));
+ }
+ if ((Original_pumqty.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[76].Value = ((decimal)(Original_pumamt.Value));
+ this.Adapter.UpdateCommand.Parameters[76].Value = ((int)(Original_pumqty.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value;
}
- if ((Original_supply == null)) {
+ if ((Original_pumqtyReq.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[78].Value = ((int)(Original_pumqtyReq.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_supply));
- }
- if ((Original_supplyidx.HasValue == true)) {
+ if ((Original_pumprice.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[80].Value = ((int)(Original_supplyidx.Value));
+ this.Adapter.UpdateCommand.Parameters[80].Value = ((decimal)(Original_pumprice.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value;
}
- if ((Original_projectidx.HasValue == true)) {
+ if ((Original_pumpriceD.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[82].Value = ((int)(Original_projectidx.Value));
+ this.Adapter.UpdateCommand.Parameters[82].Value = ((decimal)(Original_pumpriceD.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value;
}
- if ((Original_asset == null)) {
+ if ((Original_pumamt.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[84].Value = ((decimal)(Original_pumamt.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_asset));
- }
- if ((Original_manuproc == null)) {
+ if ((Original_supply == null)) {
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_manuproc));
+ this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_supply));
}
- if ((Original_edate == null)) {
+ if ((Original_supplyidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[88].Value = ((int)(Original_supplyidx.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_edate));
+ if ((Original_projectidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[90].Value = ((int)(Original_projectidx.Value));
}
- if ((Original_indate == null)) {
+ else {
this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_indate));
- }
- if ((Original_po == null)) {
+ if ((Original_asset == null)) {
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_po));
+ this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_asset));
}
- if ((Original_dept == null)) {
+ if ((Original_manuproc == null)) {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_dept));
+ this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_manuproc));
}
- if ((Original_bigo == null)) {
+ if ((Original_edate == null)) {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_bigo));
+ this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_edate));
}
- if ((Original_import.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[98].Value = ((bool)(Original_import.Value));
- }
- else {
+ if ((Original_indate == null)) {
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value;
}
- if ((Original_isdel.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[100].Value = ((bool)(Original_isdel.Value));
- }
else {
+ this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_indate));
+ }
+ if ((Original_po == null)) {
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value;
}
- if ((Original_orderno == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_po));
+ }
+ if ((Original_dept == null)) {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_orderno));
+ this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_dept));
}
- if ((Original_place == null)) {
+ if ((Original_bigo == null)) {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_place));
+ this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_bigo));
}
- if ((Original_wuid == null)) {
- throw new global::System.ArgumentNullException("Original_wuid");
+ if ((Original_import.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[106].Value = ((bool)(Original_import.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[106].Value = ((System.DateTime)(Original_wdate));
- if ((Original_inqty.HasValue == true)) {
+ if ((Original_isdel.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[108].Value = ((int)(Original_inqty.Value));
+ this.Adapter.UpdateCommand.Parameters[108].Value = ((bool)(Original_isdel.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value;
}
- if ((Original_inremark == null)) {
+ if ((Original_orderno == null)) {
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_inremark));
+ this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_orderno));
}
- if ((Original_winuid == null)) {
+ if ((Original_place == null)) {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_winuid));
+ this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_place));
}
- if ((Original_windate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[114].Value = ((System.DateTime)(Original_windate.Value));
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_wuid));
}
- if ((Original_chk1.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[114].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_inqty.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[116].Value = ((bool)(Original_chk1.Value));
+ this.Adapter.UpdateCommand.Parameters[116].Value = ((int)(Original_inqty.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value;
}
- if ((Original_chk2.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[118].Value = ((bool)(Original_chk2.Value));
- }
- else {
+ if ((Original_inremark == null)) {
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value;
}
- if ((Original_chkremark == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[118].Value = ((string)(Original_inremark));
+ }
+ if ((Original_winuid == null)) {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_chkremark));
+ this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_winuid));
}
- if ((Original_costcenter == null)) {
+ if ((Original_windate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[122].Value = ((System.DateTime)(Original_windate.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_costcenter));
+ if ((Original_chk1.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[124].Value = ((bool)(Original_chk1.Value));
}
- if ((Original_linecode == null)) {
+ else {
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_linecode));
+ if ((Original_chk2.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[126].Value = ((bool)(Original_chk2.Value));
}
- this.Adapter.UpdateCommand.Parameters[125].Value = ((int)(idx));
+ else {
+ this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value;
+ }
+ if ((Original_chkremark == null)) {
+ this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_chkremark));
+ }
+ if ((Original_costcenter == null)) {
+ this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_costcenter));
+ }
+ if ((Original_linecode == null)) {
+ this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_linecode));
+ }
+ if ((Original_purchase_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[134].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_purchase_manager));
+ }
+ if ((Original_purchase_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[136].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[136].Value = ((string)(Original_purchase_admin));
+ }
+ if ((Original_currency == null)) {
+ this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[138].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[138].Value = ((string)(Original_currency));
+ }
+ if ((Original_bigo_admin == null)) {
+ this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[140].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[140].Value = ((string)(Original_bigo_admin));
+ }
+ if ((Original_bigo_manager == null)) {
+ this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[142].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[142].Value = ((string)(Original_bigo_manager));
+ }
+ if ((Original_conf_status == null)) {
+ this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[144].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[144].Value = ((string)(Original_conf_status));
+ }
+ if ((Original_conf_request == null)) {
+ this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[146].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[146].Value = ((string)(Original_conf_request));
+ }
+ if ((Original_conf_reponse == null)) {
+ this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[148].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[148].Value = ((string)(Original_conf_reponse));
+ }
+ this.Adapter.UpdateCommand.Parameters[149].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -8750,6 +10362,14 @@ FROM EETGW_PurchaseCR WITH (nolock)";
string chkremark,
string costcenter,
string linecode,
+ string purchase_manager,
+ string purchase_admin,
+ string currency,
+ string bigo_admin,
+ string bigo_manager,
+ string conf_status,
+ string conf_request,
+ string conf_reponse,
int Original_idx,
string Original_gcode,
string Original_pdate,
@@ -8792,8 +10412,16 @@ FROM EETGW_PurchaseCR WITH (nolock)";
global::System.Nullable Original_chk2,
string Original_chkremark,
string Original_costcenter,
- string Original_linecode) {
- return this.Update(gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, Original_idx, Original_gcode, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumidx, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumqtyReq, Original_pumprice, Original_pumpriceD, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_manuproc, Original_edate, Original_indate, Original_po, Original_dept, Original_bigo, Original_import, Original_isdel, Original_orderno, Original_place, Original_wuid, Original_wdate, Original_inqty, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_chkremark, Original_costcenter, Original_linecode, Original_idx);
+ string Original_linecode,
+ string Original_purchase_manager,
+ string Original_purchase_admin,
+ string Original_currency,
+ string Original_bigo_admin,
+ string Original_bigo_manager,
+ string Original_conf_status,
+ string Original_conf_request,
+ string Original_conf_reponse) {
+ return this.Update(gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, Original_idx, Original_gcode, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumidx, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumqtyReq, Original_pumprice, Original_pumpriceD, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_manuproc, Original_edate, Original_indate, Original_po, Original_dept, Original_bigo, Original_import, Original_isdel, Original_orderno, Original_place, Original_wuid, Original_wdate, Original_inqty, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_chkremark, Original_costcenter, Original_linecode, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_bigo_admin, Original_bigo_manager, Original_conf_status, Original_conf_request, Original_conf_reponse, Original_idx);
}
}
diff --git a/SubProject/FPJ0000/dsPurchase.xsd b/SubProject/FPJ0000/dsPurchase.xsd
index f85eb8e..e283adf 100644
--- a/SubProject/FPJ0000/dsPurchase.xsd
+++ b/SubProject/FPJ0000/dsPurchase.xsd
@@ -12,7 +12,7 @@
- DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)))
+ DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND ((@IsNull_spmqty = 1 AND [spmqty] IS NULL) OR ([spmqty] = @Original_spmqty)))
@@ -96,13 +96,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- INSERT INTO [Purchase] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode);
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM Purchase WHERE (idx = SCOPE_IDENTITY())
+ INSERT INTO [Purchase] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode], [purchase_manager], [purchase_admin], [currency], [prdate], [bigo_admin], [bigo_manager], [conf_status], [conf_request], [conf_reponse], [spmqty]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode, @purchase_manager, @purchase_admin, @currency, @prdate, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse, @spmqty);
+SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, spmqty FROM Purchase WITH (nolock) WHERE (idx = SCOPE_IDENTITY())
@@ -147,21 +167,32 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
+
+
SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx,
- asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode
+ asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager,
+ purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, spmqty
FROM Purchase WITH (nolock)
- UPDATE [Purchase] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumidx] = @pumidx, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumqtyReq] = @pumqtyReq, [pumprice] = @pumprice, [pumpriceD] = @pumpriceD, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [manuproc] = @manuproc, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [bigo] = @bigo, [import] = @import, [isdel] = @isdel, [orderno] = @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] = @inqty, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter, [linecode] = @linecode WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)));
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM Purchase WHERE (idx = @idx)
+ UPDATE [Purchase] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumidx] = @pumidx, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumqtyReq] = @pumqtyReq, [pumprice] = @pumprice, [pumpriceD] = @pumpriceD, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [manuproc] = @manuproc, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [bigo] = @bigo, [import] = @import, [isdel] = @isdel, [orderno] = @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] = @inqty, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter, [linecode] = @linecode, [purchase_manager] = @purchase_manager, [purchase_admin] = @purchase_admin, [currency] = @currency, [prdate] = @prdate, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_request, [conf_reponse] = @conf_reponse, [spmqty] = @spmqty WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND ((@IsNull_spmqty = 1 AND [spmqty] IS NULL) OR ([spmqty] = @Original_spmqty)));
+SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, spmqty FROM Purchase WITH (nolock) WHERE (idx = @idx)
@@ -206,6 +237,16 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
+
+
@@ -288,7 +329,27 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -339,6 +400,16 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
+
+
@@ -347,7 +418,7 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
- DELETE FROM [EETGW_PurchaseCR] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)))
+ DELETE FROM [EETGW_PurchaseCR] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)))
@@ -431,13 +502,29 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- INSERT INTO [EETGW_PurchaseCR] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode);
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY())
+ INSERT INTO [EETGW_PurchaseCR] ([gcode], [pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumidx], [pumscale], [pumunit], [pumqty], [pumqtyReq], [pumprice], [pumpriceD], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [manuproc], [edate], [indate], [po], [dept], [bigo], [import], [isdel], [orderno], [place], [wuid], [wdate], [inqty], [inremark], [winuid], [windate], [chk1], [chk2], [chkremark], [costcenter], [linecode], [purchase_manager], [purchase_admin], [currency], [bigo_admin], [bigo_manager], [conf_status], [conf_request], [conf_reponse]) VALUES (@gcode, @pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumidx, @pumscale, @pumunit, @pumqty, @pumqtyReq, @pumprice, @pumpriceD, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @manuproc, @edate, @indate, @po, @dept, @bigo, @import, @isdel, @orderno, @place, @wuid, @wdate, @inqty, @inremark, @winuid, @windate, @chk1, @chk2, @chkremark, @costcenter, @linecode, @purchase_manager, @purchase_admin, @currency, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse);
+SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR WITH (nolock) WHERE (idx = SCOPE_IDENTITY())
@@ -482,21 +569,30 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx,
- asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode
+ asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager,
+ purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse
FROM EETGW_PurchaseCR WITH (nolock)
- UPDATE [EETGW_PurchaseCR] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumidx] = @pumidx, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumqtyReq] = @pumqtyReq, [pumprice] = @pumprice, [pumpriceD] = @pumpriceD, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [manuproc] = @manuproc, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [bigo] = @bigo, [import] = @import, [isdel] = @isdel, [orderno] = @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] = @inqty, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter, [linecode] = @linecode WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)));
-SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = @idx)
+ UPDATE [EETGW_PurchaseCR] SET [gcode] = @gcode, [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumidx] = @pumidx, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumqtyReq] = @pumqtyReq, [pumprice] = @pumprice, [pumpriceD] = @pumpriceD, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [manuproc] = @manuproc, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [bigo] = @bigo, [import] = @import, [isdel] = @isdel, [orderno] = @orderno, [place] = @place, [wuid] = @wuid, [wdate] = @wdate, [inqty] = @inqty, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [chkremark] = @chkremark, [costcenter] = @costcenter, [linecode] = @linecode, [purchase_manager] = @purchase_manager, [purchase_admin] = @purchase_admin, [currency] = @currency, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_request, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)));
+SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pumidx, pumscale, pumunit, pumqty, pumqtyReq, pumprice, pumpriceD, pumamt, supply, supplyidx, project, projectidx, asset, manuproc, edate, indate, po, dept, bigo, import, isdel, orderno, place, wuid, wdate, inqty, inremark, winuid, windate, chk1, chk2, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR WITH (nolock) WHERE (idx = @idx)
@@ -541,6 +637,14 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
@@ -623,7 +727,23 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -674,6 +794,14 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
+
+
+
+
+
+
+
+
@@ -685,439 +813,559 @@ SELECT idx, gcode, pdate, state, process, receive, sc, request, sid, pumname, pu
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
+
-
-
-
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+