From e26efda0fccc4ecd096c9dcc7f11027ae2e7dd9a Mon Sep 17 00:00:00 2001 From: chi Date: Tue, 2 Jan 2024 23:08:00 +0900 Subject: [PATCH] ... --- Project/fMain.Designer.cs | 41 +- Project/fMain.cs | 28 +- Project/fMain.resx | 46 +- SubProject/FCOMMON/FCOMMON.csproj | 3 + SubProject/FCOMMON/Util.cs | 57 + SubProject/FEQ0000/FEQ0000.csproj | 36 + .../PurchaseCR/fPurchaseCR.Designer.cs | 52 +- SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs | 254 +- .../FEQ0000/PurchaseCR/fPurchaseCR.resx | 15 + .../fPurchaseCR_ConfRequest.Designer.cs | 566 ++++ .../PurchaseCR/fPurchaseCR_ConfRequest.cs | 543 ++++ .../PurchaseCR/fPurchaseCR_ConfRequest.resx | 234 ++ .../PurchaseEB/fPurchaseEB.Designer.cs | 66 +- SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs | 255 +- .../FEQ0000/PurchaseEB/fPurchaseEB.resx | 15 + .../fPurchaseEB_ConfRequest.Designer.cs | 553 ++++ .../PurchaseEB/fPurchaseEB_ConfRequest.cs | 546 ++++ .../PurchaseEB/fPurchaseEB_ConfRequest.resx | 234 ++ .../PurchaseNR/fPurchaseNR.Designer.cs | 91 +- SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs | 278 +- .../FEQ0000/PurchaseNR/fPurchaseNR.resx | 15 + .../fPurchaseNR_ConfRequest.Designer.cs | 566 ++++ .../PurchaseNR/fPurchaseNR_ConfRequest.cs | 544 ++++ .../PurchaseNR/fPurchaseNR_ConfRequest.resx | 237 ++ SubProject/FEQ0000/dsPurchase.Designer.cs | 2875 ++++++++++++----- SubProject/FEQ0000/dsPurchase.xsd | 267 +- .../FEQ0000/fPurchaseConfirm.Designer.cs | 1293 ++++++++ SubProject/FEQ0000/fPurchaseConfirm.cs | 739 +++++ SubProject/FEQ0000/fPurchaseConfirm.resx | 286 ++ .../Project/fProjectListUser.Designer.cs | 606 ++-- .../FPJ0000/Project/fProjectListUser.resx | 50 +- .../fProjectListUserDetail.Designer.cs | 4 +- .../Project/fProjectListUserDetail.resx | 30 - 33 files changed, 10068 insertions(+), 1357 deletions(-) create mode 100644 SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs create mode 100644 SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs create mode 100644 SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.resx create mode 100644 SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.Designer.cs create mode 100644 SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs create mode 100644 SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.resx create mode 100644 SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs create mode 100644 SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs create mode 100644 SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.resx create mode 100644 SubProject/FEQ0000/fPurchaseConfirm.Designer.cs create mode 100644 SubProject/FEQ0000/fPurchaseConfirm.cs create mode 100644 SubProject/FEQ0000/fPurchaseConfirm.resx diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 7186c15..978ec56 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -63,10 +63,12 @@ this.cR구매ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sPR구매ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem14 = new System.Windows.Forms.ToolStripSeparator(); + this.전자실구매승인ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.품목입고ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_project = new System.Windows.Forms.ToolStripMenuItem(); this.목록ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.담당자별현황ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.담당자별업무현황ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem15 = new System.Windows.Forms.ToolStripSeparator(); this.layoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_dailyhistory = new System.Windows.Forms.ToolStripMenuItem(); @@ -156,7 +158,6 @@ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); - this.담당자별업무현황ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cmTab.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -399,6 +400,7 @@ this.cR구매ToolStripMenuItem, this.sPR구매ToolStripMenuItem, this.toolStripMenuItem14, + this.전자실구매승인ToolStripMenuItem, this.품목입고ToolStripMenuItem}); this.mn_purchase.Image = ((System.Drawing.Image)(resources.GetObject("mn_purchase.Image"))); this.mn_purchase.Name = "mn_purchase"; @@ -409,7 +411,7 @@ // 일반구매ToolStripMenuItem // this.일반구매ToolStripMenuItem.Name = "일반구매ToolStripMenuItem"; - this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.일반구매ToolStripMenuItem.Text = "일반 구매"; this.일반구매ToolStripMenuItem.Click += new System.EventHandler(this.일반구매ToolStripMenuItem_Click); // @@ -417,7 +419,7 @@ // this.cR구매ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.cR구매ToolStripMenuItem.Name = "cR구매ToolStripMenuItem"; - this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.cR구매ToolStripMenuItem.Text = "CR 구매"; this.cR구매ToolStripMenuItem.Click += new System.EventHandler(this.cR구매ToolStripMenuItem_Click); // @@ -425,19 +427,27 @@ // this.sPR구매ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.sPR구매ToolStripMenuItem.Name = "sPR구매ToolStripMenuItem"; - this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 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(150, 6); + this.toolStripMenuItem14.Size = new System.Drawing.Size(177, 6); + // + // 전자실구매승인ToolStripMenuItem + // + this.전자실구매승인ToolStripMenuItem.ForeColor = System.Drawing.Color.Red; + this.전자실구매승인ToolStripMenuItem.Name = "전자실구매승인ToolStripMenuItem"; + this.전자실구매승인ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.전자실구매승인ToolStripMenuItem.Text = "구매 승인"; + this.전자실구매승인ToolStripMenuItem.Click += new System.EventHandler(this.전자실구매승인ToolStripMenuItem_Click); // // 품목입고ToolStripMenuItem // this.품목입고ToolStripMenuItem.Name = "품목입고ToolStripMenuItem"; - this.품목입고ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.품목입고ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.품목입고ToolStripMenuItem.Text = "품목 입고"; this.품목입고ToolStripMenuItem.Click += new System.EventHandler(this.품목입고ToolStripMenuItem_Click); // @@ -464,12 +474,20 @@ // // 담당자별현황ToolStripMenuItem // - this.담당자별현황ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); + this.담당자별현황ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.담당자별현황ToolStripMenuItem.Name = "담당자별현황ToolStripMenuItem"; this.담당자별현황ToolStripMenuItem.Size = new System.Drawing.Size(200, 24); this.담당자별현황ToolStripMenuItem.Text = "목록(챔피언)"; this.담당자별현황ToolStripMenuItem.Click += new System.EventHandler(this.담당자별현황ToolStripMenuItem_Click); // + // 담당자별업무현황ToolStripMenuItem + // + this.담당자별업무현황ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; + this.담당자별업무현황ToolStripMenuItem.Name = "담당자별업무현황ToolStripMenuItem"; + this.담당자별업무현황ToolStripMenuItem.Size = new System.Drawing.Size(200, 24); + this.담당자별업무현황ToolStripMenuItem.Text = "담당자별 업무 현황"; + this.담당자별업무현황ToolStripMenuItem.Click += new System.EventHandler(this.담당자별업무현황ToolStripMenuItem_Click); + // // toolStripMenuItem15 // this.toolStripMenuItem15.Name = "toolStripMenuItem15"; @@ -1229,14 +1247,6 @@ this.toolStripButton3.ToolTipText = "휴가신청"; this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); // - // 담당자별업무현황ToolStripMenuItem - // - this.담당자별업무현황ToolStripMenuItem.ForeColor = System.Drawing.Color.Blue; - this.담당자별업무현황ToolStripMenuItem.Name = "담당자별업무현황ToolStripMenuItem"; - this.담당자별업무현황ToolStripMenuItem.Size = new System.Drawing.Size(200, 24); - this.담당자별업무현황ToolStripMenuItem.Text = "담당자별 업무 현황"; - this.담당자별업무현황ToolStripMenuItem.Click += new System.EventHandler(this.담당자별업무현황ToolStripMenuItem_Click); - // // fMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -1396,6 +1406,7 @@ private System.Windows.Forms.ToolStripStatusLabel sbLoginUseTime; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem16; private System.Windows.Forms.ToolStripMenuItem 담당자별업무현황ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 전자실구매승인ToolStripMenuItem; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index b22aa7b..f64c720 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -10,6 +10,7 @@ using System.Windows.Forms; using System.ServiceModel; using System.Web.Services.Description; using FCOMMON; +using FBS0000; namespace Project { @@ -163,20 +164,20 @@ namespace Project } - // Address - string address = "net.tcp://localhost:57900/eetgw"; + //// Address + //string address = "net.tcp://localhost:57900/eetgw"; - // Binding : TCP 사용 - NetTcpBinding binding = new NetTcpBinding(); + //// Binding : TCP 사용 + //NetTcpBinding binding = new NetTcpBinding(); - // Service Host 만들기 - host = new ServiceHost(typeof(MyService)); + //// Service Host 만들기 + //host = new ServiceHost(typeof(MyService)); - // End Point 추가 - host.AddServiceEndpoint(typeof(IMyContract), binding, address); + //// End Point 추가 + //host.AddServiceEndpoint(typeof(IMyContract), binding, address); - // Service Host 시작 - host.Open(); + //// Service Host 시작 + //host.Open(); } void Update_Site() @@ -1515,5 +1516,12 @@ namespace Project AddForm(formkey, new FPJ0000.fProjectListUser()); } + + private void 전자실구매승인ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "PURCHAGECONFIRMADMIN"; + if (!ShowForm(formkey)) + AddForm(formkey, new FEQ0000.fPurchaseConfirm()); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index fe42fa4..a3190bd 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -153,6 +153,26 @@ Mi4wAwEBAAAh+QQBAAAXACwAAAAAEAAQAAAIggAvCBwo0IJBCwQTFqwAAQEDhAoXTpgoYQDEhBYqTKDA kYKEBRclciRAoMEDCREuZtw40oKCCihVauxIIYEBmCkJruxYoWfMggYPsOyJU+WAABMqCJDgM+eFg0iV Aigg4WfBo0kFADAYwWnBABSkQjSIcYDYiAMtBHCwFW3ag24HBgQAOw== + + + + + R0lGODlhEAAQAIQAAHan1azQ4ldvj9vp9HSQruTr80lVa+vx9pu811SRuXifuj13uYyz2VFhe4Gt2UNL + XPL1+Orv+ufu9YOqxYyzzNHW3SkxQz5FVWag2T6CuZe3y5G0t+Do7+r0/77a9f///yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIrwA/CBxIsKDAAQESIkBAYYICBQQICCAgMMAACQMyaswo + oUKDih0SZMiwoKTJBQcEVDyAoEMHDy5hdnAg4eMHBBIQeNjJcyeDAjYRRNAQs+hMoAIpRNjQs6eDAgYE + TshpVCYAqAIV5GzKU0GBB1klMKjqEgMHsB8IiOW60+wFgQQgIGDgoC4AABgwADjw9oOAChAkSChAmIPh + AxUswBXAuEEDAwYePLhwwYJNg5gFBgQAOw== + + + + + R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 + /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY + gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi + SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG + CyQdKlaIsLHjggEBADs= @@ -345,26 +365,6 @@ oMEBBAgsfsjoAQGDCQsKJEhAAcKBChYQajyZkiWECwYMAHiAkAAAlCop4FRA9ABPDxgqABVqQIGEpxQG IMTQoCaEphICaFXAAaEABCmZZtUawECGi0gRHGigloFWCgzOYhRAt0OHASg1yD24cUAFDRcNMhwAWLBB D4UNMwz8ISAAOw== - - - - - R0lGODlhEAAQAIQAAHan1azQ4ldvj9vp9HSQruTr80lVa+vx9pu811SRuXifuj13uYyz2VFhe4Gt2UNL - XPL1+Orv+ufu9YOqxYyzzNHW3SkxQz5FVWag2T6CuZe3y5G0t+Do7+r0/77a9f///yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIrwA/CBxIsKDAAQESIkBAYYICBQQICCAgMMAACQMyaswo - oUKDih0SZMiwoKTJBQcEVDyAoEMHDy5hdnAg4eMHBBIQeNjJcyeDAjYRRNAQs+hMoAIpRNjQs6eDAgYE - TshpVCYAqAIV5GzKU0GBB1klMKjqEgMHsB8IiOW60+wFgQQgIGDgoC4AABgwADjw9oOAChAkSChAmIPh - AxUswBXAuEEDAwYePLhwwYJNg5gFBgQAOw== - - - - - R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 - /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY - gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi - SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG - CyQdKlaIsLHjggEBADs= @@ -468,14 +468,14 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPY4CDmcasDEu1MxmW6ixgWKbTwrBYVx0svkqL h2GZViHDMu15QPFWhmXqUmBxDLBUZzVQwX84Xqzzg2GJpifDMs3rKOJLtZ4ADZWA6oKCpVo2IEmBtZb/ - /U7m/E+5XP8/92TF/3lzYj/UTMn/l3q54X/kubL/qtu8oIZo90F1QsEynQn8a8yPJV+p/1Z8q+d/yc2e + /U7m/E+5XP8/92TF/3lzYj/UTMr/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+jAdUG1LhtIjtQcP6NmfX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz - BQCHNaqguIh6AAAAAABJRU5ErkJggg== + 2d+jAdUG1LhtIjtQcP616fX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz + BQB7QaqWKtAx+QAAAABJRU5ErkJggg== diff --git a/SubProject/FCOMMON/FCOMMON.csproj b/SubProject/FCOMMON/FCOMMON.csproj index f367c99..8afcb7c 100644 --- a/SubProject/FCOMMON/FCOMMON.csproj +++ b/SubProject/FCOMMON/FCOMMON.csproj @@ -51,6 +51,9 @@ + + ..\..\DLL\libxl.net.dll + ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.Common.dll diff --git a/SubProject/FCOMMON/Util.cs b/SubProject/FCOMMON/Util.cs index af7b6bd..e77588a 100644 --- a/SubProject/FCOMMON/Util.cs +++ b/SubProject/FCOMMON/Util.cs @@ -14,6 +14,7 @@ using System.Linq; using System.Net; using System.Text; using System.Windows.Forms; +using static System.Windows.Forms.VisualStyles.VisualStyleElement; namespace FCOMMON { @@ -61,6 +62,62 @@ namespace FCOMMON #endregion + public static bool savetoexcel(DataGridView dataGridView1,string fn) + { + libxl.Book book;// = new libxl.BinBook(); + book = new libxl.XmlBook(); + book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey); + var sheet = book.addSheet("Data"); + + var row = 0; + var col = 0; + foreach (DataGridViewColumn column in dataGridView1.Columns) + { + sheet.writeStr(row, col++, column.HeaderText); + + } + + + for (int i = 0; i < dataGridView1.RowCount; i++) + { + row += 1; + col = 0; + + foreach (DataGridViewColumn column in dataGridView1.Columns) + { + var v = dataGridView1.Rows[i].Cells[column.Index].Value; + string value = ""; + if (v != null) value = v.ToString(); + + if (column.ValueType == typeof(int)) + { + var ivalue = (int)v; + sheet.writeNum(row, col++, ivalue); + } + else if (column.ValueType == typeof(decimal)) + { + var ivalue = (decimal)v; + sheet.writeNum(row, col++, (double)ivalue); + } + else if (column.ValueType == typeof(float)) + { + var ivalue = (float)v; + sheet.writeNum(row, col++, ivalue); + } + else if (column.ValueType == typeof(double)) + { + var ivalue = (double)v; + sheet.writeNum(row, col++, ivalue); + } + else sheet.writeStr(row, col++, value); + } + } + book.save(fn); + return true; + + + + } public static string Number2Hangle(long lngNumber) { diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index ea66a85..064f512 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -199,6 +199,12 @@ fPurchaseCR.cs + + Form + + + fPurchaseCR_ConfRequest.cs + Form @@ -223,12 +229,30 @@ fPurchaseEB_Ipgo.cs + + Form + + + fPurchaseEB_ConfRequest.cs + Form rPurchaseEB.cs + + Form + + + fPurchaseConfirm.cs + + + Form + + + fPurchaseNR_ConfRequest.cs + Form @@ -374,6 +398,9 @@ True + + fPurchaseCR_ConfRequest.cs + fPurchaseEB.cs @@ -392,11 +419,20 @@ fPurchaseEB_Ipgo.cs + + fPurchaseEB_ConfRequest.cs + rPurchaseEB.cs + + fPurchaseConfirm.cs + + + fPurchaseNR_ConfRequest.cs + fPurchaseNR_Ipgo.cs diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs index 2fdee22..3ddbcc0 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs @@ -65,6 +65,9 @@ FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = 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(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter(); @@ -85,6 +88,7 @@ this.btDel = new System.Windows.Forms.ToolStripButton(); this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.btSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton8 = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.lbSum = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); @@ -152,6 +156,7 @@ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label2 = new System.Windows.Forms.Label(); + this.현재목록메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -208,6 +213,7 @@ this.btDel, this.toolStripButton4, this.btSave, + this.toolStripButton8, this.toolStripSeparator1, this.lbSum, this.toolStripLabel5, @@ -352,6 +358,15 @@ this.btSave.Text = "저장(&S)"; this.btSave.Click += new System.EventHandler(this.btSave_Click); // + // toolStripButton8 + // + this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image"))); + this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton8.Name = "toolStripButton8"; + this.toolStripButton8.Size = new System.Drawing.Size(75, 23); + this.toolStripButton8.Text = "승인요청"; + this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click); + // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; @@ -424,7 +439,8 @@ this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.입고품목메일전송ToolStripMenuItem, this.엑셀에서가져오기ToolStripMenuItem, - this.sAP구매신청엑셀작성ToolStripMenuItem}); + this.sAP구매신청엑셀작성ToolStripMenuItem, + this.현재목록메일전송ToolStripMenuItem}); this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image"))); this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton7.Name = "toolStripButton7"; @@ -897,6 +913,7 @@ this.fpSpread1.Size = new System.Drawing.Size(1226, 569); this.fpSpread1.StatusBarVisible = true; this.fpSpread1.TabIndex = 7; + this.fpSpread1.SetViewportLeftColumn(0, 0, 8); // // fpSpread1_Sheet1 // @@ -904,7 +921,7 @@ 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 = 36; + this.fpSpread1_Sheet1.ColumnCount = 39; this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; @@ -1213,13 +1230,35 @@ this.fpSpread1_Sheet1.Columns.Get(34).DataField = "isdel"; this.fpSpread1_Sheet1.Columns.Get(34).Tag = "isdel"; this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(35).BackColor = System.Drawing.Color.Red; this.fpSpread1_Sheet1.Columns.Get(35).CellType = numberCellType10; this.fpSpread1_Sheet1.Columns.Get(35).DataField = "idx"; + this.fpSpread1_Sheet1.Columns.Get(35).ForeColor = System.Drawing.Color.Red; this.fpSpread1_Sheet1.Columns.Get(35).Tag = "idx"; + this.fpSpread1_Sheet1.Columns.Get(35).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(36).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType23; + this.fpSpread1_Sheet1.Columns.Get(36).DataField = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(36).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(36).Tag = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(36).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(37).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType24; + this.fpSpread1_Sheet1.Columns.Get(37).DataField = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(37).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(37).Tag = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(37).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(38).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(38).CellType = textCellType25; + this.fpSpread1_Sheet1.Columns.Get(38).DataField = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(38).Tag = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(38).Visible = false; 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.ShowRowSelector = true; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // @@ -1235,6 +1274,13 @@ this.label2.Text = "--"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // 현재목록메일전송ToolStripMenuItem + // + this.현재목록메일전송ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem"; + this.현재목록메일전송ToolStripMenuItem.Size = new System.Drawing.Size(208, 22); + this.현재목록메일전송ToolStripMenuItem.Text = "현재목록 메일전송"; + this.현재목록메일전송ToolStripMenuItem.Click += new System.EventHandler(this.현재목록메일전송ToolStripMenuItem_Click); + // // fPurchaseCR // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1352,6 +1398,8 @@ private System.Windows.Forms.ToolStripTextBox tbManager; private System.Windows.Forms.ToolStripLabel toolStripLabel7; private System.Windows.Forms.ToolStripTextBox tbAdmin; + private System.Windows.Forms.ToolStripButton toolStripButton8; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; + private System.Windows.Forms.ToolStripMenuItem 현재목록메일전송ToolStripMenuItem; } } diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs index a29970d..6e572ed 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs @@ -287,7 +287,7 @@ namespace FEQ0000 var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index; var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index; - + var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index; for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) { @@ -297,9 +297,12 @@ namespace FEQ0000 var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex); var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex); + var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex); var str_crcf = string.Empty; + var str_confstats = string.Empty; if (crcf != null) str_crcf = crcf.ToString(); + if (v_confstats != null) str_confstats = v_confstats.ToString(); if (value != null && (Boolean)value) @@ -337,6 +340,14 @@ namespace FEQ0000 case "hold": this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink; break; + case "approving": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod; + + if (str_confstats == "2") //ok + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime; + else if (str_confstats == "3") //reject + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink; + break; default: this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; break; @@ -1369,5 +1380,246 @@ namespace FEQ0000 { } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + //승인요청 + + + //선택된 자료의 데이터를 추출한다. + var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인 + List rowidxs = new List(); + var idxcol = this.fpSpread1_Sheet1.Columns["idx"]; + var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"]; + var idxstatus = this.fpSpread1_Sheet1.Columns["state"]; + foreach (var item in selected) + { + for (int i = item.Row; i < item.Row + item.RowCount; i++) + { + if (rowidxs.Contains(i) == false) + { + if (fpSpread1_Sheet1.IsRowBound(i)) + { + var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index); + var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index); + if (state != null && state.ToString() != "---") + { + FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다"); + } + //else if (confsta != null && confsta.ToString() != "0") + //{ + // FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다"); + //} + else rowidxs.Add(i); + } + } + } + } + + //수집된데이터를 보내야한다. + List rows = new List(); + var idx = 0; + foreach (var i in rowidxs) + { + var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index); + var row = this.dsPurchase.EETGW_PurchaseCR.Where(t => t.idx == rowidx).First(); + rows.Add(row); + } + + //이자료를 승인요청창에 보낸다. + if (rows.Any() == false) + { + FCOMMON.Util.MsgE("대상 데이터가 없습니다."); + return; + } + var f = new fPurchaseCR_ConfRequest(rows); + f.ShowDialog(); + FormattingData(); + } + + private void 현재목록메일전송ToolStripMenuItem_Click(object sender, EventArgs e) + { + var cate = "PO"; + + var db = new DataClasses1DataContext(); + 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(cate); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + var datestr = DateTime.Now.ToShortDateString(); + if (dtSD.Text == dtED.Text) datestr = dtSD.Text; + else datestr = dtSD.Text + "~" + dtED.Text; + form_subject = form_subject.Replace("{DATE}", datestr); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + ///save file + fpSpread1.SaveExcel(fi.FullName, + FarPoint.Excel.ExcelSaveFlags.SaveAsViewed + | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered + | FarPoint.Excel.ExcelSaveFlags.NoFormulas + | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index; + var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index; + var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index; + + var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index; + var col_SID = fpSpread1_Sheet1.Columns["sid"].Index; + var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index; + var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index; + var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index; + var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index; + var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index; + var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index; + var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index; + + + for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++) + { + var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value; + var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value; + var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value; + + var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value; + var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value; + var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value; + var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value; + var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value; + var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value; + var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value; + var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value; + var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value; + + var s신청 = String.Empty; + var s요청 = String.Empty; + var sCRCF = String.Empty; + var s수령 = String.Empty; + var sSID = String.Empty; + var s품명 = String.Empty; + var s규격 = String.Empty; + var s수량 = "0"; + var s단가 = "0"; + var s금액 = "0"; + var s입고 = String.Empty; + var s공급 = String.Empty; + var s비고 = String.Empty; + + if (v신청 != null) s신청 = v신청.ToString(); + if (v요청 != null) s요청 = v요청.ToString(); + if (vCRCF != null) sCRCF = vCRCF.ToString(); + if (v수령 != null) s수령 = v수령.ToString(); + if (vSID != null) sSID = vSID.ToString(); + if (v품명 != null) s품명 = v품명.ToString(); + if (v규격 != null) s규격 = v규격.ToString(); + if (v수량 != null) s수량 = v수량.ToString(); + if (v단가 != null) s단가 = v단가.ToString(); + if (v금액 != null) s금액 = v금액.ToString(); + if (v공급 != null) s공급 = v공급.ToString(); + + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
신청요청CR/CF수령SID품명규격수량단가금액공급
" + getmaxstr(s신청) + "" + getmaxstr(s요청) + "" + getmaxstr(sCRCF) + "" + getmaxstr(s수령) + "" + getmaxstr(sSID) + "" + getmaxstr(s품명) + "" + getmaxstr(s규격) + "" + int.Parse(s수량).ToString("N0") + "" + int.Parse(s단가).ToString("N0") + "" + int.Parse(s금액).ToString("N0") + "" + getmaxstr(s공급) + "
"); + form_body += sb.ToString(); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + form_body = form_body.Replace("{DATE}", datestr); + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } } } diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx index 3df8f04..d6eb0c4 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx @@ -233,6 +233,21 @@ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs new file mode 100644 index 0000000..e1817de --- /dev/null +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.Designer.cs @@ -0,0 +1,566 @@ +namespace FEQ0000 +{ + partial class fPurchaseCR_ConfRequest + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 구성 요소 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR_ConfRequest)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); + this.btSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.lbSum = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); + this.tbFind = new System.Windows.Forms.ToolStripTextBox(); + this.btFind = new System.Windows.Forms.ToolStripButton(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // dsPurchase + // + this.dsPurchase.DataSetName = "dsPurchase"; + this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bs + // + this.bs.DataMember = "EETGW_PurchaseCR"; + this.bs.DataSource = this.dsPurchase; + this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = true; + this.tam.EETGW_PurchaseCRTableAdapter = null; + this.tam.EETGW_PurchaseEBTableAdapter = null; + this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bs; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.ImageScalingSize = new System.Drawing.Size(24, 24); + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.toolStripButton1, + this.btEdit, + this.btSave, + this.toolStripSeparator1, + this.lbSum, + this.toolStripLabel5, + this.toolStripLabel2, + this.tbFind, + this.btFind}); + this.bn.Location = new System.Drawing.Point(0, 589); + this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bn.Name = "bn"; + this.bn.PositionItem = this.bindingNavigatorPositionItem; + this.bn.Size = new System.Drawing.Size(1219, 31); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31); + // + // toolStripButton1 + // + 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(100, 28); + this.toolStripButton1.Text = "목록제거(&D)"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // + // btEdit + // + this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); + this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btEdit.Name = "btEdit"; + this.btEdit.Size = new System.Drawing.Size(73, 28); + this.btEdit.Text = "편집(&E)"; + this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); + // + // btSave + // + this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image"))); + this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(83, 28); + this.btSave.Text = "승인요청"; + this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31); + // + // lbSum + // + this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSum.Name = "lbSum"; + this.lbSum.Size = new System.Drawing.Size(22, 28); + this.lbSum.Text = "0"; + // + // toolStripLabel5 + // + this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripLabel5.Name = "toolStripLabel5"; + this.toolStripLabel5.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel5.Text = "합계"; + // + // toolStripLabel2 + // + this.toolStripLabel2.Name = "toolStripLabel2"; + this.toolStripLabel2.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel2.Text = "검색"; + this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click); + // + // tbFind + // + this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.tbFind.Name = "tbFind"; + this.tbFind.Size = new System.Drawing.Size(100, 31); + this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); + // + // btFind + // + this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); + this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btFind.Name = "btFind"; + this.btFind.Size = new System.Drawing.Size(28, 28); + this.btFind.Text = "toolStripButton2"; + this.btFind.Click += new System.EventHandler(this.btFind_Click); + // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(1219, 25); + this.toolStrip1.TabIndex = 3; + this.toolStrip1.Text = "toolStrip1"; + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + this.dataGridView1.AutoGenerateColumns = false; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.pdateDataGridViewTextBoxColumn, + this.requestNameDataGridViewTextBoxColumn, + this.sidDataGridViewTextBoxColumn, + this.pumnameDataGridViewTextBoxColumn, + this.pumscaleDataGridViewTextBoxColumn, + this.pumunitDataGridViewTextBoxColumn, + this.pumqtyDataGridViewTextBoxColumn, + this.pumqtyReqDataGridViewTextBoxColumn, + this.pumpriceDataGridViewTextBoxColumn, + this.pumamtDataGridViewTextBoxColumn, + this.supplyDataGridViewTextBoxColumn, + this.bigo2DataGridViewTextBoxColumn, + this.bigoDataGridViewTextBoxColumn}); + this.dataGridView1.DataSource = this.bs; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5; + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 25); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.ReadOnly = true; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(1219, 426); + this.dataGridView1.TabIndex = 8; + // + // pdateDataGridViewTextBoxColumn + // + this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate"; + this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일"; + this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn"; + this.pdateDataGridViewTextBoxColumn.ReadOnly = true; + // + // requestNameDataGridViewTextBoxColumn + // + this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName"; + this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청"; + this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn"; + this.requestNameDataGridViewTextBoxColumn.ReadOnly = true; + // + // sidDataGridViewTextBoxColumn + // + this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid"; + this.sidDataGridViewTextBoxColumn.HeaderText = "SID"; + this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn"; + this.sidDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumnameDataGridViewTextBoxColumn + // + this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname"; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1; + this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명"; + this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn"; + this.pumnameDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumscaleDataGridViewTextBoxColumn + // + this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale"; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2; + this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격"; + this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn"; + this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumunitDataGridViewTextBoxColumn + // + this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit"; + this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위"; + this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn"; + this.pumunitDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyDataGridViewTextBoxColumn + // + this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty"; + this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량"; + this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn"; + this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyReqDataGridViewTextBoxColumn + // + this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq"; + this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량"; + this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn"; + this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumpriceDataGridViewTextBoxColumn + // + this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice"; + this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가"; + this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn"; + this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumamtDataGridViewTextBoxColumn + // + this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt"; + this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액"; + this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn"; + this.pumamtDataGridViewTextBoxColumn.ReadOnly = true; + // + // supplyDataGridViewTextBoxColumn + // + this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply"; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; + this.supplyDataGridViewTextBoxColumn.HeaderText = "공급"; + this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn"; + this.supplyDataGridViewTextBoxColumn.ReadOnly = true; + // + // bigo2DataGridViewTextBoxColumn + // + this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark"; + this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)"; + this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn"; + this.bigo2DataGridViewTextBoxColumn.ReadOnly = true; + // + // bigoDataGridViewTextBoxColumn + // + this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo"; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4; + this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)"; + this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn"; + this.bigoDataGridViewTextBoxColumn.ReadOnly = true; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138); + this.tableLayoutPanel1.TabIndex = 9; + // + // richTextBox1 + // + this.richTextBox1.BackColor = System.Drawing.Color.Gold; + this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true)); + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox1.Location = new System.Drawing.Point(3, 28); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(603, 107); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = ""; + // + // richTextBox2 + // + this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true)); + this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox2.Location = new System.Drawing.Point(612, 28); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(604, 107); + this.richTextBox2.TabIndex = 0; + this.richTextBox2.Text = ""; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(603, 25); + this.label1.TabIndex = 1; + this.label1.Text = "구매 담당자 비고"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(612, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(604, 25); + this.label2.TabIndex = 2; + this.label2.Text = "구매신청자 비고(구매사유)"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // fPurchaseCR_ConfRequest + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1219, 620); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.tableLayoutPanel1); + this.Controls.Add(this.toolStrip1); + this.Controls.Add(this.bn); + this.DoubleBuffered = true; + this.Name = "fPurchaseCR_ConfRequest"; + this.Text = "구매신청건 승인요청"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private dsPurchase dsPurchase; + private System.Windows.Forms.BindingSource bs; + private dsPurchaseTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripLabel toolStripLabel5; + private System.Windows.Forms.ToolStripLabel lbSum; + private System.Windows.Forms.ToolStripLabel toolStripLabel2; + private System.Windows.Forms.ToolStripTextBox tbFind; + private System.Windows.Forms.ToolStripButton btFind; + private System.Windows.Forms.ToolStripButton btEdit; + private System.Windows.Forms.ToolStripButton btSave; + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn; + private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter ta; + } +} diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs new file mode 100644 index 0000000..70ad469 --- /dev/null +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.cs @@ -0,0 +1,543 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using util = FCOMMON.Util; + +using NetOffice; +using Outlook = NetOffice.OutlookApi; +using NetOffice.OutlookApi.Enums; +using FEQ0000.Purchase; +using FCOMMON; +using NetOffice.OfficeApi; +using System.Web.Services.Protocols; +using System.Diagnostics; +using FarPoint.Win.Spread.CellType; +using FCM0000; +using FarPoint.Win.Spread; +using System.Resources; + +namespace FEQ0000 +{ + public partial class fPurchaseCR_ConfRequest : FCOMMON.fBase + { + string fn_fpcolsize = ""; + List rows; + public fPurchaseCR_ConfRequest(List rows_) + { + InitializeComponent(); + this.rows = rows_; + Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; + Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS; + + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.FormClosing += FPurchase_FormClosing; + this.FormClosed += __Closed; + + this.bs.DataSource = rows; + this.dataGridView1.DataError += (s1, e1) => { }; + this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke; + + } + + private void FPurchase_FormClosing(object sender, FormClosingEventArgs e) + { + if (dsPurchase.HasChanges()) + { + var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다"); + if (dlg != DialogResult.Yes) + { + e.Cancel = true; + return; + } + } + } + + void dtSD_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode != Keys.Enter) return; + var tb = sender as ToolStripTextBox; + var input = tb.Text.Trim(); + if (input == "") tb.Text = DateTime.Now.ToShortDateString(); + else + { + string dt = string.Empty; + if (!util.MakeDateString(input, out dt)) + { + FCOMMON.Util.MsgE("입력값이 올바르지 않습니다."); + tb.SelectAll(); + tb.Focus(); + return; + } + else + { + tb.Text = dt; + } + } + + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + + private void __Load(object sender, EventArgs e) + { + + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB)); + IsAdmin = curLevel >= 5; + if (curLevel >= 5) + { + btSave.Visible = true; + + } + else + { + + btSave.Visible = false; + } + btSave.Visible = true; + refreshData(); + + + } + + bool IsAdmin = false; + + private void refreshData() + { + + try + { + + showSummary(); + } + catch (System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.Message); + } + + FormattingData(); + } + void FormattingData() + { + + dataGridView1.AutoResizeColumns(); + } + + + void showSummary() + { + decimal sum = 0; + + sum = rows.Sum(t => t.pumamt); + //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) + //if (!dr.IspumamtNull()) sum += dr.pumamt; + lbSum.Text = sum.ToString("N0"); + } + + + private bool getAdminInput + { + get + { + return FCOMMON.Util.getBit( + FCOMMON.info.Login.gpermission, + (int)FCOMMON.eGroupPermission.purchase_adv); + } + } + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + //func_delete(); + } + + + private int AddItemInfoGetIndex(dsPurchase.EETGW_PurchaseCRRow newdr) + { + //이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다. + if (newdr.sid == "신규") return -1; + int retval = -1; + var sid = newdr.sid; + var iteminfo = FCOMMON.DBM.getItemInfo(sid); + if (iteminfo.idx < 0) + { + FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo(); + newitem.sid = newdr.sid; + newitem.name = newdr.pumname; + newitem.price = newdr.pumprice.ToString(); + newitem.model = newdr.pumscale; + newitem.unit = newdr.pumunit; + newitem.scale = 1f; + newitem.supply = newdr.supply; + newitem.supplyidx = newdr.supplyidx; + retval = FCOMMON.DBM.addItemInfo(newitem); + } + return retval; + } + + + + private void btFind_Click(object sender, EventArgs e) + { + var search = tbFind.Text.Trim(); + search = search.Replace("*", "x"); + if (tbFind.Text != search) tbFind.Text = search; + try + { + if (search.isEmpty()) + { + this.bs.Filter = ""; + tbFind.BackColor = Color.White; + } + else + { + search = search.Replace("'", "''"); + string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?"; + filter = filter.Replace("?", "'%" + search + "%'"); + this.bs.Filter = filter; + tbFind.BackColor = Color.Lime; + } + tbFind.SelectAll(); + tbFind.Focus(); + showSummary(); + } + catch (Exception ex) + { + this.tbFind.BackColor = Color.Tomato; + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void tbFind_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) btFind.PerformClick(); + } + + void Func_Edit() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow; + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchaseCR_Add(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchaseCR_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + if (newdr.RowState != DataRowState.Unchanged) + { + this.ta.Update(newdr); + newdr.AcceptChanges(); + } + } + else newdr.RejectChanges(); + + } + + + + private void toolStripButton2_Click(object sender, EventArgs e) + { + Func_Edit(); + } + + + + + + + private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //sc + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow; + if (newdr.sc.Trim() == "") + { + FCOMMON.Util.MsgE("SC값이 없습니다"); + return; + } + tbFind.Text = newdr.sc; + btFind.PerformClick(); + } + + private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //crcf + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow; + if (newdr.orderno.Trim() == "") + { + FCOMMON.Util.MsgE("CR/CF값이 없습니다"); + return; + } + tbFind.Text = newdr.orderno; + btFind.PerformClick(); + } + + private void toolStripLabel2_Click(object sender, EventArgs e) + { + if (tbFind.Text != "") + { + tbFind.Text = ""; + btFind.PerformClick(); + } + + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + + } + + private void bs_CurrentChanged(object sender, EventArgs e) + { + var dr = bs.Current as dsPurchase.EETGW_PurchaseCRRow; + if (dr.IschkremarkNull()) richTextBox1.Text = ""; + //else richTextBox1.Text = dr.chkremark; + //if (dr.IsbigoNull()) richTextBox2.Text = ""; + //else richTextBox2.Text = dr.bigo; + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + + } + + string getmaxstr(string src, int len = 30) + { + if (src.Length > len) return src.Substring(0, len) + "..."; + else return src; + } + + List ChangeMailAddress(List userid) + { + var db = new DataClasses1DataContext(); + + List retval = new List(); + foreach (var id in userid) + { + UInt32 userno; + if (UInt32.TryParse(id, out userno) == true) + { + var user = db.Users.Where(t => t.id == id).FirstOrDefault(); + if (user != null) + { + var data = string.Format("{0}<{1}>", user.name, user.email); + if (retval.Contains(data) == false) + retval.Add(data); + } + } + else + { + if (retval.Contains(id) == false) + retval.Add(id); + } + } + return retval; + } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + //승인요청 + var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?"); + if (dlg != DialogResult.Yes) return; + + //모든자료의 승인상태를 업데이트한다. + foreach (DataGridViewRow row in this.dataGridView1.Rows) + { + var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseCRRow; + dr.conf_status = "1"; + if (dr.state == "---") dr.state = "Approving"; + dr.EndEdit(); + ta.Update(dr); + dr.AcceptChanges(); + } + + dlg = util.MsgQ("메일 전송을 할까요?"); + if (dlg != DialogResult.Yes) return; + + + //수신자목록수집 + + //var drows = (List)(this.bs.DataSource); + var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList(); + var grp_rec = rows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + var f = new Purchase.fMailForm("PI"); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmcr_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName); + + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + + sb.AppendLine(""); + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + sb.AppendLine($""); + } + sb.AppendLine(""); + sb.AppendLine(""); + + for (int i = 0; i < this.dataGridView1.RowCount; i++) + { + + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + var v = dataGridView1.Rows[i].Cells[col.Index].Value; + string value = ""; + if (v != null) value = v.ToString(); + + if (col.ValueType == typeof(int)) + { + var ivalue = (int)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(decimal)) + { + var ivalue = (decimal)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(float)) + { + var ivalue = (float)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(double)) + { + var ivalue = (double)v; + sb.AppendLine($""); + } + else sb.AppendLine($""); + } + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
{col.HeaderText}
{ivalue:N0}{ivalue:N0}{ivalue:N1}{ivalue:N1}{getmaxstr(value)}
"); + sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}"); + form_body = form_body.Replace("{body}", sb.ToString()); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as dsPurchase.EETGW_PurchaseCRRow; + if (drv == null) return; + var dlg = util.MsgQ("선택된 줄을 제거 할까요?"); + if (dlg != DialogResult.Yes) return; + this.rows.Remove(drv); + if (rows.Any()) + { + this.bs.DataSource = rows; + refreshData(); + } + else + { + this.bs.DataSource = null; + lbSum.Text = ""; + } + this.dataGridView1.Refresh(); + } + } +} diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.resx b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.resx new file mode 100644 index 0000000..569db13 --- /dev/null +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_ConfRequest.resx @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 131, 17 + + + 257, 17 + + + 330, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm + +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV + kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP + 0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w + 9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF + KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 + qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO + b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY + hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 + 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon + GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== + + + + 396, 17 + + + 502, 17 + + + 65 + + \ No newline at end of file diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs index b232d89..33e5551 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.Designer.cs @@ -58,6 +58,8 @@ 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(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); @@ -78,6 +80,7 @@ this.btDel = new System.Windows.Forms.ToolStripButton(); this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.btSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton8 = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.lbSum = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); @@ -136,6 +139,8 @@ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); + this.현재목록메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -192,6 +197,7 @@ this.btDel, this.toolStripButton4, this.btSave, + this.toolStripButton8, this.toolStripSeparator1, this.lbSum, this.toolStripLabel5, @@ -335,6 +341,15 @@ this.btSave.Text = "저장(&S)"; this.btSave.Click += new System.EventHandler(this.btSave_Click); // + // toolStripButton8 + // + this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image"))); + this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton8.Name = "toolStripButton8"; + this.toolStripButton8.Size = new System.Drawing.Size(75, 23); + this.toolStripButton8.Text = "승인요청"; + this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click); + // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; @@ -410,14 +425,14 @@ // 집계표ToolStripMenuItem // this.집계표ToolStripMenuItem.Name = "집계표ToolStripMenuItem"; - this.집계표ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.집계표ToolStripMenuItem.Size = new System.Drawing.Size(150, 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(180, 22); + this.구매승인양식ToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.구매승인양식ToolStripMenuItem.Text = "구매승인 양식"; this.구매승인양식ToolStripMenuItem.Click += new System.EventHandler(this.구매승인양식ToolStripMenuItem_Click); // @@ -426,7 +441,9 @@ this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.입고품목메일전송ToolStripMenuItem, this.엑셀에서가져오기ToolStripMenuItem, - this.견적서폴더열기ToolStripMenuItem}); + this.견적서폴더열기ToolStripMenuItem, + this.현재목록메일전송ToolStripMenuItem, + this.toolStripMenuItem2}); this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image"))); this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton7.Name = "toolStripButton7"; @@ -800,6 +817,7 @@ this.fpSpread1.TabIndex = 4; this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff); this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick); + this.fpSpread1.SetViewportLeftColumn(0, 0, 1); // // fpSpread1_Sheet1 // @@ -807,7 +825,7 @@ 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 = 28; + this.fpSpread1_Sheet1.ColumnCount = 32; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.fpSpread1_Sheet1.AutoGenerateColumns = false; @@ -1064,10 +1082,35 @@ this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨"; this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel"; this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType10; + this.fpSpread1_Sheet1.Columns.Get(28).DataField = "idx"; + this.fpSpread1_Sheet1.Columns.Get(28).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(28).Tag = "idx"; + this.fpSpread1_Sheet1.Columns.Get(28).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(29).DataField = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(29).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(29).Tag = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(29).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(30).DataField = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(30).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(30).Tag = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(30).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(31).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(31).DataField = "conf_reponse"; + this.fpSpread1_Sheet1.Columns.Get(31).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(31).Tag = "conf_reponse"; + this.fpSpread1_Sheet1.Columns.Get(31).Visible = false; 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.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // // label1 @@ -1094,6 +1137,18 @@ this.label2.Text = "--"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(179, 6); + // + // 현재목록메일전송ToolStripMenuItem + // + this.현재목록메일전송ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem"; + this.현재목록메일전송ToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.현재목록메일전송ToolStripMenuItem.Text = "현재 목록 메일 전송"; + this.현재목록메일전송ToolStripMenuItem.Click += new System.EventHandler(this.현재목록메일전송ToolStripMenuItem_Click); + // // fPurchaseEB // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1202,6 +1257,9 @@ private System.Windows.Forms.Label label2; private System.Windows.Forms.ToolStripMenuItem 엑셀에서열기ToolStripMenuItem; private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta; + private System.Windows.Forms.ToolStripButton toolStripButton8; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; + private System.Windows.Forms.ToolStripMenuItem 현재목록메일전송ToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; } } diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs index b4d71bb..0c3395d 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.cs @@ -254,7 +254,7 @@ namespace FEQ0000 var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index; var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index; - + var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index; for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) { @@ -264,10 +264,12 @@ namespace FEQ0000 var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex); var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex); + var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex); var str_crcf = string.Empty; + var str_confstats = string.Empty; if (crcf != null) str_crcf = crcf.ToString(); - + if (v_confstats != null) str_confstats = v_confstats.ToString(); if (value != null && (Boolean)value) { @@ -304,6 +306,14 @@ namespace FEQ0000 case "hold": this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink; break; + case "approving": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod; + + if (str_confstats == "2") //ok + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime; + else if (str_confstats == "3") //reject + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink; + break; default: this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; break; @@ -1280,5 +1290,246 @@ namespace FEQ0000 { } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + + + //선택된 자료의 데이터를 추출한다. + var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인 + List rowidxs = new List(); + var idxcol = this.fpSpread1_Sheet1.Columns["idx"]; + var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"]; + var idxstatus = this.fpSpread1_Sheet1.Columns["state"]; + foreach (var item in selected) + { + for (int i = item.Row; i < item.Row + item.RowCount; i++) + { + if (rowidxs.Contains(i) == false) + { + if (fpSpread1_Sheet1.IsRowBound(i)) + { + var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index); + var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index); + if (state != null && state.ToString() != "---") + { + FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다"); + } + //else if (confsta != null && confsta.ToString() != "0") + //{ + // FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다"); + //} + else rowidxs.Add(i); + } + } + } + } + + //수집된데이터를 보내야한다. + List rows = new List(); + var idx = 0; + foreach (var i in rowidxs) + { + var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index); + var row = this.dsPurchase.EETGW_PurchaseEB.Where(t => t.idx == rowidx).First(); + rows.Add(row); + } + + //이자료를 승인요청창에 보낸다. + if (rows.Any() == false) + { + FCOMMON.Util.MsgE("대상 데이터가 없습니다."); + return; + } + var f = new fPurchaseEB_ConfRequest(rows); + f.ShowDialog(); + FormattingData(); + + } + + private void 현재목록메일전송ToolStripMenuItem_Click(object sender, EventArgs e) + { + var cate = "PO"; + + var db = new DataClasses1DataContext(); + 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(cate); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + var datestr = DateTime.Now.ToShortDateString(); + if (dtSD.Text == dtED.Text) datestr = dtSD.Text; + else datestr = dtSD.Text + "~" + dtED.Text; + form_subject = form_subject.Replace("{DATE}", datestr); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + ///save file + fpSpread1.SaveExcel(fi.FullName, + FarPoint.Excel.ExcelSaveFlags.SaveAsViewed + | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered + | FarPoint.Excel.ExcelSaveFlags.NoFormulas + | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index; + var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index; + var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index; + + var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index; + var col_SID = fpSpread1_Sheet1.Columns["sid"].Index; + var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index; + var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index; + var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index; + var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index; + var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index; + var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index; + var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index; + + + for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++) + { + var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value; + var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value; + var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value; + + var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value; + var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value; + var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value; + var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value; + var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value; + var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value; + var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value; + var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value; + var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value; + + var s신청 = String.Empty; + var s요청 = String.Empty; + var sCRCF = String.Empty; + var s수령 = String.Empty; + var sSID = String.Empty; + var s품명 = String.Empty; + var s규격 = String.Empty; + var s수량 = "0"; + var s단가 = "0"; + var s금액 = "0"; + var s입고 = String.Empty; + var s공급 = String.Empty; + var s비고 = String.Empty; + + if (v신청 != null) s신청 = v신청.ToString(); + if (v요청 != null) s요청 = v요청.ToString(); + if (vCRCF != null) sCRCF = vCRCF.ToString(); + if (v수령 != null) s수령 = v수령.ToString(); + if (vSID != null) sSID = vSID.ToString(); + if (v품명 != null) s품명 = v품명.ToString(); + if (v규격 != null) s규격 = v규격.ToString(); + if (v수량 != null) s수량 = v수량.ToString(); + if (v단가 != null) s단가 = v단가.ToString(); + if (v금액 != null) s금액 = v금액.ToString(); + if (v공급 != null) s공급 = v공급.ToString(); + + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
신청요청CR/CF수령SID품명규격수량단가금액공급
" + getmaxstr(s신청) + "" + getmaxstr(s요청) + "" + getmaxstr(sCRCF) + "" + getmaxstr(s수령) + "" + getmaxstr(sSID) + "" + getmaxstr(s품명) + "" + getmaxstr(s규격) + "" + int.Parse(s수량).ToString("N0") + "" + int.Parse(s단가).ToString("N0") + "" + int.Parse(s금액).ToString("N0") + "" + getmaxstr(s공급) + "
"); + form_body += sb.ToString(); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + form_body = form_body.Replace("{DATE}", datestr); + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } } } diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx index a85a504..a0bb9b7 100644 --- a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB.resx @@ -233,6 +233,21 @@ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D TgDQASA1MVpwzwAAAABJRU5ErkJggg== + +
+ + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.Designer.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.Designer.cs new file mode 100644 index 0000000..33553b7 --- /dev/null +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.Designer.cs @@ -0,0 +1,553 @@ +namespace FEQ0000 +{ + partial class fPurchaseEB_ConfRequest + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 구성 요소 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB_ConfRequest)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); + this.btSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.lbSum = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); + this.tbFind = new System.Windows.Forms.ToolStripTextBox(); + this.btFind = new System.Windows.Forms.ToolStripButton(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // dsPurchase + // + this.dsPurchase.DataSetName = "dsPurchase"; + this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bs + // + this.bs.DataMember = "EETGW_PurchaseEB"; + this.bs.DataSource = this.dsPurchase; + this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = true; + this.tam.EETGW_PurchaseCRTableAdapter = null; + this.tam.EETGW_PurchaseEBTableAdapter = null; + this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bs; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.ImageScalingSize = new System.Drawing.Size(24, 24); + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.toolStripButton1, + this.btEdit, + this.btSave, + this.toolStripSeparator1, + this.lbSum, + this.toolStripLabel5, + this.toolStripLabel2, + this.tbFind, + this.btFind}); + this.bn.Location = new System.Drawing.Point(0, 589); + this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bn.Name = "bn"; + this.bn.PositionItem = this.bindingNavigatorPositionItem; + this.bn.Size = new System.Drawing.Size(1219, 31); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31); + // + // toolStripButton1 + // + 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(100, 28); + this.toolStripButton1.Text = "목록제거(&D)"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // + // btEdit + // + this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); + this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btEdit.Name = "btEdit"; + this.btEdit.Size = new System.Drawing.Size(73, 28); + this.btEdit.Text = "편집(&E)"; + this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); + // + // btSave + // + this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image"))); + this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(83, 28); + this.btSave.Text = "승인요청"; + this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31); + // + // lbSum + // + this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSum.Name = "lbSum"; + this.lbSum.Size = new System.Drawing.Size(22, 28); + this.lbSum.Text = "0"; + // + // toolStripLabel5 + // + this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripLabel5.Name = "toolStripLabel5"; + this.toolStripLabel5.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel5.Text = "합계"; + // + // toolStripLabel2 + // + this.toolStripLabel2.Name = "toolStripLabel2"; + this.toolStripLabel2.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel2.Text = "검색"; + this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click); + // + // tbFind + // + this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.tbFind.Name = "tbFind"; + this.tbFind.Size = new System.Drawing.Size(100, 31); + this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); + // + // btFind + // + this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); + this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btFind.Name = "btFind"; + this.btFind.Size = new System.Drawing.Size(28, 28); + this.btFind.Text = "toolStripButton2"; + this.btFind.Click += new System.EventHandler(this.btFind_Click); + // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(1219, 25); + this.toolStrip1.TabIndex = 3; + this.toolStrip1.Text = "toolStrip1"; + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + this.dataGridView1.AutoGenerateColumns = false; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.pdateDataGridViewTextBoxColumn, + this.requestNameDataGridViewTextBoxColumn, + this.sidDataGridViewTextBoxColumn, + this.pumnameDataGridViewTextBoxColumn, + this.pumscaleDataGridViewTextBoxColumn, + this.pumunitDataGridViewTextBoxColumn, + this.pumqtyDataGridViewTextBoxColumn, + this.pumqtyReqDataGridViewTextBoxColumn, + this.pumpriceDataGridViewTextBoxColumn, + this.pumamtDataGridViewTextBoxColumn, + this.supplyDataGridViewTextBoxColumn, + this.bigo2DataGridViewTextBoxColumn, + this.bigoDataGridViewTextBoxColumn}); + this.dataGridView1.DataSource = this.bs; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5; + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 25); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(1219, 426); + this.dataGridView1.TabIndex = 8; + // + // pdateDataGridViewTextBoxColumn + // + this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate"; + this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일"; + this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn"; + // + // requestNameDataGridViewTextBoxColumn + // + this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName"; + this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청"; + this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn"; + this.requestNameDataGridViewTextBoxColumn.ReadOnly = true; + // + // sidDataGridViewTextBoxColumn + // + this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid"; + this.sidDataGridViewTextBoxColumn.HeaderText = "SID"; + this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn"; + // + // pumnameDataGridViewTextBoxColumn + // + this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname"; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1; + this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명"; + this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn"; + // + // pumscaleDataGridViewTextBoxColumn + // + this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale"; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2; + this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격"; + this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn"; + // + // pumunitDataGridViewTextBoxColumn + // + this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit"; + this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위"; + this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn"; + // + // pumqtyDataGridViewTextBoxColumn + // + this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty"; + this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량"; + this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn"; + // + // pumqtyReqDataGridViewTextBoxColumn + // + this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq"; + this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량"; + this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn"; + // + // pumpriceDataGridViewTextBoxColumn + // + this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice"; + this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가"; + this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn"; + // + // pumamtDataGridViewTextBoxColumn + // + this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt"; + this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액"; + this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn"; + // + // supplyDataGridViewTextBoxColumn + // + this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply"; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; + this.supplyDataGridViewTextBoxColumn.HeaderText = "공급"; + this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn"; + // + // bigo2DataGridViewTextBoxColumn + // + this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark"; + this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)"; + this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn"; + // + // bigoDataGridViewTextBoxColumn + // + this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo"; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4; + this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)"; + this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn"; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138); + this.tableLayoutPanel1.TabIndex = 9; + // + // richTextBox1 + // + this.richTextBox1.BackColor = System.Drawing.Color.Gold; + this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true)); + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox1.Location = new System.Drawing.Point(3, 28); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(603, 107); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = ""; + // + // richTextBox2 + // + this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true)); + this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox2.Location = new System.Drawing.Point(612, 28); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(604, 107); + this.richTextBox2.TabIndex = 0; + this.richTextBox2.Text = ""; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(603, 25); + this.label1.TabIndex = 1; + this.label1.Text = "구매 담당자 비고"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(612, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(604, 25); + this.label2.TabIndex = 2; + this.label2.Text = "구매신청자 비고(구매사유)"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // fPurchaseEB_ConfRequest + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1219, 620); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.tableLayoutPanel1); + this.Controls.Add(this.toolStrip1); + this.Controls.Add(this.bn); + this.DoubleBuffered = true; + this.Name = "fPurchaseEB_ConfRequest"; + this.Text = "구매신청건 승인요청"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private dsPurchase dsPurchase; + private System.Windows.Forms.BindingSource bs; + private dsPurchaseTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripLabel toolStripLabel5; + private System.Windows.Forms.ToolStripLabel lbSum; + private System.Windows.Forms.ToolStripLabel toolStripLabel2; + private System.Windows.Forms.ToolStripTextBox tbFind; + private System.Windows.Forms.ToolStripButton btFind; + private System.Windows.Forms.ToolStripButton btEdit; + private System.Windows.Forms.ToolStripButton btSave; + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn; + private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta; + } +} diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs new file mode 100644 index 0000000..4ed1b8b --- /dev/null +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.cs @@ -0,0 +1,546 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using util = FCOMMON.Util; + +using NetOffice; +using Outlook = NetOffice.OutlookApi; +using NetOffice.OutlookApi.Enums; +using FEQ0000.Purchase; +using FCOMMON; +using NetOffice.OfficeApi; +using System.Web.Services.Protocols; +using System.Diagnostics; +using FarPoint.Win.Spread.CellType; +using FCM0000; +using FarPoint.Win.Spread; +using System.Resources; + +namespace FEQ0000 +{ + public partial class fPurchaseEB_ConfRequest : FCOMMON.fBase + { + string fn_fpcolsize = ""; + List rows; + public fPurchaseEB_ConfRequest(List rows_) + { + InitializeComponent(); + this.rows = rows_; + Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; + Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS; + + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.FormClosing += FPurchase_FormClosing; + this.FormClosed += __Closed; + + this.bs.DataSource = rows; + this.dataGridView1.DataError += (s1, e1) => { }; + this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke; + } + + private void FPurchase_FormClosing(object sender, FormClosingEventArgs e) + { + if (dsPurchase.HasChanges()) + { + var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다"); + if (dlg != DialogResult.Yes) + { + e.Cancel = true; + return; + } + } + } + + void dtSD_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode != Keys.Enter) return; + var tb = sender as ToolStripTextBox; + var input = tb.Text.Trim(); + if (input == "") tb.Text = DateTime.Now.ToShortDateString(); + else + { + string dt = string.Empty; + if (!util.MakeDateString(input, out dt)) + { + FCOMMON.Util.MsgE("입력값이 올바르지 않습니다."); + tb.SelectAll(); + tb.Focus(); + return; + } + else + { + tb.Text = dt; + } + } + + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + + private void __Load(object sender, EventArgs e) + { + + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB)); + IsAdmin = curLevel >= 5; + if (curLevel >= 5) + { + btSave.Visible = true; + + } + else + { + + btSave.Visible = false; + } + btSave.Visible = true; + refreshData(); + + + } + + bool IsAdmin = false; + + private void refreshData() + { + + try + { + + showSummary(); + } + catch (System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.Message); + } + + FormattingData(); + } + void FormattingData() + { + + dataGridView1.AutoResizeColumns(); + } + + + void showSummary() + { + decimal sum = 0; + + sum = rows.Sum(t => t.pumamt); + //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) + //if (!dr.IspumamtNull()) sum += dr.pumamt; + lbSum.Text = sum.ToString("N0"); + } + + + private bool getAdminInput + { + get + { + return FCOMMON.Util.getBit( + FCOMMON.info.Login.gpermission, + (int)FCOMMON.eGroupPermission.purchase_adv); + } + } + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + //func_delete(); + } + + + private int AddItemInfoGetIndex(dsPurchase.EETGW_PurchaseEBRow newdr) + { + //이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다. + if (newdr.sid == "신규") return -1; + int retval = -1; + var sid = newdr.sid; + var iteminfo = FCOMMON.DBM.getItemInfo(sid); + if (iteminfo.idx < 0) + { + FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo(); + newitem.sid = newdr.sid; + newitem.name = newdr.pumname; + newitem.price = newdr.pumprice.ToString(); + newitem.model = newdr.pumscale; + newitem.unit = newdr.pumunit; + newitem.scale = 1f; + newitem.supply = newdr.supply; + newitem.supplyidx = newdr.supplyidx; + retval = FCOMMON.DBM.addItemInfo(newitem); + } + return retval; + } + + + + private void btFind_Click(object sender, EventArgs e) + { + var search = tbFind.Text.Trim(); + search = search.Replace("*", "x"); + if (tbFind.Text != search) tbFind.Text = search; + try + { + if (search.isEmpty()) + { + this.bs.Filter = ""; + tbFind.BackColor = Color.White; + } + else + { + search = search.Replace("'", "''"); + string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?"; + filter = filter.Replace("?", "'%" + search + "%'"); + this.bs.Filter = filter; + tbFind.BackColor = Color.Lime; + } + tbFind.SelectAll(); + tbFind.Focus(); + showSummary(); + } + catch (Exception ex) + { + this.tbFind.BackColor = Color.Tomato; + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void tbFind_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) btFind.PerformClick(); + } + + void Func_Edit() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow; + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchaseEB_Add(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchaseEB_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + if (newdr.RowState != DataRowState.Unchanged) + { + this.ta.Update(newdr); + newdr.AcceptChanges(); + } + } + else newdr.RejectChanges(); + + } + + + + private void toolStripButton2_Click(object sender, EventArgs e) + { + Func_Edit(); + } + + + + + + + private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //sc + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow; + if (newdr.sc.Trim() == "") + { + FCOMMON.Util.MsgE("SC값이 없습니다"); + return; + } + tbFind.Text = newdr.sc; + btFind.PerformClick(); + } + + private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //crcf + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow; + if (newdr.orderno.Trim() == "") + { + FCOMMON.Util.MsgE("CR/CF값이 없습니다"); + return; + } + tbFind.Text = newdr.orderno; + btFind.PerformClick(); + } + + private void toolStripLabel2_Click(object sender, EventArgs e) + { + if (tbFind.Text != "") + { + tbFind.Text = ""; + btFind.PerformClick(); + } + + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + + } + + private void bs_CurrentChanged(object sender, EventArgs e) + { + var dr = bs.Current as dsPurchase.EETGW_PurchaseEBRow; + //if (dr.IschkremarkNull()) richTextBox1.Text = ""; + //else richTextBox1.Text = dr.chkremark; + //if (dr.IsbigoNull()) richTextBox2.Text = ""; + //else richTextBox2.Text = dr.bigo; + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + + } + + string getmaxstr(string src, int len = 30) + { + if (src.Length > len) return src.Substring(0, len) + "..."; + else return src; + } + + List ChangeMailAddress(List userid) + { + var db = new DataClasses1DataContext(); + + List retval = new List(); + foreach (var id in userid) + { + UInt32 userno; + if (UInt32.TryParse(id, out userno) == true) + { + var user = db.Users.Where(t => t.id == id).FirstOrDefault(); + if (user != null) + { + var data = string.Format("{0}<{1}>", user.name, user.email); + if (retval.Contains(data) == false) + retval.Add(data); + } + } + else + { + if (retval.Contains(id) == false) + retval.Add(id); + } + } + return retval; + } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + this.Validate(); + this.bs.EndEdit(); + + + //승인요청 + var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?"); + if (dlg != DialogResult.Yes) return; + + //모든자료의 승인상태를 업데이트한다. + foreach (DataGridViewRow row in this.dataGridView1.Rows) + { + var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow; + dr.conf_status = "1"; + if (dr.state == "---") dr.state = "Approving"; + dr.EndEdit(); + ta.Update(dr); + dr.AcceptChanges(); + } + + dlg = util.MsgQ("메일 전송을 할까요?"); + if (dlg != DialogResult.Yes) return; + + + //수신자목록수집 + + //var drows = (List)(this.bs.DataSource); + var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList(); + var grp_rec = rows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + var f = new Purchase.fMailForm("PJ"); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName); + + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + + sb.AppendLine(""); + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + sb.AppendLine($""); + } + sb.AppendLine(""); + sb.AppendLine(""); + + for (int i = 0; i < this.dataGridView1.RowCount; i++) + { + + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + var v = dataGridView1.Rows[i].Cells[col.Index].Value; + string value = ""; + if (v != null) value = v.ToString(); + + if (col.ValueType == typeof(int)) + { + var ivalue = (int)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(decimal)) + { + var ivalue = (decimal)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(float)) + { + var ivalue = (float)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(double)) + { + var ivalue = (double)v; + sb.AppendLine($""); + } + else sb.AppendLine($""); + } + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
{col.HeaderText}
{ivalue:N0}{ivalue:N0}{ivalue:N1}{ivalue:N1}{getmaxstr(value)}
"); + sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}"); + form_body = form_body.Replace("{body}", sb.ToString()); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as dsPurchase.EETGW_PurchaseEBRow; + if (drv == null) return; + var dlg = util.MsgQ("선택된 줄을 제거 할까요?"); + if (dlg != DialogResult.Yes) return; + this.rows.Remove(drv); + if (rows.Any()) + { + this.bs.DataSource = rows; + refreshData(); + } + else + { + this.bs.DataSource = null; + lbSum.Text = ""; + } + this.dataGridView1.Refresh(); + } + } +} diff --git a/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.resx b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.resx new file mode 100644 index 0000000..0aaecc2 --- /dev/null +++ b/SubProject/FEQ0000/PurchaseEB/fPurchaseEB_ConfRequest.resx @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 131, 17 + + + 195, 17 + + + 268, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm + +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV + kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP + 0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w + 9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF + KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 + qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO + b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY + hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 + 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon + GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== + + + + 334, 17 + + + 440, 17 + + + 65 + + \ No newline at end of file diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs index 8c0f8bd..3611350 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.Designer.cs @@ -66,6 +66,8 @@ 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.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType26 = 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); @@ -87,6 +89,7 @@ this.btDel = new System.Windows.Forms.ToolStripButton(); this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.btSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton8 = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.lbSum = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); @@ -110,6 +113,7 @@ this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.사용자내보내기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); this.상태일괄변경ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.입고ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -150,7 +154,7 @@ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); - this.사용자내보내기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.현재목록메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -208,6 +212,7 @@ this.btDel, this.toolStripButton4, this.btSave, + this.toolStripButton8, this.toolStripSeparator1, this.lbSum, this.toolStripLabel5, @@ -352,6 +357,15 @@ this.btSave.Text = "저장(&S)"; this.btSave.Click += new System.EventHandler(this.btSave_Click); // + // toolStripButton8 + // + this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image"))); + this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton8.Name = "toolStripButton8"; + this.toolStripButton8.Size = new System.Drawing.Size(83, 28); + this.toolStripButton8.Text = "승인요청"; + this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click); + // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; @@ -441,7 +455,8 @@ this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.입고품목메일전송ToolStripMenuItem, this.엑셀에서가져오기ToolStripMenuItem, - this.견적서폴더열기ToolStripMenuItem}); + this.견적서폴더열기ToolStripMenuItem, + this.현재목록메일전송ToolStripMenuItem}); this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image"))); this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton7.Name = "toolStripButton7"; @@ -452,7 +467,7 @@ // this.입고품목메일전송ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image"))); this.입고품목메일전송ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem"; - this.입고품목메일전송ToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.입고품목메일전송ToolStripMenuItem.Size = new System.Drawing.Size(190, 30); this.입고품목메일전송ToolStripMenuItem.Text = "입고 품목 메일 전송"; this.입고품목메일전송ToolStripMenuItem.Click += new System.EventHandler(this.입고품목메일전송ToolStripMenuItem_Click); // @@ -460,7 +475,7 @@ // this.엑셀에서가져오기ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image"))); this.엑셀에서가져오기ToolStripMenuItem.Name = "엑셀에서가져오기ToolStripMenuItem"; - this.엑셀에서가져오기ToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.엑셀에서가져오기ToolStripMenuItem.Size = new System.Drawing.Size(190, 30); this.엑셀에서가져오기ToolStripMenuItem.Text = "엑셀에서 가져오기"; this.엑셀에서가져오기ToolStripMenuItem.Click += new System.EventHandler(this.엑셀에서가져오기ToolStripMenuItem_Click); // @@ -468,7 +483,7 @@ // this.견적서폴더열기ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("견적서폴더열기ToolStripMenuItem.Image"))); this.견적서폴더열기ToolStripMenuItem.Name = "견적서폴더열기ToolStripMenuItem"; - this.견적서폴더열기ToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.견적서폴더열기ToolStripMenuItem.Size = new System.Drawing.Size(190, 30); this.견적서폴더열기ToolStripMenuItem.Text = "견적서 폴더 열기"; this.견적서폴더열기ToolStripMenuItem.Click += new System.EventHandler(this.견적서폴더열기ToolStripMenuItem_Click); // @@ -500,7 +515,7 @@ this.sC검색ToolStripMenuItem, this.cRCF검색ToolStripMenuItem}); this.cm1.Name = "contextMenuStrip1"; - this.cm1.Size = new System.Drawing.Size(314, 506); + this.cm1.Size = new System.Drawing.Size(314, 484); this.cm1.Opening += new System.ComponentModel.CancelEventHandler(this.cm1_Opening); // // columnSizeToolStripMenuItem @@ -549,6 +564,13 @@ this.exportDataToolStripMenuItem.Text = "목록 내보내기(xls)"; this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click); // + // 사용자내보내기ToolStripMenuItem + // + this.사용자내보내기ToolStripMenuItem.Name = "사용자내보내기ToolStripMenuItem"; + this.사용자내보내기ToolStripMenuItem.Size = new System.Drawing.Size(313, 42); + this.사용자내보내기ToolStripMenuItem.Text = "사용자 내보내기"; + this.사용자내보내기ToolStripMenuItem.Click += new System.EventHandler(this.사용자내보내기ToolStripMenuItem_Click); + // // toolStripMenuItem4 // this.toolStripMenuItem4.Name = "toolStripMenuItem4"; @@ -862,7 +884,7 @@ 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.ColumnCount = 43; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.fpSpread1_Sheet1.AutoGenerateColumns = false; @@ -904,12 +926,12 @@ 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.Cells.Get(0, 42).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(0).Width = 37F; 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검사"; @@ -987,7 +1009,6 @@ 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"; @@ -1117,7 +1138,6 @@ 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; @@ -1135,7 +1155,6 @@ 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; @@ -1184,11 +1203,35 @@ 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.Columns.Get(38).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(38).CellType = numberCellType10; + this.fpSpread1_Sheet1.Columns.Get(38).DataField = "idx"; + this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(38).Tag = "idx"; + this.fpSpread1_Sheet1.Columns.Get(38).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(39).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(39).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(39).DataField = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(39).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(39).Tag = "conf_status"; + this.fpSpread1_Sheet1.Columns.Get(39).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(40).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(40).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(40).DataField = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(40).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(40).Tag = "conf_request"; + this.fpSpread1_Sheet1.Columns.Get(40).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(41).BackColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(41).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(41).DataField = "conf_reponse"; + this.fpSpread1_Sheet1.Columns.Get(41).ForeColor = System.Drawing.Color.Red; + this.fpSpread1_Sheet1.Columns.Get(41).Tag = "conf_reponse"; + this.fpSpread1_Sheet1.Columns.Get(41).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(42).CellType = checkBoxCellType3; + this.fpSpread1_Sheet1.Columns.Get(42).DataField = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(42).Label = "삭제됨"; + this.fpSpread1_Sheet1.Columns.Get(42).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(42).Width = 51F; this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoSizeColumns = false; this.fpSpread1_Sheet1.DataSource = this.bs; @@ -1222,12 +1265,12 @@ this.label2.Text = "--"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // 사용자내보내기ToolStripMenuItem + // 현재목록메일전송ToolStripMenuItem // - this.사용자내보내기ToolStripMenuItem.Name = "사용자내보내기ToolStripMenuItem"; - this.사용자내보내기ToolStripMenuItem.Size = new System.Drawing.Size(313, 42); - this.사용자내보내기ToolStripMenuItem.Text = "사용자 내보내기"; - this.사용자내보내기ToolStripMenuItem.Click += new System.EventHandler(this.사용자내보내기ToolStripMenuItem_Click); + this.현재목록메일전송ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem"; + this.현재목록메일전송ToolStripMenuItem.Size = new System.Drawing.Size(190, 30); + this.현재목록메일전송ToolStripMenuItem.Text = "현재목록 메일 전송"; + this.현재목록메일전송ToolStripMenuItem.Click += new System.EventHandler(this.현재목록메일전송ToolStripMenuItem_Click); // // fPurchaseNR // @@ -1342,7 +1385,9 @@ private System.Windows.Forms.ToolStripComboBox cmbManager; private System.Windows.Forms.ToolStripMenuItem 엑셀에서열기ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 상태일괄변경ToolStripMenuItem; - private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; private System.Windows.Forms.ToolStripMenuItem 사용자내보내기ToolStripMenuItem; + private System.Windows.Forms.ToolStripButton toolStripButton8; + private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; + private System.Windows.Forms.ToolStripMenuItem 현재목록메일전송ToolStripMenuItem; } } diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs index 4c86555..b71921c 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.cs @@ -17,6 +17,8 @@ using NetOffice.OfficeApi; using System.Web.Services.Protocols; using System.Diagnostics; using FarPoint.Win.Spread.CellType; +using FCM0000; +using GrapeCity.Win.Spread.InputMan.CellType; namespace FEQ0000 { @@ -146,7 +148,7 @@ namespace FEQ0000 //} } this.cmbManager.SelectedIndex = 0; - if(FCOMMON.info.Login.gcode.EndsWith("PM")) + if (FCOMMON.info.Login.gcode.EndsWith("PM")) { var manidx = cmbManager.Items.IndexOf(FCOMMON.info.Login.nameK); if (manidx >= 0) @@ -309,7 +311,7 @@ namespace FEQ0000 var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index; var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index; - + var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index; for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) { @@ -319,9 +321,13 @@ namespace FEQ0000 var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex); var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex); + var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex); + var str_crcf = string.Empty; + var str_confstats = string.Empty; if (crcf != null) str_crcf = crcf.ToString(); + if (v_confstats != null) str_confstats = v_confstats.ToString(); if (value != null && (Boolean)value) @@ -359,6 +365,14 @@ namespace FEQ0000 case "hold": this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink; break; + case "approving": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod; + + if (str_confstats == "2") //ok + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime; + else if (str_confstats == "3") //reject + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink; + break; default: this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; break; @@ -1436,22 +1450,22 @@ namespace FEQ0000 private void 상태일괄변경ToolStripMenuItem_Click(object sender, EventArgs e) { - + var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인 List rows = new List(); foreach (var item in selected) { - for(int i = item.Row; i < item.Row + item.RowCount;i++) + for (int i = item.Row; i < item.Row + item.RowCount; i++) { - if(rows.Contains(i)==false) + if (rows.Contains(i) == false) { - if(fpSpread1_Sheet1.IsRowBound(i)) + if (fpSpread1_Sheet1.IsRowBound(i)) { rows.Add(i); } - + } - + } } @@ -1464,7 +1478,7 @@ namespace FEQ0000 var colstat = fpSpread1_Sheet1.Columns["state"]; var value = f.cmbState.Text; - foreach(var rowindex in rows) + foreach (var rowindex in rows) { fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value); } @@ -1482,7 +1496,7 @@ namespace FEQ0000 { var cnt = this.fpSpread1_Sheet1.Columns.Count; Dictionary cols = new Dictionary(); - foreach(FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) + foreach (FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) { if (col.Visible == false || col.Width < 10) continue; if (col.CellType is CheckBoxCellType) continue; @@ -1492,8 +1506,250 @@ namespace FEQ0000 } - var f = new fUserExportColumn(this.Name, cols,this.dsPurchase.Purchase,this.bs.Filter); + var f = new fUserExportColumn(this.Name, cols, this.dsPurchase.Purchase, this.bs.Filter); f.ShowDialog(); } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + //승인요청 + + + //선택된 자료의 데이터를 추출한다. + var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인 + List rowidxs = new List(); + var idxcol = this.fpSpread1_Sheet1.Columns["idx"]; + var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"]; + var idxstatus = this.fpSpread1_Sheet1.Columns["state"]; + foreach (var item in selected) + { + for (int i = item.Row; i < item.Row + item.RowCount; i++) + { + if (rowidxs.Contains(i) == false) + { + if (fpSpread1_Sheet1.IsRowBound(i)) + { + var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index); + var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index); + if (state != null && state.ToString() != "---") + { + FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다"); + } + //else if (confsta != null && confsta.ToString() != "0") + //{ + // FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다"); + //} + else rowidxs.Add(i); + } + } + } + } + + //수집된데이터를 보내야한다. + List rows = new List(); + var idx = 0; + foreach (var i in rowidxs) + { + var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index); + var row = this.dsPurchase.Purchase.Where(t => t.idx == rowidx).First(); + rows.Add(row); + } + + //이자료를 승인요청창에 보낸다. + if(rows.Any()==false) + { + FCOMMON.Util.MsgE("대상 데이터가 없습니다."); + return; + } + var f = new fPurchaseNR_ConfRequest(rows); + f.ShowDialog(); + FormattingData(); + + } + + private void 현재목록메일전송ToolStripMenuItem_Click(object sender, EventArgs e) + { + var cate = "PO"; + + var db = new DataClasses1DataContext(); + 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(cate); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + var datestr = DateTime.Now.ToShortDateString(); + if (dtSD.Text == dtED.Text) datestr = dtSD.Text; + else datestr = dtSD.Text + "~" + dtED.Text; + form_subject = form_subject.Replace("{DATE}", datestr); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + ///save file + fpSpread1.SaveExcel(fi.FullName, + FarPoint.Excel.ExcelSaveFlags.SaveAsViewed + | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered + | FarPoint.Excel.ExcelSaveFlags.NoFormulas + | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index; + var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index; + var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index; + + var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index; + var col_SID = fpSpread1_Sheet1.Columns["sid"].Index; + var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index; + var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index; + var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index; + var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index; + var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index; + var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index; + var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index; + + + for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++) + { + var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value; + var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value; + var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value; + + var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value; + var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value; + var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value; + var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value; + var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value; + var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value; + var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value; + var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value; + var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value; + + var s신청 = String.Empty; + var s요청 = String.Empty; + var sCRCF = String.Empty; + var s수령 = String.Empty; + var sSID = String.Empty; + var s품명 = String.Empty; + var s규격 = String.Empty; + var s수량 = "0"; + var s단가 = "0"; + var s금액 = "0"; + var s입고 = String.Empty; + var s공급 = String.Empty; + var s비고 = String.Empty; + + if (v신청 != null) s신청 = v신청.ToString(); + if (v요청 != null) s요청 = v요청.ToString(); + if (vCRCF != null) sCRCF = vCRCF.ToString(); + if (v수령 != null) s수령 = v수령.ToString(); + if (vSID != null) sSID = vSID.ToString(); + if (v품명 != null) s품명 = v품명.ToString(); + if (v규격 != null) s규격 = v규격.ToString(); + if (v수량 != null) s수량 = v수량.ToString(); + if (v단가 != null) s단가 = v단가.ToString(); + if (v금액 != null) s금액 = v금액.ToString(); + if (v공급 != null) s공급 = v공급.ToString(); + + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + sb.AppendLine(""); + + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
신청요청CR/CF수령SID품명규격수량단가금액공급
" + getmaxstr(s신청) + "" + getmaxstr(s요청) + "" + getmaxstr(sCRCF) + "" + getmaxstr(s수령) + "" + getmaxstr(sSID) + "" + getmaxstr(s품명) + "" + getmaxstr(s규격) + "" + int.Parse(s수량).ToString("N0") + "" + int.Parse(s단가).ToString("N0") + "" + int.Parse(s금액).ToString("N0") + "" + getmaxstr(s공급) + "
"); + form_body += sb.ToString(); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + form_body = form_body.Replace("{DATE}", datestr); + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } } } diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.resx b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.resx index e52ecb0..a7e0f7f 100644 --- a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.resx +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR.resx @@ -233,6 +233,21 @@ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D TgDQASA1MVpwzwAAAABJRU5ErkJggg== + +
+ + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs new file mode 100644 index 0000000..4fe10fd --- /dev/null +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.Designer.cs @@ -0,0 +1,566 @@ +namespace FEQ0000 +{ + partial class fPurchaseNR_ConfRequest + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 구성 요소 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseNR_ConfRequest)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.lbSum = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); + this.tbFind = new System.Windows.Forms.ToolStripTextBox(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); + this.btSave = new System.Windows.Forms.ToolStripButton(); + this.btFind = new System.Windows.Forms.ToolStripButton(); + this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); + this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); + this.SuspendLayout(); + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bs; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.ImageScalingSize = new System.Drawing.Size(24, 24); + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.toolStripButton1, + this.btEdit, + this.btSave, + this.toolStripSeparator1, + this.lbSum, + this.toolStripLabel5, + this.toolStripLabel2, + this.tbFind, + this.btFind}); + this.bn.Location = new System.Drawing.Point(0, 589); + this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bn.Name = "bn"; + this.bn.PositionItem = this.bindingNavigatorPositionItem; + this.bn.Size = new System.Drawing.Size(1219, 31); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31); + // + // lbSum + // + this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSum.Name = "lbSum"; + this.lbSum.Size = new System.Drawing.Size(22, 28); + this.lbSum.Text = "0"; + // + // toolStripLabel5 + // + this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripLabel5.Name = "toolStripLabel5"; + this.toolStripLabel5.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel5.Text = "합계"; + // + // toolStripLabel2 + // + this.toolStripLabel2.Name = "toolStripLabel2"; + this.toolStripLabel2.Size = new System.Drawing.Size(31, 28); + this.toolStripLabel2.Text = "검색"; + this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click); + // + // tbFind + // + this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.tbFind.Name = "tbFind"; + this.tbFind.Size = new System.Drawing.Size(100, 31); + this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); + // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(1219, 25); + this.toolStrip1.TabIndex = 3; + this.toolStrip1.Text = "toolStrip1"; + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + this.dataGridView1.AutoGenerateColumns = false; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.pdateDataGridViewTextBoxColumn, + this.requestNameDataGridViewTextBoxColumn, + this.sidDataGridViewTextBoxColumn, + this.pumnameDataGridViewTextBoxColumn, + this.pumscaleDataGridViewTextBoxColumn, + this.pumunitDataGridViewTextBoxColumn, + this.pumqtyDataGridViewTextBoxColumn, + this.pumqtyReqDataGridViewTextBoxColumn, + this.pumpriceDataGridViewTextBoxColumn, + this.pumamtDataGridViewTextBoxColumn, + this.supplyDataGridViewTextBoxColumn, + this.bigo2DataGridViewTextBoxColumn, + this.bigoDataGridViewTextBoxColumn}); + this.dataGridView1.DataSource = this.bs; + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle20.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle20; + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 25); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(1219, 426); + this.dataGridView1.TabIndex = 8; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138); + this.tableLayoutPanel1.TabIndex = 9; + // + // richTextBox1 + // + this.richTextBox1.BackColor = System.Drawing.Color.Gold; + this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true)); + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox1.Location = new System.Drawing.Point(3, 28); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(603, 107); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = ""; + // + // richTextBox2 + // + this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true)); + this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox2.Location = new System.Drawing.Point(612, 28); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(604, 107); + this.richTextBox2.TabIndex = 0; + this.richTextBox2.Text = ""; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(603, 25); + this.label1.TabIndex = 1; + this.label1.Text = "구매 담당자 비고"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(612, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(604, 25); + this.label2.TabIndex = 2; + this.label2.Text = "구매신청자 비고(구매사유)"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // toolStripButton1 + // + 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(100, 28); + this.toolStripButton1.Text = "목록제거(&D)"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // + // btEdit + // + this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); + this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btEdit.Name = "btEdit"; + this.btEdit.Size = new System.Drawing.Size(73, 28); + this.btEdit.Text = "편집(&E)"; + this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); + // + // btSave + // + this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image"))); + this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(83, 28); + this.btSave.Text = "승인요청"; + this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click); + // + // btFind + // + this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); + this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btFind.Name = "btFind"; + this.btFind.Size = new System.Drawing.Size(28, 28); + this.btFind.Text = "toolStripButton2"; + this.btFind.Click += new System.EventHandler(this.btFind_Click); + // + // pdateDataGridViewTextBoxColumn + // + this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate"; + this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일"; + this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn"; + this.pdateDataGridViewTextBoxColumn.ReadOnly = true; + // + // requestNameDataGridViewTextBoxColumn + // + this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName"; + this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청"; + this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn"; + this.requestNameDataGridViewTextBoxColumn.ReadOnly = true; + // + // sidDataGridViewTextBoxColumn + // + this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid"; + this.sidDataGridViewTextBoxColumn.HeaderText = "SID"; + this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn"; + this.sidDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumnameDataGridViewTextBoxColumn + // + this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname"; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle16; + this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명"; + this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn"; + this.pumnameDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumscaleDataGridViewTextBoxColumn + // + this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale"; + dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle17; + this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격"; + this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn"; + this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumunitDataGridViewTextBoxColumn + // + this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit"; + this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위"; + this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn"; + this.pumunitDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyDataGridViewTextBoxColumn + // + this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty"; + this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량"; + this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn"; + this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyReqDataGridViewTextBoxColumn + // + this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq"; + this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량"; + this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn"; + this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumpriceDataGridViewTextBoxColumn + // + this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice"; + this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가"; + this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn"; + this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumamtDataGridViewTextBoxColumn + // + this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt"; + this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액"; + this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn"; + this.pumamtDataGridViewTextBoxColumn.ReadOnly = true; + // + // supplyDataGridViewTextBoxColumn + // + this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply"; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle18; + this.supplyDataGridViewTextBoxColumn.HeaderText = "공급"; + this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn"; + this.supplyDataGridViewTextBoxColumn.ReadOnly = true; + // + // bigo2DataGridViewTextBoxColumn + // + this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark"; + this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)"; + this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn"; + this.bigo2DataGridViewTextBoxColumn.ReadOnly = true; + // + // bigoDataGridViewTextBoxColumn + // + this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo"; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle19; + this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)"; + this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn"; + this.bigoDataGridViewTextBoxColumn.ReadOnly = true; + // + // bs + // + this.bs.DataMember = "Purchase"; + this.bs.DataSource = this.dsPurchase; + this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // dsPurchase + // + this.dsPurchase.DataSetName = "dsPurchase"; + this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = true; + this.tam.EETGW_PurchaseCRTableAdapter = null; + this.tam.EETGW_PurchaseEBTableAdapter = null; + this.tam.PurchaseTableAdapter = this.ta; + this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // fPurchaseNR_ConfRequest + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1219, 620); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.tableLayoutPanel1); + this.Controls.Add(this.toolStrip1); + this.Controls.Add(this.bn); + this.DoubleBuffered = true; + this.Name = "fPurchaseNR_ConfRequest"; + this.Text = "구매신청건 승인요청"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private dsPurchase dsPurchase; + private System.Windows.Forms.BindingSource bs; + private dsPurchaseTableAdapters.PurchaseTableAdapter ta; + private dsPurchaseTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripLabel toolStripLabel5; + private System.Windows.Forms.ToolStripLabel lbSum; + private System.Windows.Forms.ToolStripLabel toolStripLabel2; + private System.Windows.Forms.ToolStripTextBox tbFind; + private System.Windows.Forms.ToolStripButton btFind; + private System.Windows.Forms.ToolStripButton btEdit; + private System.Windows.Forms.ToolStripButton btSave; + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn; + private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + } +} diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs new file mode 100644 index 0000000..1236c5d --- /dev/null +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.cs @@ -0,0 +1,544 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using util = FCOMMON.Util; + +using NetOffice; +using Outlook = NetOffice.OutlookApi; +using NetOffice.OutlookApi.Enums; +using FEQ0000.Purchase; +using FCOMMON; +using NetOffice.OfficeApi; +using System.Web.Services.Protocols; +using System.Diagnostics; +using FarPoint.Win.Spread.CellType; +using FCM0000; +using FarPoint.Win.Spread; +using System.Resources; + +namespace FEQ0000 +{ + public partial class fPurchaseNR_ConfRequest : FCOMMON.fBase + { + string fn_fpcolsize = ""; + List rows; + public fPurchaseNR_ConfRequest(List rows_) + { + InitializeComponent(); + this.rows = rows_; + Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; + Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS; + + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.FormClosing += FPurchase_FormClosing; + this.FormClosed += __Closed; + + this.bs.DataSource = rows; + this.dataGridView1.DataError += (s1, e1) => { }; + } + + private void FPurchase_FormClosing(object sender, FormClosingEventArgs e) + { + if (dsPurchase.HasChanges()) + { + var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다"); + if (dlg != DialogResult.Yes) + { + e.Cancel = true; + return; + } + } + } + + void dtSD_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode != Keys.Enter) return; + var tb = sender as ToolStripTextBox; + var input = tb.Text.Trim(); + if (input == "") tb.Text = DateTime.Now.ToShortDateString(); + else + { + string dt = string.Empty; + if (!util.MakeDateString(input, out dt)) + { + FCOMMON.Util.MsgE("입력값이 올바르지 않습니다."); + tb.SelectAll(); + tb.Focus(); + return; + } + else + { + tb.Text = dt; + } + } + + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + + private void __Load(object sender, EventArgs e) + { + + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); + IsAdmin = curLevel >= 5; + if (curLevel >= 5) + { + btSave.Visible = true; + + } + else + { + + btSave.Visible = false; + } + btSave.Visible = true; + refreshData(); + + + } + + bool IsAdmin = false; + + private void refreshData() + { + + try + { + + showSummary(); + } + catch (System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.Message); + } + + FormattingData(); + } + void FormattingData() + { + + dataGridView1.AutoResizeColumns(); + } + + + void showSummary() + { + decimal sum = 0; + //var list = this.bs.DataSource as List; + sum = rows.Sum(t => t.pumamt); + //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) + //if (!dr.IspumamtNull()) sum += dr.pumamt; + lbSum.Text = sum.ToString("N0"); + } + + + private bool getAdminInput + { + get + { + return FCOMMON.Util.getBit( + FCOMMON.info.Login.gpermission, + (int)FCOMMON.eGroupPermission.purchase_adv); + } + } + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + //func_delete(); + } + + + private int AddItemInfoGetIndex(dsPurchase.PurchaseRow newdr) + { + //이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다. + if (newdr.sid == "신규") return -1; + int retval = -1; + var sid = newdr.sid; + var iteminfo = FCOMMON.DBM.getItemInfo(sid); + if (iteminfo.idx < 0) + { + FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo(); + newitem.sid = newdr.sid; + newitem.name = newdr.pumname; + newitem.price = newdr.pumprice.ToString(); + newitem.model = newdr.pumscale; + newitem.unit = newdr.pumunit; + newitem.scale = 1f; + newitem.supply = newdr.supply; + newitem.supplyidx = newdr.supplyidx; + retval = FCOMMON.DBM.addItemInfo(newitem); + } + return retval; + } + + + + private void btFind_Click(object sender, EventArgs e) + { + var search = tbFind.Text.Trim(); + search = search.Replace("*", "x"); + if (tbFind.Text != search) tbFind.Text = search; + try + { + if (search.isEmpty()) + { + this.bs.Filter = ""; + tbFind.BackColor = Color.White; + } + else + { + search = search.Replace("'", "''"); + string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?"; + filter = filter.Replace("?", "'%" + search + "%'"); + this.bs.Filter = filter; + tbFind.BackColor = Color.Lime; + } + tbFind.SelectAll(); + tbFind.Focus(); + showSummary(); + } + catch (Exception ex) + { + this.tbFind.BackColor = Color.Tomato; + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void tbFind_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) btFind.PerformClick(); + } + + void Func_Edit() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.PurchaseRow; + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + if (newdr.RowState != DataRowState.Unchanged) + { + this.ta.Update(newdr); + newdr.AcceptChanges(); + } + } + else newdr.RejectChanges(); + + } + + + + private void toolStripButton2_Click(object sender, EventArgs e) + { + Func_Edit(); + } + + + + + + + private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //sc + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.PurchaseRow; + if (newdr.sc.Trim() == "") + { + FCOMMON.Util.MsgE("SC값이 없습니다"); + return; + } + tbFind.Text = newdr.sc; + btFind.PerformClick(); + } + + private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + //crcf + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.PurchaseRow; + if (newdr.orderno.Trim() == "") + { + FCOMMON.Util.MsgE("CR/CF값이 없습니다"); + return; + } + tbFind.Text = newdr.orderno; + btFind.PerformClick(); + } + + private void toolStripLabel2_Click(object sender, EventArgs e) + { + if (tbFind.Text != "") + { + tbFind.Text = ""; + btFind.PerformClick(); + } + + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + + } + + private void bs_CurrentChanged(object sender, EventArgs e) + { + var dr = bs.Current as dsPurchase.PurchaseRow; + if (dr.IschkremarkNull()) richTextBox1.Text = ""; + //else richTextBox1.Text = dr.chkremark; + //if (dr.IsbigoNull()) richTextBox2.Text = ""; + //else richTextBox2.Text = dr.bigo; + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + + } + + string getmaxstr(string src, int len = 30) + { + if (src.Length > len) return src.Substring(0, len) + "..."; + else return src; + } + + List ChangeMailAddress(List userid) + { + var db = new DataClasses1DataContext(); + + List retval = new List(); + foreach (var id in userid) + { + UInt32 userno; + if (UInt32.TryParse(id, out userno) == true) + { + var user = db.Users.Where(t => t.id == id).FirstOrDefault(); + if (user != null) + { + var data = string.Format("{0}<{1}>", user.name, user.email); + if (retval.Contains(data) == false) + retval.Add(data); + } + } + else + { + if (retval.Contains(id) == false) + retval.Add(id); + } + } + return retval; + } + + private void toolStripButton8_Click(object sender, EventArgs e) + { + this.Validate(); + this.bs.EndEdit(); + + //승인요청 + var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?"); + if (dlg != DialogResult.Yes) return; + + //모든자료의 승인상태를 업데이트한다. + foreach (DataGridViewRow row in this.dataGridView1.Rows) + { + var dr = row.DataBoundItem as dsPurchase.PurchaseRow; + dr.conf_status = "1"; + if (dr.state == "---") dr.state = "Approving"; + dr.EndEdit(); + ta.Update(dr); + dr.AcceptChanges(); + } + + dlg = util.MsgQ("메일 전송을 할까요?"); + if (dlg != DialogResult.Yes) return; + + + //수신자목록수집 + + //var drows = (List)(this.bs.DataSource); + var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList(); + var grp_rec = rows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList(); + + List tolist = new List(); //최종받는사람 + List cclist = new List(); + List bcclist = new List(); + + var f = new Purchase.fMailForm("PH"); + if (f.ShowDialog() != DialogResult.OK) return; + + var form_subject = f.tbSubject.Text.Trim(); + var form_body = f.htmlEditor1.Html; + var form_to = f.tbTo.Text.Trim(); + var form_cc = f.tbCC.Text.Trim(); + var form_bcc = f.tbBcc.Text.Trim(); + + + //받는사람 + if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req); + if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec); + form_to = form_to.Replace("{요청}", ""); + form_to = form_to.Replace("{수령}", ""); + tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + tolist = ChangeMailAddress(tolist); + + //참조 + if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req); + if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec); + form_cc = form_cc.Replace("{요청}", ""); + form_cc = form_cc.Replace("{수령}", ""); + cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + cclist = ChangeMailAddress(cclist); + + //숨은참조 + if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req); + if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec); + form_bcc = form_bcc.Replace("{요청}", ""); + form_bcc = form_bcc.Replace("{수령}", ""); + bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)); + bcclist = ChangeMailAddress(bcclist); + + try + { + Outlook.Application outlookApplication = new Outlook.Application(); + var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; + newMail.Display(); + newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title; + newMail.To = string.Join(";", tolist.ToArray()); + newMail.CC = string.Join(";", cclist.ToArray()); + newMail.BCC = string.Join(";", bcclist.ToArray()); + if (f.chkAttach.Checked) + { + var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirm_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls"); + if (fi.Directory.Exists == false) fi.Directory.Create(); + + FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName); + + + newMail.Attachments.Add(fi.FullName); + } + if (f.chkList.Checked) + { + + //목록을 본문에 추가한다 + System.Text.StringBuilder sb = new StringBuilder(); + + sb.AppendLine(""); + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + sb.AppendLine($""); + } + sb.AppendLine(""); + sb.AppendLine(""); + + for (int i = 0; i < this.dataGridView1.RowCount; i++) + { + + sb.AppendLine(""); + + foreach (DataGridViewColumn col in this.dataGridView1.Columns) + { + if (col.DataPropertyName.ToLower() == "pumqty") continue; + var v = dataGridView1.Rows[i].Cells[col.Index].Value; + string value = ""; + if (v != null) value = v.ToString(); + + if (col.ValueType == typeof(int)) + { + var ivalue = (int)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(decimal)) + { + var ivalue = (decimal)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(float)) + { + var ivalue = (float)v; + sb.AppendLine($""); + } + else if (col.ValueType == typeof(double)) + { + var ivalue = (double)v; + sb.AppendLine($""); + } + else sb.AppendLine($""); + } + sb.AppendLine(""); + } + sb.AppendLine(""); + sb.AppendLine("
{col.HeaderText}
{ivalue:N0}{ivalue:N0}{ivalue:N1}{ivalue:N1}{getmaxstr(value)}
"); + sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}"); + form_body = form_body.Replace("{body}", sb.ToString()); + } + + //newMail.BodyFormat = OlBodyFormat.olFormatHTML; + + newMail.HTMLBody = form_body + newMail.HTMLBody; // + } + catch (Exception ex) + { + util.MsgE("전송실패\n\n" + ex.Message + "\n\n" + + "아웃룩의 설정이 정상인지 확인하세요"); + } + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as dsPurchase.PurchaseRow; + if (drv == null) return; + var dlg = util.MsgQ("선택된 줄을 제거 할까요?"); + if (dlg != DialogResult.Yes) return; + this.rows.Remove(drv); + if (rows.Any()) + { + this.bs.DataSource = rows; + refreshData(); + } + else + { + this.bs.DataSource = null; + lbSum.Text = ""; + } + this.dataGridView1.Refresh(); + } + } +} diff --git a/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.resx b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.resx new file mode 100644 index 0000000..c3bae6a --- /dev/null +++ b/SubProject/FEQ0000/PurchaseNR/fPurchaseNR_ConfRequest.resx @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 330, 17 + + + 131, 17 + + + 17, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm + +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV + kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP + 0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w + 9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF + KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 + qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO + b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY + hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 + 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon + GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== + + + + 396, 17 + + + 17, 17 + + + 195, 17 + + + 257, 17 + + + 65 + + \ No newline at end of file diff --git a/SubProject/FEQ0000/dsPurchase.Designer.cs b/SubProject/FEQ0000/dsPurchase.Designer.cs index 95c5db3..c89173c 100644 --- a/SubProject/FEQ0000/dsPurchase.Designer.cs +++ b/SubProject/FEQ0000/dsPurchase.Designer.cs @@ -574,6 +574,12 @@ namespace FEQ0000 { private global::System.Data.DataColumn columnbigo_manager; + private global::System.Data.DataColumn columnconf_status; + + private global::System.Data.DataColumn columnconf_request; + + private global::System.Data.DataColumn columnconf_reponse; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public PurchaseDataTable() : @@ -1040,6 +1046,30 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_statusColumn { + get { + return this.columnconf_status; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_requestColumn { + get { + return this.columnconf_request; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_reponseColumn { + get { + return this.columnconf_reponse; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -1129,7 +1159,10 @@ namespace FEQ0000 { string currency, string prdate, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1184,7 +1217,10 @@ namespace FEQ0000 { currency, prdate, bigo_admin, - bigo_manager}; + bigo_manager, + conf_status, + conf_request, + conf_reponse}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1243,7 +1279,10 @@ namespace FEQ0000 { string currency, string prdate, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1298,7 +1337,10 @@ namespace FEQ0000 { currency, prdate, bigo_admin, - bigo_manager}; + bigo_manager, + conf_status, + conf_request, + conf_reponse}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1381,6 +1423,9 @@ namespace FEQ0000 { this.columnprdate = base.Columns["prdate"]; this.columnbigo_admin = base.Columns["bigo_admin"]; this.columnbigo_manager = base.Columns["bigo_manager"]; + this.columnconf_status = base.Columns["conf_status"]; + this.columnconf_request = base.Columns["conf_request"]; + this.columnconf_reponse = base.Columns["conf_reponse"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1492,6 +1537,12 @@ namespace FEQ0000 { base.Columns.Add(this.columnbigo_admin); this.columnbigo_manager = new global::System.Data.DataColumn("bigo_manager", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnbigo_manager); + this.columnconf_status = new global::System.Data.DataColumn("conf_status", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_status); + this.columnconf_request = new global::System.Data.DataColumn("conf_request", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_request); + this.columnconf_reponse = new global::System.Data.DataColumn("conf_reponse", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_reponse); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -1542,6 +1593,9 @@ namespace FEQ0000 { this.columnprdate.MaxLength = 10; this.columnbigo_admin.MaxLength = 1000; this.columnbigo_manager.MaxLength = 1000; + this.columnconf_status.MaxLength = 1; + this.columnconf_request.MaxLength = 1000; + this.columnconf_reponse.MaxLength = 1000; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1785,6 +1839,12 @@ namespace FEQ0000 { private global::System.Data.DataColumn columnbigo_manager; + private global::System.Data.DataColumn columnconf_status; + + private global::System.Data.DataColumn columnconf_request; + + private global::System.Data.DataColumn columnconf_reponse; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public EETGW_PurchaseCRDataTable() : @@ -2243,6 +2303,30 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_statusColumn { + get { + return this.columnconf_status; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_requestColumn { + get { + return this.columnconf_request; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_reponseColumn { + get { + return this.columnconf_reponse; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -2331,7 +2415,10 @@ namespace FEQ0000 { string purchase_admin, string currency, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { EETGW_PurchaseCRRow rowEETGW_PurchaseCRRow = ((EETGW_PurchaseCRRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2385,7 +2472,10 @@ namespace FEQ0000 { purchase_admin, currency, bigo_admin, - bigo_manager}; + bigo_manager, + conf_status, + conf_request, + conf_reponse}; rowEETGW_PurchaseCRRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseCRRow); return rowEETGW_PurchaseCRRow; @@ -2443,7 +2533,10 @@ namespace FEQ0000 { string purchase_admin, string currency, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { EETGW_PurchaseCRRow rowEETGW_PurchaseCRRow = ((EETGW_PurchaseCRRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2497,7 +2590,10 @@ namespace FEQ0000 { purchase_admin, currency, bigo_admin, - bigo_manager}; + bigo_manager, + conf_status, + conf_request, + conf_reponse}; rowEETGW_PurchaseCRRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseCRRow); return rowEETGW_PurchaseCRRow; @@ -2579,6 +2675,9 @@ namespace FEQ0000 { this.columncurrency = base.Columns["currency"]; this.columnbigo_admin = base.Columns["bigo_admin"]; this.columnbigo_manager = base.Columns["bigo_manager"]; + this.columnconf_status = base.Columns["conf_status"]; + this.columnconf_request = base.Columns["conf_request"]; + this.columnconf_reponse = base.Columns["conf_reponse"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2688,6 +2787,12 @@ namespace FEQ0000 { base.Columns.Add(this.columnbigo_admin); this.columnbigo_manager = new global::System.Data.DataColumn("bigo_manager", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnbigo_manager); + this.columnconf_status = new global::System.Data.DataColumn("conf_status", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_status); + this.columnconf_request = new global::System.Data.DataColumn("conf_request", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_request); + this.columnconf_reponse = new global::System.Data.DataColumn("conf_reponse", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_reponse); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -2737,6 +2842,9 @@ namespace FEQ0000 { this.columncurrency.MaxLength = 10; this.columnbigo_admin.MaxLength = 1000; this.columnbigo_manager.MaxLength = 1000; + this.columnconf_status.MaxLength = 1; + this.columnconf_request.MaxLength = 1000; + this.columnconf_reponse.MaxLength = 1000; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3896,6 +4004,16 @@ namespace FEQ0000 { private global::System.Data.DataColumn columncurrency; + private global::System.Data.DataColumn columnconf_status; + + private global::System.Data.DataColumn columnconf_request; + + private global::System.Data.DataColumn columnconf_reponse; + + private global::System.Data.DataColumn columnbigo_admin; + + private global::System.Data.DataColumn columnbigo_manager; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public EETGW_PurchaseEBDataTable() : @@ -4338,6 +4456,46 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_statusColumn { + get { + return this.columnconf_status; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_requestColumn { + get { + return this.columnconf_request; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn conf_reponseColumn { + get { + return this.columnconf_reponse; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn bigo_adminColumn { + get { + return this.columnbigo_admin; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn bigo_managerColumn { + get { + return this.columnbigo_manager; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -4424,7 +4582,12 @@ namespace FEQ0000 { string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string conf_status, + string conf_request, + string conf_reponse, + string bigo_admin, + string bigo_manager) { EETGW_PurchaseEBRow rowEETGW_PurchaseEBRow = ((EETGW_PurchaseEBRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -4476,7 +4639,12 @@ namespace FEQ0000 { chkremark, purchase_manager, purchase_admin, - currency}; + currency, + conf_status, + conf_request, + conf_reponse, + bigo_admin, + bigo_manager}; rowEETGW_PurchaseEBRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseEBRow); return rowEETGW_PurchaseEBRow; @@ -4532,7 +4700,12 @@ namespace FEQ0000 { string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string conf_status, + string conf_request, + string conf_reponse, + string bigo_admin, + string bigo_manager) { EETGW_PurchaseEBRow rowEETGW_PurchaseEBRow = ((EETGW_PurchaseEBRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -4584,7 +4757,12 @@ namespace FEQ0000 { chkremark, purchase_manager, purchase_admin, - currency}; + currency, + conf_status, + conf_request, + conf_reponse, + bigo_admin, + bigo_manager}; rowEETGW_PurchaseEBRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseEBRow); return rowEETGW_PurchaseEBRow; @@ -4664,6 +4842,11 @@ namespace FEQ0000 { this.columnpurchase_manager = base.Columns["purchase_manager"]; this.columnpurchase_admin = base.Columns["purchase_admin"]; this.columncurrency = base.Columns["currency"]; + this.columnconf_status = base.Columns["conf_status"]; + this.columnconf_request = base.Columns["conf_request"]; + this.columnconf_reponse = base.Columns["conf_reponse"]; + this.columnbigo_admin = base.Columns["bigo_admin"]; + this.columnbigo_manager = base.Columns["bigo_manager"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4769,6 +4952,16 @@ 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.columnconf_status = new global::System.Data.DataColumn("conf_status", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_status); + this.columnconf_request = new global::System.Data.DataColumn("conf_request", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_request); + this.columnconf_reponse = new global::System.Data.DataColumn("conf_reponse", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconf_reponse); + this.columnbigo_admin = new global::System.Data.DataColumn("bigo_admin", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbigo_admin); + this.columnbigo_manager = new global::System.Data.DataColumn("bigo_manager", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbigo_manager); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -4816,6 +5009,11 @@ namespace FEQ0000 { this.columnpurchase_manager.MaxLength = 50; this.columnpurchase_admin.MaxLength = 50; this.columncurrency.MaxLength = 10; + this.columnconf_status.MaxLength = 1; + this.columnconf_request.MaxLength = 1000; + this.columnconf_reponse.MaxLength = 1000; + this.columnbigo_admin.MaxLength = 1000; + this.columnbigo_manager.MaxLength = 1000; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -6292,11 +6490,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string bigo_admin { get { - try { - return ((string)(this[this.tablePurchase.bigo_adminColumn])); + if (this.Isbigo_adminNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'bigo_admin\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tablePurchase.bigo_adminColumn])); } } set { @@ -6308,11 +6506,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string bigo_manager { get { - try { - return ((string)(this[this.tablePurchase.bigo_managerColumn])); + if (this.Isbigo_managerNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'bigo_manager\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tablePurchase.bigo_managerColumn])); } } set { @@ -6320,6 +6518,54 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_status { + get { + if (this.Isconf_statusNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tablePurchase.conf_statusColumn])); + } + } + set { + this[this.tablePurchase.conf_statusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_request { + get { + if (this.Isconf_requestNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tablePurchase.conf_requestColumn])); + } + } + set { + this[this.tablePurchase.conf_requestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_reponse { + get { + if (this.Isconf_reponseNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tablePurchase.conf_reponseColumn])); + } + } + set { + this[this.tablePurchase.conf_reponseColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -6907,6 +7153,42 @@ namespace FEQ0000 { public void Setbigo_managerNull() { this[this.tablePurchase.bigo_managerColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_statusNull() { + return this.IsNull(this.tablePurchase.conf_statusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_statusNull() { + this[this.tablePurchase.conf_statusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_requestNull() { + return this.IsNull(this.tablePurchase.conf_requestColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_requestNull() { + this[this.tablePurchase.conf_requestColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_reponseNull() { + return this.IsNull(this.tablePurchase.conf_reponseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_reponseNull() { + this[this.tablePurchase.conf_reponseColumn] = global::System.Convert.DBNull; + } } /// @@ -7707,11 +7989,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string bigo_admin { get { - try { - return ((string)(this[this.tableEETGW_PurchaseCR.bigo_adminColumn])); + if (this.Isbigo_adminNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'bigo_admin\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableEETGW_PurchaseCR.bigo_adminColumn])); } } set { @@ -7723,11 +8005,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string bigo_manager { get { - try { - return ((string)(this[this.tableEETGW_PurchaseCR.bigo_managerColumn])); + if (this.Isbigo_managerNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'bigo_manager\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableEETGW_PurchaseCR.bigo_managerColumn])); } } set { @@ -7735,6 +8017,54 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_status { + get { + if (this.Isconf_statusNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseCR.conf_statusColumn])); + } + } + set { + this[this.tableEETGW_PurchaseCR.conf_statusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_request { + get { + if (this.Isconf_requestNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseCR.conf_requestColumn])); + } + } + set { + this[this.tableEETGW_PurchaseCR.conf_requestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_reponse { + get { + if (this.Isconf_reponseNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseCR.conf_reponseColumn])); + } + } + set { + this[this.tableEETGW_PurchaseCR.conf_reponseColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -8310,6 +8640,42 @@ namespace FEQ0000 { public void Setbigo_managerNull() { this[this.tableEETGW_PurchaseCR.bigo_managerColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_statusNull() { + return this.IsNull(this.tableEETGW_PurchaseCR.conf_statusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_statusNull() { + this[this.tableEETGW_PurchaseCR.conf_statusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_requestNull() { + return this.IsNull(this.tableEETGW_PurchaseCR.conf_requestColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_requestNull() { + this[this.tableEETGW_PurchaseCR.conf_requestColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_reponseNull() { + return this.IsNull(this.tableEETGW_PurchaseCR.conf_reponseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_reponseNull() { + this[this.tableEETGW_PurchaseCR.conf_reponseColumn] = global::System.Convert.DBNull; + } } /// @@ -9813,6 +10179,86 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_status { + get { + if (this.Isconf_statusNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseEB.conf_statusColumn])); + } + } + set { + this[this.tableEETGW_PurchaseEB.conf_statusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_request { + get { + if (this.Isconf_requestNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseEB.conf_requestColumn])); + } + } + set { + this[this.tableEETGW_PurchaseEB.conf_requestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string conf_reponse { + get { + if (this.Isconf_reponseNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseEB.conf_reponseColumn])); + } + } + set { + this[this.tableEETGW_PurchaseEB.conf_reponseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string bigo_admin { + get { + if (this.Isbigo_adminNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseEB.bigo_adminColumn])); + } + } + set { + this[this.tableEETGW_PurchaseEB.bigo_adminColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string bigo_manager { + get { + if (this.Isbigo_managerNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableEETGW_PurchaseEB.bigo_managerColumn])); + } + } + set { + this[this.tableEETGW_PurchaseEB.bigo_managerColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -10364,6 +10810,66 @@ namespace FEQ0000 { public void SetcurrencyNull() { this[this.tableEETGW_PurchaseEB.currencyColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_statusNull() { + return this.IsNull(this.tableEETGW_PurchaseEB.conf_statusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_statusNull() { + this[this.tableEETGW_PurchaseEB.conf_statusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_requestNull() { + return this.IsNull(this.tableEETGW_PurchaseEB.conf_requestColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_requestNull() { + this[this.tableEETGW_PurchaseEB.conf_requestColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isconf_reponseNull() { + return this.IsNull(this.tableEETGW_PurchaseEB.conf_reponseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setconf_reponseNull() { + this[this.tableEETGW_PurchaseEB.conf_reponseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isbigo_adminNull() { + return this.IsNull(this.tableEETGW_PurchaseEB.bigo_adminColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setbigo_adminNull() { + this[this.tableEETGW_PurchaseEB.bigo_adminColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool Isbigo_managerNull() { + return this.IsNull(this.tableEETGW_PurchaseEB.bigo_managerColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Setbigo_managerNull() { + this[this.tableEETGW_PurchaseEB.bigo_managerColumn] = global::System.Convert.DBNull; + } } /// @@ -11232,6 +11738,9 @@ namespace FEQ0000.dsPurchaseTableAdapters { tableMapping.ColumnMappings.Add("prdate", "prdate"); tableMapping.ColumnMappings.Add("bigo_admin", "bigo_admin"); tableMapping.ColumnMappings.Add("bigo_manager", "bigo_manager"); + tableMapping.ColumnMappings.Add("conf_status", "conf_status"); + tableMapping.ColumnMappings.Add("conf_request", "conf_request"); + tableMapping.ColumnMappings.Add("conf_reponse", "conf_reponse"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -11284,7 +11793,11 @@ namespace FEQ0000.dsPurchaseTableAdapters { "IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)) AND ((" + "@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bi" + "go_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_" + - "manager] = @Original_bigo_manager)))"; + "manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_stat" + + "us] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_requ" + + "est = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)" + + ") AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] " + + "= @Original_conf_reponse)))"; 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, "", "", "")); @@ -11380,6 +11893,12 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], " + @@ -11388,21 +11907,23 @@ 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], [prdate], [bigo_admin], [bigo_manager]) VALUES (@" + - "pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pu" + - "munit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, " + - "@asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @b" + - "igo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid" + - ", @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark, @purch" + - "ase_manager, @purchase_admin, @currency, @prdate, @bigo_admin, @bigo_manager);\r\n" + - "SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN" + - "ame, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscal" + - "e, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, as" + - "set, 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, bigo_admin, bigo_manager FROM Purchase WHERE (idx = SCOPE_IDEN" + - "TITY()) ORDER BY pdate DESC, idx DESC"; + " [purchase_admin], [currency], [prdate], [bigo_admin], [bigo_manager], [conf_sta" + + "tus], [conf_request], [conf_reponse]) VALUES (@pdate, @state, @process, @receive" + + ", @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumam" + + "t, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @de" + + "pt, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode," + + " @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costce" + + "nter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @cu" + + "rrency, @prdate, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_" + + "reponse);\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) " + + "AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumna" + + "me, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, pro" + + "jectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, big" + + "o, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate," + + " chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purch" + + "ase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request" + + ", conf_reponse 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, "", "", "")); @@ -11453,6 +11974,9 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.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, [" + @@ -11468,63 +11992,69 @@ namespace FEQ0000.dsPurchaseTableAdapters { "nter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremar" + "k] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin] = @pur" + "chase_admin, [currency] = @currency, [prdate] = @prdate, [bigo_admin] = @bigo_ad" + - "min, [bigo_manager] = @bigo_manager 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)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_p" + - "rdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] " + - "= @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NU" + - "LL) OR ([bigo_manager] = @Original_bigo_manager)));\r\nSELECT idx, pdate, state, p" + - "rocess, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUs" + - "erName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumpric" + - "e, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dep" + - "t, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, in" + - "qty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pum" + - "qtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, bigo_admi" + - "n, bigo_manager FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; + "min, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request" + + "] = @conf_request, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx)" + + " AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AN" + + "D ((@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_recei" + + "ve)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsN" + + "ull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND (" + + "(@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pu" + + "mname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNu" + + "ll_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AN" + + "D ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit" + + ")) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqt" + + "y)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Origina" + + "l_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Orig" + + "inal_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Ori" + + "ginal_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyi" + + "dx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NUL" + + "L) 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) O" + + "R ([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)) A" + + "ND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@I" + + "sNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc))" + + " AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orde" + + "rno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NUL" + + "L) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) " + + "OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS N" + + "ULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inr" + + "emark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 A" + + "ND [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_lin" + + "ecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@I" + + "sNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyR" + + "eq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Ori" + + "ginal_chkremark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS N" + + "ULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchas" + + "e_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purch" + + "ase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = " + + "@Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate]" + + " = @Original_prdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR " + + "([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_" + + "manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_co" + + "nf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_stat" + + "us)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_reques" + + "t] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] " + + "IS NULL) OR ([conf_reponse] = @Original_conf_reponse)));\r\nSELECT idx, pdate, sta" + + "te, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo." + + "getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pu" + + "mprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po" + + ", dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, plac" + + "e, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode" + + ", pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, bigo" + + "_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM Purchase WHER" + + "E (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, "", "", "")); @@ -11575,6 +12105,9 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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, "", "", "")); @@ -11669,6 +12202,12 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -11682,12 +12221,13 @@ namespace FEQ0000.dsPurchaseTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, 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, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -11713,23 +12253,34 @@ 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, bigo_admin, bigo_manager, 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].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, prdate, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse +FROM Purchase +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state = 'Approving') AND (conf_status = '1') +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, bigo_admin, bigo_manager, 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].CommandText = @"SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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[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[4].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[4].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[4].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[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = @"SELECT asset, bigo, bigo_admin, bigo_manager, 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].CommandText = @"SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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[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, "", "", "")); - this._commandCollection[5].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[5].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[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = @"SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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[6].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[6].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[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -11772,8 +12323,44 @@ ORDER BY pdate DESC, idx DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByDateExceptCR(dsPurchase.PurchaseDataTable dataTable, string sd, string ed, string gcode) { + public virtual int FillByApprov(dsPurchase.PurchaseDataTable dataTable, string gcode) { this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual dsPurchase.PurchaseDataTable GetByApporv(string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable(true); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] + public virtual int FillByDateExceptCR(dsPurchase.PurchaseDataTable dataTable, string sd, string ed, string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[4]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -11804,7 +12391,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.PurchaseDataTable GetByDateExceptCR(string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[4]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -11833,7 +12420,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillByIdx(dsPurchase.PurchaseDataTable dataTable, int idx) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); @@ -11847,7 +12434,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.PurchaseDataTable GetByIdx(int idx) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable(true); this.Adapter.Fill(dataTable); @@ -11859,7 +12446,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillDate(dsPurchase.PurchaseDataTable dataTable, string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[5]; + this.Adapter.SelectCommand = this.CommandCollection[6]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -11890,7 +12477,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.PurchaseDataTable GetDate(string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[5]; + this.Adapter.SelectCommand = this.CommandCollection[6]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -11996,7 +12583,10 @@ ORDER BY pdate DESC, idx DESC"; string Original_currency, string Original_prdate, string Original_bigo_admin, - string Original_bigo_manager) { + string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -12371,6 +12961,30 @@ ORDER BY pdate DESC, idx DESC"; this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[93].Value = ((string)(Original_bigo_manager)); } + if ((Original_conf_status == null)) { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[97].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[99].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[99].Value = ((string)(Original_conf_reponse)); + } 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)) { @@ -12440,7 +13054,10 @@ ORDER BY pdate DESC, idx DESC"; string currency, string prdate, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -12730,6 +13347,24 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[48].Value = ((string)(bigo_manager)); } + if ((conf_status == null)) { + this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { + this.Adapter.InsertCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[51].Value = ((string)(conf_reponse)); + } 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)) { @@ -12800,6 +13435,9 @@ ORDER BY pdate DESC, idx DESC"; string prdate, string bigo_admin, string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse, int Original_idx, string Original_pdate, string Original_state, @@ -12849,6 +13487,9 @@ ORDER BY pdate DESC, idx DESC"; string Original_prdate, string Original_bigo_admin, string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -13139,381 +13780,423 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(bigo_manager)); } - this.Adapter.UpdateCommand.Parameters[49].Value = ((int)(Original_idx)); - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + if ((conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_pdate)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(conf_reponse)); + } + this.Adapter.UpdateCommand.Parameters[52].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_pdate)); } if ((Original_state == null)) { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_state)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_state)); } if ((Original_process == null)) { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_process)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_process)); } if ((Original_receive == null)) { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_receive)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_receive)); } if ((Original_sc == null)) { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_sc)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_sc)); } if ((Original_request == null)) { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_request)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_request)); } if ((Original_sid == null)) { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_sid)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_sid)); } if ((Original_pumname == null)) { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_pumname)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_pumname)); } if ((Original_pumscale == null)) { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_pumscale)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[70].Value = ((string)(Original_pumscale)); } if ((Original_pumunit == null)) { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((string)(Original_pumunit)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((string)(Original_pumunit)); } if ((Original_pumqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((int)(Original_pumqty.Value)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[74].Value = ((int)(Original_pumqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; } if ((Original_pumprice.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[73].Value = ((decimal)(Original_pumprice.Value)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[76].Value = ((decimal)(Original_pumprice.Value)); } else { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; } if ((Original_pumamt.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[75].Value = ((decimal)(Original_pumamt.Value)); + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[78].Value = ((decimal)(Original_pumamt.Value)); } else { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; } if ((Original_supply == null)) { - this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[77].Value = ((string)(Original_supply)); + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[80].Value = ((string)(Original_supply)); } if ((Original_supplyidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[79].Value = ((int)(Original_supplyidx.Value)); + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[82].Value = ((int)(Original_supplyidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value; } if ((Original_projectidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[81].Value = ((int)(Original_projectidx.Value)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[84].Value = ((int)(Original_projectidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value; } if ((Original_asset == null)) { - this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_asset)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_asset)); } if ((Original_edate == null)) { - this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_edate)); + this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_edate)); } if ((Original_indate == null)) { - this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[87].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[87].Value = ((string)(Original_indate)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_indate)); } if ((Original_po == null)) { - this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_po)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_po)); } if ((Original_dept == null)) { - this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[91].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[91].Value = ((string)(Original_dept)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_dept)); } if ((Original_wuid == null)) { throw new global::System.ArgumentNullException("Original_wuid"); } else { - this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_wuid)); + this.Adapter.UpdateCommand.Parameters[95].Value = ((string)(Original_wuid)); } - this.Adapter.UpdateCommand.Parameters[93].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[96].Value = ((System.DateTime)(Original_wdate)); if ((Original_import.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[95].Value = ((bool)(Original_import.Value)); + this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[98].Value = ((bool)(Original_import.Value)); } else { - this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[95].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value; } if ((Original_pumidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[97].Value = ((int)(Original_pumidx.Value)); + this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[100].Value = ((int)(Original_pumidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[97].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value; } if ((Original_isdel.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[99].Value = ((bool)(Original_isdel.Value)); + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[102].Value = ((bool)(Original_isdel.Value)); } else { - this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[99].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value; } if ((Original_bigo == null)) { - this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[101].Value = ((string)(Original_bigo)); + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_bigo)); } if ((Original_manuproc == null)) { - this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[103].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[102].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_manuproc)); + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_manuproc)); } if ((Original_orderno == null)) { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_orderno)); - } - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_gcode)); - } - if ((Original_place == null)) { this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_place)); + this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_orderno)); + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[109].Value = ((string)(Original_gcode)); + } + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[111].Value = ((string)(Original_place)); } if ((Original_inqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[110].Value = ((int)(Original_inqty.Value)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[113].Value = ((int)(Original_inqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value; } if ((Original_pumpriceD.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[112].Value = ((decimal)(Original_pumpriceD.Value)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[115].Value = ((decimal)(Original_pumpriceD.Value)); } else { - this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value; } if ((Original_inremark == null)) { - this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[117].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[114].Value = ((string)(Original_inremark)); + this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[117].Value = ((string)(Original_inremark)); } if ((Original_winuid == null)) { - this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[116].Value = ((string)(Original_winuid)); + this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[119].Value = ((string)(Original_winuid)); } if ((Original_windate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[118].Value = ((System.DateTime)(Original_windate.Value)); + this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[121].Value = ((System.DateTime)(Original_windate.Value)); } else { - this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[121].Value = global::System.DBNull.Value; } if ((Original_chk1.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[120].Value = ((bool)(Original_chk1.Value)); + this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[123].Value = ((bool)(Original_chk1.Value)); } else { - this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value; } if ((Original_chk2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[122].Value = ((bool)(Original_chk2.Value)); + this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[125].Value = ((bool)(Original_chk2.Value)); } else { - this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[125].Value = global::System.DBNull.Value; } if ((Original_costcenter == null)) { - this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[127].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_costcenter)); + this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[127].Value = ((string)(Original_costcenter)); } if ((Original_linecode == null)) { - this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[129].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[126].Value = ((string)(Original_linecode)); + this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[129].Value = ((string)(Original_linecode)); } if ((Original_pumqtyReq.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[128].Value = ((int)(Original_pumqtyReq.Value)); + this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[131].Value = ((int)(Original_pumqtyReq.Value)); } else { - this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[131].Value = global::System.DBNull.Value; } if ((Original_chkremark == null)) { - this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_chkremark)); + this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[133].Value = ((string)(Original_chkremark)); } if ((Original_purchase_manager == null)) { - this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[135].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_purchase_manager)); + this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[135].Value = ((string)(Original_purchase_manager)); } if ((Original_purchase_admin == null)) { - this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[134].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[137].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_purchase_admin)); + this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[137].Value = ((string)(Original_purchase_admin)); } if ((Original_currency == null)) { - this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[136].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[139].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[136].Value = ((string)(Original_currency)); + this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[139].Value = ((string)(Original_currency)); } if ((Original_prdate == null)) { - this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[138].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[141].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[138].Value = ((string)(Original_prdate)); + this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[141].Value = ((string)(Original_prdate)); } if ((Original_bigo_admin == null)) { - this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[140].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[143].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[140].Value = ((string)(Original_bigo_admin)); + this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[143].Value = ((string)(Original_bigo_admin)); } if ((Original_bigo_manager == null)) { - this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[142].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[145].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[142].Value = ((string)(Original_bigo_manager)); + this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[145].Value = ((string)(Original_bigo_manager)); } - this.Adapter.UpdateCommand.Parameters[143].Value = ((int)(idx)); + if ((Original_conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[147].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[147].Value = ((string)(Original_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[149].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[149].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[151].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[151].Value = ((string)(Original_conf_reponse)); + } + this.Adapter.UpdateCommand.Parameters[152].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)) { @@ -13584,6 +14267,9 @@ ORDER BY pdate DESC, idx DESC"; string prdate, string bigo_admin, string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse, int Original_idx, string Original_pdate, string Original_state, @@ -13632,8 +14318,11 @@ ORDER BY pdate DESC, idx DESC"; string Original_currency, string Original_prdate, string Original_bigo_admin, - string Original_bigo_manager) { - 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, bigo_admin, bigo_manager, 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_bigo_admin, Original_bigo_manager, Original_idx); + string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse) { + 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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, 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_bigo_admin, Original_bigo_manager, Original_conf_status, Original_conf_request, Original_conf_reponse, Original_idx); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -13907,6 +14596,9 @@ ORDER BY pdate DESC, idx DESC"; tableMapping.ColumnMappings.Add("currency", "currency"); tableMapping.ColumnMappings.Add("bigo_admin", "bigo_admin"); tableMapping.ColumnMappings.Add("bigo_manager", "bigo_manager"); + tableMapping.ColumnMappings.Add("conf_status", "conf_status"); + tableMapping.ColumnMappings.Add("conf_request", "conf_request"); + tableMapping.ColumnMappings.Add("conf_reponse", "conf_reponse"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -13958,7 +14650,11 @@ ORDER BY pdate DESC, idx DESC"; "sNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency))" + " AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Orig" + "inal_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR " + - "([bigo_manager] = @Original_bigo_manager)))"; + "([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [co" + + "nf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_co" + + "nf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_r" + + "equest)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_re" + + "ponse] = @Original_conf_reponse)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -14052,6 +14748,12 @@ ORDER BY pdate DESC, idx DESC"; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [EETGW_PurchaseCR] ([pdate], [state], [process], [receive], [sc], [re" + @@ -14060,21 +14762,22 @@ ORDER BY pdate DESC, idx DESC"; "], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [or" + "derno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate]," + " [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_m" + - "anager], [purchase_admin], [currency], [bigo_admin], [bigo_manager]) VALUES (@pd" + - "ate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumu" + - "nit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @a" + - "sset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @big" + - "o, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, " + - "@windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark, @purchas" + - "e_manager, @purchase_admin, @currency, @bigo_admin, @bigo_manager);\r\nSELECT idx," + - " pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, re" + - "quest, 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, costcente" + - "r, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, b" + - "igo_admin, bigo_manager FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORD" + - "ER BY pdate DESC, idx DESC"; + "anager], [purchase_admin], [currency], [bigo_admin], [bigo_manager], [conf_statu" + + "s], [conf_request], [conf_reponse]) 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, @costcent" + + "er, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @curr" + + "ency, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse);\r\n" + + "SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN" + + "ame, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscal" + + "e, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, as" + + "set, 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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM" + + " EETGW_PurchaseCR 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, "", "", "")); @@ -14124,6 +14827,9 @@ ORDER BY pdate DESC, idx DESC"; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = "UPDATE [EETGW_PurchaseCR] SET [pdate] = @pdate, [state] = @state, [process] = @pr" + @@ -14139,62 +14845,68 @@ ORDER BY pdate DESC, idx DESC"; " [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [" + "chkremark] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin" + "] = @purchase_admin, [currency] = @currency, [bigo_admin] = @bigo_admin, [bigo_m" + - "anager] = @bigo_manager WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 A" + - "ND [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 [reque" + - "st] 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 [pumsc" + - "ale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AN" + - "D [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 ((@IsNul" + - "l_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNu" + - "ll_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)" + - ") AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Ori" + - "ginal_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @O" + - "riginal_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Orig" + - "inal_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Orig" + - "inal_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) A" + - "ND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wu" + - "id] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 A" + - "ND [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 [ma" + - "nuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1" + - " AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Orig" + - "inal_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original" + - "_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_in" + - "qty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Or" + - "iginal_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inrem" + - "ark] = @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] I" + - "S NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [p" + - "umqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkrema" + - "rk = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)) AND ((@I" + - "sNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager" + - "] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_" + - "admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_" + - "currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND (" + - "(@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_b" + - "igo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo" + - "_manager] = @Original_bigo_manager)));\r\nSELECT idx, pdate, state, process, recei" + - "ve, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(reques" + - "t) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, su" + - "pply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdat" + - "e, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumprice" + - "D, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkre" + - "mark, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager FROM " + - "EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; + "anager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_re" + + "quest, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx) AND ((@IsNu" + + "ll_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_" + + "state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_pro" + + "cess = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNul" + + "l_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 AN" + + "D [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 ((@Is" + + "Null_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@I" + + "sNull_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] = @Origi" + + "nal_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([proj" + + "ectidx] = @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 ([i" + + "ndate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @O" + + "riginal_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_d" + + "ept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNul" + + "l_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNu" + + "ll_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsN" + + "ull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull" + + "_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manupr" + + "oc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNu" + + "ll_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([" + + "gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([plac" + + "e] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] " + + "= @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pu" + + "mpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NU" + + "LL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] " + + "IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windat" + + "e] 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 NU" + + "LL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] " + + "IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AN" + + "D [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqty" + + "Req = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@" + + "IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkrem" + + "ark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([pu" + + "rchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 " + + "AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) " + + "AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_cu" + + "rrency)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin]" + + " = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS N" + + "ULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1" + + " AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@I" + + "sNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Origina" + + "l_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR (" + + "[conf_reponse] = @Original_conf_reponse)));\r\nSELECT idx, pdate, state, process, " + + "receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(r" + + "equest) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumam" + + "t, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid," + + " wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pum" + + "priceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, " + + "chkremark, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager," + + " conf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR 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, "", "", "")); @@ -14244,6 +14956,9 @@ ORDER BY pdate DESC, idx DESC"; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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, "", "", "")); @@ -14336,6 +15051,12 @@ ORDER BY pdate DESC, idx DESC"; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -14349,12 +15070,13 @@ ORDER BY pdate DESC, idx DESC"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, 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, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseCR WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -14380,21 +15102,34 @@ 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, bigo_admin, bigo_manager, 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 EETGW_PurchaseCR WHERE (idx = @idx)"; + this._commandCollection[3].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, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse +FROM EETGW_PurchaseCR +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) + AND (state = 'Approving') AND (conf_status = '1') +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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", 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, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, + this._commandCollection[4].CommandText = @"SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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 EETGW_PurchaseCR 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, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseCR WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[4].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[4].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[4].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[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, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -14437,8 +15172,44 @@ ORDER BY pdate DESC, idx DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByIdx(dsPurchase.EETGW_PurchaseCRDataTable dataTable, int idx) { + public virtual int FillByApprov(dsPurchase.EETGW_PurchaseCRDataTable dataTable, string gcode) { this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual dsPurchase.EETGW_PurchaseCRDataTable GetByApprov(string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + dsPurchase.EETGW_PurchaseCRDataTable dataTable = new dsPurchase.EETGW_PurchaseCRDataTable(true); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] + public virtual int FillByIdx(dsPurchase.EETGW_PurchaseCRDataTable dataTable, int idx) { + this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); @@ -14452,7 +15223,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.EETGW_PurchaseCRDataTable GetByIdx(int idx) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); dsPurchase.EETGW_PurchaseCRDataTable dataTable = new dsPurchase.EETGW_PurchaseCRDataTable(true); this.Adapter.Fill(dataTable); @@ -14464,7 +15235,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillDate(dsPurchase.EETGW_PurchaseCRDataTable dataTable, string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -14495,7 +15266,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.EETGW_PurchaseCRDataTable GetDate(string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -14600,7 +15371,10 @@ ORDER BY pdate DESC, idx DESC"; string Original_purchase_admin, string Original_currency, string Original_bigo_admin, - string Original_bigo_manager) { + string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -14967,6 +15741,30 @@ ORDER BY pdate DESC, idx DESC"; this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[91].Value = ((string)(Original_bigo_manager)); } + if ((Original_conf_status == null)) { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[93].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[93].Value = ((string)(Original_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[97].Value = ((string)(Original_conf_reponse)); + } global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -15035,7 +15833,10 @@ ORDER BY pdate DESC, idx DESC"; string purchase_admin, string currency, string bigo_admin, - string bigo_manager) { + string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -15319,6 +16120,24 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[47].Value = ((string)(bigo_manager)); } + if ((conf_status == null)) { + this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[48].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { + this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(conf_reponse)); + } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -15388,6 +16207,9 @@ ORDER BY pdate DESC, idx DESC"; string currency, string bigo_admin, string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse, int Original_idx, string Original_pdate, string Original_state, @@ -15436,6 +16258,9 @@ ORDER BY pdate DESC, idx DESC"; string Original_currency, string Original_bigo_admin, string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -15720,373 +16545,415 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(bigo_manager)); } - this.Adapter.UpdateCommand.Parameters[48].Value = ((int)(Original_idx)); - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); + if ((conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_pdate)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(conf_reponse)); + } + this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_pdate)); } if ((Original_state == null)) { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[52].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[51].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_state)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_state)); } if ((Original_process == null)) { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[54].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[53].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_process)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_process)); } if ((Original_receive == null)) { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[56].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[55].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_receive)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_receive)); } if ((Original_sc == null)) { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[58].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[57].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_sc)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_sc)); } if ((Original_request == null)) { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[60].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[59].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_request)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_request)); } if ((Original_sid == null)) { - this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[62].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[61].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_sid)); + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_sid)); } if ((Original_pumname == null)) { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[64].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[63].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_pumname)); + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_pumname)); } if ((Original_pumscale == null)) { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_pumscale)); + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((string)(Original_pumscale)); } if ((Original_pumunit == null)) { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_pumunit)); + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((string)(Original_pumunit)); } if ((Original_pumqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_pumqty.Value)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((int)(Original_pumqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[70].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_pumprice.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_pumprice.Value)); + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((decimal)(Original_pumprice.Value)); } else { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; } if ((Original_pumamt.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[74].Value = ((decimal)(Original_pumamt.Value)); + this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[77].Value = ((decimal)(Original_pumamt.Value)); } else { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[74].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_supply == null)) { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[76].Value = ((string)(Original_supply)); + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[79].Value = ((string)(Original_supply)); } if ((Original_supplyidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[78].Value = ((int)(Original_supplyidx.Value)); + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[81].Value = ((int)(Original_supplyidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value; } if ((Original_projectidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[80].Value = ((int)(Original_projectidx.Value)); + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((int)(Original_projectidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; } if ((Original_asset == null)) { - this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[82].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[81].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_asset)); + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_asset)); } if ((Original_edate == null)) { - this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[84].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[83].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_edate)); + this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[87].Value = ((string)(Original_edate)); } if ((Original_indate == null)) { - this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[86].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[85].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_indate)); + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_indate)); } if ((Original_po == null)) { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[91].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_po)); + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((string)(Original_po)); } if ((Original_dept == null)) { - this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_dept)); + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((string)(Original_dept)); } if ((Original_wuid == null)) { throw new global::System.ArgumentNullException("Original_wuid"); } else { - this.Adapter.UpdateCommand.Parameters[91].Value = ((string)(Original_wuid)); + this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_wuid)); } - this.Adapter.UpdateCommand.Parameters[92].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[95].Value = ((System.DateTime)(Original_wdate)); if ((Original_import.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[94].Value = ((bool)(Original_import.Value)); + this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[97].Value = ((bool)(Original_import.Value)); } else { - this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[94].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_pumidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[96].Value = ((int)(Original_pumidx.Value)); + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[99].Value = ((int)(Original_pumidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[99].Value = global::System.DBNull.Value; } if ((Original_isdel.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[98].Value = ((bool)(Original_isdel.Value)); + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[101].Value = ((bool)(Original_isdel.Value)); } else { - this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value; } if ((Original_bigo == null)) { - this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[100].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[99].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_bigo)); + this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_bigo)); } if ((Original_manuproc == null)) { - this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_manuproc)); + this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_manuproc)); } if ((Original_orderno == null)) { - this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_orderno)); - } - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_gcode)); - } - if ((Original_place == null)) { this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[107].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[107].Value = ((string)(Original_place)); + this.Adapter.UpdateCommand.Parameters[107].Value = ((string)(Original_orderno)); + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_gcode)); + } + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_place)); } if ((Original_inqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[109].Value = ((int)(Original_inqty.Value)); + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((int)(Original_inqty.Value)); } else { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; } if ((Original_pumpriceD.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[111].Value = ((decimal)(Original_pumpriceD.Value)); + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((decimal)(Original_pumpriceD.Value)); } else { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value; } if ((Original_inremark == null)) { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_inremark)); + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[116].Value = ((string)(Original_inremark)); } if ((Original_winuid == null)) { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[115].Value = ((string)(Original_winuid)); + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[118].Value = ((string)(Original_winuid)); } if ((Original_windate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[117].Value = ((System.DateTime)(Original_windate.Value)); + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[120].Value = ((System.DateTime)(Original_windate.Value)); } else { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[117].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_chk1.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[119].Value = ((bool)(Original_chk1.Value)); + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[122].Value = ((bool)(Original_chk1.Value)); } else { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value; } if ((Original_chk2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[121].Value = ((bool)(Original_chk2.Value)); + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[124].Value = ((bool)(Original_chk2.Value)); } else { - this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[121].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value; } if ((Original_costcenter == null)) { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[123].Value = ((string)(Original_costcenter)); + this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[126].Value = ((string)(Original_costcenter)); } if ((Original_linecode == null)) { - this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[125].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[124].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[125].Value = ((string)(Original_linecode)); + this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_linecode)); } if ((Original_pumqtyReq.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[127].Value = ((int)(Original_pumqtyReq.Value)); + this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[130].Value = ((int)(Original_pumqtyReq.Value)); } else { - this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[127].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value; } if ((Original_chkremark == null)) { - this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[129].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[128].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[129].Value = ((string)(Original_chkremark)); + this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_chkremark)); } if ((Original_purchase_manager == null)) { - this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[131].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[130].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[131].Value = ((string)(Original_purchase_manager)); + this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_purchase_manager)); } if ((Original_purchase_admin == null)) { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[136].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[133].Value = ((string)(Original_purchase_admin)); + this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[136].Value = ((string)(Original_purchase_admin)); } if ((Original_currency == null)) { - this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[135].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[138].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[135].Value = ((string)(Original_currency)); + this.Adapter.UpdateCommand.Parameters[137].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[138].Value = ((string)(Original_currency)); } if ((Original_bigo_admin == null)) { - this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[137].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[140].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[137].Value = ((string)(Original_bigo_admin)); + this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[140].Value = ((string)(Original_bigo_admin)); } if ((Original_bigo_manager == null)) { - this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[139].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[142].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[139].Value = ((string)(Original_bigo_manager)); + this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[142].Value = ((string)(Original_bigo_manager)); } - this.Adapter.UpdateCommand.Parameters[140].Value = ((int)(idx)); + if ((Original_conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[144].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[144].Value = ((string)(Original_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[146].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[146].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[148].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[148].Value = ((string)(Original_conf_reponse)); + } + this.Adapter.UpdateCommand.Parameters[149].Value = ((int)(idx)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -16156,6 +17023,9 @@ ORDER BY pdate DESC, idx DESC"; string currency, string bigo_admin, string bigo_manager, + string conf_status, + string conf_request, + string conf_reponse, int Original_idx, string Original_pdate, string Original_state, @@ -16203,8 +17073,11 @@ ORDER BY pdate DESC, idx DESC"; string Original_purchase_admin, string Original_currency, string Original_bigo_admin, - string Original_bigo_manager) { - 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, bigo_admin, bigo_manager, 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_bigo_admin, Original_bigo_manager, Original_idx); + string Original_bigo_manager, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse) { + 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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse, 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_bigo_admin, Original_bigo_manager, Original_conf_status, Original_conf_request, Original_conf_reponse, Original_idx); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17058,6 +17931,11 @@ GROUP BY purchase_admin"; tableMapping.ColumnMappings.Add("purchase_manager", "purchase_manager"); tableMapping.ColumnMappings.Add("purchase_admin", "purchase_admin"); tableMapping.ColumnMappings.Add("currency", "currency"); + tableMapping.ColumnMappings.Add("conf_status", "conf_status"); + tableMapping.ColumnMappings.Add("conf_request", "conf_request"); + tableMapping.ColumnMappings.Add("conf_reponse", "conf_reponse"); + tableMapping.ColumnMappings.Add("bigo_admin", "bigo_admin"); + tableMapping.ColumnMappings.Add("bigo_manager", "bigo_manager"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -17107,7 +17985,13 @@ GROUP BY purchase_admin"; "anager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [pur" + "chase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@I" + "sNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency))" + - ")"; + " AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @O" + + "riginal_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL)" + + " OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AN" + + "D [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND ((@I" + + "sNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo" + + "_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_ma" + + "nager] = @Original_bigo_manager)))"; 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, "", "", "")); @@ -17197,6 +18081,16 @@ GROUP BY purchase_admin"; 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_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [EETGW_PurchaseEB] ([pdate], [state], [process], [receive], [sc], [re" + @@ -17205,20 +18099,22 @@ GROUP BY purchase_admin"; "], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [or" + "derno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate]," + " [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_m" + - "anager], [purchase_admin], [currency]) VALUES (@pdate, @state, @process, @receiv" + - "e, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @puma" + - "mt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @d" + - "ept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode" + - ", @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costc" + - "enter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @c" + - "urrency);\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) " + - "AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumna" + - "me, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, pro" + - "jectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, big" + - "o, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate," + - " chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purch" + - "ase_admin, currency FROM EETGW_PurchaseEB WHERE (idx = SCOPE_IDENTITY()) ORDER B" + - "Y pdate DESC, idx DESC"; + "anager], [purchase_admin], [currency], [conf_status], [conf_request], [conf_repo" + + "nse], [bigo_admin], [bigo_manager]) 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, @costcent" + + "er, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @curr" + + "ency, @conf_status, @conf_request, @conf_reponse, @bigo_admin, @bigo_manager);\r\n" + + "SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN" + + "ame, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscal" + + "e, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, as" + + "set, 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, conf_status, conf_request, conf_reponse, bigo_admin, bigo_manager FROM" + + " EETGW_PurchaseEB 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, "", "", "")); @@ -17266,6 +18162,11 @@ GROUP BY purchase_admin"; 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("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = "UPDATE [EETGW_PurchaseEB] SET [pdate] = @pdate, [state] = @state, [process] = @pr" + @@ -17280,60 +18181,69 @@ GROUP BY purchase_admin"; "emark, [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 ((@I" + - "sNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNu" + - "ll_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((" + - "@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) A" + - "ND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_re" + - "quest = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNu" + - "ll_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname " + - "= 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pum" + - "scale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@I" + - "sNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND" + - " ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AN" + - "D ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pump" + - "rice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_p" + - "umamt)) 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 NU" + - "LL) 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] = @Orig" + - "inal_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 ([i" + - "nqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) O" + - "R ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark]" + - " IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [wi" + - "nuid] 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 [costce" + - "nter] 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)) A" + - "ND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_" + - "chkremark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) O" + - "R ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admi" + - "n = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_ad" + - "min)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Origi" + - "nal_currency)));\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(re" + - "ceive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid" + - ", pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, proje" + - "ct, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isd" + - "el, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, w" + - "indate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager" + - ", purchase_admin, currency FROM EETGW_PurchaseEB WHERE (idx = @idx) ORDER BY pda" + - "te DESC, idx DESC"; + "] = @purchase_admin, [currency] = @currency, [conf_status] = @conf_status, [conf" + + "_request] = @conf_request, [conf_reponse] = @conf_reponse, [bigo_admin] = @bigo_" + + "admin, [bigo_manager] = @bigo_manager WHERE (([idx] = @Original_idx) AND ((@IsNu" + + "ll_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_" + + "state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_pro" + + "cess = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNul" + + "l_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 AN" + + "D [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 ((@Is" + + "Null_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@I" + + "sNull_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] = @Origi" + + "nal_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([proj" + + "ectidx] = @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 ([i" + + "ndate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @O" + + "riginal_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_d" + + "ept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNul" + + "l_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNu" + + "ll_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsN" + + "ull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull" + + "_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manupr" + + "oc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNu" + + "ll_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([" + + "gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([plac" + + "e] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] " + + "= @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pu" + + "mpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NU" + + "LL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] " + + "IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windat" + + "e] 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 NU" + + "LL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] " + + "IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AN" + + "D [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqty" + + "Req = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@" + + "IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkrem" + + "ark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([pu" + + "rchase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 " + + "AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) " + + "AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_cu" + + "rrency)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_stat" + + "us] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] " + + "IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_repons" + + "e = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) " + + "AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Origi" + + "nal_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR (" + + "[bigo_manager] = @Original_bigo_manager)));\r\nSELECT idx, pdate, state, process, " + + "receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(r" + + "equest) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumam" + + "t, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid," + + " wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pum" + + "priceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, " + + "chkremark, purchase_manager, purchase_admin, currency, conf_status, conf_request" + + ", conf_reponse, bigo_admin, bigo_manager FROM EETGW_PurchaseEB 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, "", "", "")); @@ -17381,6 +18291,11 @@ GROUP BY purchase_admin"; 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("@conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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, "", "", "")); @@ -17469,6 +18384,16 @@ GROUP BY purchase_admin"; 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_conf_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_conf_reponse", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_conf_reponse", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "conf_reponse", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_admin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bigo_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -17482,12 +18407,13 @@ GROUP BY purchase_admin"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, 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, conf_status, conf_request, conf_reponse, bigo_admin, + bigo_manager FROM EETGW_PurchaseEB WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -17513,25 +18439,38 @@ 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 + this._commandCollection[3].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, conf_status, conf_request, conf_reponse, bigo_admin, + bigo_manager FROM EETGW_PurchaseEB -WHERE (idx = @idx)"; +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state = 'Approving') AND (conf_status = '1') +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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", 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, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, + 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, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse +FROM EETGW_PurchaseEB +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, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseEB WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[4].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[4].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[4].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[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, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17574,8 +18513,44 @@ ORDER BY pdate DESC, idx DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByIdx(dsPurchase.EETGW_PurchaseEBDataTable dataTable, int idx) { + public virtual int FillByApprov(dsPurchase.EETGW_PurchaseEBDataTable dataTable, string gcode) { this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual dsPurchase.EETGW_PurchaseEBDataTable GetByApprov(string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + dsPurchase.EETGW_PurchaseEBDataTable dataTable = new dsPurchase.EETGW_PurchaseEBDataTable(true); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] + public virtual int FillByIdx(dsPurchase.EETGW_PurchaseEBDataTable dataTable, int idx) { + this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); @@ -17589,7 +18564,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.EETGW_PurchaseEBDataTable GetByIdx(int idx) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); dsPurchase.EETGW_PurchaseEBDataTable dataTable = new dsPurchase.EETGW_PurchaseEBDataTable(true); this.Adapter.Fill(dataTable); @@ -17601,7 +18576,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillDate(dsPurchase.EETGW_PurchaseEBDataTable dataTable, string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -17632,7 +18607,7 @@ ORDER BY pdate DESC, idx DESC"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsPurchase.EETGW_PurchaseEBDataTable GetDate(string sd, string ed, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((sd == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -17735,7 +18710,12 @@ 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_conf_status, + string Original_conf_request, + string Original_conf_reponse, + string Original_bigo_admin, + string Original_bigo_manager) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -18086,6 +19066,46 @@ 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_conf_status == 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_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[91].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[91].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[93].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[93].Value = ((string)(Original_conf_reponse)); + } + if ((Original_bigo_admin == null)) { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_bigo_admin)); + } + if ((Original_bigo_manager == null)) { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[97].Value = ((string)(Original_bigo_manager)); + } 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)) { @@ -18152,7 +19172,12 @@ ORDER BY pdate DESC, idx DESC"; string chkremark, string purchase_manager, string purchase_admin, - string currency) { + string currency, + string conf_status, + string conf_request, + string conf_reponse, + string bigo_admin, + string bigo_manager) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -18424,6 +19449,36 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[45].Value = ((string)(currency)); } + if ((conf_status == null)) { + this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[46].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.InsertCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[47].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { + this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[48].Value = ((string)(conf_reponse)); + } + if ((bigo_admin == null)) { + this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(bigo_admin)); + } + if ((bigo_manager == null)) { + this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(bigo_manager)); + } 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)) { @@ -18491,6 +19546,11 @@ ORDER BY pdate DESC, idx DESC"; string purchase_manager, string purchase_admin, string currency, + string conf_status, + string conf_request, + string conf_reponse, + string bigo_admin, + string bigo_manager, int Original_idx, string Original_pdate, string Original_state, @@ -18537,6 +19597,11 @@ ORDER BY pdate DESC, idx DESC"; string Original_purchase_manager, string Original_purchase_admin, string Original_currency, + string Original_conf_status, + string Original_conf_request, + string Original_conf_reponse, + string Original_bigo_admin, + string Original_bigo_manager, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -18809,357 +19874,427 @@ 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)); + if ((conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(conf_status)); + } + if ((conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(conf_request)); + } + if ((conf_reponse == null)) { this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_pdate)); + this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(conf_reponse)); } - if ((Original_state == null)) { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); + if ((bigo_admin == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(bigo_admin)); + } + if ((bigo_manager == null)) { this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_state)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(bigo_manager)); + } + this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_pdate)); + } + if ((Original_state == null)) { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].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[56].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[57].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[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].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[58].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[59].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[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].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[60].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[61].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[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].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[62].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[63].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[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].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[64].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[65].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[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].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[66].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[67].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[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].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[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].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[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].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[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].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[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].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[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].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[72].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[73].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[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].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[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].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[76].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[77].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[76].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[77].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[78].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[79].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[78].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[79].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[80].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[81].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[80].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[81].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[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].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[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].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[84].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[85].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[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].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[86].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[87].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[86].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[87].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[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].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[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].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[90].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[91].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[90].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[91].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[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].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[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].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[94].Value = ((string)(Original_wuid)); } - this.Adapter.UpdateCommand.Parameters[90].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[95].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[96].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[97].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[96].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[97].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[98].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[99].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[98].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[99].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[100].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[101].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[100].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[101].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[102].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[103].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[102].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[103].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; - } - else { - this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[100].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; - } - else { - this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[102].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)); - } - if ((Original_place == null)) { this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[105].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 = ((string)(Original_manuproc)); } - if ((Original_inqty.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[107].Value = ((int)(Original_inqty.Value)); - } - else { + if ((Original_orderno == null)) { this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[107].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)); + else { + this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[107].Value = ((string)(Original_orderno)); + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); } else { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_gcode)); + } + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_place)); + } + if ((Original_inqty.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((int)(Original_inqty.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; + } + if ((Original_pumpriceD.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((decimal)(Original_pumpriceD.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[114].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[115].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[116].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[115].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[116].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[117].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[118].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[117].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[118].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[119].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[120].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[119].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[120].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[121].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[122].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[121].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[122].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[123].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[124].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[123].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[124].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[125].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[126].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[125].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[126].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[127].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[128].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[127].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[128].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[129].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[130].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[129].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[130].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[131].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[132].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[131].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[132].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[133].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[134].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[133].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[134].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[135].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[136].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[135].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[136].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[137].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[138].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[137].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[138].Value = ((string)(Original_currency)); } - this.Adapter.UpdateCommand.Parameters[134].Value = ((int)(idx)); + if ((Original_conf_status == null)) { + this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[140].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[139].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[140].Value = ((string)(Original_conf_status)); + } + if ((Original_conf_request == null)) { + this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[142].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[141].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[142].Value = ((string)(Original_conf_request)); + } + if ((Original_conf_reponse == null)) { + this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[144].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[143].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[144].Value = ((string)(Original_conf_reponse)); + } + if ((Original_bigo_admin == null)) { + this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[146].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[145].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[146].Value = ((string)(Original_bigo_admin)); + } + if ((Original_bigo_manager == null)) { + this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[148].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[147].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[148].Value = ((string)(Original_bigo_manager)); + } + this.Adapter.UpdateCommand.Parameters[149].Value = ((int)(idx)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -19227,6 +20362,11 @@ ORDER BY pdate DESC, idx DESC"; string purchase_manager, string purchase_admin, string currency, + string conf_status, + string conf_request, + string conf_reponse, + string bigo_admin, + string bigo_manager, int Original_idx, string Original_pdate, string Original_state, @@ -19272,8 +20412,13 @@ 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_conf_status, + string Original_conf_request, + string Original_conf_reponse, + string Original_bigo_admin, + string Original_bigo_manager) { + 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, conf_status, conf_request, conf_reponse, bigo_admin, bigo_manager, 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_conf_status, Original_conf_request, Original_conf_reponse, Original_bigo_admin, Original_bigo_manager, Original_idx); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] diff --git a/SubProject/FEQ0000/dsPurchase.xsd b/SubProject/FEQ0000/dsPurchase.xsd index aec8de9..c26cee8 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)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))) + 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)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse))) @@ -108,13 +108,19 @@ + + + + + + - 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], [bigo_admin], [bigo_manager]) 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, @bigo_admin, @bigo_manager); -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, bigo_admin, bigo_manager 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], [bigo_admin], [bigo_manager], [conf_status], [conf_request], [conf_reponse]) 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, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse); +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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -165,6 +171,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -172,7 +181,8 @@ 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, prdate, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -183,8 +193,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, [prdate] = @prdate, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager 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)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))); -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, bigo_admin, bigo_manager 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, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_request, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx) AND ((@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)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse))); +SELECT idx, 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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC @@ -235,6 +245,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -329,6 +342,12 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + + @@ -388,6 +407,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -424,10 +446,26 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc + + + + 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, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse +FROM Purchase +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state = 'Approving') AND (conf_status = '1') +ORDER BY pdate DESC, idx DESC + + + + + + - SELECT asset, bigo, bigo_admin, bigo_manager, 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 + SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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 @@ -439,7 +477,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, bigo_admin, bigo_manager, 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) + SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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) @@ -449,7 +487,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, bigo_admin, bigo_manager, 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 + SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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 @@ -465,7 +503,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - DELETE FROM [EETGW_PurchaseCR] 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_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))) + DELETE FROM [EETGW_PurchaseCR] 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_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse))) @@ -559,13 +597,19 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc + + + + + + - INSERT INTO [EETGW_PurchaseCR] ([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], [bigo_admin], [bigo_manager]) 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, @bigo_admin, @bigo_manager); -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, bigo_admin, bigo_manager FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC + INSERT INTO [EETGW_PurchaseCR] ([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], [bigo_admin], [bigo_manager], [conf_status], [conf_request], [conf_reponse]) 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, @bigo_admin, @bigo_manager, @conf_status, @conf_request, @conf_reponse); +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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -615,6 +659,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -622,7 +669,8 @@ 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, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseCR WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -633,8 +681,8 @@ ORDER BY pdate DESC, idx DESC - UPDATE [EETGW_PurchaseCR] 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, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager 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_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))); -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, bigo_admin, bigo_manager FROM EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC + UPDATE [EETGW_PurchaseCR] 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, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager, [conf_status] = @conf_status, [conf_request] = @conf_request, [conf_reponse] = @conf_reponse WHERE (([idx] = @Original_idx) AND ((@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_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager)) AND ((@IsNull_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse))); +SELECT idx, 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, bigo_admin, bigo_manager, conf_status, conf_request, conf_reponse FROM EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC @@ -684,6 +732,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -776,6 +827,12 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + + @@ -834,6 +891,9 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + @@ -871,10 +931,27 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc + + + + 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, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse +FROM EETGW_PurchaseCR +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) + AND (state = 'Approving') AND (conf_status = '1') +ORDER BY pdate DESC, idx DESC + + + + + + - SELECT asset, bigo, bigo_admin, bigo_manager, 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 EETGW_PurchaseCR WHERE (idx = @idx) + SELECT asset, bigo, bigo_admin, bigo_manager, chk1, chk2, chkremark, conf_reponse, conf_request, conf_status, 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 EETGW_PurchaseCR WHERE (idx = @idx) @@ -886,7 +963,8 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc SELECT asset, bigo, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseCR WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC @@ -1031,7 +1109,7 @@ GROUP BY purchase_admin - DELETE FROM [EETGW_PurchaseEB] 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 [EETGW_PurchaseEB] 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_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))) @@ -1121,13 +1199,23 @@ GROUP BY purchase_admin + + + + + + + + + + - INSERT INTO [EETGW_PurchaseEB] ([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 EETGW_PurchaseEB WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC + INSERT INTO [EETGW_PurchaseEB] ([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], [conf_status], [conf_request], [conf_reponse], [bigo_admin], [bigo_manager]) 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, @conf_status, @conf_request, @conf_reponse, @bigo_admin, @bigo_manager); +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, conf_status, conf_request, conf_reponse, bigo_admin, bigo_manager FROM EETGW_PurchaseEB WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -1175,6 +1263,11 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + @@ -1182,7 +1275,8 @@ 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, conf_status, conf_request, conf_reponse, bigo_admin, + bigo_manager FROM EETGW_PurchaseEB WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -1193,8 +1287,8 @@ ORDER BY pdate DESC, idx DESC - UPDATE [EETGW_PurchaseEB] 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 EETGW_PurchaseEB WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC + UPDATE [EETGW_PurchaseEB] 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, [conf_status] = @conf_status, [conf_request] = @conf_request, [conf_reponse] = @conf_reponse, [bigo_admin] = @bigo_admin, [bigo_manager] = @bigo_manager 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_conf_status = 1 AND [conf_status] IS NULL) OR ([conf_status] = @Original_conf_status)) AND ((@IsNull_conf_request = 1 AND [conf_request] IS NULL) OR ([conf_request] = @Original_conf_request)) AND ((@IsNull_conf_reponse = 1 AND [conf_reponse] IS NULL) OR ([conf_reponse] = @Original_conf_reponse)) AND ((@IsNull_bigo_admin = 1 AND [bigo_admin] IS NULL) OR ([bigo_admin] = @Original_bigo_admin)) AND ((@IsNull_bigo_manager = 1 AND [bigo_manager] IS NULL) OR ([bigo_manager] = @Original_bigo_manager))); +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, conf_status, conf_request, conf_reponse, bigo_admin, bigo_manager FROM EETGW_PurchaseEB WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC @@ -1242,6 +1336,11 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + @@ -1330,6 +1429,16 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + + + + + + @@ -1386,6 +1495,11 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + + + + @@ -1423,12 +1537,29 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc + + + + 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, conf_status, conf_request, conf_reponse, bigo_admin, + bigo_manager +FROM EETGW_PurchaseEB +WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state = 'Approving') AND (conf_status = '1') +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, 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 + AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseEB WHERE (idx = @idx) @@ -1442,7 +1573,8 @@ WHERE (idx = @idx) SELECT asset, bigo, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode, purchase_manager, purchase_admin, currency, bigo_admin, bigo_manager, conf_status, conf_request, + conf_reponse FROM EETGW_PurchaseEB WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC @@ -1722,14 +1854,35 @@ ORDER BY pdate DESC, idx DESC - + - + + + + + + + + + + + + + + + + + + + + + + @@ -1990,14 +2143,35 @@ ORDER BY pdate DESC, idx DESC - + - + + + + + + + + + + + + + + + + + + + + + + @@ -2482,6 +2656,41 @@ ORDER BY pdate DESC, idx DESC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SubProject/FEQ0000/fPurchaseConfirm.Designer.cs b/SubProject/FEQ0000/fPurchaseConfirm.Designer.cs new file mode 100644 index 0000000..a571025 --- /dev/null +++ b/SubProject/FEQ0000/fPurchaseConfirm.Designer.cs @@ -0,0 +1,1293 @@ +namespace FEQ0000 +{ + partial class fPurchaseConfirm + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 구성 요소 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseConfirm)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.bsNR = new System.Windows.Forms.BindingSource(this.components); + this.taNR = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); + this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager(); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.btReject = new System.Windows.Forms.ToolStripButton(); + this.btConfirm = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton(); + this.집계표ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.구매승인양식ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripButton5 = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.dvNR = new System.Windows.Forms.DataGridView(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.dvCR = new System.Windows.Forms.DataGridView(); + this.bsCR = new System.Windows.Forms.BindingSource(this.components); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.dvEB = new System.Windows.Forms.DataGridView(); + this.bsEB = new System.Windows.Forms.BindingSource(this.components); + this.taCR = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter(); + this.taEB = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter(); + this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox3 = new System.Windows.Forms.RichTextBox(); + this.richTextBox4 = new System.Windows.Forms.RichTextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBox5 = new System.Windows.Forms.RichTextBox(); + this.richTextBox6 = new System.Windows.Forms.RichTextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.panel1 = new System.Windows.Forms.Panel(); + this.label7 = new System.Windows.Forms.Label(); + this.lbSumEB = new System.Windows.Forms.Label(); + this.panel2 = new System.Windows.Forms.Panel(); + this.lbSumCR = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); + this.lbSumNR = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsNR)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + this.toolStrip1.SuspendLayout(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dvNR)).BeginInit(); + this.tabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dvCR)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsCR)).BeginInit(); + this.tabPage3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dvEB)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsEB)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + this.tableLayoutPanel3.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel3.SuspendLayout(); + this.SuspendLayout(); + // + // dsPurchase + // + this.dsPurchase.DataSetName = "dsPurchase"; + this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bsNR + // + this.bsNR.DataMember = "Purchase"; + this.bsNR.DataSource = this.dsPurchase; + this.bsNR.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // taNR + // + this.taNR.ClearBeforeFill = true; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = true; + this.tam.EETGW_PurchaseCRTableAdapter = this.taCR; + this.tam.EETGW_PurchaseEBTableAdapter = this.taEB; + this.tam.PurchaseTableAdapter = this.taNR; + this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bsNR; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.ImageScalingSize = new System.Drawing.Size(24, 24); + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.btReject, + this.btConfirm, + this.toolStripSeparator1, + this.toolStripButton1, + this.toolStripButton5, + this.toolStripButton2}); + this.bn.Location = new System.Drawing.Point(0, 662); + this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bn.Name = "bn"; + this.bn.PositionItem = this.bindingNavigatorPositionItem; + this.bn.Size = new System.Drawing.Size(1334, 31); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31); + // + // btReject + // + this.btReject.Image = ((System.Drawing.Image)(resources.GetObject("btReject.Image"))); + this.btReject.Name = "btReject"; + this.btReject.RightToLeftAutoMirrorImage = true; + this.btReject.Size = new System.Drawing.Size(104, 28); + this.btReject.Text = "승인불가(F5)"; + this.btReject.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click); + // + // btConfirm + // + this.btConfirm.Image = ((System.Drawing.Image)(resources.GetObject("btConfirm.Image"))); + this.btConfirm.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btConfirm.Name = "btConfirm"; + this.btConfirm.Size = new System.Drawing.Size(104, 28); + this.btConfirm.Text = "승인허용(F8)"; + this.btConfirm.Click += new System.EventHandler(this.btSave_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31); + // + // toolStripButton1 + // + this.toolStripButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.집계표ToolStripMenuItem, + this.구매승인양식ToolStripMenuItem}); + 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(80, 28); + this.toolStripButton1.Text = "보고서"; + // + // 집계표ToolStripMenuItem + // + this.집계표ToolStripMenuItem.Name = "집계표ToolStripMenuItem"; + 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(180, 22); + this.구매승인양식ToolStripMenuItem.Text = "구매승인 양식"; + this.구매승인양식ToolStripMenuItem.Click += new System.EventHandler(this.구매승인양식ToolStripMenuItem_Click); + // + // toolStripButton5 + // + this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image"))); + this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton5.Name = "toolStripButton5"; + this.toolStripButton5.Size = new System.Drawing.Size(78, 28); + this.toolStripButton5.Text = "SID검사"; + this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click_1); + // + // toolStripButton2 + // + this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); + this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton2.Name = "toolStripButton2"; + this.toolStripButton2.Size = new System.Drawing.Size(59, 28); + this.toolStripButton2.Text = "저장"; + this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_2); + // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButton3, + this.toolStripButton4}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(1334, 37); + this.toolStrip1.TabIndex = 3; + this.toolStrip1.Text = "toolStrip1"; + // + // toolStripButton3 + // + this.toolStripButton3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + 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(65, 34); + this.toolStripButton3.Text = "닫기"; + this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Controls.Add(this.tabPage3); + this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControl1.Location = new System.Drawing.Point(0, 37); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(1334, 625); + this.tabControl1.TabIndex = 4; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.dvNR); + this.tabPage1.Controls.Add(this.panel3); + this.tabPage1.Controls.Add(this.tableLayoutPanel3); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(1326, 599); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "일반구매"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // dvNR + // + this.dvNR.AllowUserToAddRows = false; + this.dvNR.AllowUserToDeleteRows = false; + this.dvNR.AutoGenerateColumns = false; + this.dvNR.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dvNR.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.pdateDataGridViewTextBoxColumn, + this.requestNameDataGridViewTextBoxColumn, + this.sidDataGridViewTextBoxColumn, + this.pumnameDataGridViewTextBoxColumn, + this.pumscaleDataGridViewTextBoxColumn, + this.pumunitDataGridViewTextBoxColumn, + this.pumqtyDataGridViewTextBoxColumn, + this.pumqtyReqDataGridViewTextBoxColumn, + this.pumpriceDataGridViewTextBoxColumn, + this.pumamtDataGridViewTextBoxColumn, + this.supplyDataGridViewTextBoxColumn, + this.bigo2DataGridViewTextBoxColumn, + this.bigoDataGridViewTextBoxColumn}); + this.dvNR.DataSource = this.bsNR; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle6.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3); + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dvNR.DefaultCellStyle = dataGridViewCellStyle6; + this.dvNR.Dock = System.Windows.Forms.DockStyle.Fill; + this.dvNR.Location = new System.Drawing.Point(3, 3); + this.dvNR.Name = "dvNR"; + this.dvNR.RowTemplate.Height = 23; + this.dvNR.Size = new System.Drawing.Size(1320, 425); + this.dvNR.TabIndex = 9; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.dvCR); + this.tabPage2.Controls.Add(this.panel2); + this.tabPage2.Controls.Add(this.tableLayoutPanel2); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(1326, 599); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "CR구매"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // dvCR + // + this.dvCR.AllowUserToAddRows = false; + this.dvCR.AllowUserToDeleteRows = false; + this.dvCR.AutoGenerateColumns = false; + this.dvCR.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dvCR.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn14, + this.dataGridViewTextBoxColumn15, + this.dataGridViewTextBoxColumn16, + this.dataGridViewTextBoxColumn17, + this.dataGridViewTextBoxColumn18, + this.dataGridViewTextBoxColumn19, + this.dataGridViewTextBoxColumn20, + this.dataGridViewTextBoxColumn21, + this.dataGridViewTextBoxColumn22, + this.dataGridViewTextBoxColumn23, + this.dataGridViewTextBoxColumn24, + this.dataGridViewTextBoxColumn25, + this.dataGridViewTextBoxColumn26}); + this.dvCR.DataSource = this.bsCR; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle12.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle12.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3); + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dvCR.DefaultCellStyle = dataGridViewCellStyle12; + this.dvCR.Dock = System.Windows.Forms.DockStyle.Fill; + this.dvCR.Location = new System.Drawing.Point(3, 3); + this.dvCR.Name = "dvCR"; + this.dvCR.ReadOnly = true; + this.dvCR.RowTemplate.Height = 23; + this.dvCR.Size = new System.Drawing.Size(1320, 425); + this.dvCR.TabIndex = 9; + // + // bsCR + // + this.bsCR.DataMember = "EETGW_PurchaseCR"; + this.bsCR.DataSource = this.dsPurchase; + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.dvEB); + this.tabPage3.Controls.Add(this.panel1); + this.tabPage3.Controls.Add(this.tableLayoutPanel1); + this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Size = new System.Drawing.Size(1326, 599); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "전자실구매"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // dvEB + // + this.dvEB.AllowUserToAddRows = false; + this.dvEB.AllowUserToDeleteRows = false; + this.dvEB.AutoGenerateColumns = false; + this.dvEB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dvEB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn3, + this.dataGridViewTextBoxColumn4, + this.dataGridViewTextBoxColumn5, + this.dataGridViewTextBoxColumn6, + this.dataGridViewTextBoxColumn7, + this.dataGridViewTextBoxColumn8, + this.dataGridViewTextBoxColumn9, + this.dataGridViewTextBoxColumn10, + this.dataGridViewTextBoxColumn11, + this.dataGridViewTextBoxColumn12, + this.dataGridViewTextBoxColumn13}); + this.dvEB.DataSource = this.bsEB; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle18.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle18.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3); + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dvEB.DefaultCellStyle = dataGridViewCellStyle18; + this.dvEB.Dock = System.Windows.Forms.DockStyle.Fill; + this.dvEB.Location = new System.Drawing.Point(0, 0); + this.dvEB.Name = "dvEB"; + this.dvEB.RowTemplate.Height = 23; + this.dvEB.Size = new System.Drawing.Size(1326, 431); + this.dvEB.TabIndex = 9; + // + // bsEB + // + this.bsEB.DataMember = "EETGW_PurchaseEB"; + this.bsEB.DataSource = this.dsPurchase; + // + // taCR + // + this.taCR.ClearBeforeFill = true; + // + // taEB + // + this.taEB.ClearBeforeFill = true; + // + // pdateDataGridViewTextBoxColumn + // + this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate"; + this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일"; + this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn"; + this.pdateDataGridViewTextBoxColumn.ReadOnly = true; + // + // requestNameDataGridViewTextBoxColumn + // + this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName"; + this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청"; + this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn"; + this.requestNameDataGridViewTextBoxColumn.ReadOnly = true; + // + // sidDataGridViewTextBoxColumn + // + this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid"; + this.sidDataGridViewTextBoxColumn.HeaderText = "SID"; + this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn"; + this.sidDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumnameDataGridViewTextBoxColumn + // + this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname"; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1; + this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명"; + this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn"; + this.pumnameDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumscaleDataGridViewTextBoxColumn + // + this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale"; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2; + this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격"; + this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn"; + this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumunitDataGridViewTextBoxColumn + // + this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit"; + this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위"; + this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn"; + this.pumunitDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyDataGridViewTextBoxColumn + // + this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty"; + this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량"; + this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn"; + this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumqtyReqDataGridViewTextBoxColumn + // + this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq"; + this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량"; + this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn"; + this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumpriceDataGridViewTextBoxColumn + // + this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice"; + this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가"; + this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn"; + this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true; + // + // pumamtDataGridViewTextBoxColumn + // + this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt"; + this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액"; + this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn"; + this.pumamtDataGridViewTextBoxColumn.ReadOnly = true; + // + // supplyDataGridViewTextBoxColumn + // + this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply"; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; + this.supplyDataGridViewTextBoxColumn.HeaderText = "공급"; + this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn"; + this.supplyDataGridViewTextBoxColumn.ReadOnly = true; + // + // bigo2DataGridViewTextBoxColumn + // + this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark"; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.bigo2DataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4; + this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)"; + this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn"; + this.bigo2DataGridViewTextBoxColumn.ReadOnly = true; + // + // bigoDataGridViewTextBoxColumn + // + this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo"; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5; + this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)"; + this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn"; + this.bigoDataGridViewTextBoxColumn.ReadOnly = true; + // + // dataGridViewTextBoxColumn14 + // + this.dataGridViewTextBoxColumn14.DataPropertyName = "pdate"; + this.dataGridViewTextBoxColumn14.HeaderText = "요청일"; + this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; + this.dataGridViewTextBoxColumn14.ReadOnly = true; + // + // dataGridViewTextBoxColumn15 + // + this.dataGridViewTextBoxColumn15.DataPropertyName = "requestName"; + this.dataGridViewTextBoxColumn15.HeaderText = "구매신청"; + this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; + this.dataGridViewTextBoxColumn15.ReadOnly = true; + // + // dataGridViewTextBoxColumn16 + // + this.dataGridViewTextBoxColumn16.DataPropertyName = "sid"; + this.dataGridViewTextBoxColumn16.HeaderText = "SID"; + this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; + this.dataGridViewTextBoxColumn16.ReadOnly = true; + // + // dataGridViewTextBoxColumn17 + // + this.dataGridViewTextBoxColumn17.DataPropertyName = "pumname"; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle7; + this.dataGridViewTextBoxColumn17.HeaderText = "품명"; + this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; + this.dataGridViewTextBoxColumn17.ReadOnly = true; + // + // dataGridViewTextBoxColumn18 + // + this.dataGridViewTextBoxColumn18.DataPropertyName = "pumscale"; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle8; + this.dataGridViewTextBoxColumn18.HeaderText = "모델/규격"; + this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; + this.dataGridViewTextBoxColumn18.ReadOnly = true; + // + // dataGridViewTextBoxColumn19 + // + this.dataGridViewTextBoxColumn19.DataPropertyName = "pumunit"; + this.dataGridViewTextBoxColumn19.HeaderText = "단위"; + this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; + this.dataGridViewTextBoxColumn19.ReadOnly = true; + // + // dataGridViewTextBoxColumn20 + // + this.dataGridViewTextBoxColumn20.DataPropertyName = "pumqty"; + this.dataGridViewTextBoxColumn20.HeaderText = "신청수량"; + this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; + this.dataGridViewTextBoxColumn20.ReadOnly = true; + // + // dataGridViewTextBoxColumn21 + // + this.dataGridViewTextBoxColumn21.DataPropertyName = "pumqtyReq"; + this.dataGridViewTextBoxColumn21.HeaderText = "구매수량"; + this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; + this.dataGridViewTextBoxColumn21.ReadOnly = true; + // + // dataGridViewTextBoxColumn22 + // + this.dataGridViewTextBoxColumn22.DataPropertyName = "pumprice"; + this.dataGridViewTextBoxColumn22.HeaderText = "단가"; + this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; + this.dataGridViewTextBoxColumn22.ReadOnly = true; + // + // dataGridViewTextBoxColumn23 + // + this.dataGridViewTextBoxColumn23.DataPropertyName = "pumamt"; + this.dataGridViewTextBoxColumn23.HeaderText = "금액"; + this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; + this.dataGridViewTextBoxColumn23.ReadOnly = true; + // + // dataGridViewTextBoxColumn24 + // + this.dataGridViewTextBoxColumn24.DataPropertyName = "supply"; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn24.DefaultCellStyle = dataGridViewCellStyle9; + this.dataGridViewTextBoxColumn24.HeaderText = "공급"; + this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; + this.dataGridViewTextBoxColumn24.ReadOnly = true; + // + // dataGridViewTextBoxColumn25 + // + this.dataGridViewTextBoxColumn25.DataPropertyName = "chkremark"; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn25.DefaultCellStyle = dataGridViewCellStyle10; + this.dataGridViewTextBoxColumn25.HeaderText = "비고(구매담당)"; + this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25"; + this.dataGridViewTextBoxColumn25.ReadOnly = true; + // + // dataGridViewTextBoxColumn26 + // + this.dataGridViewTextBoxColumn26.DataPropertyName = "bigo"; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn26.DefaultCellStyle = dataGridViewCellStyle11; + this.dataGridViewTextBoxColumn26.HeaderText = "비고(구매요청)"; + this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26"; + this.dataGridViewTextBoxColumn26.ReadOnly = true; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "pdate"; + this.dataGridViewTextBoxColumn1.HeaderText = "요청일"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "requestName"; + this.dataGridViewTextBoxColumn2.HeaderText = "구매신청"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.DataPropertyName = "sid"; + this.dataGridViewTextBoxColumn3.HeaderText = "SID"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.DataPropertyName = "pumname"; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle13; + this.dataGridViewTextBoxColumn4.HeaderText = "품명"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.DataPropertyName = "pumscale"; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle14; + this.dataGridViewTextBoxColumn5.HeaderText = "모델/규격"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.DataPropertyName = "pumunit"; + this.dataGridViewTextBoxColumn6.HeaderText = "단위"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.DataPropertyName = "pumqty"; + this.dataGridViewTextBoxColumn7.HeaderText = "신청수량"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.DataPropertyName = "pumqtyReq"; + this.dataGridViewTextBoxColumn8.HeaderText = "구매수량"; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + // + // dataGridViewTextBoxColumn9 + // + this.dataGridViewTextBoxColumn9.DataPropertyName = "pumprice"; + this.dataGridViewTextBoxColumn9.HeaderText = "단가"; + this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; + // + // dataGridViewTextBoxColumn10 + // + this.dataGridViewTextBoxColumn10.DataPropertyName = "pumamt"; + this.dataGridViewTextBoxColumn10.HeaderText = "금액"; + this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; + // + // dataGridViewTextBoxColumn11 + // + this.dataGridViewTextBoxColumn11.DataPropertyName = "supply"; + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle15; + this.dataGridViewTextBoxColumn11.HeaderText = "공급"; + this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; + // + // dataGridViewTextBoxColumn12 + // + this.dataGridViewTextBoxColumn12.DataPropertyName = "chkremark"; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle16; + this.dataGridViewTextBoxColumn12.HeaderText = "비고(구매담당)"; + this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; + // + // dataGridViewTextBoxColumn13 + // + this.dataGridViewTextBoxColumn13.DataPropertyName = "bigo"; + dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle17; + this.dataGridViewTextBoxColumn13.HeaderText = "비고(구매요청)"; + this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; + // + // toolStripButton4 + // + this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image"))); + this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton4.Name = "toolStripButton4"; + this.toolStripButton4.Size = new System.Drawing.Size(104, 34); + this.toolStripButton4.Text = "새로고침(&R)"; + this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click); + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 461); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1326, 138); + this.tableLayoutPanel1.TabIndex = 10; + // + // richTextBox1 + // + this.richTextBox1.BackColor = System.Drawing.Color.Gold; + this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsEB, "chkremark", true)); + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox1.Location = new System.Drawing.Point(3, 28); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(657, 107); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = ""; + // + // richTextBox2 + // + this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsEB, "bigo", true)); + this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox2.Location = new System.Drawing.Point(666, 28); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(657, 107); + this.richTextBox2.TabIndex = 0; + this.richTextBox2.Text = ""; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(657, 25); + this.label1.TabIndex = 1; + this.label1.Text = "구매 담당자 비고"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(666, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(657, 25); + this.label2.TabIndex = 2; + this.label2.Text = "구매신청자 비고(구매사유)"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 2; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel2.Controls.Add(this.richTextBox3, 0, 1); + this.tableLayoutPanel2.Controls.Add(this.richTextBox4, 1, 1); + this.tableLayoutPanel2.Controls.Add(this.label3, 0, 0); + this.tableLayoutPanel2.Controls.Add(this.label4, 1, 0); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 458); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 2; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(1320, 138); + this.tableLayoutPanel2.TabIndex = 10; + // + // richTextBox3 + // + this.richTextBox3.BackColor = System.Drawing.Color.Gold; + this.richTextBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsCR, "chkremark", true)); + this.richTextBox3.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox3.Location = new System.Drawing.Point(3, 28); + this.richTextBox3.Name = "richTextBox3"; + this.richTextBox3.Size = new System.Drawing.Size(654, 107); + this.richTextBox3.TabIndex = 0; + this.richTextBox3.Text = ""; + // + // richTextBox4 + // + this.richTextBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsCR, "bigo", true)); + this.richTextBox4.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox4.Location = new System.Drawing.Point(663, 28); + this.richTextBox4.Name = "richTextBox4"; + this.richTextBox4.ReadOnly = true; + this.richTextBox4.Size = new System.Drawing.Size(654, 107); + this.richTextBox4.TabIndex = 0; + this.richTextBox4.Text = ""; + // + // label3 + // + this.label3.Dock = System.Windows.Forms.DockStyle.Fill; + this.label3.Location = new System.Drawing.Point(3, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(654, 25); + this.label3.TabIndex = 1; + this.label3.Text = "구매 담당자 비고"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label4 + // + this.label4.Dock = System.Windows.Forms.DockStyle.Fill; + this.label4.Location = new System.Drawing.Point(663, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(654, 25); + this.label4.TabIndex = 2; + this.label4.Text = "구매신청자 비고(구매사유)"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tableLayoutPanel3 + // + this.tableLayoutPanel3.ColumnCount = 2; + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel3.Controls.Add(this.richTextBox5, 0, 1); + this.tableLayoutPanel3.Controls.Add(this.richTextBox6, 1, 1); + this.tableLayoutPanel3.Controls.Add(this.label5, 0, 0); + this.tableLayoutPanel3.Controls.Add(this.label6, 1, 0); + this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 458); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; + this.tableLayoutPanel3.RowCount = 2; + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel3.Size = new System.Drawing.Size(1320, 138); + this.tableLayoutPanel3.TabIndex = 10; + // + // richTextBox5 + // + this.richTextBox5.BackColor = System.Drawing.Color.Gold; + this.richTextBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsNR, "chkremark", true)); + this.richTextBox5.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox5.Location = new System.Drawing.Point(3, 28); + this.richTextBox5.Name = "richTextBox5"; + this.richTextBox5.Size = new System.Drawing.Size(654, 107); + this.richTextBox5.TabIndex = 0; + this.richTextBox5.Text = ""; + // + // richTextBox6 + // + this.richTextBox6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsNR, "bigo", true)); + this.richTextBox6.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox6.Location = new System.Drawing.Point(663, 28); + this.richTextBox6.Name = "richTextBox6"; + this.richTextBox6.ReadOnly = true; + this.richTextBox6.Size = new System.Drawing.Size(654, 107); + this.richTextBox6.TabIndex = 0; + this.richTextBox6.Text = ""; + // + // label5 + // + this.label5.Dock = System.Windows.Forms.DockStyle.Fill; + this.label5.Location = new System.Drawing.Point(3, 0); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(654, 25); + this.label5.TabIndex = 1; + this.label5.Text = "구매 담당자 비고"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label6 + // + this.label6.Dock = System.Windows.Forms.DockStyle.Fill; + this.label6.Location = new System.Drawing.Point(663, 0); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(654, 25); + this.label6.TabIndex = 2; + this.label6.Text = "구매신청자 비고(구매사유)"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel1 + // + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.lbSumEB); + this.panel1.Controls.Add(this.label7); + this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel1.Location = new System.Drawing.Point(0, 431); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1326, 30); + this.panel1.TabIndex = 11; + // + // label7 + // + this.label7.BackColor = System.Drawing.Color.Gainsboro; + this.label7.Dock = System.Windows.Forms.DockStyle.Left; + this.label7.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label7.Location = new System.Drawing.Point(0, 0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(142, 28); + this.label7.TabIndex = 0; + this.label7.Text = "합계"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lbSumEB + // + this.lbSumEB.BackColor = System.Drawing.Color.White; + this.lbSumEB.Dock = System.Windows.Forms.DockStyle.Left; + this.lbSumEB.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.lbSumEB.Location = new System.Drawing.Point(142, 0); + this.lbSumEB.Name = "lbSumEB"; + this.lbSumEB.Size = new System.Drawing.Size(142, 28); + this.lbSumEB.TabIndex = 1; + this.lbSumEB.Text = "0"; + this.lbSumEB.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // panel2 + // + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.lbSumCR); + this.panel2.Controls.Add(this.label9); + this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel2.Location = new System.Drawing.Point(3, 428); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1320, 30); + this.panel2.TabIndex = 12; + // + // lbSumCR + // + this.lbSumCR.BackColor = System.Drawing.Color.White; + this.lbSumCR.Dock = System.Windows.Forms.DockStyle.Left; + this.lbSumCR.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.lbSumCR.Location = new System.Drawing.Point(142, 0); + this.lbSumCR.Name = "lbSumCR"; + this.lbSumCR.Size = new System.Drawing.Size(142, 28); + this.lbSumCR.TabIndex = 1; + this.lbSumCR.Text = "0"; + this.lbSumCR.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Gainsboro; + this.label9.Dock = System.Windows.Forms.DockStyle.Left; + this.label9.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label9.Location = new System.Drawing.Point(0, 0); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(142, 28); + this.label9.TabIndex = 0; + this.label9.Text = "합계"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.lbSumNR); + this.panel3.Controls.Add(this.label10); + this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel3.Location = new System.Drawing.Point(3, 428); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(1320, 30); + this.panel3.TabIndex = 12; + // + // lbSumNR + // + this.lbSumNR.BackColor = System.Drawing.Color.White; + this.lbSumNR.Dock = System.Windows.Forms.DockStyle.Left; + this.lbSumNR.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.lbSumNR.Location = new System.Drawing.Point(142, 0); + this.lbSumNR.Name = "lbSumNR"; + this.lbSumNR.Size = new System.Drawing.Size(142, 28); + this.lbSumNR.TabIndex = 1; + this.lbSumNR.Text = "0"; + this.lbSumNR.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Gainsboro; + this.label10.Dock = System.Windows.Forms.DockStyle.Left; + this.label10.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label10.Location = new System.Drawing.Point(0, 0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(142, 28); + this.label10.TabIndex = 0; + this.label10.Text = "합계"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // fPurchaseConfirm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1334, 693); + this.Controls.Add(this.tabControl1); + this.Controls.Add(this.toolStrip1); + this.Controls.Add(this.bn); + this.DoubleBuffered = true; + this.Name = "fPurchaseConfirm"; + this.Text = "구매신청건 승인 작업"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsNR)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dvNR)).EndInit(); + this.tabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dvCR)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsCR)).EndInit(); + this.tabPage3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dvEB)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsEB)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel3.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel2.ResumeLayout(false); + this.panel3.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private dsPurchase dsPurchase; + private System.Windows.Forms.BindingSource bsNR; + private dsPurchaseTableAdapters.PurchaseTableAdapter taNR; + private dsPurchaseTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton btReject; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripButton btConfirm; + private System.Windows.Forms.ToolStripDropDownButton toolStripButton1; + private System.Windows.Forms.ToolStripMenuItem 집계표ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 구매승인양식ToolStripMenuItem; + private System.Windows.Forms.ToolStripButton toolStripButton5; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.BindingSource bsCR; + private dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter taCR; + private System.Windows.Forms.BindingSource bsEB; + private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter taEB; + private System.Windows.Forms.DataGridView dvNR; + private System.Windows.Forms.DataGridView dvEB; + private System.Windows.Forms.DataGridView dvCR; + private System.Windows.Forms.ToolStripButton toolStripButton2; + private System.Windows.Forms.ToolStripButton toolStripButton3; + private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; + private System.Windows.Forms.ToolStripButton toolStripButton4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.RichTextBox richTextBox3; + private System.Windows.Forms.RichTextBox richTextBox4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; + private System.Windows.Forms.RichTextBox richTextBox5; + private System.Windows.Forms.RichTextBox richTextBox6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label lbSumEB; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Label lbSumCR; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Label lbSumNR; + private System.Windows.Forms.Label label10; + } +} diff --git a/SubProject/FEQ0000/fPurchaseConfirm.cs b/SubProject/FEQ0000/fPurchaseConfirm.cs new file mode 100644 index 0000000..e10a864 --- /dev/null +++ b/SubProject/FEQ0000/fPurchaseConfirm.cs @@ -0,0 +1,739 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using util = FCOMMON.Util; + +using NetOffice; +using Outlook = NetOffice.OutlookApi; +using NetOffice.OutlookApi.Enums; +using FEQ0000.Purchase; +using FCOMMON; +using NetOffice.OfficeApi; +using System.Web.Services.Protocols; +using System.Diagnostics; +using FarPoint.Win.Spread.CellType; +using FCM0000; +using GrapeCity.Win.Spread.InputMan.CellType; +using FarPoint.Win.Spread; +using System.Globalization; +using static System.Windows.Forms.AxHost; + +namespace FEQ0000 +{ + public partial class fPurchaseConfirm : FCOMMON.fBase + { + string fn_fpcolsize = ""; + + public fPurchaseConfirm() + { + InitializeComponent(); + Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; + Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS; + + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.FormClosing += FPurchase_FormClosing; + this.FormClosed += __Closed; + this.KeyPreview = true; + this.KeyDown += FPurchaseConfirm_KeyDown; + } + + private void FPurchaseConfirm_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.F5) btReject.PerformClick(); + else if (e.KeyCode == Keys.F8) btConfirm.PerformClick(); + } + + private void FPurchase_FormClosing(object sender, FormClosingEventArgs e) + { + if (dsPurchase.HasChanges()) + { + var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다"); + if (dlg != DialogResult.Yes) + { + e.Cancel = true; + return; + } + } + } + + void dtSD_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode != Keys.Enter) return; + var tb = sender as ToolStripTextBox; + var input = tb.Text.Trim(); + if (input == "") tb.Text = DateTime.Now.ToShortDateString(); + else + { + string dt = string.Empty; + if (!util.MakeDateString(input, out dt)) + { + FCOMMON.Util.MsgE("입력값이 올바르지 않습니다."); + tb.SelectAll(); + tb.Focus(); + return; + } + else + { + tb.Text = dt; + } + } + + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + + private void __Load(object sender, EventArgs e) + { + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); + IsAdmin = curLevel >= 5; + if (curLevel >= 5) + { + btConfirm.Visible = true; + + } + else + { + btConfirm.Visible = false; + } + toolStripButton5.Visible = btConfirm.Visible; + + //if (curLevel < 5) + //{ + // 집계표ToolStripMenuItem.Visible = false; + //} + + refreshData(); + + } + + bool IsAdmin = false; + + private void refreshData() + { + try + { + taNR.FillByApprov(this.dsPurchase.Purchase, FCOMMON.info.Login.gcode); + taCR.FillByApprov(this.dsPurchase.EETGW_PurchaseCR, FCOMMON.info.Login.gcode); + taEB.FillByApprov(this.dsPurchase.EETGW_PurchaseEB, FCOMMON.info.Login.gcode); + showSummary(); + dvCR.AutoResizeColumns(); + dvNR.AutoResizeColumns(); + dvEB.AutoResizeColumns(); + + CellFormmatting(dvEB); + CellFormmatting(dvNR); + CellFormmatting(dvCR); + + } + catch (System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.Message); + } + + FormattingData(); + } + void FormattingData() + { + ////삭제컬럼인덱스 + //this.fpSpread1.SuspendLayout(); + //var delindex = this.fpSpread1.ActiveSheet.Columns["isdel"].Index; + //var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; + //var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index; + //var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index; + + + //for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) + //{ + // var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex); + // string stateStr = string.Empty; + // if (state != null) stateStr = state.ToString(); + + // var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex); + // var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex); + + // var str_crcf = string.Empty; + // if (crcf != null) str_crcf = crcf.ToString(); + + + // if (value != null && (Boolean)value) + // { + // this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Red; + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.White; + // } + // else + // { + // //crcf 에 따라서 배경색 변경 + // if (str_crcf != "") + // this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.FromArgb(50, Color.PowderBlue); + // else + // this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.White; + + + // switch (stateStr.ToLower()) + // { + // case "cancled": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Red; + // break; + // case "rejected": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Tomato; + // break; + // case "spr": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Magenta; + // break; + // case "---": + // case "----": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue; + // break; + // case "received": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray; + // break; + // case "hold": + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink; + // break; + // default: + // this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; + // break; + // } + // } + + // //프로젝트가 걸린데이터는 글자를 bold체로 변경한다. + // var prjdata = this.fpSpread1.ActiveSheet.GetValue(i, prjindex); + // if (prjdata != null) + // { + // var pidx = (int)this.fpSpread1.ActiveSheet.GetValue(i, prjindex); + // if (pidx == -1) //프로젝트가 없다 + // { + // this.fpSpread1.ActiveSheet.Rows[i].Font = fBase; + // } + // else + // { + // this.fpSpread1.ActiveSheet.Rows[i].Font = fBold; + // } + // } + // else this.fpSpread1.ActiveSheet.Rows[i].Font = fBold; + + + //} + //this.fpSpread1.ResumeLayout(); + } + + private void saveData(Boolean prompt) + { + this.Validate(); + this.bsNR.EndEdit(); + this.bsCR.EndEdit(); + this.bsEB.EndEdit(); + + try + { + var cnt = this.tam.UpdateAll(this.dsPurchase); + if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt)); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE("저장 실패\n" + ex.Message); + } + + + } + void showSummary() + { + + var sumNR = this.dsPurchase.Purchase.Sum(t => t.pumamt); + var sumCR = this.dsPurchase.EETGW_PurchaseCR.Sum(t => t.pumamt); + var sumEB = this.dsPurchase.EETGW_PurchaseEB.Sum(t => t.pumamt); + //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) + //if (!dr.IspumamtNull()) sum += dr.pumamt; + lbSumNR.Text = sumNR.ToString("N0"); + lbSumCR.Text = sumCR.ToString("N0"); + lbSumEB.Text = sumEB.ToString("N0"); + + tabControl1.TabPages[0].Text = $"일반구매({dsPurchase.Purchase.Rows.Count})"; + tabControl1.TabPages[1].Text = $"CR구매({dsPurchase.EETGW_PurchaseCR.Rows.Count})"; + tabControl1.TabPages[2].Text = $"전자실구매({dsPurchase.EETGW_PurchaseEB.Rows.Count})"; + } + + + private void btSave_Click(object sender, EventArgs e) + { + func_confirm(true); + } + + + private bool getAdminInput + { + get + { + return FCOMMON.Util.getBit( + FCOMMON.info.Login.gpermission, + (int)FCOMMON.eGroupPermission.purchase_adv); + } + } + + void func_confirm(bool value) + { + var state = value ? "2" : "3"; + if (tabControl1.SelectedIndex == 0) + { + var dr = this.bsNR.Current as DataRowView; + dr["conf_status"] = state; + dr.EndEdit(); + if (bsNR.Position < bsNR.Count) bsNR.Position += 1; + CellFormmatting(dvNR); + } + else if (tabControl1.SelectedIndex == 1) + { + var dr = this.bsCR.Current as DataRowView; + dr["conf_status"] = state; + dr.EndEdit(); + if (bsCR.Position < bsCR.Count) bsCR.Position += 1; + CellFormmatting(dvCR); + } + else if (tabControl1.SelectedIndex == 2) + { + var dr = this.bsEB.Current as DataRowView; + dr["conf_status"] = state; + dr.EndEdit(); + if (bsEB.Position < bsEB.Count) bsEB.Position += 1; + CellFormmatting(dvEB); + } + + } + + void CellFormmatting(DataGridView dv) + { + foreach(DataGridViewRow drow in dv.Rows) + { + var dr = drow.DataBoundItem as DataRowView; + var status = dr["conf_status"]?.ToString() ?? "0"; + if (status == "1") drow.DefaultCellStyle.BackColor = Color.White; //신청 + else if (status == "2") drow.DefaultCellStyle.BackColor = Color.Lime; //ok + else if (status == "3") drow.DefaultCellStyle.BackColor = Color.Tomato; //ng + else drow.DefaultCellStyle.BackColor = Color.DimGray; //etc + } + dv.Invalidate(); + } + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + func_confirm(false); + } + void func_add() + { + var newdr = this.dsPurchase.Purchase.NewPurchaseRow(); + + if (FCOMMON.info.Login.no == "dev") + newdr.request = "395552";//string.Format("[{0}] {1}", "395552", "김치균"); + else + newdr.request = FCOMMON.info.Login.no; + + var t1 = DBM.getCodeList("65"); + var t2 = DBM.getCodeList("66"); + if (t1.Count == 1) + newdr.purchase_manager = t1.First().Value; + if (t2.Count == 1) + newdr.purchase_admin = t2.First().Value; + + repeat: + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + + this.dsPurchase.Purchase.AddPurchaseRow(newdr); + + int cnt = this.taNR.Update(newdr); + if (cnt == 1) + { + if (repeat) + { + FCOMMON.Util.MsgI("저장 완료\n\n연속 저장 모드이므로 직전에 입력된 자료가 자동으로 설정 됩니다."); + + } + else FCOMMON.Util.MsgI("저장 완료"); + } + else + { + FCOMMON.Util.MsgE("저장 실패\n\n다시 시도하시고 증상이 반복되면 chikyun.kim@amkor.co.kr 로 문의 주십시요"); + } + + + newdr.AcceptChanges(); + if (repeat) + { + var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); + FCOMMON.Util.CopyData(newdr, newdro); + newdro.idx = -1; + newdro.wdate = DateTime.Now; + newdr = newdro; //change + goto repeat; + } + else refreshData(); //181210 + } + else newdr.Delete(); + + + + } + void func_delete() + { + var drv = bsNR.Current as DataRowView; + if (drv == null) return; + + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); + var dr = drv.Row as dsPurchase.PurchaseRow; + if (dr.sc != "") + { + if (curLevel < 5) + { + FCOMMON.Util.MsgE("일반 사용자는 SC값이 있는 자료를 삭제할 수 없습니다."); + return; + } + } + + if (dr.request != FCOMMON.info.Login.no) + { + if (curLevel < 5) + { + FCOMMON.Util.MsgE("일반 사용자는 타인의 자료를 삭제할 수 없습니다."); + return; + } + } + + if (curLevel < 5) + { + var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + } + else + { + var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?\n저장 버튼을 눌러야 최종 삭제 됩니다"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + } + + bsNR.RemoveCurrent(); + + //일반사용자는 데이터를 바로 삭제한다. + if (curLevel < 5) + { + try + { + int cnt = taNR.Update(this.dsPurchase); + if (cnt != 1) + FCOMMON.Util.MsgE(cnt.ToString() + "건의 자료가 삭제되었습니다."); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE("delete error\n" + ex.Message); + } + } + } + + private int AddItemInfoGetIndex(dsPurchase.PurchaseRow newdr) + { + //이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다. + if (newdr.sid == "신규") return -1; + int retval = -1; + var sid = newdr.sid; + var iteminfo = FCOMMON.DBM.getItemInfo(sid); + if (iteminfo.idx < 0) + { + FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo(); + newitem.sid = newdr.sid; + newitem.name = newdr.pumname; + newitem.price = newdr.pumprice.ToString(); + newitem.model = newdr.pumscale; + newitem.unit = newdr.pumunit; + newitem.scale = 1f; + newitem.supply = newdr.supply; + newitem.supplyidx = newdr.supplyidx; + retval = FCOMMON.DBM.addItemInfo(newitem); + } + return retval; + } + + private void copyDataToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + + void Func_Edit() + { + var drv = this.bsNR.Current as DataRowView; + if (drv == null) return; + var newdr = drv.Row as dsPurchase.PurchaseRow; + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + if (newdr.RowState != DataRowState.Unchanged) + { + this.taNR.Update(newdr); + newdr.AcceptChanges(); + } + } + else newdr.RejectChanges(); + + } + + + void func_copy() + { + var drv = this.bsNR.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPurchase.PurchaseRow; + + //현재 데이터를 입력하여 신규 추가를 한다. + var newdr = this.dsPurchase.Purchase.NewPurchaseRow(); + FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr); + newdr.orderno = string.Empty; //CR값 복사 안하게 210823 + newdr.pdate = DateTime.Now.ToShortDateString(); + newdr.wdate = DateTime.Now; + newdr.wuid = FCOMMON.info.Login.no; + newdr.state = "---"; + if (newdr.sid.Length != 9 && newdr.sid.StartsWith("10") == false) + newdr.sid = string.Empty; + + newdr.bigo = string.Empty; + newdr.bigo2 = string.Empty; + newdr.purchase_manager = string.Empty; + + newdr.request = FCOMMON.info.Login.no; + newdr.receive = "";// FCOMMON.info.Login.nameK; + newdr.sc = string.Empty; + newdr.po = string.Empty; + newdr.indate = string.Empty; + newdr.edate = string.Empty; + newdr.pumqty = 0; //실구매수량은 제거 + newdr.idx = -1; + newdr.EndEdit(); + + repeat: + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(newdr); + if (newidx != -1) + { + newdr.pumidx = newidx; + newdr.EndEdit(); + } + + this.dsPurchase.Purchase.AddPurchaseRow(newdr); + this.taNR.Update(newdr); + newdr.AcceptChanges(); + + if (repeat) + { + var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); + FCOMMON.Util.CopyData(newdr, newdro); + newdro.idx = -1; + newdro.wdate = DateTime.Now; + newdr = newdro; //change + goto repeat; + } + } + else newdr.Delete(); + } + + + private void 집계표ToolStripMenuItem_Click(object sender, EventArgs e) + { + Purchase.rPurchaseNR f = new Purchase.rPurchaseNR(); + f.MdiParent = this.MdiParent; + f.Show(); + } + + + private void bs_CurrentChanged(object sender, EventArgs e) + { + var drv = this.bsNR.Current as DataRowView; + + } + + + + string getmaxstr(string src, int len = 30) + { + if (src.Length > len) return src.Substring(0, len) + "..."; + else return src; + } + + List ChangeMailAddress(List userid) + { + var db = new DataClasses1DataContext(); + + List retval = new List(); + foreach (var id in userid) + { + UInt32 userno; + if (UInt32.TryParse(id, out userno) == true) + { + var user = db.Users.Where(t => t.id == id).FirstOrDefault(); + if (user != null) + { + var data = string.Format("{0}<{1}>", user.name, user.email); + if (retval.Contains(data) == false) + retval.Add(data); + } + } + else + { + if (retval.Contains(id) == false) + retval.Add(id); + } + } + return retval; + } + + + private void 구매승인양식ToolStripMenuItem_Click(object sender, EventArgs e) + { + //구매승인양식 + var f = new fPurchaseNRList(this.dsPurchase.Purchase); + f.Show(); + + } + + + void func_ipgo() + { + var drv = this.bsNR.Current as DataRowView; + var dr = drv.Row as dsPurchase.PurchaseRow; + + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); + if (curLevel < 5) //일반사용자 입고 여부 + { + if (dr.state != "PO" && dr.state != "PR") + { + FCOMMON.Util.MsgE("PR/PO 상태의 자료만 입고처리가 가능 합니다"); + return; + } + //if (dr.request != FCOMMON.info.Login.no) + //{ + // FCOMMON.Util.MsgE("타인의 자료는 입고 처리할 수 없습니다"); + // return; + //} + } + var f = new FEQ0000.Purchase.fPurchaseNR_Ipgo(dr.idx, string.Empty); + if (f.ShowDialog() == DialogResult.OK) + { + refreshData(); + } + } + + + private void toolStripButton5_Click_1(object sender, EventArgs e) + { + //state 가 ---인 데이터를 기준으로 함 + //chk2 ==false 인 자료를 기준으로 함 + var newlist = this.dsPurchase.Purchase.Where(t => (t.Ischk2Null() || t.chk2 == false) && t.state.Equals("---")).ToList(); + if (newlist.Any() == false) + { + FCOMMON.Util.MsgE($"신규 신청 데이터가 없습니다"); + return; + } + var f = new fSIDCheckNR(newlist); + if (f.ShowDialog() == DialogResult.OK) + { + var cnt = 0; + foreach (var idx in f.chklist) + { + var dr = newlist.Where(t => t.idx == idx).FirstOrDefault(); + if (dr != null) + { + cnt += 1; + dr.chk2 = true; + if (dr.IspumqtyNull() || dr.pumqty == 0) dr.pumqty = dr.pumqtyReq; + dr.EndEdit(); + } + } + FCOMMON.Util.MsgI($"{cnt}건의 자료가 [구매담당확인] 되었습니다\n저장을 눌러야 최종 적용 됩니다"); + } + } + + private void toolStripButton2_Click_2(object sender, EventArgs e) + { + //save + saveData(true); + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + refreshData(); + } + } +} diff --git a/SubProject/FEQ0000/fPurchaseConfirm.resx b/SubProject/FEQ0000/fPurchaseConfirm.resx new file mode 100644 index 0000000..b7f43f2 --- /dev/null +++ b/SubProject/FEQ0000/fPurchaseConfirm.resx @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 131, 17 + + + 212, 17 + + + 291, 17 + + + 616, 17 + + + 772, 17 + + + 364, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC + DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC + rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV + i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG + 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG + QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX + bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFNSURBVDhPhZKvSwRRFIXnn7BYLBsE2aZB2GAQDcqCBkVw + MYhJLK7BokWTLJiMFi3aBIuIGPwRloXVRVE2rKhBEEQE/4Cr3+Xdx5sZxzlwYOfO/c68d9goS5KQG+fL + 7cv4QdF7eKfXTXOCWDDo6fvRu/11qyEW5NbjMtigs7dD2X6uyFZnRo5eduXusy7Nj0spbRTSISHMEqDB + eLM9Jautshy/7sn1+4n0V3viIWGAwRaAgPFSYzQdwA9g7smx7av2ZdNifURdu6/qXt9ct841gHIIAAih + pOavhqRyUfo7gJLWHybVWQKePh/ULmIBNEt5+52aLN+MeXNnk8ErjVkNKJS7dO57IISCgOy+HBkZPHE6 + kIYRDzRLAKewuxpoMAXyn0gFIAuhILzWXFAIc2zATNjEC8rBHBWH4L+wSTd+ZUAIIreWL7fv5cYJRdEP + Fas4M5JsXd4AAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAANISURBVDhPtZBdTFN3GIdJvFu4ULMSFIiZW0JCci5EF4hU + OsZHZoEYslIgFMs6LUioQIsBZHCoKwo1ZVBqaR1DsFIrjiBoZwWDURNGsWvnGSNQoSsg/bBWqodtkhB/ + I7XLZvTW5/Z9n+ef/xv2f1TTZPgZa10j+bN4ouZe2UbF7a83SoyFE0WDuQ25AwNbhCMrH4RW30ZBNbCa + LTWOm/M3MOq8DePiLTx4YoXeeglf6tjqiv7FY6U9846vtHZWSPkPue1kjuH3Xow5R9Frv4xKawMkv5AY + nLuG7D62P69X83FpzyN/zz0fJBcXwJHbckLq5svT5PZT5mp6fHEcrdMqCKaOo9h8HF0zPVDf7USGOuXY + kW6Huu2GG8bfaGjGvGA3memMqontwQA5KZEZ7ddxfvYi+FMi5E8IccLSBJ1VhwzlAVuxZib+MDm9MfLw + BRS3fBgwB1DZPYsD5WOyYODE3RKb6Y9RiCwnUbApCyfF0NkNEBlKkdSSwCxUztxvM7rwoyWAKv0KZMNe + tAwtI14wbAsGykzF68POn1BhqUcrpcSVuUGcNbVi/7ef/lDYMcvNIB/+dWVyFRK9CyXfL0GoWcJ3192I + 410NBANFQ9zApGcKV+eGoLqjBOv0fn+idF/jiJj8UFV9ITKTNFOdN92o0btR1O4Er82BlkEXdrEv0MEA + tz/b1nmnHZ93sp4kyxPEJnFezEs+v/7vbK6fPniISKm+T5299hii7mVwmhdQol6CqMuO3Vldr7+QqUmT + pHYwhbaqw1HrR48q1ng8mm78Bmv5BaCTU4mkchMlNSziiNKJrLo5yAxusCvHEZXe/vqIqK3d9rK8TOsV + CNbXmmVYNejg7+/F86xDoOMTiX2CEaquz4HCVgfIzTvwzvyK6HQ5HclsZgQDr0QixhqfT7/QnsOzgX64 + pPXwne/C6mdp8McSRFzeZapS+wjkJRfymh5gT64ekcwWTlD+lz9zOBxaIMAzsgE+rQreDgWeJiTBEx1L + fJLTRwnaZpAqNGFnisLBYJ7+IqS9SSApOf15fKLDx82HW1QOL7EXnohoYlemmopJazfvSJFLGSwyPLT+ + brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE1SURBVDhPY/hPIQAbcOn57//T915BwW1rjoFx/oJz//N6 + VqHgsNxeMA03YN3lp/9vv4YYhAtsuQ6h55/9A8aBidVgPtiADZcegzWDFN1/9///qy8IDOKDcPfu1/9/ + /vn/v3rt/f9TD38BuwJuwIrT9wka0L79BdiAkuW3MA0A+fnog///V12GKAZ5BxcGGQByDYoXYAbA/Aey + AYRBCkE2N256AnY6SDMoUEF8FANAoQ0zAFkzCCNrhhkAor3CczENwGYzuu1JM8+BaQwDQAGITzOyASDs + 4huPMAAkATIA3c/YNIdNPAHGKAaAUhUoBghphhng0rTnv71bGKoBoADE5mR0zVgNACUK9BgAGYbudJBG + GNY0dEYYAMsgMAyKYxAGhTQIg/wLwiBbQRikGSUdkA/+/wcAgXJEf04PwQkAAAAASUVORK5CYII= + + + + 430, 17 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEPSURBVDhPrZI9CsJAFIRzDi9gaStYCCm8gCgIYgoRISA2 + gj+9lXYieAJP4CXSC6YSbEQQCxsrk6fzcGI02dg4MMVu3vdlw8b6jmTkNWIOhiaViqzm86iLXk+L/UwJ + Hs6aTQl9X8TztOF6LfflMuq0UEiXxOHLcKg9DwbaU7+vPbquyGiUlGDRte2fMHpot1XSyOXeEgpum00E + IoT9UknXgClwi0XdSwgIoQhhQBSEz5MYBTwqmgbvWy0VGD+B3xmHEYBspoBv0jxhQshPAe55V6sZ69fr + sq1WkwIEC6dc1ivkYFoBj/P5T5iJS4JOR66O81HsEQ6CIClA8BBXhL8NwyzWPLYRZnTKkNfIP2NZD+oj + J+O97B4lAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPtZPPasJAEMbzPn0FwWA92JtP4NGKB1/DP7ei + QSsovkChh7ZBrCfpyR4sikopUgq9StFzM/UbZ5asSS4FfzAkO7vft5udiZMEnSBpk5dhFJmncjdHxXaG + A+9K4SbFT1luEwQBbXavVO5d0nI3ovnW5yeiMriiu+kt5asXbABEdgRigAUQDr+aHLU3lxoLl/yPJhvF + GsiYJ/vPdX5qPK3bVJ25VFukafztGQNsKHJ791I3w+8KcpNth8XDz5YxACI/gsR1J8sTYcO4UIzwv1gG + cTshgJ5IT8hChTMHsHi+v+fvffmxywVwN2FDkdsGEOK2ceu4feQ0tDqKyKMGqDfqjvprLzyswuX7Tf4E + dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII= + + + + 536, 17 + + + 694, 17 + + + 65 + + \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectListUser.Designer.cs b/SubProject/FPJ0000/Project/fProjectListUser.Designer.cs index 3228c93..a1f8aa9 100644 --- a/SubProject/FPJ0000/Project/fProjectListUser.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectListUser.Designer.cs @@ -30,29 +30,29 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectListUser)); - 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.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); - 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.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); - 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.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); - 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.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType(); - 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.NumberCellType numberCellType16 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType17 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType18 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType19 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType20 = new FarPoint.Win.Spread.CellType.NumberCellType(); + 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.NumberCellType numberCellType21 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType22 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType23 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType24 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType25 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType26 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType27 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType28 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType29 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType30 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType31 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType32 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType33 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType34 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType35 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType36 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType37 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType38 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType39 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType40 = new FarPoint.Win.Spread.CellType.NumberCellType(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsMSSQL = new FPJ0000.dsPRJ(); this.cm = new System.Windows.Forms.ContextMenuStrip(this.components); @@ -78,7 +78,6 @@ this.taHistD = new FPJ0000.dsPRJTableAdapters.EETGW_ProjecthistoryDTableAdapter(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.bsUser = new System.Windows.Forms.BindingSource(this.components); this.dSProjectSummary = new FPJ0000.Project.DSProjectSummary(); this.projectsTableAdapter = new FPJ0000.Project.DSProjectSummaryTableAdapters.ProjectsTableAdapter(); @@ -95,6 +94,7 @@ this.bindingNavigatorMoveLastItem1 = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.panel2 = new System.Windows.Forms.Panel(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); this.cm.SuspendLayout(); @@ -102,12 +102,12 @@ ((System.ComponentModel.ISupportInitialize)(this.bsHistD)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsHist)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsUser)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dSProjectSummary)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit(); this.bindingNavigator1.SuspendLayout(); this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); this.SuspendLayout(); // // bs @@ -129,7 +129,7 @@ this.toolStripMenuItem2, this.엑셀파일로저장ToolStripMenuItem}); this.cm.Name = "contextMenuStrip1"; - this.cm.Size = new System.Drawing.Size(241, 104); + this.cm.Size = new System.Drawing.Size(241, 82); // // columnSizeToolStripMenuItem // @@ -260,7 +260,7 @@ // btClose // this.btClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.btClose.Image = ((System.Drawing.Image)(resources.GetObject("btClose.Image"))); + this.btClose.Image = global::FPJ0000.Properties.Resources.action_stop; this.btClose.ImageTransparentColor = System.Drawing.Color.Magenta; this.btClose.Name = "btClose"; this.btClose.Size = new System.Drawing.Size(67, 42); @@ -270,7 +270,7 @@ // btSearch // this.btSearch.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); + this.btSearch.Image = global::FPJ0000.Properties.Resources.action_refresh; this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; this.btSearch.Name = "btSearch"; this.btSearch.Size = new System.Drawing.Size(91, 42); @@ -317,280 +317,6 @@ this.fpSpread1.TabIndex = 36; this.fpSpread1.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellDoubleClick); // - // 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 = 23; - this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; - this.fpSpread1_Sheet1.ActiveColumnIndex = -1; - this.fpSpread1_Sheet1.ActiveRowIndex = -1; - this.fpSpread1_Sheet1.AutoGenerateColumns = false; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).ColumnSpan = 3; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "사용자"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).ColumnSpan = 5; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "프로젝트 수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).ColumnSpan = 13; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "완료 Plan (Due date)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "미등록"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "기타"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 0).Value = "공정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 1).Value = "성명"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 2).Value = "사원번호"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 3).Value = "전체"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 4).Value = "완료"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 5).Value = "진행"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 6).Value = "검토"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "보류\r\n대기"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "Jan"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "Feb"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Mar"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "Apr"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "May"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "Jun"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "July"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "Aug"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "Sep"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "Oct"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "Nov"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "Dec"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "Next"; - this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F; - this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 48F; - this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; - this.fpSpread1_Sheet1.Columns.Get(0).DataField = "Process"; - this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(0).Label = "공정"; - this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; - this.fpSpread1_Sheet1.Columns.Get(1).DataField = "UserName"; - this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(1).Label = "성명"; - this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(1).Width = 100F; - this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; - this.fpSpread1_Sheet1.Columns.Get(2).DataField = "UserID"; - 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 = 120F; - this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true; - numberCellType1.DecimalPlaces = 0; - numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType1.MaximumValue = 2147483647D; - numberCellType1.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType1; - this.fpSpread1_Sheet1.Columns.Get(3).DataField = "CntTotal"; - 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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F; - this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoSort = true; - numberCellType2.DecimalPlaces = 0; - numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType2.MaximumValue = 2147483647D; - numberCellType2.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType2; - this.fpSpread1_Sheet1.Columns.Get(4).DataField = "CntComplete"; - 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 = 50F; - this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoSort = true; - numberCellType3.DecimalPlaces = 0; - numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType3.MaximumValue = 2147483647D; - numberCellType3.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CntProgress"; - 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 = 50F; - this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoSort = true; - numberCellType4.DecimalPlaces = 0; - numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType4.MaximumValue = 2147483647D; - numberCellType4.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType4; - this.fpSpread1_Sheet1.Columns.Get(6).DataField = "CntCheck"; - 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 = 50F; - numberCellType5.DecimalPlaces = 0; - numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType5.MaximumValue = 2147483647D; - numberCellType5.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType5; - this.fpSpread1_Sheet1.Columns.Get(7).DataField = "CntHold"; - this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Label = "보류\r\n대기"; - this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Width = 50F; - numberCellType6.DecimalPlaces = 0; - numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType6.MaximumValue = 2147483647D; - numberCellType6.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType6; - this.fpSpread1_Sheet1.Columns.Get(8).DataField = "Plan01"; - this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).Label = "Jan"; - this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).Width = 50F; - numberCellType7.DecimalPlaces = 0; - numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType7.MaximumValue = 2147483647D; - numberCellType7.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType7; - this.fpSpread1_Sheet1.Columns.Get(9).DataField = "Plan02"; - this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Label = "Feb"; - this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Width = 50F; - numberCellType8.DecimalPlaces = 0; - numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType8.MaximumValue = 2147483647D; - numberCellType8.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType8; - this.fpSpread1_Sheet1.Columns.Get(10).DataField = "Plan03"; - this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Label = "Mar"; - this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Width = 50F; - numberCellType9.DecimalPlaces = 0; - numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType9.MaximumValue = 2147483647D; - numberCellType9.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType9; - this.fpSpread1_Sheet1.Columns.Get(11).DataField = "Plan04"; - this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(11).Label = "Apr"; - this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(11).Width = 50F; - numberCellType10.DecimalPlaces = 0; - numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType10.MaximumValue = 2147483647D; - numberCellType10.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType10; - this.fpSpread1_Sheet1.Columns.Get(12).DataField = "Plan05"; - this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Label = "May"; - this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Width = 50F; - numberCellType11.DecimalPlaces = 0; - numberCellType11.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType11.MaximumValue = 2147483647D; - numberCellType11.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType11; - this.fpSpread1_Sheet1.Columns.Get(13).DataField = "Plan06"; - this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(13).Label = "Jun"; - this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(13).Width = 50F; - numberCellType12.DecimalPlaces = 0; - numberCellType12.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType12.MaximumValue = 2147483647D; - numberCellType12.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType12; - this.fpSpread1_Sheet1.Columns.Get(14).DataField = "Plan07"; - this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).Label = "July"; - this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).Width = 50F; - numberCellType13.DecimalPlaces = 0; - numberCellType13.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType13.MaximumValue = 2147483647D; - numberCellType13.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType13; - this.fpSpread1_Sheet1.Columns.Get(15).DataField = "Plan08"; - this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).Label = "Aug"; - this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).Width = 50F; - numberCellType14.DecimalPlaces = 0; - numberCellType14.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType14.MaximumValue = 2147483647D; - numberCellType14.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType14; - this.fpSpread1_Sheet1.Columns.Get(16).DataField = "Plan09"; - this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(16).Label = "Sep"; - this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(16).Width = 50F; - numberCellType15.DecimalPlaces = 0; - numberCellType15.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType15.MaximumValue = 2147483647D; - numberCellType15.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType15; - this.fpSpread1_Sheet1.Columns.Get(17).DataField = "Plan10"; - this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(17).Label = "Oct"; - this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(17).Width = 50F; - numberCellType16.DecimalPlaces = 0; - numberCellType16.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType16.MaximumValue = 2147483647D; - numberCellType16.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType16; - this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Plan11"; - this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(18).Label = "Nov"; - this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(18).Width = 50F; - numberCellType17.DecimalPlaces = 0; - numberCellType17.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType17.MaximumValue = 2147483647D; - numberCellType17.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType17; - this.fpSpread1_Sheet1.Columns.Get(19).DataField = "Plan12"; - this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Label = "Dec"; - this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Width = 50F; - numberCellType18.DecimalPlaces = 0; - numberCellType18.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType18.MaximumValue = 2147483647D; - numberCellType18.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType18; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "PlanNext"; - this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Label = "Next"; - this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Width = 50F; - numberCellType19.DecimalPlaces = 0; - numberCellType19.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType19.MaximumValue = 2147483647D; - numberCellType19.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType19; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "CntNone"; - this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(21).Width = 50F; - numberCellType20.DecimalPlaces = 0; - numberCellType20.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType20.MaximumValue = 2147483647D; - numberCellType20.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType20; - this.fpSpread1_Sheet1.Columns.Get(22).DataField = "CntOther"; - this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(22).Width = 50F; - this.fpSpread1_Sheet1.DataAutoSizeColumns = false; - this.fpSpread1_Sheet1.DataSource = this.bsUser; - this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; - this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; - // // bsUser // this.bsUser.DataMember = "ProjectCountForUser"; @@ -733,6 +459,280 @@ this.panel2.Size = new System.Drawing.Size(1339, 645); this.panel2.TabIndex = 38; // + // 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 = 23; + this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; + this.fpSpread1_Sheet1.ActiveColumnIndex = -1; + this.fpSpread1_Sheet1.ActiveRowIndex = -1; + this.fpSpread1_Sheet1.AutoGenerateColumns = false; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).ColumnSpan = 3; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "사용자"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).ColumnSpan = 5; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "프로젝트 수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).ColumnSpan = 13; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "완료 Plan (Due date)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "미등록"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "기타"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 0).Value = "공정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 1).Value = "성명"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 2).Value = "사원번호"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 3).Value = "전체"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 4).Value = "완료"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 5).Value = "진행"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 6).Value = "검토"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "보류\r\n대기"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "Jan"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "Feb"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Mar"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "Apr"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "May"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "Jun"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "July"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "Aug"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "Sep"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "Oct"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "Nov"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "Dec"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "Next"; + this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F; + this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 48F; + this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType4; + this.fpSpread1_Sheet1.Columns.Get(0).DataField = "Process"; + this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(0).Label = "공정"; + this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F; + this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType5; + this.fpSpread1_Sheet1.Columns.Get(1).DataField = "UserName"; + this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(1).Label = "성명"; + this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(1).Width = 100F; + this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType6; + this.fpSpread1_Sheet1.Columns.Get(2).DataField = "UserID"; + 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 = 120F; + this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true; + numberCellType21.DecimalPlaces = 0; + numberCellType21.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType21.MaximumValue = 2147483647D; + numberCellType21.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType21; + this.fpSpread1_Sheet1.Columns.Get(3).DataField = "CntTotal"; + 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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F; + this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoSort = true; + numberCellType22.DecimalPlaces = 0; + numberCellType22.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType22.MaximumValue = 2147483647D; + numberCellType22.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType22; + this.fpSpread1_Sheet1.Columns.Get(4).DataField = "CntComplete"; + 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 = 50F; + this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoSort = true; + numberCellType23.DecimalPlaces = 0; + numberCellType23.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType23.MaximumValue = 2147483647D; + numberCellType23.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType23; + this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CntProgress"; + 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 = 50F; + this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoSort = true; + numberCellType24.DecimalPlaces = 0; + numberCellType24.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType24.MaximumValue = 2147483647D; + numberCellType24.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType24; + this.fpSpread1_Sheet1.Columns.Get(6).DataField = "CntCheck"; + 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 = 50F; + this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true; + numberCellType25.DecimalPlaces = 0; + numberCellType25.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType25.MaximumValue = 2147483647D; + numberCellType25.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType25; + this.fpSpread1_Sheet1.Columns.Get(7).DataField = "CntHold"; + this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(7).Label = "보류\r\n대기"; + this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(7).Width = 50F; + numberCellType26.DecimalPlaces = 0; + numberCellType26.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType26.MaximumValue = 2147483647D; + numberCellType26.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType26; + this.fpSpread1_Sheet1.Columns.Get(8).DataField = "Plan01"; + this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Label = "Jan"; + this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Width = 50F; + numberCellType27.DecimalPlaces = 0; + numberCellType27.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType27.MaximumValue = 2147483647D; + numberCellType27.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType27; + this.fpSpread1_Sheet1.Columns.Get(9).DataField = "Plan02"; + this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).Label = "Feb"; + this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).Width = 50F; + numberCellType28.DecimalPlaces = 0; + numberCellType28.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType28.MaximumValue = 2147483647D; + numberCellType28.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType28; + this.fpSpread1_Sheet1.Columns.Get(10).DataField = "Plan03"; + this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Label = "Mar"; + this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Width = 50F; + numberCellType29.DecimalPlaces = 0; + numberCellType29.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType29.MaximumValue = 2147483647D; + numberCellType29.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType29; + this.fpSpread1_Sheet1.Columns.Get(11).DataField = "Plan04"; + this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(11).Label = "Apr"; + this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(11).Width = 50F; + numberCellType30.DecimalPlaces = 0; + numberCellType30.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType30.MaximumValue = 2147483647D; + numberCellType30.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType30; + this.fpSpread1_Sheet1.Columns.Get(12).DataField = "Plan05"; + this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(12).Label = "May"; + this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(12).Width = 50F; + numberCellType31.DecimalPlaces = 0; + numberCellType31.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType31.MaximumValue = 2147483647D; + numberCellType31.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType31; + this.fpSpread1_Sheet1.Columns.Get(13).DataField = "Plan06"; + this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Label = "Jun"; + this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Width = 50F; + numberCellType32.DecimalPlaces = 0; + numberCellType32.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType32.MaximumValue = 2147483647D; + numberCellType32.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType32; + this.fpSpread1_Sheet1.Columns.Get(14).DataField = "Plan07"; + this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(14).Label = "July"; + this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(14).Width = 50F; + numberCellType33.DecimalPlaces = 0; + numberCellType33.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType33.MaximumValue = 2147483647D; + numberCellType33.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType33; + this.fpSpread1_Sheet1.Columns.Get(15).DataField = "Plan08"; + this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(15).Label = "Aug"; + this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(15).Width = 50F; + numberCellType34.DecimalPlaces = 0; + numberCellType34.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType34.MaximumValue = 2147483647D; + numberCellType34.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType34; + this.fpSpread1_Sheet1.Columns.Get(16).DataField = "Plan09"; + this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).Label = "Sep"; + this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).Width = 50F; + numberCellType35.DecimalPlaces = 0; + numberCellType35.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType35.MaximumValue = 2147483647D; + numberCellType35.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType35; + this.fpSpread1_Sheet1.Columns.Get(17).DataField = "Plan10"; + this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(17).Label = "Oct"; + this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(17).Width = 50F; + numberCellType36.DecimalPlaces = 0; + numberCellType36.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType36.MaximumValue = 2147483647D; + numberCellType36.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType36; + this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Plan11"; + this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(18).Label = "Nov"; + this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(18).Width = 50F; + numberCellType37.DecimalPlaces = 0; + numberCellType37.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType37.MaximumValue = 2147483647D; + numberCellType37.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType37; + this.fpSpread1_Sheet1.Columns.Get(19).DataField = "Plan12"; + this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(19).Label = "Dec"; + this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(19).Width = 50F; + numberCellType38.DecimalPlaces = 0; + numberCellType38.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType38.MaximumValue = 2147483647D; + numberCellType38.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType38; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "PlanNext"; + this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Label = "Next"; + this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Width = 50F; + numberCellType39.DecimalPlaces = 0; + numberCellType39.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType39.MaximumValue = 2147483647D; + numberCellType39.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType39; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "CntNone"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Width = 50F; + numberCellType40.DecimalPlaces = 0; + numberCellType40.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType40.MaximumValue = 2147483647D; + numberCellType40.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType40; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "CntOther"; + this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(22).Width = 50F; + this.fpSpread1_Sheet1.DataAutoSizeColumns = false; + this.fpSpread1_Sheet1.DataSource = this.bsUser; + this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; + this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; + // // fProjectListUser // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -751,7 +751,6 @@ ((System.ComponentModel.ISupportInitialize)(this.bsHistD)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsUser)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dSProjectSummary)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit(); @@ -759,6 +758,7 @@ this.bindingNavigator1.PerformLayout(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/SubProject/FPJ0000/Project/fProjectListUser.resx b/SubProject/FPJ0000/Project/fProjectListUser.resx index c268bf9..48be050 100644 --- a/SubProject/FPJ0000/Project/fProjectListUser.resx +++ b/SubProject/FPJ0000/Project/fProjectListUser.resx @@ -123,6 +123,9 @@ 17, 17 + + 17, 17 + 387, 17 @@ -175,36 +178,6 @@ 455, 17 - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 - Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 - Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== - - 934, 17 @@ -224,7 +197,7 @@ 1274, 17 - 17, 95 + 1009, 56 169, 56 @@ -232,6 +205,9 @@ 258, 56 + + 258, 56 + 415, 56 @@ -241,7 +217,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC + vQAADr0BR/uQrQAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++ Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ /5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA @@ -253,7 +229,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC + vQAADr0BR/uQrQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG @@ -265,7 +241,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + vQAADr0BR/uQrQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA @@ -276,7 +252,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + vQAADr0BR/uQrQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC @@ -285,7 +261,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + vQAADr0BR/uQrQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f oAc0QjgAAAAASUVORK5CYII= @@ -294,7 +270,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + vQAADr0BR/uQrQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG diff --git a/SubProject/FPJ0000/Project/fProjectListUserDetail.Designer.cs b/SubProject/FPJ0000/Project/fProjectListUserDetail.Designer.cs index 49722d6..cdc1685 100644 --- a/SubProject/FPJ0000/Project/fProjectListUserDetail.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectListUserDetail.Designer.cs @@ -543,7 +543,7 @@ // btClose // this.btClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.btClose.Image = ((System.Drawing.Image)(resources.GetObject("btClose.Image"))); + this.btClose.Image = global::FPJ0000.Properties.Resources.action_stop; this.btClose.ImageTransparentColor = System.Drawing.Color.Magenta; this.btClose.Name = "btClose"; this.btClose.Size = new System.Drawing.Size(67, 36); @@ -553,7 +553,7 @@ // btSearch // this.btSearch.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); + this.btSearch.Image = global::FPJ0000.Properties.Resources.action_refresh; this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; this.btSearch.Name = "btSearch"; this.btSearch.Size = new System.Drawing.Size(91, 36); diff --git a/SubProject/FPJ0000/Project/fProjectListUserDetail.resx b/SubProject/FPJ0000/Project/fProjectListUserDetail.resx index 39fc4b3..8fe0d58 100644 --- a/SubProject/FPJ0000/Project/fProjectListUserDetail.resx +++ b/SubProject/FPJ0000/Project/fProjectListUserDetail.resx @@ -299,36 +299,6 @@ 455, 17 - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 - Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 - Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== - - 561, 17