From 38bc5bf07e37a0522cd8697c5e4785ef492e0642 Mon Sep 17 00:00:00 2001 From: chi Date: Mon, 20 Nov 2023 08:31:49 +0900 Subject: [PATCH] .. --- Project/Properties/AssemblyInfo.cs | 4 +- Project/fMain.Designer.cs | 24 +- Project/fMain.resx | 8 +- SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs | 11 +- .../PurchaseEB/fPurchaseEB.Designer.cs | 249 ++++--- SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs | 9 +- .../FEQ0000/PurchaseEB/fPurchaseEB.resx | 32 +- .../PurchaseNR/fPurchaseNR.Designer.cs | 693 +++++++++--------- SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs | 9 +- .../PurchaseNR/fPurchase_Add.Designer.cs | 30 +- .../FEQ0000/PurchaseNR/fPurchase_Add.cs | 30 + SubProject/FEQ0000/dsPurchase.Designer.cs | 599 ++++++++------- SubProject/FEQ0000/dsPurchase.xsd | 32 +- .../FPJ0000/JobReport_/rJobReportPrj.cs | 6 +- .../JobReport_/rJobReportType.Designer.cs | 111 +-- .../FPJ0000/JobReport_/rJobReportType.cs | 12 +- .../FPJ0000/JobReport_/rJobReportType.resx | 3 - 17 files changed, 1023 insertions(+), 839 deletions(-) diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index af69ce4..abeacca 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("23.11.09.0850")] -[assembly: AssemblyFileVersion("23.11.09.0850")] +[assembly: AssemblyVersion("23.11.20.0830")] +[assembly: AssemblyFileVersion("23.11.20.0830")] diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 5e4f0f7..adb954b 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -407,7 +407,7 @@ // 일반구매ToolStripMenuItem // this.일반구매ToolStripMenuItem.Name = "일반구매ToolStripMenuItem"; - this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); this.일반구매ToolStripMenuItem.Text = "일반 구매"; this.일반구매ToolStripMenuItem.Click += new System.EventHandler(this.일반구매ToolStripMenuItem_Click); // @@ -415,7 +415,7 @@ // this.cR구매ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.cR구매ToolStripMenuItem.Name = "cR구매ToolStripMenuItem"; - this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); this.cR구매ToolStripMenuItem.Text = "CR 구매"; this.cR구매ToolStripMenuItem.Click += new System.EventHandler(this.cR구매ToolStripMenuItem_Click); // @@ -423,19 +423,19 @@ // this.sPR구매ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.sPR구매ToolStripMenuItem.Name = "sPR구매ToolStripMenuItem"; - this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); this.sPR구매ToolStripMenuItem.Text = "전자실 구매"; this.sPR구매ToolStripMenuItem.Click += new System.EventHandler(this.sPR구매ToolStripMenuItem_Click); // // toolStripMenuItem14 // this.toolStripMenuItem14.Name = "toolStripMenuItem14"; - this.toolStripMenuItem14.Size = new System.Drawing.Size(177, 6); + this.toolStripMenuItem14.Size = new System.Drawing.Size(150, 6); // // 품목입고ToolStripMenuItem // this.품목입고ToolStripMenuItem.Name = "품목입고ToolStripMenuItem"; - this.품목입고ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.품목입고ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); this.품목입고ToolStripMenuItem.Text = "품목 입고"; this.품목입고ToolStripMenuItem.Click += new System.EventHandler(this.품목입고ToolStripMenuItem_Click); // @@ -1134,8 +1134,10 @@ // // toolStrip1 // + this.toolStrip1.AutoSize = false; this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Right; this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem8, this.toolStripMenuItem7, @@ -1154,7 +1156,7 @@ this.toolStripMenuItem8.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripMenuItem8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem8.Image"))); this.toolStripMenuItem8.Name = "toolStripMenuItem8"; - this.toolStripMenuItem8.Size = new System.Drawing.Size(26, 20); + this.toolStripMenuItem8.Size = new System.Drawing.Size(27, 28); this.toolStripMenuItem8.Text = "업무일지"; this.toolStripMenuItem8.ToolTipText = "업무일지"; this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click); @@ -1164,7 +1166,7 @@ this.toolStripMenuItem7.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripMenuItem7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem7.Image"))); this.toolStripMenuItem7.Name = "toolStripMenuItem7"; - this.toolStripMenuItem7.Size = new System.Drawing.Size(26, 20); + this.toolStripMenuItem7.Size = new System.Drawing.Size(27, 28); this.toolStripMenuItem7.Text = "구매신청"; this.toolStripMenuItem7.ToolTipText = "구매신청"; this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click); @@ -1174,7 +1176,7 @@ this.toolStripMenuItem6.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripMenuItem6.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem6.Image"))); this.toolStripMenuItem6.Name = "toolStripMenuItem6"; - this.toolStripMenuItem6.Size = new System.Drawing.Size(26, 20); + this.toolStripMenuItem6.Size = new System.Drawing.Size(27, 28); this.toolStripMenuItem6.Text = "프로젝트"; this.toolStripMenuItem6.ToolTipText = "프로젝트"; this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItem6_Click); @@ -1186,7 +1188,7 @@ this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(26, 20); + this.toolStripButton1.Size = new System.Drawing.Size(27, 28); this.toolStripButton1.Text = "구매진행상황"; this.toolStripButton1.ToolTipText = "구매진행상황"; this.toolStripButton1.Visible = false; @@ -1198,7 +1200,7 @@ 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(26, 20); + this.toolStripButton2.Size = new System.Drawing.Size(27, 28); this.toolStripButton2.Text = "품목정보"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); // @@ -1208,7 +1210,7 @@ this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image"))); this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton3.Name = "toolStripButton3"; - this.toolStripButton3.Size = new System.Drawing.Size(26, 20); + this.toolStripButton3.Size = new System.Drawing.Size(27, 28); this.toolStripButton3.Text = "toolStripButton3"; this.toolStripButton3.ToolTipText = "휴가신청"; this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); diff --git a/Project/fMain.resx b/Project/fMain.resx index 3b025bb..fad80dc 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -452,14 +452,14 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPY4CDmcasDEu1MxmW6ixgWKbTwrBYVx0svkqL h2GZViHDMu15QPFWhmXqUmBxDLBUZzVQwX84Xqzzg2GJpifDMs3rKOJLtZ4ADZWA6oKCpVo2IEmBtZb/ - /U7m/E+5XP8/92TF/3lzYj/UzMj/l3q54X/kubL/qtu8oIZo90F1QsEynQn8a8yPJV+p/1Z8q+d/yc2e - /4dm5vx/1Jn2/+qkzJ8gMRg22R16gmGJzjWoTihYqitYfKu7Dqao41D9/+ulEf/3tzr8vV7o9blnWyHc + /U7m/E+5XP8/92TF/3lzYj/UTM//l3q54X/kubL/qtu8oIZo90F1QsEynQn8a8yPJV+p/1Z8q+d/yc2e + /4dm5vx/1Jn2/+qkzJ8gMRg22R16gmGJzjWoTihYqitYfKu7Dqao41D9/+ulEf/3t9r/vV7o9blnWyHc gOJbXRdA6qE6EaD4ZvdcmKLKSx3LzheGHLyc7PbtYpDa/20VTnuLL3Z8BMkV3Ox5B9WCCmAuKLrZUwLi v2iNEH9c5vn/SobWnyfZNmqFN3v1gbZ/LrrVcx6sAR0U3+kxLr7RdRzKZXhc7On5qNTjPxiXeHmAxICu LAVa1AJWgA0U3+kWgzIZnlR4ZcEMeFLpnQkSq79fz5F7ayIfWAEh8KjCs+9Judd/EH5c7tULFSYeAP2/ Ee6FUo8NUGHiwP/99RwvuqJOv+mJ+w/CLzsjT4HEoNLYwb8D/Zp/D/T2/T/Qe+b+gd7fQPo/MoaKnQGr - 2d+jAdUG1LhtIjtQcP6dufX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz - BQCiCqq1gzZLfQAAAABJRU5ErkJggg== + 2d+jAdUG1LhtIjtQcP7tOfX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz + BQCZI6qvo9QpIQAAAABJRU5ErkJggg== diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs index df2285a..a29970d 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs @@ -529,6 +529,8 @@ namespace FEQ0000 } + + bool deletewarn = true; void func_delete() { var drv = bs.Current as DataRowView; @@ -561,8 +563,13 @@ namespace FEQ0000 } else { - var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?\n저장 버튼을 눌러야 최종 삭제 됩니다"); - if (dlg != System.Windows.Forms.DialogResult.Yes) return; + if(deletewarn==true) + { + var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?\n저장 버튼을 눌러야 최종 삭제 됩니다\n이 메제지는 처음 한번만 표시 됩니다"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + deletewarn = false; + } + } bs.RemoveCurrent(); diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs index 46a8daa..b232d89 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs @@ -30,34 +30,34 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB)); - FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType16 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType17 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType18 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); @@ -133,9 +133,9 @@ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.btViewDel = new System.Windows.Forms.ToolStripButton(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -410,14 +410,14 @@ // 집계표ToolStripMenuItem // this.집계표ToolStripMenuItem.Name = "집계표ToolStripMenuItem"; - this.집계표ToolStripMenuItem.Size = new System.Drawing.Size(150, 22); + this.집계표ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.집계표ToolStripMenuItem.Text = "집계표"; this.집계표ToolStripMenuItem.Click += new System.EventHandler(this.집계표ToolStripMenuItem_Click); // // 구매승인양식ToolStripMenuItem // this.구매승인양식ToolStripMenuItem.Name = "구매승인양식ToolStripMenuItem"; - this.구매승인양식ToolStripMenuItem.Size = new System.Drawing.Size(150, 22); + this.구매승인양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.구매승인양식ToolStripMenuItem.Text = "구매승인 양식"; this.구매승인양식ToolStripMenuItem.Click += new System.EventHandler(this.구매승인양식ToolStripMenuItem_Click); // @@ -435,7 +435,6 @@ // // 입고품목메일전송ToolStripMenuItem // - this.입고품목메일전송ToolStripMenuItem.Enabled = false; this.입고품목메일전송ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image"))); this.입고품목메일전송ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem"; this.입고품목메일전송ToolStripMenuItem.Size = new System.Drawing.Size(182, 22); @@ -802,30 +801,6 @@ this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff); this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick); // - // label1 - // - this.label1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.label1.Location = new System.Drawing.Point(0, 644); - this.label1.Name = "label1"; - this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); - this.label1.Size = new System.Drawing.Size(1334, 23); - this.label1.TabIndex = 6; - this.label1.Text = "--"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label2 - // - this.label2.Dock = System.Windows.Forms.DockStyle.Bottom; - this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.label2.Location = new System.Drawing.Point(0, 621); - this.label2.Name = "label2"; - this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); - this.label2.Size = new System.Drawing.Size(1334, 23); - this.label2.TabIndex = 7; - this.label2.Text = "--"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // fpSpread1_Sheet1 // this.fpSpread1_Sheet1.Reset(); @@ -867,7 +842,7 @@ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).Label = "구매신청일"; @@ -876,7 +851,7 @@ this.fpSpread1_Sheet1.Columns.Get(0).Width = 82F; this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType20; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state"; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태"; @@ -884,20 +859,20 @@ this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).Width = 116F; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType21; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소"; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType22; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "requestName"; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(3).Label = "요청"; this.fpSpread1_Sheet1.Columns.Get(3).Tag = "requestName"; this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType23; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "sc"; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).Label = "SC#"; @@ -905,7 +880,7 @@ this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType24; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "orderno"; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).Label = "SCR/CF"; @@ -913,178 +888,178 @@ this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).Visible = false; this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType25; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receiveName"; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(6).Label = "수령"; this.fpSpread1_Sheet1.Columns.Get(6).Tag = "receiveName"; this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).Label = "SID#"; this.fpSpread1_Sheet1.Columns.Get(7).Tag = "sid"; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType27; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "pumname"; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(8).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(8).Tag = "pumname"; this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(9).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType10.DecimalPlaces = 0; - numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType10.MaximumValue = 2147483647D; - numberCellType10.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType10; + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType1; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumidx"; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType28; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(10).Label = "규격"; this.fpSpread1_Sheet1.Columns.Get(10).Tag = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F; - numberCellType11.DecimalPlaces = 0; - numberCellType11.NegativeRed = true; - numberCellType11.NullDisplay = "--"; - numberCellType11.Separator = ","; - numberCellType11.ShowSeparator = true; - numberCellType11.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType11; + numberCellType2.DecimalPlaces = 0; + numberCellType2.NegativeRed = true; + numberCellType2.NullDisplay = "--"; + numberCellType2.Separator = ","; + numberCellType2.ShowSeparator = true; + numberCellType2.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType2; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumqtyReq"; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).Label = "수량\r\n(요청)"; this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F; - numberCellType12.DecimalPlaces = 0; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType12; + numberCellType3.DecimalPlaces = 0; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Label = "수량\r\n(구매)"; this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Width = 55F; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType29; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumunit"; this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).Label = "단위"; this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F; - numberCellType13.DecimalPlaces = 2; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType13; + numberCellType4.DecimalPlaces = 2; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType4; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumpriceD"; this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(14).Label = "단가\r\n(해외)"; this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType30; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(15).DataField = "currency"; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).Label = "통화"; this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F; - numberCellType14.DecimalPlaces = 0; - numberCellType14.MaximumValue = 9999999999999.99D; - numberCellType14.MinimumValue = -9999999999999.99D; - numberCellType14.NegativeRed = true; - numberCellType14.NullDisplay = "--"; - numberCellType14.Separator = ","; - numberCellType14.ShowSeparator = true; - numberCellType14.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType14; + numberCellType5.DecimalPlaces = 0; + numberCellType5.MaximumValue = 9999999999999.99D; + numberCellType5.MinimumValue = -9999999999999.99D; + numberCellType5.NegativeRed = true; + numberCellType5.NullDisplay = "--"; + numberCellType5.Separator = ","; + numberCellType5.ShowSeparator = true; + numberCellType5.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가"; this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F; - numberCellType15.DecimalPlaces = 0; - numberCellType15.MaximumValue = 9999999999999.99D; - numberCellType15.MinimumValue = -9999999999999.99D; - numberCellType15.NegativeRed = true; - numberCellType15.NullDisplay = "--"; - numberCellType15.Separator = ","; - numberCellType15.ShowSeparator = true; - numberCellType15.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType15; + numberCellType6.DecimalPlaces = 0; + numberCellType6.MaximumValue = 9999999999999.99D; + numberCellType6.MinimumValue = -9999999999999.99D; + numberCellType6.NegativeRed = true; + numberCellType6.NullDisplay = "--"; + numberCellType6.Separator = ","; + numberCellType6.ShowSeparator = true; + numberCellType6.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType6; this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumamt"; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(17).Label = "합계금액"; this.fpSpread1_Sheet1.Columns.Get(17).Tag = "pumamt"; this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(18).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType31; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13; this.fpSpread1_Sheet1.Columns.Get(18).DataField = "supply"; this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(18).Label = "공급업체"; this.fpSpread1_Sheet1.Columns.Get(18).Tag = "supply"; this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType16.DecimalPlaces = 0; - numberCellType16.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType16.MaximumValue = 2147483647D; - numberCellType16.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType16; + numberCellType7.DecimalPlaces = 0; + numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType7.MaximumValue = 2147483647D; + numberCellType7.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType7; this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supplyidx"; this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(19).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(19).Visible = false; this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType17.DecimalPlaces = 0; - numberCellType17.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType17.MaximumValue = 2147483647D; - numberCellType17.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType17; + numberCellType8.DecimalPlaces = 0; + numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType8.MaximumValue = 2147483647D; + numberCellType8.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType8; this.fpSpread1_Sheet1.Columns.Get(20).DataField = "projectidx"; this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(20).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(20).Tag = "projectidx"; this.fpSpread1_Sheet1.Columns.Get(20).Visible = false; this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F; - textCellType32.WordWrap = true; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType32; + textCellType14.WordWrap = true; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType14; this.fpSpread1_Sheet1.Columns.Get(21).DataField = "bigo"; this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(21).Label = "비고(구매사유)\r\n(요청자)"; this.fpSpread1_Sheet1.Columns.Get(21).Tag = "bigo"; this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(21).Width = 96F; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType33; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15; this.fpSpread1_Sheet1.Columns.Get(22).DataField = "edate"; this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(22).Label = "입고예정"; this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType34; + this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16; this.fpSpread1_Sheet1.Columns.Get(23).DataField = "indate"; this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고일"; this.fpSpread1_Sheet1.Columns.Get(23).Tag = "indate"; this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F; - numberCellType18.DecimalPlaces = 0; - numberCellType18.NegativeRed = true; - numberCellType18.ShowSeparator = true; - this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType18; + numberCellType9.DecimalPlaces = 0; + numberCellType9.NegativeRed = true; + numberCellType9.ShowSeparator = true; + this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType9; this.fpSpread1_Sheet1.Columns.Get(24).DataField = "inqty"; this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고수량"; this.fpSpread1_Sheet1.Columns.Get(24).Tag = "inqty"; this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(24).Width = 75F; - this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType35; + this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType17; this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po"; this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#"; this.fpSpread1_Sheet1.Columns.Get(25).Tag = "po"; this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F; - textCellType36.WordWrap = true; - this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType36; + textCellType18.WordWrap = true; + this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType18; this.fpSpread1_Sheet1.Columns.Get(26).DataField = "chkremark"; this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고\r\n(담당자)"; this.fpSpread1_Sheet1.Columns.Get(26).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType2; + this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1; this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel"; this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨"; this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel"; @@ -1095,6 +1070,30 @@ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label1.Location = new System.Drawing.Point(0, 644); + this.label1.Name = "label1"; + this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.label1.Size = new System.Drawing.Size(1334, 23); + this.label1.TabIndex = 6; + this.label1.Text = "--"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label2.Location = new System.Drawing.Point(0, 621); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.label2.Size = new System.Drawing.Size(1334, 23); + this.label2.TabIndex = 7; + this.label2.Text = "--"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // fPurchaseEB // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs index 78ba7a8..b4d71bb 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs @@ -1007,16 +1007,17 @@ namespace FEQ0000 private void 입고품목메일전송ToolStripMenuItem_Click(object sender, EventArgs e) { - + var cate = "PF"; + var db = new DataClasses1DataContext(); - var dr = db.MailForm.Where(t => t.cate == "PC").FirstOrDefault(); + var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault(); //현재표시데이터중에 수신자목록을 가져온다 var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort)); var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList(); var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList(); - var f = new Purchase.fMailForm("PC"); + var f = new Purchase.fMailForm(cate); if (f.ShowDialog() != DialogResult.OK) return; var form_subject = f.tbSubject.Text.Trim(); @@ -1069,7 +1070,7 @@ namespace FEQ0000 newMail.BCC = string.Join(";", bcclist.ToArray()); if (f.chkAttach.Checked) { - var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); if (fi.Directory.Exists == false) fi.Directory.Create(); ///save file diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx index 4e6a8c4..a85a504 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx @@ -127,7 +127,7 @@ 195, 17 - 667, 17 + 515, 17 268, 17 @@ -279,20 +279,6 @@ pPXwne/C6mdp8McSRFzeZapS+wjkJRfymh5gT64ekcwWTlD+lz9zOBxaIMAzsgE+rQreDgWeJiTBEx1L fJLTRwnaZpAqNGFnisLBYJ7+IqS9SSApOf15fKLDx82HW1QOL7EXnohoYlemmopJazfvSJFLGSwyPLT+ brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX - EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl - 7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR - BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT - Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz - tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV - iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i - DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA - AAAASUVORK5CYII= @@ -332,6 +318,20 @@ oQIAAAJCCriYcSOGDCgzBAiQYSTGDQM4AjBAEwGCCRRIftypoKcDBwcS5MQIYIBRBQ0aPCBAwIKDoR4A cFiZdKmFAgUOQAWwIKnSpgUkSOgA1UCCqmAlVKgAoWyCBQsSOLhwoAMECBfK2tw7oa9fqBYDL2yIMCAA Ow== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX + EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl + 7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR + BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT + Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz + tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV + iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i + DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA + AAAASUVORK5CYII= @@ -412,7 +412,7 @@ - 729, 17 + 577, 17 65 diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs index 071bd97..fb51f50 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs @@ -44,27 +44,28 @@ FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); @@ -146,9 +147,9 @@ this.btViewDel = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -852,340 +853,6 @@ this.fpSpread1.StatusBarVisible = true; this.fpSpread1.TabIndex = 4; this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff); - this.fpSpread1.SetViewportLeftColumn(0, 0, 9); - // - // fpSpread1_Sheet1 - // - this.fpSpread1_Sheet1.Reset(); - this.fpSpread1_Sheet1.SheetName = "Sheet1"; - // Formulas and custom names must be loaded with R1C1 reference style - this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; - this.fpSpread1_Sheet1.ColumnCount = 38; - this.fpSpread1_Sheet1.ActiveColumnIndex = -1; - this.fpSpread1_Sheet1.ActiveRowIndex = -1; - this.fpSpread1_Sheet1.AutoGenerateColumns = false; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "요청\r\n검사"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "구매\r\n검사"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "구매신청일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "상태"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "보관소"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "공정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "요청"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "Cost Center"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "LineCode"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "SC#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "SCR/CF"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "수령"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "SID#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "품명"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "규격"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "장비\r\n제조사"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "제조\r\n공정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "장비\r\n모델"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "수량\r\n(요청)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "수량\r\n(구매)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "단위"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단가\r\n(해외)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "통화"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "단가"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "합계금액"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "공급업체"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "프로젝트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "비고(구매사유)\r\n(요청자)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "입고예정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "입고일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "입고수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 34).Value = "PO#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "비고\r\n(담당자)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "구매담당"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "삭제됨"; - this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1; - this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1"; - this.fpSpread1_Sheet1.Columns.Get(0).Label = "요청\r\n검사"; - this.fpSpread1_Sheet1.Columns.Get(0).Width = 31F; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2; - this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2"; - this.fpSpread1_Sheet1.Columns.Get(1).Label = "구매\r\n검사"; - this.fpSpread1_Sheet1.Columns.Get(1).Width = 35F; - this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1; - this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate"; - this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(2).Label = "구매신청일"; - this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate"; - this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2; - this.fpSpread1_Sheet1.Columns.Get(3).DataField = "state"; - this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(3).Label = "상태"; - this.fpSpread1_Sheet1.Columns.Get(3).Tag = "state"; - this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(3).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3; - this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place"; - this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).Label = "보관소"; - this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4; - this.fpSpread1_Sheet1.Columns.Get(5).DataField = "process"; - this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(5).Label = "공정"; - this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5; - this.fpSpread1_Sheet1.Columns.Get(6).DataField = "requestName"; - this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(6).Label = "요청"; - this.fpSpread1_Sheet1.Columns.Get(6).Tag = "requestName"; - this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6; - this.fpSpread1_Sheet1.Columns.Get(7).DataField = "costcenter"; - this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Label = "Cost Center"; - this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7; - this.fpSpread1_Sheet1.Columns.Get(8).DataField = "linecode"; - this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).Label = "LineCode"; - this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8; - this.fpSpread1_Sheet1.Columns.Get(9).DataField = "sc"; - this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Label = "SC#"; - this.fpSpread1_Sheet1.Columns.Get(9).Tag = "sc"; - this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(10).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9; - this.fpSpread1_Sheet1.Columns.Get(10).DataField = "orderno"; - this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Label = "SCR/CF"; - this.fpSpread1_Sheet1.Columns.Get(10).Tag = "crcf"; - this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Visible = false; - this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10; - this.fpSpread1_Sheet1.Columns.Get(11).DataField = "receiveName"; - this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(11).Label = "수령"; - this.fpSpread1_Sheet1.Columns.Get(11).Tag = "receiveName"; - this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(12).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; - this.fpSpread1_Sheet1.Columns.Get(12).DataField = "sid"; - this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Label = "SID#"; - this.fpSpread1_Sheet1.Columns.Get(12).Tag = "sid"; - this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; - this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumname"; - this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(13).Label = "품명"; - this.fpSpread1_Sheet1.Columns.Get(13).Tag = "pumname"; - this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(14).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType1.DecimalPlaces = 0; - numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType1.MaximumValue = 2147483647D; - numberCellType1.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType1; - this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumidx"; - this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType13; - this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumscale"; - this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(15).Label = "규격"; - this.fpSpread1_Sheet1.Columns.Get(15).Tag = "pumscale"; - this.fpSpread1_Sheet1.Columns.Get(15).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType14; - this.fpSpread1_Sheet1.Columns.Get(16).DataField = "dept"; - this.fpSpread1_Sheet1.Columns.Get(16).Label = "장비\r\n제조사"; - this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType14; - this.fpSpread1_Sheet1.Columns.Get(17).DataField = "manuproc"; - this.fpSpread1_Sheet1.Columns.Get(17).Label = "제조\r\n공정"; - this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType14; - this.fpSpread1_Sheet1.Columns.Get(18).DataField = "asset"; - this.fpSpread1_Sheet1.Columns.Get(18).Label = "장비\r\n모델"; - this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F; - numberCellType2.DecimalPlaces = 0; - numberCellType2.NegativeRed = true; - numberCellType2.NullDisplay = "--"; - numberCellType2.Separator = ","; - numberCellType2.ShowSeparator = true; - numberCellType2.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType2; - this.fpSpread1_Sheet1.Columns.Get(19).DataField = "pumqtyReq"; - this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Label = "수량\r\n(요청)"; - this.fpSpread1_Sheet1.Columns.Get(19).Tag = "pumqty"; - this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F; - numberCellType3.DecimalPlaces = 0; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "pumqty"; - this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Label = "수량\r\n(구매)"; - this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Width = 55F; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "pumunit"; - this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(21).Label = "단위"; - this.fpSpread1_Sheet1.Columns.Get(21).Width = 51F; - numberCellType4.DecimalPlaces = 2; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType4; - this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumpriceD"; - this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(22).Label = "단가\r\n(해외)"; - this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16; - this.fpSpread1_Sheet1.Columns.Get(23).DataField = "currency"; - this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(23).Label = "통화"; - this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F; - numberCellType5.DecimalPlaces = 0; - numberCellType5.MaximumValue = 9999999999999.99D; - numberCellType5.MinimumValue = -9999999999999.99D; - numberCellType5.NegativeRed = true; - numberCellType5.NullDisplay = "--"; - numberCellType5.Separator = ","; - numberCellType5.ShowSeparator = true; - numberCellType5.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType5; - this.fpSpread1_Sheet1.Columns.Get(24).DataField = "pumprice"; - this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(24).Label = "단가"; - this.fpSpread1_Sheet1.Columns.Get(24).Tag = "pumprice"; - this.fpSpread1_Sheet1.Columns.Get(24).Width = 51F; - numberCellType6.DecimalPlaces = 0; - numberCellType6.MaximumValue = 9999999999999.99D; - numberCellType6.MinimumValue = -9999999999999.99D; - numberCellType6.NegativeRed = true; - numberCellType6.NullDisplay = "--"; - numberCellType6.Separator = ","; - numberCellType6.ShowSeparator = true; - numberCellType6.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType6; - this.fpSpread1_Sheet1.Columns.Get(25).DataField = "pumamt"; - this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(25).Label = "합계금액"; - this.fpSpread1_Sheet1.Columns.Get(25).Tag = "pumamt"; - this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(26).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17; - this.fpSpread1_Sheet1.Columns.Get(26).DataField = "supply"; - this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(26).Label = "공급업체"; - this.fpSpread1_Sheet1.Columns.Get(26).Tag = "supply"; - this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(27).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType7.DecimalPlaces = 0; - numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType7.MaximumValue = 2147483647D; - numberCellType7.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(27).CellType = numberCellType7; - this.fpSpread1_Sheet1.Columns.Get(27).DataField = "supplyidx"; - this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(27).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(27).Visible = false; - this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(28).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(28).CellType = textCellType18; - this.fpSpread1_Sheet1.Columns.Get(28).DataField = "project"; - this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(28).Label = "프로젝트"; - this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType8.DecimalPlaces = 0; - numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType8.MaximumValue = 2147483647D; - numberCellType8.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType8; - this.fpSpread1_Sheet1.Columns.Get(29).DataField = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(29).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(29).Tag = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(29).Visible = false; - this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F; - textCellType19.WordWrap = true; - this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType19; - this.fpSpread1_Sheet1.Columns.Get(30).DataField = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(30).Label = "비고(구매사유)\r\n(요청자)"; - this.fpSpread1_Sheet1.Columns.Get(30).Tag = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(30).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(30).Width = 96F; - this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType20; - this.fpSpread1_Sheet1.Columns.Get(31).DataField = "edate"; - this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(31).Label = "입고예정"; - this.fpSpread1_Sheet1.Columns.Get(31).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType21; - this.fpSpread1_Sheet1.Columns.Get(32).DataField = "indate"; - this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고일"; - this.fpSpread1_Sheet1.Columns.Get(32).Tag = "indate"; - this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F; - numberCellType9.DecimalPlaces = 0; - numberCellType9.NegativeRed = true; - numberCellType9.ShowSeparator = true; - this.fpSpread1_Sheet1.Columns.Get(33).CellType = numberCellType9; - this.fpSpread1_Sheet1.Columns.Get(33).DataField = "inqty"; - this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(33).Label = "입고수량"; - this.fpSpread1_Sheet1.Columns.Get(33).Tag = "inqty"; - this.fpSpread1_Sheet1.Columns.Get(33).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(33).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(34).CellType = textCellType22; - this.fpSpread1_Sheet1.Columns.Get(34).DataField = "po"; - this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(34).Label = "PO#"; - this.fpSpread1_Sheet1.Columns.Get(34).Tag = "po"; - this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F; - textCellType23.WordWrap = true; - this.fpSpread1_Sheet1.Columns.Get(35).CellType = textCellType23; - this.fpSpread1_Sheet1.Columns.Get(35).DataField = "chkremark"; - this.fpSpread1_Sheet1.Columns.Get(35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(35).Label = "비고\r\n(담당자)"; - this.fpSpread1_Sheet1.Columns.Get(35).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(36).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType24; - this.fpSpread1_Sheet1.Columns.Get(36).DataField = "purchase_manager"; - this.fpSpread1_Sheet1.Columns.Get(36).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(36).Label = "구매담당"; - this.fpSpread1_Sheet1.Columns.Get(36).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(37).CellType = checkBoxCellType3; - this.fpSpread1_Sheet1.Columns.Get(37).DataField = "isdel"; - this.fpSpread1_Sheet1.Columns.Get(37).Label = "삭제됨"; - this.fpSpread1_Sheet1.Columns.Get(37).Tag = "isdel"; - this.fpSpread1_Sheet1.Columns.Get(37).Width = 51F; - this.fpSpread1_Sheet1.DataAutoCellTypes = false; - this.fpSpread1_Sheet1.DataAutoSizeColumns = false; - this.fpSpread1_Sheet1.DataSource = this.bs; - this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; - this.fpSpread1_Sheet1.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange; - this.fpSpread1_Sheet1.ShowEditingRowSelector = true; - this.fpSpread1_Sheet1.ShowRowSelector = true; - this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // // label1 // @@ -1211,6 +878,348 @@ this.label2.Text = "--"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // fpSpread1_Sheet1 + // + this.fpSpread1_Sheet1.Reset(); + this.fpSpread1_Sheet1.SheetName = "Sheet1"; + // Formulas and custom names must be loaded with R1C1 reference style + this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; + this.fpSpread1_Sheet1.ColumnCount = 39; + this.fpSpread1_Sheet1.ActiveColumnIndex = -1; + this.fpSpread1_Sheet1.ActiveRowIndex = -1; + this.fpSpread1_Sheet1.AutoGenerateColumns = false; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "요청\r\n검사"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "구매\r\n검사"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "구매신청"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "PR입력"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "상태"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "보관소"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "공정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "요청"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "Cost Center"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "LineCode"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "SC#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "SCR/CF"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "수령"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "SID#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "품명"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "규격"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "장비\r\n제조사"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "제조\r\n공정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "장비\r\n모델"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "수량\r\n(요청)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "수량\r\n(구매)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단위"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "단가\r\n(해외)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "통화"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "단가"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "합계금액"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "공급업체"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "프로젝트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "비고(구매사유)\r\n(요청자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "입고예정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "입고일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 34).Value = "입고수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "PO#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "비고\r\n(담당자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "구매담당"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 38).Value = "삭제됨"; + this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1; + this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1"; + this.fpSpread1_Sheet1.Columns.Get(0).Label = "요청\r\n검사"; + this.fpSpread1_Sheet1.Columns.Get(0).Width = 31F; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2; + this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2"; + this.fpSpread1_Sheet1.Columns.Get(1).Label = "구매\r\n검사"; + this.fpSpread1_Sheet1.Columns.Get(1).Width = 35F; + this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1; + this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate"; + this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(2).Label = "구매신청"; + this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate"; + this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(2).Width = 68F; + this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2; + this.fpSpread1_Sheet1.Columns.Get(3).DataField = "prdate"; + this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Label = "PR입력"; + this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Width = 76F; + this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3; + this.fpSpread1_Sheet1.Columns.Get(4).DataField = "state"; + this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(4).Label = "상태"; + this.fpSpread1_Sheet1.Columns.Get(4).Tag = "state"; + this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4; + this.fpSpread1_Sheet1.Columns.Get(5).DataField = "place"; + this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(5).Label = "보관소"; + this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5; + this.fpSpread1_Sheet1.Columns.Get(6).DataField = "process"; + this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(6).Label = "공정"; + this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6; + this.fpSpread1_Sheet1.Columns.Get(7).DataField = "requestName"; + this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(7).Label = "요청"; + this.fpSpread1_Sheet1.Columns.Get(7).Tag = "requestName"; + this.fpSpread1_Sheet1.Columns.Get(7).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7; + this.fpSpread1_Sheet1.Columns.Get(8).DataField = "costcenter"; + this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Label = "Cost Center"; + this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8; + this.fpSpread1_Sheet1.Columns.Get(9).DataField = "linecode"; + this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).Label = "LineCode"; + this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9; + this.fpSpread1_Sheet1.Columns.Get(10).DataField = "sc"; + this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Label = "SC#"; + this.fpSpread1_Sheet1.Columns.Get(10).Tag = "sc"; + this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(11).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10; + this.fpSpread1_Sheet1.Columns.Get(11).DataField = "orderno"; + this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(11).Label = "SCR/CF"; + this.fpSpread1_Sheet1.Columns.Get(11).Tag = "crcf"; + this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(11).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; + this.fpSpread1_Sheet1.Columns.Get(12).DataField = "receiveName"; + this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(12).Label = "수령"; + this.fpSpread1_Sheet1.Columns.Get(12).Tag = "receiveName"; + this.fpSpread1_Sheet1.Columns.Get(12).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(13).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(13).DataField = "sid"; + this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Label = "SID#"; + this.fpSpread1_Sheet1.Columns.Get(13).Tag = "sid"; + this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType13; + this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumname"; + this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(14).Label = "품명"; + this.fpSpread1_Sheet1.Columns.Get(14).Tag = "pumname"; + this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType1; + this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumidx"; + this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(15).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(15).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumscale"; + this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(16).Label = "규격"; + this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumscale"; + this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(17).DataField = "dept"; + this.fpSpread1_Sheet1.Columns.Get(17).Label = "장비\r\n제조사"; + this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(18).DataField = "manuproc"; + this.fpSpread1_Sheet1.Columns.Get(18).Label = "제조\r\n공정"; + this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(19).DataField = "asset"; + this.fpSpread1_Sheet1.Columns.Get(19).Label = "장비\r\n모델"; + this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F; + numberCellType2.DecimalPlaces = 0; + numberCellType2.NegativeRed = true; + numberCellType2.NullDisplay = "--"; + numberCellType2.Separator = ","; + numberCellType2.ShowSeparator = true; + numberCellType2.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType2; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "pumqtyReq"; + this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Label = "수량\r\n(요청)"; + this.fpSpread1_Sheet1.Columns.Get(20).Tag = "pumqty"; + this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F; + numberCellType3.DecimalPlaces = 0; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType3; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "pumqty"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Label = "수량\r\n(구매)"; + this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Width = 55F; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType16; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(22).Label = "단위"; + this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F; + numberCellType4.DecimalPlaces = 2; + this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType4; + this.fpSpread1_Sheet1.Columns.Get(23).DataField = "pumpriceD"; + this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(23).Label = "단가\r\n(해외)"; + this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17; + this.fpSpread1_Sheet1.Columns.Get(24).DataField = "currency"; + this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(24).Label = "통화"; + this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F; + numberCellType5.DecimalPlaces = 0; + numberCellType5.MaximumValue = 9999999999999.99D; + numberCellType5.MinimumValue = -9999999999999.99D; + numberCellType5.NegativeRed = true; + numberCellType5.NullDisplay = "--"; + numberCellType5.Separator = ","; + numberCellType5.ShowSeparator = true; + numberCellType5.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType5; + this.fpSpread1_Sheet1.Columns.Get(25).DataField = "pumprice"; + this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(25).Label = "단가"; + this.fpSpread1_Sheet1.Columns.Get(25).Tag = "pumprice"; + this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F; + numberCellType6.DecimalPlaces = 0; + numberCellType6.MaximumValue = 9999999999999.99D; + numberCellType6.MinimumValue = -9999999999999.99D; + numberCellType6.NegativeRed = true; + numberCellType6.NullDisplay = "--"; + numberCellType6.Separator = ","; + numberCellType6.ShowSeparator = true; + numberCellType6.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(26).CellType = numberCellType6; + this.fpSpread1_Sheet1.Columns.Get(26).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(26).Label = "합계금액"; + this.fpSpread1_Sheet1.Columns.Get(26).Tag = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(27).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType18; + this.fpSpread1_Sheet1.Columns.Get(27).DataField = "supply"; + this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(27).Label = "공급업체"; + this.fpSpread1_Sheet1.Columns.Get(27).Tag = "supply"; + this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType7.DecimalPlaces = 0; + numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType7.MaximumValue = 2147483647D; + numberCellType7.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType7; + this.fpSpread1_Sheet1.Columns.Get(28).DataField = "supplyidx"; + this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(28).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(28).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(29).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(29).DataField = "project"; + this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(29).Label = "프로젝트"; + this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType8.DecimalPlaces = 0; + numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType8.MaximumValue = 2147483647D; + numberCellType8.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(30).CellType = numberCellType8; + this.fpSpread1_Sheet1.Columns.Get(30).DataField = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(30).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(30).Tag = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(30).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F; + textCellType20.WordWrap = true; + this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType20; + this.fpSpread1_Sheet1.Columns.Get(31).DataField = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(31).Label = "비고(구매사유)\r\n(요청자)"; + this.fpSpread1_Sheet1.Columns.Get(31).Tag = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(31).Width = 96F; + this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType21; + this.fpSpread1_Sheet1.Columns.Get(32).DataField = "edate"; + this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고예정"; + this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType22; + this.fpSpread1_Sheet1.Columns.Get(33).DataField = "indate"; + this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(33).Label = "입고일"; + this.fpSpread1_Sheet1.Columns.Get(33).Tag = "indate"; + this.fpSpread1_Sheet1.Columns.Get(33).Width = 51F; + numberCellType9.DecimalPlaces = 0; + numberCellType9.NegativeRed = true; + numberCellType9.ShowSeparator = true; + this.fpSpread1_Sheet1.Columns.Get(34).CellType = numberCellType9; + this.fpSpread1_Sheet1.Columns.Get(34).DataField = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(34).Label = "입고수량"; + this.fpSpread1_Sheet1.Columns.Get(34).Tag = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(34).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(35).CellType = textCellType23; + this.fpSpread1_Sheet1.Columns.Get(35).DataField = "po"; + this.fpSpread1_Sheet1.Columns.Get(35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(35).Label = "PO#"; + this.fpSpread1_Sheet1.Columns.Get(35).Tag = "po"; + this.fpSpread1_Sheet1.Columns.Get(35).Width = 51F; + textCellType24.WordWrap = true; + this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType24; + this.fpSpread1_Sheet1.Columns.Get(36).DataField = "chkremark"; + this.fpSpread1_Sheet1.Columns.Get(36).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(36).Label = "비고\r\n(담당자)"; + this.fpSpread1_Sheet1.Columns.Get(36).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(37).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType25; + this.fpSpread1_Sheet1.Columns.Get(37).DataField = "purchase_manager"; + this.fpSpread1_Sheet1.Columns.Get(37).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(37).Label = "구매담당"; + this.fpSpread1_Sheet1.Columns.Get(37).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(38).CellType = checkBoxCellType3; + this.fpSpread1_Sheet1.Columns.Get(38).DataField = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(38).Label = "삭제됨"; + this.fpSpread1_Sheet1.Columns.Get(38).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(38).Width = 51F; + this.fpSpread1_Sheet1.DataAutoCellTypes = false; + this.fpSpread1_Sheet1.DataAutoSizeColumns = false; + this.fpSpread1_Sheet1.DataSource = this.bs; + this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; + this.fpSpread1_Sheet1.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange; + this.fpSpread1_Sheet1.ShowEditingRowSelector = true; + this.fpSpread1_Sheet1.ShowRowSelector = true; + this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; + // // fPurchaseNR // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs index 45ada11..d62326a 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs @@ -144,10 +144,13 @@ namespace FEQ0000 //} } this.cmbManager.SelectedIndex = 0; - var manidx = cmbManager.Items.IndexOf(FCOMMON.info.Login.nameK); - if (manidx >= 0) + if(FCOMMON.info.Login.gcode.EndsWith("PM")) { - cmbManager.SelectedIndex = manidx; + var manidx = cmbManager.Items.IndexOf(FCOMMON.info.Login.nameK); + if (manidx >= 0) + { + cmbManager.SelectedIndex = manidx; + } } //this.cmbAdmin.SelectedIndex = 0; diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs index fc80d40..3670cfe 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.Designer.cs @@ -97,6 +97,8 @@ this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.chkprdate = new System.Windows.Forms.CheckBox(); + this.dtPrdate = new System.Windows.Forms.DateTimePicker(); this.tbCostCenter = new System.Windows.Forms.ComboBox(); this.tbLineCode = new System.Windows.Forms.ComboBox(); this.tbManager = new System.Windows.Forms.ComboBox(); @@ -909,6 +911,8 @@ // groupBox2 // this.groupBox2.BackColor = System.Drawing.Color.Gainsboro; + this.groupBox2.Controls.Add(this.chkprdate); + this.groupBox2.Controls.Add(this.dtPrdate); this.groupBox2.Controls.Add(this.tbCostCenter); this.groupBox2.Controls.Add(this.tbLineCode); this.groupBox2.Controls.Add(this.tbManager); @@ -951,6 +955,28 @@ this.groupBox2.TabStop = false; this.groupBox2.Text = "추가정보"; // + // chkprdate + // + this.chkprdate.AutoSize = true; + this.chkprdate.Location = new System.Drawing.Point(32, 236); + this.chkprdate.Margin = new System.Windows.Forms.Padding(4); + this.chkprdate.Name = "chkprdate"; + this.chkprdate.Size = new System.Drawing.Size(76, 24); + this.chkprdate.TabIndex = 51; + this.chkprdate.TabStop = false; + this.chkprdate.Text = "PR입력"; + this.chkprdate.UseVisualStyleBackColor = true; + this.chkprdate.CheckedChanged += new System.EventHandler(this.chkprdate_CheckedChanged); + // + // dtPrdate + // + this.dtPrdate.Location = new System.Drawing.Point(112, 234); + this.dtPrdate.Margin = new System.Windows.Forms.Padding(4); + this.dtPrdate.Name = "dtPrdate"; + this.dtPrdate.Size = new System.Drawing.Size(286, 27); + this.dtPrdate.TabIndex = 50; + this.dtPrdate.TabStop = false; + // // tbCostCenter // this.tbCostCenter.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; @@ -981,6 +1007,7 @@ // 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(112, 182); @@ -988,7 +1015,6 @@ this.tbManager.Name = "tbManager"; this.tbManager.Size = new System.Drawing.Size(286, 28); this.tbManager.TabIndex = 47; - this.tbManager.Text = "65"; // // btEQModel // @@ -1216,5 +1242,7 @@ private System.Windows.Forms.ComboBox cmbRemark; private System.Windows.Forms.ComboBox tbStorage; private System.Windows.Forms.Label label18; + private System.Windows.Forms.DateTimePicker dtPrdate; + private System.Windows.Forms.CheckBox chkprdate; } } \ No newline at end of file diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs index 4e019dc..b03e828 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchase_Add.cs @@ -160,6 +160,17 @@ namespace FEQ0000 dtInDate.Value = DateTime.Parse(dr.indate); } + if (dr.IsprdateNull() || dr.prdate.isEmpty()) + { + this.chkprdate.Checked = false; + } + else + { + this.chkprdate.Checked = true; + dtPrdate.Value = DateTime.Parse(dr.prdate); + } + + if (dr.IsedateNull() || dr.edate.isEmpty()) { this.chkExp.Checked = false; @@ -287,6 +298,8 @@ namespace FEQ0000 dtInDate.Text = dr.indate; dtExpDate.Text = dr.edate; + dtPrdate.Text = dr.prdate; + if (dr.IsinqtyNull() == false) tbInQty.Text = dr.inqty.ToString(); //else tbInQty.Text = "0"; @@ -296,6 +309,7 @@ namespace FEQ0000 this.dtExpDate.Enabled = chkExp.Checked; this.dtInDate.Enabled = chkInDate.Checked; + this.dtPrdate.Enabled = chkprdate.Checked; //일반사용자의경우에는 상태를 변경하지 못한다. int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); @@ -849,6 +863,9 @@ namespace FEQ0000 else dr.SetedateNull(); if (chkInDate.Checked) dr.indate = this.dtInDate.Value.ToShortDateString(); else dr.SetindateNull(); + if (chkprdate.Checked) dr.prdate = this.dtPrdate.Value.ToShortDateString(); + else dr.SetprdateNull(); + dr.pdate = this.dtPdate.Value.ToShortDateString(); dr.gcode = FCOMMON.info.Login.gcode; @@ -955,6 +972,14 @@ namespace FEQ0000 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { + if(cmbState.Text == "PR" || cmbState.Text == "PO") + { + if(chkprdate.Checked==false) + { + chkprdate.Checked = true; + dtPrdate.Value = DateTime.Now; + } + } //string code = ""; //if (cmbState.SelectedIndex < 0) label3.Text = "--"; //else @@ -1335,5 +1360,10 @@ namespace FEQ0000 } } + + private void chkprdate_CheckedChanged(object sender, EventArgs e) + { + this.dtPrdate.Enabled = chkprdate.Checked; + } } } diff --git a/SubProject/FEQ0000/dsPurchase.Designer.cs b/SubProject/FEQ0000/dsPurchase.Designer.cs index 223c7b6..7ebe7e3 100644 --- a/SubProject/FEQ0000/dsPurchase.Designer.cs +++ b/SubProject/FEQ0000/dsPurchase.Designer.cs @@ -568,6 +568,8 @@ namespace FEQ0000 { private global::System.Data.DataColumn columncurrency; + private global::System.Data.DataColumn columnprdate; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public PurchaseDataTable() : @@ -1010,6 +1012,14 @@ namespace FEQ0000 { } } + [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")] [global::System.ComponentModel.Browsable(false)] @@ -1096,7 +1106,8 @@ namespace FEQ0000 { string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string prdate) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1148,7 +1159,8 @@ namespace FEQ0000 { chkremark, purchase_manager, purchase_admin, - currency}; + currency, + prdate}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1204,7 +1216,8 @@ namespace FEQ0000 { string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string prdate) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1256,7 +1269,8 @@ namespace FEQ0000 { chkremark, purchase_manager, purchase_admin, - currency}; + currency, + prdate}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1336,6 +1350,7 @@ namespace FEQ0000 { this.columnpurchase_manager = base.Columns["purchase_manager"]; this.columnpurchase_admin = base.Columns["purchase_admin"]; this.columncurrency = base.Columns["currency"]; + this.columnprdate = base.Columns["prdate"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1441,6 +1456,8 @@ namespace FEQ0000 { 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.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -1488,6 +1505,7 @@ namespace FEQ0000 { this.columnpurchase_manager.MaxLength = 50; this.columnpurchase_admin.MaxLength = 50; this.columncurrency.MaxLength = 10; + this.columnprdate.MaxLength = 10; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -6182,6 +6200,22 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string prdate { + get { + if (this.IsprdateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tablePurchase.prdateColumn])); + } + } + set { + this[this.tablePurchase.prdateColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -6733,6 +6767,18 @@ namespace FEQ0000 { 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; + } } /// @@ -10999,6 +11045,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { tableMapping.ColumnMappings.Add("purchase_manager", "purchase_manager"); tableMapping.ColumnMappings.Add("purchase_admin", "purchase_admin"); tableMapping.ColumnMappings.Add("currency", "currency"); + tableMapping.ColumnMappings.Add("prdate", "prdate"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -11047,7 +11094,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { "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)))"; + "rrency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@" + + "IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)))"; 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("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -11137,6 +11185,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { 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.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], " + @@ -11145,20 +11195,20 @@ namespace FEQ0000.dsPurchaseTableAdapters { "], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], " + "[gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1]," + " [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_manager]," + - " [purchase_admin], [currency]) VALUES (@pdate, @state, @process, @receive, @sc, " + - "@request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @sup" + - "ply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wu" + - "id, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place" + - ", @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @" + - "linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @currency)" + - ";\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS recei" + - "veName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pums" + - "cale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx," + - " asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manup" + - "roc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, c" + - "hk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admi" + - "n, currency FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, id" + - "x DESC"; + " [purchase_admin], [currency], [prdate]) VALUES (@pdate, @state, @process, @rece" + + "ive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pu" + + "mamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, " + + "@dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gco" + + "de, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @cos" + + "tcenter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, " + + "@currency, @prdate);\r\nSELECT idx, pdate, state, process, receive, dbo.getUserNam" + + "e(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName," + + " sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, p" + + "roject, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx," + + " isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winui" + + "d, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_man" + + "ager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = SCOPE_IDENTITY" + + "()) ORDER BY pdate DESC, idx DESC"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -11206,6 +11256,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { 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.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = "UPDATE [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [" + @@ -11220,60 +11271,61 @@ namespace FEQ0000.dsPurchaseTableAdapters { "winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costce" + "nter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremar" + "k] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin] = @pur" + - "chase_admin, [currency] = @currency WHERE (([idx] = @Original_idx) AND ((@IsNull" + - "_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_st" + - "ate = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_proce" + - "ss = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_" + - "receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@Is" + - "Null_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_pumscale = " + - "1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pu" + - "munit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNu" + - "ll_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsN" + - "ull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) A" + - "ND ((@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] = @Origina" + - "l_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projec" + - "tidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR (" + - "[asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([ed" + - "ate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([ind" + - "ate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Ori" + - "ginal_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dep" + - "t)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_" + - "import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull" + - "_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNul" + - "l_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_b" + - "igo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc" + - " = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull" + - "_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gc" + - "ode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place]" + - " = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = " + - "@Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pump" + - "riceD] = @Original_pumpriceD)) 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_costcenter = 1 AND [costcenter] IS" + - " NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND " + - "[linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyRe" + - "q = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@Is" + - "Null_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremar" + - "k)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purc" + - "hase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AN" + - "D [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AN" + - "D ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_curr" + - "ency)));\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) A" + - "S receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumnam" + - "e, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, proj" + - "ectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo" + - ", manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, " + - "chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purcha" + - "se_admin, currency FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DES" + - "C"; + "chase_admin, [currency] = @currency, [prdate] = @prdate WHERE (([idx] = @Origina" + + "l_idx) 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_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscal" + + "e)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_p" + + "umunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original" + + "_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @O" + + "riginal_pumprice)) 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 ([s" + + "upplyidx] = @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_edate = 1 AND [eda" + + "te] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indat" + + "e] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS N" + + "ULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([d" + + "ept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_w" + + "date) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_im" + + "port)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_p" + + "umidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isd" + + "el)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AN" + + "D ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manu" + + "proc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Origina" + + "l_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] " + + "IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS " + + "NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD" + + "] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AN" + + "D [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid" + + " = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_winda" + + "te = 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_costcenter = 1" + + " AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNu" + + "ll_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AN" + + "D ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_p" + + "umqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] " + + "= @Original_chkremark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager" + + "] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_p" + + "urchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original" + + "_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([curren" + + "cy] = @Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([p" + + "rdate] = @Original_prdate)));\r\nSELECT idx, pdate, state, process, receive, dbo.g" + + "etUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS req" + + "uestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, sup" + + "plyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import" + + ", pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inrema" + + "rk, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, pur" + + "chase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = @idx)" + + " ORDER BY pdate DESC, idx DESC"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 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, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -11321,6 +11373,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { 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("@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("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -11409,6 +11462,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { 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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -11427,7 +11482,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -11453,19 +11508,19 @@ ORDER BY pdate DESC, idx DESC"; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; + this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)"; + this._commandCollection[4].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)"; this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4].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, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; + this._commandCollection[5].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; this._commandCollection[5].CommandType = global::System.Data.CommandType.Text; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -11733,7 +11788,8 @@ ORDER BY pdate DESC, idx DESC"; string Original_chkremark, string Original_purchase_manager, string Original_purchase_admin, - string Original_currency) { + string Original_currency, + string Original_prdate) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -12084,6 +12140,14 @@ ORDER BY pdate DESC, idx DESC"; 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)); + } 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)) { @@ -12150,7 +12214,8 @@ ORDER BY pdate DESC, idx DESC"; string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string prdate) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -12422,6 +12487,12 @@ ORDER BY pdate DESC, idx DESC"; 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)); + } 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)) { @@ -12489,6 +12560,7 @@ ORDER BY pdate DESC, idx DESC"; string purchase_manager, string purchase_admin, string currency, + string prdate, int Original_idx, string Original_pdate, string Original_state, @@ -12535,6 +12607,7 @@ ORDER BY pdate DESC, idx DESC"; string Original_purchase_manager, string Original_purchase_admin, string Original_currency, + string Original_prdate, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -12807,357 +12880,371 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(currency)); } - this.Adapter.UpdateCommand.Parameters[46].Value = ((int)(Original_idx)); - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + if ((prdate == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_pdate)); + this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(prdate)); + } + this.Adapter.UpdateCommand.Parameters[47].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_pdate)); } if ((Original_state == null)) { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_state)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_state)); } if ((Original_process == null)) { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_process)); + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_process)); } if ((Original_receive == null)) { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_receive)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_receive)); } if ((Original_sc == null)) { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_sc)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_sc)); } if ((Original_request == null)) { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_request)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_request)); } if ((Original_sid == null)) { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_sid)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_sid)); } if ((Original_pumname == null)) { - this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_pumname)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_pumname)); } if ((Original_pumscale == null)) { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[65].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 = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_pumscale)); } if ((Original_pumunit == null)) { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[67].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 = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_pumunit)); } if ((Original_pumqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_pumqty.Value)); + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((int)(Original_pumqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; } if ((Original_pumprice.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[70].Value = ((decimal)(Original_pumprice.Value)); + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((decimal)(Original_pumprice.Value)); } else { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; } if ((Original_pumamt.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_pumamt.Value)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((decimal)(Original_pumamt.Value)); } else { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; } if ((Original_supply == null)) { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_supply)); + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((string)(Original_supply)); } if ((Original_supplyidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[76].Value = ((int)(Original_supplyidx.Value)); + this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[77].Value = ((int)(Original_supplyidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value; } if ((Original_projectidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[78].Value = ((int)(Original_projectidx.Value)); + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[79].Value = ((int)(Original_projectidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; } if ((Original_asset == null)) { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[80].Value = ((string)(Original_asset)); + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[81].Value = ((string)(Original_asset)); } if ((Original_edate == null)) { - this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_edate)); + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_edate)); } if ((Original_indate == null)) { - this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_indate)); + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_indate)); } if ((Original_po == null)) { - this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[87].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_po)); + this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[87].Value = ((string)(Original_po)); } if ((Original_dept == null)) { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_dept)); + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_dept)); } if ((Original_wuid == null)) { throw new global::System.ArgumentNullException("Original_wuid"); } else { - this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_wuid)); + this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_wuid)); } - this.Adapter.UpdateCommand.Parameters[90].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((System.DateTime)(Original_wdate)); if ((Original_import.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[92].Value = ((bool)(Original_import.Value)); + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((bool)(Original_import.Value)); } else { - this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value; } if ((Original_pumidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[94].Value = ((int)(Original_pumidx.Value)); + this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[95].Value = ((int)(Original_pumidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[95].Value = global::System.DBNull.Value; } if ((Original_isdel.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[96].Value = ((bool)(Original_isdel.Value)); + this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[97].Value = ((bool)(Original_isdel.Value)); } else { - this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[97].Value = global::System.DBNull.Value; } if ((Original_bigo == null)) { - this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[99].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_bigo)); + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[99].Value = ((string)(Original_bigo)); } if ((Original_manuproc == null)) { - this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_manuproc)); + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[101].Value = ((string)(Original_manuproc)); } if ((Original_orderno == null)) { - this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[103].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 = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_orderno)); } if ((Original_gcode == null)) { throw new global::System.ArgumentNullException("Original_gcode"); } else { - this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_gcode)); + this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_gcode)); } if ((Original_place == null)) { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_place)); + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_place)); } if ((Original_inqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[107].Value = ((int)(Original_inqty.Value)); + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[108].Value = ((int)(Original_inqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[107].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value; } if ((Original_pumpriceD.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[109].Value = ((decimal)(Original_pumpriceD.Value)); + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[110].Value = ((decimal)(Original_pumpriceD.Value)); } else { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; } if ((Original_inremark == null)) { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[111].Value = ((string)(Original_inremark)); + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_inremark)); } if ((Original_winuid == null)) { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_winuid)); + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((string)(Original_winuid)); } if ((Original_windate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[115].Value = ((System.DateTime)(Original_windate.Value)); + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[116].Value = ((System.DateTime)(Original_windate.Value)); } else { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value; } if ((Original_chk1.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[117].Value = ((bool)(Original_chk1.Value)); + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[118].Value = ((bool)(Original_chk1.Value)); } else { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[117].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value; } if ((Original_chk2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[119].Value = ((bool)(Original_chk2.Value)); + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[120].Value = ((bool)(Original_chk2.Value)); } else { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value; } if ((Original_costcenter == null)) { - this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[121].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[121].Value = ((string)(Original_costcenter)); + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_costcenter)); } if ((Original_linecode == null)) { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[123].Value = ((string)(Original_linecode)); + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_linecode)); } if ((Original_pumqtyReq.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[125].Value = ((int)(Original_pumqtyReq.Value)); + this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[126].Value = ((int)(Original_pumqtyReq.Value)); } else { - this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[125].Value = global::System.DBNull.Value; + 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[126].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[127].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[127].Value = ((string)(Original_chkremark)); + this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_chkremark)); } if ((Original_purchase_manager == null)) { - this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[129].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[129].Value = ((string)(Original_purchase_manager)); + this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_purchase_manager)); } if ((Original_purchase_admin == null)) { - this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[131].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[131].Value = ((string)(Original_purchase_admin)); + this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_purchase_admin)); } if ((Original_currency == null)) { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[134].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[133].Value = ((string)(Original_currency)); + this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_currency)); } - this.Adapter.UpdateCommand.Parameters[134].Value = ((int)(idx)); + if ((Original_prdate == 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_prdate)); + } + this.Adapter.UpdateCommand.Parameters[137].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)) { @@ -13225,6 +13312,7 @@ ORDER BY pdate DESC, idx DESC"; string purchase_manager, string purchase_admin, string currency, + string prdate, int Original_idx, string Original_pdate, string Original_state, @@ -13270,8 +13358,9 @@ ORDER BY pdate DESC, idx DESC"; string Original_chkremark, string Original_purchase_manager, string Original_purchase_admin, - string Original_currency) { - return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_idx); + string Original_currency, + string Original_prdate) { + return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_prdate, Original_idx); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] diff --git a/SubProject/FEQ0000/dsPurchase.xsd b/SubProject/FEQ0000/dsPurchase.xsd index 5bb99f1..37a3af8 100644 --- a/SubProject/FEQ0000/dsPurchase.xsd +++ b/SubProject/FEQ0000/dsPurchase.xsd @@ -12,7 +12,7 @@ - DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) 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_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_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) 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_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 ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) 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_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) 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))) + DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) 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_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_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) 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_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 ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) 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_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) 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))) @@ -102,13 +102,15 @@ + + - INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_manager], [purchase_admin], [currency]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @currency); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC + INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_manager], [purchase_admin], [currency], [prdate]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @currency, @prdate); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -156,6 +158,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + @@ -163,7 +166,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -174,8 +177,8 @@ ORDER BY pdate DESC, idx DESC - UPDATE [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @wuid, [wdate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel, [bigo] = @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode, [place] = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremark] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin] = @purchase_admin, [currency] = @currency WHERE (([idx] = @Original_idx) 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_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_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) 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_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 ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) 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_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) 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))); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC + UPDATE [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @wuid, [wdate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel, [bigo] = @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode, [place] = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremark] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin] = @purchase_admin, [currency] = @currency, [prdate] = @prdate WHERE (([idx] = @Original_idx) 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_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_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) 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_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 ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) 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_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) 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))); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC @@ -223,6 +226,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + @@ -311,6 +315,8 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + @@ -367,6 +373,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + @@ -406,7 +413,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC @@ -418,7 +425,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx) + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx) @@ -428,7 +435,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -1680,6 +1687,13 @@ ORDER BY pdate DESC, idx DESC + + + + + + + diff --git a/SubProject/FPJ0000/JobReport_/rJobReportPrj.cs b/SubProject/FPJ0000/JobReport_/rJobReportPrj.cs index 660b256..a16c407 100644 --- a/SubProject/FPJ0000/JobReport_/rJobReportPrj.cs +++ b/SubProject/FPJ0000/JobReport_/rJobReportPrj.cs @@ -274,17 +274,17 @@ namespace FPJ0000.JobReport_ if (lnk.Text.Equals("상반기")) { dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-01-01"); - dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-05-31"); + dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-06-30"); } else if (lnk.Text.Equals("하반기")) { - dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-06-01"); + dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-07-01"); dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-12-31"); } else { if (int.TryParse(lnk.Text.Substring(0, 2), out int mon) == false) return; - dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-" + mon.ToString("00" + "-01")); + dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-" + mon.ToString("00") + "-01"); dte.Value = dts.Value.AddMonths(1).AddDays(-1); } } diff --git a/SubProject/FPJ0000/JobReport_/rJobReportType.Designer.cs b/SubProject/FPJ0000/JobReport_/rJobReportType.Designer.cs index a8c0284..07d4e7f 100644 --- a/SubProject/FPJ0000/JobReport_/rJobReportType.Designer.cs +++ b/SubProject/FPJ0000/JobReport_/rJobReportType.Designer.cs @@ -29,10 +29,15 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource(); + Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsReport = new FPJ0000.dsReport(); this.panel1 = new System.Windows.Forms.Panel(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.cmbUser = new System.Windows.Forms.ComboBox(); + this.label4 = new System.Windows.Forms.Label(); + this.tbProcess = new System.Windows.Forms.ComboBox(); + this.label1 = new System.Windows.Forms.Label(); this.linkLabel13 = new System.Windows.Forms.LinkLabel(); this.linkLabel14 = new System.Windows.Forms.LinkLabel(); this.linkLabel9 = new System.Windows.Forms.LinkLabel(); @@ -53,11 +58,6 @@ this.dts = new System.Windows.Forms.DateTimePicker(); this.btRefresh = new System.Windows.Forms.Button(); this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer(); - this.cmbUser = new System.Windows.Forms.ComboBox(); - this.label4 = new System.Windows.Forms.Label(); - this.tbProcess = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit(); this.panel1.SuspendLayout(); @@ -107,6 +107,52 @@ this.panel1.Size = new System.Drawing.Size(1114, 58); this.panel1.TabIndex = 7; // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(786, 33); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(100, 16); + this.checkBox1.TabIndex = 32; + this.checkBox1.Text = "담당자별 분리"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // cmbUser + // + this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbUser.FormattingEnabled = true; + this.cmbUser.Location = new System.Drawing.Point(598, 32); + this.cmbUser.Name = "cmbUser"; + this.cmbUser.Size = new System.Drawing.Size(180, 20); + this.cmbUser.TabIndex = 31; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(563, 36); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(29, 12); + this.label4.TabIndex = 30; + this.label4.Text = "사원"; + // + // tbProcess + // + this.tbProcess.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.tbProcess.FormattingEnabled = true; + this.tbProcess.Location = new System.Drawing.Point(598, 9); + this.tbProcess.Name = "tbProcess"; + this.tbProcess.Size = new System.Drawing.Size(180, 20); + this.tbProcess.TabIndex = 29; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(564, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(29, 12); + this.label1.TabIndex = 28; + this.label1.Text = "공정"; + // // linkLabel13 // this.linkLabel13.AutoSize = true; @@ -275,6 +321,7 @@ this.linkLabel1.TabIndex = 13; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "01월"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); this.linkLabel1.Click += new System.EventHandler(this.linkLabel13_Click); // // label3 @@ -323,9 +370,9 @@ // reportViewer1 // this.reportViewer1.Dock = System.Windows.Forms.DockStyle.Fill; - reportDataSource2.Name = "DataSet1"; - reportDataSource2.Value = this.bs; - this.reportViewer1.LocalReport.DataSources.Add(reportDataSource2); + reportDataSource1.Name = "DataSet1"; + reportDataSource1.Value = this.bs; + this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1); this.reportViewer1.LocalReport.ReportEmbeddedResource = "FPJ0000.JobReport_.rJobReportType.rdlc"; this.reportViewer1.Location = new System.Drawing.Point(0, 58); this.reportViewer1.Name = "reportViewer1"; @@ -333,52 +380,6 @@ this.reportViewer1.Size = new System.Drawing.Size(1114, 641); this.reportViewer1.TabIndex = 8; // - // cmbUser - // - this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbUser.FormattingEnabled = true; - this.cmbUser.Location = new System.Drawing.Point(598, 32); - this.cmbUser.Name = "cmbUser"; - this.cmbUser.Size = new System.Drawing.Size(180, 20); - this.cmbUser.TabIndex = 31; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(563, 36); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(29, 12); - this.label4.TabIndex = 30; - this.label4.Text = "사원"; - // - // tbProcess - // - this.tbProcess.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.tbProcess.FormattingEnabled = true; - this.tbProcess.Location = new System.Drawing.Point(598, 9); - this.tbProcess.Name = "tbProcess"; - this.tbProcess.Size = new System.Drawing.Size(180, 20); - this.tbProcess.TabIndex = 29; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(564, 13); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(29, 12); - this.label1.TabIndex = 28; - this.label1.Text = "공정"; - // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(786, 33); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(100, 16); - this.checkBox1.TabIndex = 32; - this.checkBox1.Text = "담당자별 분리"; - this.checkBox1.UseVisualStyleBackColor = true; - // // rJobReportType // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); diff --git a/SubProject/FPJ0000/JobReport_/rJobReportType.cs b/SubProject/FPJ0000/JobReport_/rJobReportType.cs index c99d457..b7f3d25 100644 --- a/SubProject/FPJ0000/JobReport_/rJobReportType.cs +++ b/SubProject/FPJ0000/JobReport_/rJobReportType.cs @@ -41,7 +41,7 @@ namespace FPJ0000.JobReport_ System.Windows.Forms.Application.DoEvents(); //this.tbMon.Text = DateTime.Now.ToString("yyyy-MM"); - refrehData(); + //refrehData(); binit = true; tbProcess.SelectedIndexChanged += tbProcess_SelectedIndexChanged; @@ -133,17 +133,17 @@ namespace FPJ0000.JobReport_ if (lnk.Text.Equals("상반기")) { dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-01-01"); - dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-05-31"); + dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-06-30"); } else if (lnk.Text.Equals("하반기")) { - dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-06-01"); + dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-07-01"); dte.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-12-31"); } else { if (int.TryParse(lnk.Text.Substring(0, 2), out int mon) == false) return; - dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-" + mon.ToString("00" + "-01")); + dts.Value = DateTime.Parse(DateTime.Now.Year.ToString("0000") + "-" + mon.ToString("00") + "-01"); dte.Value = dts.Value.AddMonths(1).AddDays(-1); } } @@ -153,5 +153,9 @@ namespace FPJ0000.JobReport_ } + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + + } } } diff --git a/SubProject/FPJ0000/JobReport_/rJobReportType.resx b/SubProject/FPJ0000/JobReport_/rJobReportType.resx index 025bc28..97544e7 100644 --- a/SubProject/FPJ0000/JobReport_/rJobReportType.resx +++ b/SubProject/FPJ0000/JobReport_/rJobReportType.resx @@ -123,7 +123,4 @@ 17, 17 - - 17, 17 - \ No newline at end of file