diff --git a/Project/History.txt b/Project/History.txt index 799d6a0..039e3ec 100644 --- a/Project/History.txt +++ b/Project/History.txt @@ -1,4 +1,5 @@ -* 주간내역이 업데이트 되지 않는 데이터를 강조시키고 알림을 띄울 방안 확인 +* 주간내역이 업데이트 되지 않는 데이터를 강조시키고 알림을 띄울 방안 확인\ +190827 chi 데이터베이스이동 (10.131.3.205->10.131.15.18) 190819 chi 업무일지 출력물 그룹 분리 190806 chi 품목정보에서 카테고리 없는 자료도 보이게 함 품목정보 정렬 기능 추가 diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index 213d3aa..6f91870 100644 --- a/Project/Properties/AssemblyInfo.cs +++ b/Project/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 지정되도록 할 수 있습니다. // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("19.08.22.1200")] -[assembly: AssemblyFileVersion("19.08.22.1200")] +[assembly: AssemblyVersion("19.08.27.1400")] +[assembly: AssemblyFileVersion("19.08.27.1400")] diff --git a/Project/Properties/Settings.Designer.cs b/Project/Properties/Settings.Designer.cs index af3c980..7530bb9 100644 --- a/Project/Properties/Settings.Designer.cs +++ b/Project/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace Project.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/Project/Properties/Settings.settings b/Project/Properties/Settings.settings index ca634ed..6e6241c 100644 --- a/Project/Properties/Settings.settings +++ b/Project/Properties/Settings.settings @@ -5,10 +5,10 @@ <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! using System; diff --git a/Project/StateMachine/_BW.cs b/Project/StateMachine/_BW.cs index 4a6b6cf..6e9a521 100644 --- a/Project/StateMachine/_BW.cs +++ b/Project/StateMachine/_BW.cs @@ -22,10 +22,10 @@ namespace Project var ts = DateTime.Now - redisTryTime; if(ts.TotalMinutes>5) { - Console.WriteLine("redis conn : 10.131.36.205:6379"); + Console.WriteLine("redis conn : 10.131.36.57:6379"); try { - redisConnection = StackExchange.Redis.ConnectionMultiplexer.Connect("10.131.36.205:6379"); + redisConnection = StackExchange.Redis.ConnectionMultiplexer.Connect("10.131.36.57:6379"); }catch (Exception ex) { diff --git a/Project/app.config b/Project/app.config index 02fe39d..ef94950 100644 --- a/Project/app.config +++ b/Project/app.config @@ -6,7 +6,8 @@ - + diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 97255f1..bf64fb5 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -53,6 +53,7 @@ this.customerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_kuntae = new System.Windows.Forms.ToolStripMenuItem(); this.mn_logdata = new System.Windows.Forms.ToolStripMenuItem(); + this.sMTRepairLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.managementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_purchase = new System.Windows.Forms.ToolStripMenuItem(); this.mn_project = new System.Windows.Forms.ToolStripMenuItem(); @@ -91,8 +92,8 @@ this.그룹정보ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); - this.tabControl1 = new System.Windows.Forms.TabControl(); this.임의테이블조작ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.tabControl1 = new System.Windows.Forms.TabControl(); this.cmTab.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -268,12 +269,21 @@ // // mn_logdata // + this.mn_logdata.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.sMTRepairLogToolStripMenuItem}); this.mn_logdata.Image = ((System.Drawing.Image)(resources.GetObject("mn_logdata.Image"))); this.mn_logdata.Name = "mn_logdata"; - this.mn_logdata.Size = new System.Drawing.Size(65, 23); - this.mn_logdata.Text = "기록"; + this.mn_logdata.Size = new System.Drawing.Size(98, 23); + this.mn_logdata.Text = "운영 기록"; this.mn_logdata.Click += new System.EventHandler(this.mn_logdata_Click); // + // sMTRepairLogToolStripMenuItem + // + this.sMTRepairLogToolStripMenuItem.Name = "sMTRepairLogToolStripMenuItem"; + this.sMTRepairLogToolStripMenuItem.Size = new System.Drawing.Size(178, 24); + this.sMTRepairLogToolStripMenuItem.Text = "SMT Repair Log"; + this.sMTRepairLogToolStripMenuItem.Click += new System.EventHandler(this.sMTRepairLogToolStripMenuItem_Click); + // // managementToolStripMenuItem // this.managementToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -502,77 +512,77 @@ // purchaseImportToolStripMenuItem // this.purchaseImportToolStripMenuItem.Name = "purchaseImportToolStripMenuItem"; - this.purchaseImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.purchaseImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.purchaseImportToolStripMenuItem.Text = "Purchase Import"; this.purchaseImportToolStripMenuItem.Click += new System.EventHandler(this.purchaseImportToolStripMenuItem_Click); // // purchaseOrderImportToolStripMenuItem // this.purchaseOrderImportToolStripMenuItem.Name = "purchaseOrderImportToolStripMenuItem"; - this.purchaseOrderImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.purchaseOrderImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.purchaseOrderImportToolStripMenuItem.Text = "Purchase(Order) Import"; this.purchaseOrderImportToolStripMenuItem.Click += new System.EventHandler(this.purchaseOrderImportToolStripMenuItem_Click); // // materialImportToolStripMenuItem // this.materialImportToolStripMenuItem.Name = "materialImportToolStripMenuItem"; - this.materialImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.materialImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.materialImportToolStripMenuItem.Text = "Material Import"; this.materialImportToolStripMenuItem.Click += new System.EventHandler(this.materialImportToolStripMenuItem_Click); // // purchaseDataConvertToolStripMenuItem // this.purchaseDataConvertToolStripMenuItem.Name = "purchaseDataConvertToolStripMenuItem"; - this.purchaseDataConvertToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.purchaseDataConvertToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.purchaseDataConvertToolStripMenuItem.Text = "Purchase Data Convert"; this.purchaseDataConvertToolStripMenuItem.Click += new System.EventHandler(this.purchaseDataConvertToolStripMenuItem_Click); // // customerImportToolStripMenuItem // this.customerImportToolStripMenuItem.Name = "customerImportToolStripMenuItem"; - this.customerImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.customerImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.customerImportToolStripMenuItem.Text = "Customer Import"; this.customerImportToolStripMenuItem.Click += new System.EventHandler(this.customerImportToolStripMenuItem_Click); // // projectImportToolStripMenuItem // this.projectImportToolStripMenuItem.Name = "projectImportToolStripMenuItem"; - this.projectImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.projectImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.projectImportToolStripMenuItem.Text = "Project Import"; this.projectImportToolStripMenuItem.Click += new System.EventHandler(this.projectImportToolStripMenuItem_Click); // // projectImportCompleteToolStripMenuItem // this.projectImportCompleteToolStripMenuItem.Name = "projectImportCompleteToolStripMenuItem"; - this.projectImportCompleteToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.projectImportCompleteToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.projectImportCompleteToolStripMenuItem.Text = "Project Import(Complete)"; this.projectImportCompleteToolStripMenuItem.Click += new System.EventHandler(this.projectImportCompleteToolStripMenuItem_Click); // // workReportImportToolStripMenuItem // this.workReportImportToolStripMenuItem.Name = "workReportImportToolStripMenuItem"; - this.workReportImportToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.workReportImportToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.workReportImportToolStripMenuItem.Text = "WorkReport Import"; this.workReportImportToolStripMenuItem.Click += new System.EventHandler(this.workReportImportToolStripMenuItem_Click); // // addSIdDataToolStripMenuItem // this.addSIdDataToolStripMenuItem.Name = "addSIdDataToolStripMenuItem"; - this.addSIdDataToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.addSIdDataToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.addSIdDataToolStripMenuItem.Text = "Make Sid Data"; this.addSIdDataToolStripMenuItem.Click += new System.EventHandler(this.addSIdDataToolStripMenuItem_Click); // // 계정목록ToolStripMenuItem // this.계정목록ToolStripMenuItem.Name = "계정목록ToolStripMenuItem"; - this.계정목록ToolStripMenuItem.Size = new System.Drawing.Size(235, 24); + this.계정목록ToolStripMenuItem.Size = new System.Drawing.Size(278, 24); this.계정목록ToolStripMenuItem.Text = "계정목록(AD)"; this.계정목록ToolStripMenuItem.Click += new System.EventHandler(this.계정목록ToolStripMenuItem_Click); // // 그룹정보ToolStripMenuItem1 // this.그룹정보ToolStripMenuItem1.Name = "그룹정보ToolStripMenuItem1"; - this.그룹정보ToolStripMenuItem1.Size = new System.Drawing.Size(235, 24); + this.그룹정보ToolStripMenuItem1.Size = new System.Drawing.Size(278, 24); this.그룹정보ToolStripMenuItem1.Text = "그룹정보"; this.그룹정보ToolStripMenuItem1.Click += new System.EventHandler(this.그룹정보ToolStripMenuItem1_Click); // @@ -580,7 +590,7 @@ // this.toolStripMenuItem1.ForeColor = System.Drawing.Color.HotPink; this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(235, 24); + this.toolStripMenuItem1.Size = new System.Drawing.Size(278, 24); this.toolStripMenuItem1.Text = "Staff Grid"; this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); // @@ -588,10 +598,17 @@ // this.toolStripMenuItem3.ForeColor = System.Drawing.Color.HotPink; this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(235, 24); + this.toolStripMenuItem3.Size = new System.Drawing.Size(278, 24); this.toolStripMenuItem3.Text = "메일 양식"; this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click); // + // 임의테이블조작ToolStripMenuItem + // + this.임의테이블조작ToolStripMenuItem.Name = "임의테이블조작ToolStripMenuItem"; + this.임의테이블조작ToolStripMenuItem.Size = new System.Drawing.Size(278, 24); + this.임의테이블조작ToolStripMenuItem.Text = "구매내역 suuply 다시 설정 하기"; + this.임의테이블조작ToolStripMenuItem.Click += new System.EventHandler(this.임의테이블조작ToolStripMenuItem_Click); + // // tabControl1 // this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.FlatButtons; @@ -607,13 +624,6 @@ this.tabControl1.TabIndex = 34; this.tabControl1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.tabControl1_DrawItem); // - // 임의테이블조작ToolStripMenuItem - // - this.임의테이블조작ToolStripMenuItem.Name = "임의테이블조작ToolStripMenuItem"; - this.임의테이블조작ToolStripMenuItem.Size = new System.Drawing.Size(278, 24); - this.임의테이블조작ToolStripMenuItem.Text = "구매내역 suuply 다시 설정 하기"; - this.임의테이블조작ToolStripMenuItem.Click += new System.EventHandler(this.임의테이블조작ToolStripMenuItem_Click); - // // fMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -706,6 +716,7 @@ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; private System.Windows.Forms.ToolStripMenuItem mn_logdata; private System.Windows.Forms.ToolStripMenuItem 임의테이블조작ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem sMTRepairLogToolStripMenuItem; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index eee7b44..d150b98 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -770,7 +770,7 @@ namespace Project private void mn_logdata_Click(object sender, EventArgs e) { - Menu_logData(); + } private void 임의테이블조작ToolStripMenuItem_Click(object sender, EventArgs e) @@ -860,5 +860,10 @@ namespace Project FCOMMON.Util.MsgI("complete"); } + + private void sMTRepairLogToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_logData(); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index 76b851a..2196060 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -173,34 +173,6 @@ AAAIpABZCBxIcGCLgyw2PHiQoqHDhiwOtmAxQIXFixcDREQ4YIXHjx8JbJwoQQUCjBlHspAAsqVGiRRN WuxQoICJBiNCbKT4EUQBAR8ECCCR4EREFgRk/qQwYUIEBw4wQBBI4GMDARFKZFCgYEGCAwIHEAgQoAIK Dxq6GjCQAEBBgSJQyEVhwYBbiXhZQDhwAACKBRdG4p04EAAHBoIHwwSAWLFjgwEBADs= - - - - - R0lGODlhEAAQAIQQAP/cpv/GcNvb292RIP+kG/+5T6m5rMStgK13Jv+wOt2TJKmwrP/zcZOru////wAA - AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAQACwAAAAAEAAQAAAIZQAhCBxIsKBABgQBGCTIoCEEBgEWDmRAgMAAAwUgKJQ4 - QIEDBwciSmw4QMDHBRIBBCiQAIGABw8aSBSosgHMmCkH2oQpc6bAnTh9QgDa0ydRoUMffCw6s4FJB0wl - OoWKdGiDBgEBADs= - - - - - R0lGODlhEAAQAIQfAJrM+3OSsKfS++zx9uXt9Yis1FdwkZW51ElVa8fj/bba/NXb5PL2+o276b3d/VJh - e7TR4ENLXNXn8KLD536kwIyzzJ/E2KjL3t7n7ykxQz5FVa/W/OLp8I+w1P///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAItgA9CBxIcOCHgx4kQIBwwcKBChQiBgjgASEECQQGZNRI - oGMDAxU9QCCQoGRJBygZNPgo8AKDBB1iyuzAoOYDgRZeonSgoGfPDQxuejjwcsLMAkgFBBVY4aVPBRui - ClCKQCCFojGRIm0ggEBVDxQG8IQqdSoAAhGsijWqdSsADmk9BBBLdqoAAHgxaBAYgAHPsnjxDtjrwcAC - Bhw5KOaAYQCEDHwNSH7wAAGCCBE0aMggtKBnggEBADs= - - - - - R0lGODlhEAAQAIMPAEWi6azap1WzS9LusYrSbApexXLHV+z41vH559Ltw8ns+pe75hBs0iCZEP////// - /yH/C05FVFNDQVBFMi4wAwEBAAAh+QQBAAAPACwAAAAAEAAQAAAIiwAfCBxIsKDBBw4SOjg4MGGDBgwY - JDzo4OEBBAgUMGiwkGBFBAcODAAAYMEAjh4ZIBgwQAAAAgZOdkTIQEGCAQRICoAZACVNBQACkHxpQEDP - jg5qLhgKQIDTowIrJoA5NGKDABIbNpjqlEGBAguyag3QEiLYsDOjPgwQYEFYsQUdRpSY1qDCugzzBgQA - Ow== @@ -263,6 +235,34 @@ AAAIfABJCBxIsKDBgwhJjFjIMOEIARQyGICAYMTBhyNEJCDAIMADiwIZChhhAAGHAQoUBJjAcESIly8v LDwA8+VCEThxghAYISfOhSCCBh2wsACAo0dbNhhxoIKEDh8wBFjQMKSGjBs7egBZcIQFByA2LCjA1WDL hQnTql2rNiAAOw== + + + + + R0lGODlhEAAQAIQQAP/cpv/GcNvb292RIP+kG/+5T6m5rMStgK13Jv+wOt2TJKmwrP/zcZOru////wAA + AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAQACwAAAAAEAAQAAAIZQAhCBxIsKBABgQBGCTIoCEEBgEWDmRAgMAAAwUgKJQ4 + QIEDBwciSmw4QMDHBRIBBCiQAIGABw8aSBSosgHMmCkH2oQpc6bAnTh9QgDa0ydRoUMffCw6s4FJB0wl + OoWKdGiDBgEBADs= + + + + + R0lGODlhEAAQAIQfAJrM+3OSsKfS++zx9uXt9Yis1FdwkZW51ElVa8fj/bba/NXb5PL2+o276b3d/VJh + e7TR4ENLXNXn8KLD536kwIyzzJ/E2KjL3t7n7ykxQz5FVa/W/OLp8I+w1P///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAItgA9CBxIcOCHgx4kQIBwwcKBChQiBgjgASEECQQGZNRI + oGMDAxU9QCCQoGRJBygZNPgo8AKDBB1iyuzAoOYDgRZeonSgoGfPDQxuejjwcsLMAkgFBBVY4aVPBRui + ClCKQCCFojGRIm0ggEBVDxQG8IQqdSoAAhGsijWqdSsADmk9BBBLdqoAAHgxaBAYgAHPsnjxDtjrwcAC + Bhw5KOaAYQCEDHwNSH7wAAGCCBE0aMggtKBnggEBADs= + + + + + R0lGODlhEAAQAIMPAEWi6azap1WzS9LusYrSbApexXLHV+z41vH559Ltw8ns+pe75hBs0iCZEP////// + /yH/C05FVFNDQVBFMi4wAwEBAAAh+QQBAAAPACwAAAAAEAAQAAAIiwAfCBxIsKDBBw4SOjg4MGGDBgwY + JDzo4OEBBAgUMGiwkGBFBAcODAAAYMEAjh4ZIBgwQAAAAgZOdkTIQEGCAQRICoAZACVNBQACkHxpQEDP + jg5qLhgKQIDTowIrJoA5NGKDABIbNpjqlEGBAguyag3QEiLYsDOjPgwQYEFYsQUdRpSY1qDCugzzBgQA + Ow== diff --git a/SubProject/FBS0000/Properties/Settings.Designer.cs b/SubProject/FBS0000/Properties/Settings.Designer.cs index c45ffa0..7e7ba72 100644 --- a/SubProject/FBS0000/Properties/Settings.Designer.cs +++ b/SubProject/FBS0000/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace FBS0000.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/SubProject/FBS0000/Properties/Settings.settings b/SubProject/FBS0000/Properties/Settings.settings index 74dec33..9a04c5f 100644 --- a/SubProject/FBS0000/Properties/Settings.settings +++ b/SubProject/FBS0000/Properties/Settings.settings @@ -1,14 +1,14 @@  - + <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! \ No newline at end of file diff --git a/SubProject/FBS0000/app.config b/SubProject/FBS0000/app.config index 818fc96..112ba5b 100644 --- a/SubProject/FBS0000/app.config +++ b/SubProject/FBS0000/app.config @@ -5,5 +5,7 @@ + \ No newline at end of file diff --git a/SubProject/FCM0000/Properties/Settings.Designer.cs b/SubProject/FCM0000/Properties/Settings.Designer.cs index 961bd37..f6c9b84 100644 --- a/SubProject/FCM0000/Properties/Settings.Designer.cs +++ b/SubProject/FCM0000/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace FCM0000.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/SubProject/FCM0000/Properties/Settings.settings b/SubProject/FCM0000/Properties/Settings.settings index 74dec33..e574534 100644 --- a/SubProject/FCM0000/Properties/Settings.settings +++ b/SubProject/FCM0000/Properties/Settings.settings @@ -1,14 +1,14 @@  - + <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! \ No newline at end of file diff --git a/SubProject/FCM0000/app.config b/SubProject/FCM0000/app.config index 818fc96..8ec6ce6 100644 --- a/SubProject/FCM0000/app.config +++ b/SubProject/FCM0000/app.config @@ -5,5 +5,7 @@ + \ No newline at end of file diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs index 4979952..c2eb9db 100644 --- a/SubProject/FCOMMON/DataBaseManager.cs +++ b/SubProject/FCOMMON/DataBaseManager.cs @@ -374,7 +374,7 @@ namespace FCOMMON var retval = new sItemInfo(); retval.idx = -1; - string sql = "select [id],[name],concat([name],'(',[id],')') as dispName,[dept],[email],[level],[tel] " + + string sql = "select [id],[name],([name] +'(' +[id] +')') as dispName,[dept],[email],[level],[tel] " + " from Users " + " where gcode='" + FCOMMON.info.Login.gcode + "' and [id] <> 'dev' and dept like '%" + FCOMMON.info.Login.dept.Replace("'", "''") + "%' order by [name]"; var cmd = new SqlCommand(sql, cn); @@ -513,7 +513,10 @@ namespace FCOMMON retval.svalue = memo; return retval; } - public static Boolean insertCode(string GroupCode, string code,string memo,string svalue="") + + + + public static Boolean insertCommonCode(string GroupCode, string code,string memo,string svalue="") { var cn = getCn(); diff --git a/SubProject/FCOMMON/Info.cs b/SubProject/FCOMMON/Info.cs index cde6456..a368431 100644 --- a/SubProject/FCOMMON/Info.cs +++ b/SubProject/FCOMMON/Info.cs @@ -55,7 +55,7 @@ namespace FCOMMON public static string libxlCompany = "Amkor Technology korea, Inc"; public static string libxlKey = "windows-282b2b0800c5e0016bb06a6fafjfd6o8"; public static int camIndex = 0; - public static string ftp_ip = "10.131.36.205"; + public static string ftp_ip = "10.131.36.57"; public static string ftp_id = "project"; public static string ftp_pw = "Amkor1234"; public static int ftp_port = 2121; diff --git a/SubProject/FEQ0000/Properties/Settings.Designer.cs b/SubProject/FEQ0000/Properties/Settings.Designer.cs index b87e5f8..df96526 100644 --- a/SubProject/FEQ0000/Properties/Settings.Designer.cs +++ b/SubProject/FEQ0000/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace FEQ0000.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/SubProject/FEQ0000/Properties/Settings.settings b/SubProject/FEQ0000/Properties/Settings.settings index 74dec33..bbaa21a 100644 --- a/SubProject/FEQ0000/Properties/Settings.settings +++ b/SubProject/FEQ0000/Properties/Settings.settings @@ -5,10 +5,10 @@ <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! \ No newline at end of file diff --git a/SubProject/FEQ0000/app.config b/SubProject/FEQ0000/app.config index b2584a8..ce8aa62 100644 --- a/SubProject/FEQ0000/app.config +++ b/SubProject/FEQ0000/app.config @@ -3,6 +3,7 @@ - + diff --git a/SubProject/FLG0000/DSLog.Designer.cs b/SubProject/FLG0000/DSLog.Designer.cs index aef6bd7..d4684ec 100644 --- a/SubProject/FLG0000/DSLog.Designer.cs +++ b/SubProject/FLG0000/DSLog.Designer.cs @@ -24,9 +24,9 @@ namespace FLG0000 { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] public partial class DSLog : global::System.Data.DataSet { - private LogItemDataTable tableLogItem; + private Log_SMTRepare_DataDataTable tableLog_SMTRepare_Data; - private LogDataDataTable tableLogData; + private Log_SMTRepare_ItemDataTable tableLog_SMTRepare_Item; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -56,11 +56,11 @@ namespace FLG0000 { if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - if ((ds.Tables["LogItem"] != null)) { - base.Tables.Add(new LogItemDataTable(ds.Tables["LogItem"])); + if ((ds.Tables["Log_SMTRepare_Data"] != null)) { + base.Tables.Add(new Log_SMTRepare_DataDataTable(ds.Tables["Log_SMTRepare_Data"])); } - if ((ds.Tables["LogData"] != null)) { - base.Tables.Add(new LogDataDataTable(ds.Tables["LogData"])); + if ((ds.Tables["Log_SMTRepare_Item"] != null)) { + base.Tables.Add(new Log_SMTRepare_ItemDataTable(ds.Tables["Log_SMTRepare_Item"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; @@ -84,9 +84,9 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public LogItemDataTable LogItem { + public Log_SMTRepare_DataDataTable Log_SMTRepare_Data { get { - return this.tableLogItem; + return this.tableLog_SMTRepare_Data; } } @@ -94,9 +94,9 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public LogDataDataTable LogData { + public Log_SMTRepare_ItemDataTable Log_SMTRepare_Item { get { - return this.tableLogData; + return this.tableLog_SMTRepare_Item; } } @@ -167,11 +167,11 @@ namespace FLG0000 { this.Reset(); global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXml(reader); - if ((ds.Tables["LogItem"] != null)) { - base.Tables.Add(new LogItemDataTable(ds.Tables["LogItem"])); + if ((ds.Tables["Log_SMTRepare_Data"] != null)) { + base.Tables.Add(new Log_SMTRepare_DataDataTable(ds.Tables["Log_SMTRepare_Data"])); } - if ((ds.Tables["LogData"] != null)) { - base.Tables.Add(new LogDataDataTable(ds.Tables["LogData"])); + if ((ds.Tables["Log_SMTRepare_Item"] != null)) { + base.Tables.Add(new Log_SMTRepare_ItemDataTable(ds.Tables["Log_SMTRepare_Item"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; @@ -206,16 +206,16 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars(bool initTable) { - this.tableLogItem = ((LogItemDataTable)(base.Tables["LogItem"])); + this.tableLog_SMTRepare_Data = ((Log_SMTRepare_DataDataTable)(base.Tables["Log_SMTRepare_Data"])); if ((initTable == true)) { - if ((this.tableLogItem != null)) { - this.tableLogItem.InitVars(); + if ((this.tableLog_SMTRepare_Data != null)) { + this.tableLog_SMTRepare_Data.InitVars(); } } - this.tableLogData = ((LogDataDataTable)(base.Tables["LogData"])); + this.tableLog_SMTRepare_Item = ((Log_SMTRepare_ItemDataTable)(base.Tables["Log_SMTRepare_Item"])); if ((initTable == true)) { - if ((this.tableLogData != null)) { - this.tableLogData.InitVars(); + if ((this.tableLog_SMTRepare_Item != null)) { + this.tableLog_SMTRepare_Item.InitVars(); } } } @@ -228,21 +228,21 @@ namespace FLG0000 { this.Namespace = "http://tempuri.org/DSLog.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - this.tableLogItem = new LogItemDataTable(); - base.Tables.Add(this.tableLogItem); - this.tableLogData = new LogDataDataTable(); - base.Tables.Add(this.tableLogData); + this.tableLog_SMTRepare_Data = new Log_SMTRepare_DataDataTable(); + base.Tables.Add(this.tableLog_SMTRepare_Data); + this.tableLog_SMTRepare_Item = new Log_SMTRepare_ItemDataTable(); + base.Tables.Add(this.tableLog_SMTRepare_Item); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeLogItem() { + private bool ShouldSerializeLog_SMTRepare_Data() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeLogData() { + private bool ShouldSerializeLog_SMTRepare_Item() { return false; } @@ -302,390 +302,17 @@ namespace FLG0000 { } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void LogItemRowChangeEventHandler(object sender, LogItemRowChangeEvent e); + public delegate void Log_SMTRepare_DataRowChangeEventHandler(object sender, Log_SMTRepare_DataRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void LogDataRowChangeEventHandler(object sender, LogDataRowChangeEvent e); + public delegate void Log_SMTRepare_ItemRowChangeEventHandler(object sender, Log_SMTRepare_ItemRowChangeEvent e); /// ///Represents the strongly named DataTable class. /// [global::System.Serializable()] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class LogItemDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columnlcode; - - private global::System.Data.DataColumn columntype; - - private global::System.Data.DataColumn columnGrp; - - private global::System.Data.DataColumn columnItem; - - private global::System.Data.DataColumn columnBarcode; - - private global::System.Data.DataColumn columnRemark; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemDataTable() { - this.TableName = "LogItem"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal LogItemDataTable(global::System.Data.DataTable table) { - this.TableName = table.TableName; - if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { - this.CaseSensitive = table.CaseSensitive; - } - if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { - this.Locale = table.Locale; - } - if ((table.Namespace != table.DataSet.Namespace)) { - this.Namespace = table.Namespace; - } - this.Prefix = table.Prefix; - this.MinimumCapacity = table.MinimumCapacity; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected LogItemDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context) { - this.InitVars(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn lcodeColumn { - get { - return this.columnlcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn typeColumn { - get { - return this.columntype; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrpColumn { - get { - return this.columnGrp; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn ItemColumn { - get { - return this.columnItem; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn BarcodeColumn { - get { - return this.columnBarcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn RemarkColumn { - get { - return this.columnRemark; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRow this[int index] { - get { - return ((LogItemRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogItemRowChangeEventHandler LogItemRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogItemRowChangeEventHandler LogItemRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogItemRowChangeEventHandler LogItemRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogItemRowChangeEventHandler LogItemRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddLogItemRow(LogItemRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRow AddLogItemRow(string gcode, string lcode, string type, string Grp, string Item, string Barcode, string Remark) { - LogItemRow rowLogItemRow = ((LogItemRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - gcode, - lcode, - type, - Grp, - Item, - Barcode, - Remark}; - rowLogItemRow.ItemArray = columnValuesArray; - this.Rows.Add(rowLogItemRow); - return rowLogItemRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRow FindByidx(int idx) { - return ((LogItemRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public override global::System.Data.DataTable Clone() { - LogItemDataTable cln = ((LogItemDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new LogItemDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columngcode = base.Columns["gcode"]; - this.columnlcode = base.Columns["lcode"]; - this.columntype = base.Columns["type"]; - this.columnGrp = base.Columns["Grp"]; - this.columnItem = base.Columns["Item"]; - this.columnBarcode = base.Columns["Barcode"]; - this.columnRemark = base.Columns["Remark"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columnlcode = new global::System.Data.DataColumn("lcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnlcode); - this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntype); - this.columnGrp = new global::System.Data.DataColumn("Grp", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrp); - this.columnItem = new global::System.Data.DataColumn("Item", typeof(string), null, global::System.Data.MappingType.Element); - this.columnItem.ExtendedProperties.Add("Generator_ColumnPropNameInRow", "Item"); - this.columnItem.ExtendedProperties.Add("Generator_ColumnPropNameInTable", "ItemColumn"); - this.columnItem.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "columnItem"); - this.columnItem.ExtendedProperties.Add("Generator_UserColumnName", "Item"); - base.Columns.Add(this.columnItem); - this.columnBarcode = new global::System.Data.DataColumn("Barcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBarcode); - this.columnRemark = new global::System.Data.DataColumn("Remark", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnRemark); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - this.columnidx.AutoIncrement = true; - this.columnidx.AutoIncrementSeed = -1; - this.columnidx.AutoIncrementStep = -1; - this.columnidx.AllowDBNull = false; - this.columnidx.ReadOnly = true; - this.columnidx.Unique = true; - this.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 20; - this.columnlcode.AllowDBNull = false; - this.columnlcode.MaxLength = 10; - this.columntype.MaxLength = 10; - this.columnGrp.MaxLength = 50; - this.columnItem.MaxLength = 50; - this.columnBarcode.MaxLength = 50; - this.columnRemark.MaxLength = 100; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRow NewLogItemRow() { - return ((LogItemRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new LogItemRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(LogItemRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.LogItemRowChanged != null)) { - this.LogItemRowChanged(this, new LogItemRowChangeEvent(((LogItemRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.LogItemRowChanging != null)) { - this.LogItemRowChanging(this, new LogItemRowChangeEvent(((LogItemRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.LogItemRowDeleted != null)) { - this.LogItemRowDeleted(this, new LogItemRowChangeEvent(((LogItemRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.LogItemRowDeleting != null)) { - this.LogItemRowDeleting(this, new LogItemRowChangeEvent(((LogItemRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveLogItemRow(LogItemRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - DSLog ds = new DSLog(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); - any1.Namespace = "http://www.w3.org/2001/XMLSchema"; - any1.MinOccurs = new decimal(0); - any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); - any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; - any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute1.Name = "namespace"; - attribute1.FixedValue = ds.Namespace; - type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute2.Name = "tableTypeName"; - attribute2.FixedValue = "LogItemDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class LogDataDataTable : global::System.Data.TypedTableBase { + public partial class Log_SMTRepare_DataDataTable : global::System.Data.TypedTableBase { private global::System.Data.DataColumn columnidx; @@ -713,8 +340,8 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataDataTable() { - this.TableName = "LogData"; + public Log_SMTRepare_DataDataTable() { + this.TableName = "Log_SMTRepare_Data"; this.BeginInit(); this.InitClass(); this.EndInit(); @@ -722,7 +349,7 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal LogDataDataTable(global::System.Data.DataTable table) { + internal Log_SMTRepare_DataDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -739,7 +366,7 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected LogDataDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + protected Log_SMTRepare_DataDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } @@ -851,34 +478,34 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRow this[int index] { + public Log_SMTRepare_DataRow this[int index] { get { - return ((LogDataRow)(this.Rows[index])); + return ((Log_SMTRepare_DataRow)(this.Rows[index])); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogDataRowChangeEventHandler LogDataRowChanging; + public event Log_SMTRepare_DataRowChangeEventHandler Log_SMTRepare_DataRowChanging; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogDataRowChangeEventHandler LogDataRowChanged; + public event Log_SMTRepare_DataRowChangeEventHandler Log_SMTRepare_DataRowChanged; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogDataRowChangeEventHandler LogDataRowDeleting; + public event Log_SMTRepare_DataRowChangeEventHandler Log_SMTRepare_DataRowDeleting; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event LogDataRowChangeEventHandler LogDataRowDeleted; + public event Log_SMTRepare_DataRowChangeEventHandler Log_SMTRepare_DataRowDeleted; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddLogDataRow(LogDataRow row) { + public void AddLog_SMTRepare_DataRow(Log_SMTRepare_DataRow row) { this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRow AddLogDataRow(string gcode, string lcode, string pdate, string serial, string location, string reason, string result, string remark, string wuid, System.DateTime wdate, string userName) { - LogDataRow rowLogDataRow = ((LogDataRow)(this.NewRow())); + public Log_SMTRepare_DataRow AddLog_SMTRepare_DataRow(string gcode, string lcode, string pdate, string serial, string location, string reason, string result, string remark, string wuid, System.DateTime wdate, string userName) { + Log_SMTRepare_DataRow rowLog_SMTRepare_DataRow = ((Log_SMTRepare_DataRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, gcode, @@ -892,22 +519,22 @@ namespace FLG0000 { wuid, wdate, userName}; - rowLogDataRow.ItemArray = columnValuesArray; - this.Rows.Add(rowLogDataRow); - return rowLogDataRow; + rowLog_SMTRepare_DataRow.ItemArray = columnValuesArray; + this.Rows.Add(rowLog_SMTRepare_DataRow); + return rowLog_SMTRepare_DataRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRow FindByidx(int idx) { - return ((LogDataRow)(this.Rows.Find(new object[] { + public Log_SMTRepare_DataRow FindByidx(int idx) { + return ((Log_SMTRepare_DataRow)(this.Rows.Find(new object[] { idx}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public override global::System.Data.DataTable Clone() { - LogDataDataTable cln = ((LogDataDataTable)(base.Clone())); + Log_SMTRepare_DataDataTable cln = ((Log_SMTRepare_DataDataTable)(base.Clone())); cln.InitVars(); return cln; } @@ -915,7 +542,7 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataTable CreateInstance() { - return new LogDataDataTable(); + return new Log_SMTRepare_DataDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -990,28 +617,28 @@ namespace FLG0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRow NewLogDataRow() { - return ((LogDataRow)(this.NewRow())); + public Log_SMTRepare_DataRow NewLog_SMTRepare_DataRow() { + return ((Log_SMTRepare_DataRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new LogDataRow(builder); + return new Log_SMTRepare_DataRow(builder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override global::System.Type GetRowType() { - return typeof(LogDataRow); + return typeof(Log_SMTRepare_DataRow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); - if ((this.LogDataRowChanged != null)) { - this.LogDataRowChanged(this, new LogDataRowChangeEvent(((LogDataRow)(e.Row)), e.Action)); + if ((this.Log_SMTRepare_DataRowChanged != null)) { + this.Log_SMTRepare_DataRowChanged(this, new Log_SMTRepare_DataRowChangeEvent(((Log_SMTRepare_DataRow)(e.Row)), e.Action)); } } @@ -1019,8 +646,8 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); - if ((this.LogDataRowChanging != null)) { - this.LogDataRowChanging(this, new LogDataRowChangeEvent(((LogDataRow)(e.Row)), e.Action)); + if ((this.Log_SMTRepare_DataRowChanging != null)) { + this.Log_SMTRepare_DataRowChanging(this, new Log_SMTRepare_DataRowChangeEvent(((Log_SMTRepare_DataRow)(e.Row)), e.Action)); } } @@ -1028,8 +655,8 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); - if ((this.LogDataRowDeleted != null)) { - this.LogDataRowDeleted(this, new LogDataRowChangeEvent(((LogDataRow)(e.Row)), e.Action)); + if ((this.Log_SMTRepare_DataRowDeleted != null)) { + this.Log_SMTRepare_DataRowDeleted(this, new Log_SMTRepare_DataRowChangeEvent(((Log_SMTRepare_DataRow)(e.Row)), e.Action)); } } @@ -1037,14 +664,14 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); - if ((this.LogDataRowDeleting != null)) { - this.LogDataRowDeleting(this, new LogDataRowChangeEvent(((LogDataRow)(e.Row)), e.Action)); + if ((this.Log_SMTRepare_DataRowDeleting != null)) { + this.Log_SMTRepare_DataRowDeleting(this, new Log_SMTRepare_DataRowChangeEvent(((Log_SMTRepare_DataRow)(e.Row)), e.Action)); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveLogDataRow(LogDataRow row) { + public void RemoveLog_SMTRepare_DataRow(Log_SMTRepare_DataRow row) { this.Rows.Remove(row); } @@ -1071,7 +698,375 @@ namespace FLG0000 { type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; - attribute2.FixedValue = "LogDataDataTable"; + attribute2.FixedValue = "Log_SMTRepare_DataDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Log_SMTRepare_ItemDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columncode; + + private global::System.Data.DataColumn columnTitle; + + private global::System.Data.DataColumn columnBarcode; + + private global::System.Data.DataColumn columnRemark; + + private global::System.Data.DataColumn columnwuid; + + private global::System.Data.DataColumn columnwdate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemDataTable() { + this.TableName = "Log_SMTRepare_Item"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Log_SMTRepare_ItemDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected Log_SMTRepare_ItemDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxColumn { + get { + return this.columnidx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn gcodeColumn { + get { + return this.columngcode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codeColumn { + get { + return this.columncode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TitleColumn { + get { + return this.columnTitle; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn BarcodeColumn { + get { + return this.columnBarcode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RemarkColumn { + get { + return this.columnRemark; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn wuidColumn { + get { + return this.columnwuid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn wdateColumn { + get { + return this.columnwdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemRow this[int index] { + get { + return ((Log_SMTRepare_ItemRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Log_SMTRepare_ItemRowChangeEventHandler Log_SMTRepare_ItemRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Log_SMTRepare_ItemRowChangeEventHandler Log_SMTRepare_ItemRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Log_SMTRepare_ItemRowChangeEventHandler Log_SMTRepare_ItemRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Log_SMTRepare_ItemRowChangeEventHandler Log_SMTRepare_ItemRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddLog_SMTRepare_ItemRow(Log_SMTRepare_ItemRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemRow AddLog_SMTRepare_ItemRow(string gcode, string code, string Title, string Barcode, string Remark, string wuid, System.DateTime wdate) { + Log_SMTRepare_ItemRow rowLog_SMTRepare_ItemRow = ((Log_SMTRepare_ItemRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + gcode, + code, + Title, + Barcode, + Remark, + wuid, + wdate}; + rowLog_SMTRepare_ItemRow.ItemArray = columnValuesArray; + this.Rows.Add(rowLog_SMTRepare_ItemRow); + return rowLog_SMTRepare_ItemRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemRow FindByidx(int idx) { + return ((Log_SMTRepare_ItemRow)(this.Rows.Find(new object[] { + idx}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Log_SMTRepare_ItemDataTable cln = ((Log_SMTRepare_ItemDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new Log_SMTRepare_ItemDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidx = base.Columns["idx"]; + this.columngcode = base.Columns["gcode"]; + this.columncode = base.Columns["code"]; + this.columnTitle = base.Columns["Title"]; + this.columnBarcode = base.Columns["Barcode"]; + this.columnRemark = base.Columns["Remark"]; + this.columnwuid = base.Columns["wuid"]; + this.columnwdate = base.Columns["wdate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidx); + this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngcode); + this.columncode = new global::System.Data.DataColumn("code", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncode); + this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTitle); + this.columnBarcode = new global::System.Data.DataColumn("Barcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBarcode); + this.columnRemark = new global::System.Data.DataColumn("Remark", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRemark); + this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnwuid); + this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnwdate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidx}, true)); + this.columnidx.AutoIncrement = true; + this.columnidx.AutoIncrementSeed = -1; + this.columnidx.AutoIncrementStep = -1; + this.columnidx.AllowDBNull = false; + this.columnidx.ReadOnly = true; + this.columnidx.Unique = true; + this.columngcode.AllowDBNull = false; + this.columngcode.MaxLength = 20; + this.columncode.AllowDBNull = false; + this.columncode.MaxLength = 10; + this.columnTitle.MaxLength = 50; + this.columnBarcode.MaxLength = 50; + this.columnRemark.MaxLength = 100; + this.columnwuid.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemRow NewLog_SMTRepare_ItemRow() { + return ((Log_SMTRepare_ItemRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Log_SMTRepare_ItemRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(Log_SMTRepare_ItemRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Log_SMTRepare_ItemRowChanged != null)) { + this.Log_SMTRepare_ItemRowChanged(this, new Log_SMTRepare_ItemRowChangeEvent(((Log_SMTRepare_ItemRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Log_SMTRepare_ItemRowChanging != null)) { + this.Log_SMTRepare_ItemRowChanging(this, new Log_SMTRepare_ItemRowChangeEvent(((Log_SMTRepare_ItemRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Log_SMTRepare_ItemRowDeleted != null)) { + this.Log_SMTRepare_ItemRowDeleted(this, new Log_SMTRepare_ItemRowChangeEvent(((Log_SMTRepare_ItemRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Log_SMTRepare_ItemRowDeleting != null)) { + this.Log_SMTRepare_ItemRowDeleting(this, new Log_SMTRepare_ItemRowChangeEvent(((Log_SMTRepare_ItemRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveLog_SMTRepare_ItemRow(Log_SMTRepare_ItemRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DSLog ds = new DSLog(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "Log_SMTRepare_ItemDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); @@ -1115,25 +1110,25 @@ namespace FLG0000 { /// ///Represents strongly named DataRow class. /// - public partial class LogItemRow : global::System.Data.DataRow { + public partial class Log_SMTRepare_DataRow : global::System.Data.DataRow { - private LogItemDataTable tableLogItem; + private Log_SMTRepare_DataDataTable tableLog_SMTRepare_Data; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal LogItemRow(global::System.Data.DataRowBuilder rb) : + internal Log_SMTRepare_DataRow(global::System.Data.DataRowBuilder rb) : base(rb) { - this.tableLogItem = ((LogItemDataTable)(this.Table)); + this.tableLog_SMTRepare_Data = ((Log_SMTRepare_DataDataTable)(this.Table)); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int idx { get { - return ((int)(this[this.tableLogItem.idxColumn])); + return ((int)(this[this.tableLog_SMTRepare_Data.idxColumn])); } set { - this[this.tableLogItem.idxColumn] = value; + this[this.tableLog_SMTRepare_Data.idxColumn] = value; } } @@ -1141,10 +1136,10 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string gcode { get { - return ((string)(this[this.tableLogItem.gcodeColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.gcodeColumn])); } set { - this[this.tableLogItem.gcodeColumn] = value; + this[this.tableLog_SMTRepare_Data.gcodeColumn] = value; } } @@ -1152,198 +1147,10 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string lcode { get { - return ((string)(this[this.tableLogItem.lcodeColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.lcodeColumn])); } set { - this[this.tableLogItem.lcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string type { - get { - if (this.IstypeNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableLogItem.typeColumn])); - } - } - set { - this[this.tableLogItem.typeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string Grp { - get { - if (this.IsGrpNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableLogItem.GrpColumn])); - } - } - set { - this[this.tableLogItem.GrpColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string Item { - get { - if (this.IsItemNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableLogItem.ItemColumn])); - } - } - set { - this[this.tableLogItem.ItemColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string Barcode { - get { - if (this.IsBarcodeNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableLogItem.BarcodeColumn])); - } - } - set { - this[this.tableLogItem.BarcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string Remark { - get { - if (this.IsRemarkNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableLogItem.RemarkColumn])); - } - } - set { - this[this.tableLogItem.RemarkColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IstypeNull() { - return this.IsNull(this.tableLogItem.typeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SettypeNull() { - this[this.tableLogItem.typeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsGrpNull() { - return this.IsNull(this.tableLogItem.GrpColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetGrpNull() { - this[this.tableLogItem.GrpColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsItemNull() { - return this.IsNull(this.tableLogItem.ItemColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetItemNull() { - this[this.tableLogItem.ItemColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsBarcodeNull() { - return this.IsNull(this.tableLogItem.BarcodeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetBarcodeNull() { - this[this.tableLogItem.BarcodeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsRemarkNull() { - return this.IsNull(this.tableLogItem.RemarkColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetRemarkNull() { - this[this.tableLogItem.RemarkColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class LogDataRow : global::System.Data.DataRow { - - private LogDataDataTable tableLogData; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal LogDataRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableLogData = ((LogDataDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableLogData.idxColumn])); - } - set { - this[this.tableLogData.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tableLogData.gcodeColumn])); - } - set { - this[this.tableLogData.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string lcode { - get { - return ((string)(this[this.tableLogData.lcodeColumn])); - } - set { - this[this.tableLogData.lcodeColumn] = value; + this[this.tableLog_SMTRepare_Data.lcodeColumn] = value; } } @@ -1351,10 +1158,10 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string pdate { get { - return ((string)(this[this.tableLogData.pdateColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.pdateColumn])); } set { - this[this.tableLogData.pdateColumn] = value; + this[this.tableLog_SMTRepare_Data.pdateColumn] = value; } } @@ -1366,11 +1173,11 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.serialColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.serialColumn])); } } set { - this[this.tableLogData.serialColumn] = value; + this[this.tableLog_SMTRepare_Data.serialColumn] = value; } } @@ -1382,11 +1189,11 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.locationColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.locationColumn])); } } set { - this[this.tableLogData.locationColumn] = value; + this[this.tableLog_SMTRepare_Data.locationColumn] = value; } } @@ -1398,11 +1205,11 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.reasonColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.reasonColumn])); } } set { - this[this.tableLogData.reasonColumn] = value; + this[this.tableLog_SMTRepare_Data.reasonColumn] = value; } } @@ -1414,11 +1221,11 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.resultColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.resultColumn])); } } set { - this[this.tableLogData.resultColumn] = value; + this[this.tableLog_SMTRepare_Data.resultColumn] = value; } } @@ -1430,11 +1237,11 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.remarkColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.remarkColumn])); } } set { - this[this.tableLogData.remarkColumn] = value; + this[this.tableLog_SMTRepare_Data.remarkColumn] = value; } } @@ -1442,10 +1249,10 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string wuid { get { - return ((string)(this[this.tableLogData.wuidColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.wuidColumn])); } set { - this[this.tableLogData.wuidColumn] = value; + this[this.tableLog_SMTRepare_Data.wuidColumn] = value; } } @@ -1453,10 +1260,10 @@ namespace FLG0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public System.DateTime wdate { get { - return ((global::System.DateTime)(this[this.tableLogData.wdateColumn])); + return ((global::System.DateTime)(this[this.tableLog_SMTRepare_Data.wdateColumn])); } set { - this[this.tableLogData.wdateColumn] = value; + this[this.tableLog_SMTRepare_Data.wdateColumn] = value; } } @@ -1468,84 +1275,272 @@ namespace FLG0000 { return string.Empty; } else { - return ((string)(this[this.tableLogData.userNameColumn])); + return ((string)(this[this.tableLog_SMTRepare_Data.userNameColumn])); } } set { - this[this.tableLogData.userNameColumn] = value; + this[this.tableLog_SMTRepare_Data.userNameColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsserialNull() { - return this.IsNull(this.tableLogData.serialColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.serialColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetserialNull() { - this[this.tableLogData.serialColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.serialColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IslocationNull() { - return this.IsNull(this.tableLogData.locationColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.locationColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetlocationNull() { - this[this.tableLogData.locationColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.locationColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsreasonNull() { - return this.IsNull(this.tableLogData.reasonColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.reasonColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetreasonNull() { - this[this.tableLogData.reasonColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.reasonColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsresultNull() { - return this.IsNull(this.tableLogData.resultColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.resultColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetresultNull() { - this[this.tableLogData.resultColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.resultColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsremarkNull() { - return this.IsNull(this.tableLogData.remarkColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.remarkColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetremarkNull() { - this[this.tableLogData.remarkColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.remarkColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsuserNameNull() { - return this.IsNull(this.tableLogData.userNameColumn); + return this.IsNull(this.tableLog_SMTRepare_Data.userNameColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public void SetuserNameNull() { - this[this.tableLogData.userNameColumn] = global::System.Convert.DBNull; + this[this.tableLog_SMTRepare_Data.userNameColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class Log_SMTRepare_ItemRow : global::System.Data.DataRow { + + private Log_SMTRepare_ItemDataTable tableLog_SMTRepare_Item; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Log_SMTRepare_ItemRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableLog_SMTRepare_Item = ((Log_SMTRepare_ItemDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idx { + get { + return ((int)(this[this.tableLog_SMTRepare_Item.idxColumn])); + } + set { + this[this.tableLog_SMTRepare_Item.idxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string gcode { + get { + return ((string)(this[this.tableLog_SMTRepare_Item.gcodeColumn])); + } + set { + this[this.tableLog_SMTRepare_Item.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string code { + get { + return ((string)(this[this.tableLog_SMTRepare_Item.codeColumn])); + } + set { + this[this.tableLog_SMTRepare_Item.codeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Title { + get { + if (this.IsTitleNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableLog_SMTRepare_Item.TitleColumn])); + } + } + set { + this[this.tableLog_SMTRepare_Item.TitleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Barcode { + get { + if (this.IsBarcodeNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableLog_SMTRepare_Item.BarcodeColumn])); + } + } + set { + this[this.tableLog_SMTRepare_Item.BarcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Remark { + get { + if (this.IsRemarkNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableLog_SMTRepare_Item.RemarkColumn])); + } + } + set { + this[this.tableLog_SMTRepare_Item.RemarkColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string wuid { + get { + if (this.IswuidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableLog_SMTRepare_Item.wuidColumn])); + } + } + set { + this[this.tableLog_SMTRepare_Item.wuidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime wdate { + get { + try { + return ((global::System.DateTime)(this[this.tableLog_SMTRepare_Item.wdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Log_SMTRepare_Item\' 테이블의 \'wdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableLog_SMTRepare_Item.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTitleNull() { + return this.IsNull(this.tableLog_SMTRepare_Item.TitleColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTitleNull() { + this[this.tableLog_SMTRepare_Item.TitleColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsBarcodeNull() { + return this.IsNull(this.tableLog_SMTRepare_Item.BarcodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetBarcodeNull() { + this[this.tableLog_SMTRepare_Item.BarcodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsRemarkNull() { + return this.IsNull(this.tableLog_SMTRepare_Item.RemarkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetRemarkNull() { + this[this.tableLog_SMTRepare_Item.RemarkColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IswuidNull() { + return this.IsNull(this.tableLog_SMTRepare_Item.wuidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetwuidNull() { + this[this.tableLog_SMTRepare_Item.wuidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IswdateNull() { + return this.IsNull(this.tableLog_SMTRepare_Item.wdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetwdateNull() { + this[this.tableLog_SMTRepare_Item.wdateColumn] = global::System.Convert.DBNull; } } @@ -1553,22 +1548,22 @@ namespace FLG0000 { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class LogItemRowChangeEvent : global::System.EventArgs { + public class Log_SMTRepare_DataRowChangeEvent : global::System.EventArgs { - private LogItemRow eventRow; + private Log_SMTRepare_DataRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRowChangeEvent(LogItemRow row, global::System.Data.DataRowAction action) { + public Log_SMTRepare_DataRowChangeEvent(Log_SMTRepare_DataRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemRow Row { + public Log_SMTRepare_DataRow Row { get { return this.eventRow; } @@ -1587,22 +1582,22 @@ namespace FLG0000 { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class LogDataRowChangeEvent : global::System.EventArgs { + public class Log_SMTRepare_ItemRowChangeEvent : global::System.EventArgs { - private LogDataRow eventRow; + private Log_SMTRepare_ItemRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRowChangeEvent(LogDataRow row, global::System.Data.DataRowAction action) { + public Log_SMTRepare_ItemRowChangeEvent(Log_SMTRepare_ItemRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataRow Row { + public Log_SMTRepare_ItemRow Row { get { return this.eventRow; } @@ -1630,7 +1625,7 @@ namespace FLG0000.DSLogTableAdapters { [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class LogItemTableAdapter : global::System.ComponentModel.Component { + public partial class Log_SMTRepare_DataTableAdapter : global::System.ComponentModel.Component { private global::System.Data.SqlClient.SqlDataAdapter _adapter; @@ -1644,7 +1639,7 @@ namespace FLG0000.DSLogTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogItemTableAdapter() { + public Log_SMTRepare_DataTableAdapter() { this.ClearBeforeFill = true; } @@ -1741,559 +1736,7 @@ namespace FLG0000.DSLogTableAdapters { this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; - tableMapping.DataSetTable = "LogItem"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("lcode", "lcode"); - tableMapping.ColumnMappings.Add("type", "type"); - tableMapping.ColumnMappings.Add("Grp", "Grp"); - tableMapping.ColumnMappings.Add("Item", "Item"); - tableMapping.ColumnMappings.Add("Barcode", "Barcode"); - tableMapping.ColumnMappings.Add("Remark", "Remark"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [LogItem] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([lcode] = @Original_lcode) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Grp = 1 AND [Grp] IS NULL) OR ([Grp] = @Original_Grp)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Item", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Barcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", 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 [LogItem] ([gcode], [lcode], [type], [Grp], [Item], [Barcode], [Remar" + - "k]) VALUES (@gcode, @lcode, @type, @Grp, @Item, @Barcode, @Remark);\r\nSELECT idx," + - " gcode, lcode, type, Grp, Item, Barcode, Remark FROM LogItem WHERE (idx = SCOPE_" + - "IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", 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 [LogItem] SET [gcode] = @gcode, [lcode] = @lcode, [type] = @type, [Grp] = @Grp, [Item] = @Item, [Barcode] = @Barcode, [Remark] = @Remark WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([lcode] = @Original_lcode) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Grp = 1 AND [Grp] IS NULL) OR ([Grp] = @Original_Grp)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark))); -SELECT idx, gcode, lcode, type, Grp, Item, Barcode, Remark FROM LogItem WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Grp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Item", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Barcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", 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, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::FLG0000.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT idx, gcode, lcode, type, Grp, Item, Barcode, Remark\r\nFROM LogItem\r\nWH" + - "ERE (gcode = @gcode)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DSLog.LogItemDataTable dataTable, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((this.ClearBeforeFill == true)) { - dataTable.Clear(); - } - int returnValue = this.Adapter.Fill(dataTable); - return returnValue; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DSLog.LogItemDataTable GetData(string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - DSLog.LogItemDataTable dataTable = new DSLog.LogItemDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DSLog.LogItemDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DSLog dataSet) { - return this.Adapter.Update(dataSet, "LogItem"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idx, string Original_gcode, string Original_lcode, string Original_type, string Original_Grp, string Original_Item, string Original_Barcode, string Original_Remark) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode)); - } - if ((Original_lcode == null)) { - throw new global::System.ArgumentNullException("Original_lcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_lcode)); - } - if ((Original_type == null)) { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_type)); - } - if ((Original_Grp == null)) { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Grp)); - } - if ((Original_Item == null)) { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Item)); - } - if ((Original_Barcode == null)) { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Barcode)); - } - if ((Original_Remark == null)) { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Remark)); - } - 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)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string gcode, string lcode, string type, string Grp, string Item, string Barcode, string Remark) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((lcode == null)) { - throw new global::System.ArgumentNullException("lcode"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(lcode)); - } - if ((type == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(type)); - } - if ((Grp == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Grp)); - } - if ((Item == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Item)); - } - if ((Barcode == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Barcode)); - } - if ((Remark == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Remark)); - } - 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)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string gcode, - string lcode, - string type, - string Grp, - string Item, - string Barcode, - string Remark, - int Original_idx, - string Original_gcode, - string Original_lcode, - string Original_type, - string Original_Grp, - string Original_Item, - string Original_Barcode, - string Original_Remark, - int idx) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((lcode == null)) { - throw new global::System.ArgumentNullException("lcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(lcode)); - } - if ((type == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(type)); - } - if ((Grp == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Grp)); - } - if ((Item == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Item)); - } - if ((Barcode == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Barcode)); - } - if ((Remark == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Remark)); - } - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_gcode)); - } - if ((Original_lcode == null)) { - throw new global::System.ArgumentNullException("Original_lcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_lcode)); - } - if ((Original_type == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_type)); - } - if ((Original_Grp == null)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Grp)); - } - if ((Original_Item == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Item)); - } - if ((Original_Barcode == null)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Barcode)); - } - if ((Original_Remark == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Remark)); - } - this.Adapter.UpdateCommand.Parameters[20].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)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string gcode, string lcode, string type, string Grp, string Item, string Barcode, string Remark, int Original_idx, string Original_gcode, string Original_lcode, string Original_type, string Original_Grp, string Original_Item, string Original_Barcode, string Original_Remark) { - return this.Update(gcode, lcode, type, Grp, Item, Barcode, Remark, Original_idx, Original_gcode, Original_lcode, Original_type, Original_Grp, Original_Item, Original_Barcode, Original_Remark, Original_idx); - } - } - - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class LogDataTableAdapter : global::System.ComponentModel.Component { - - private global::System.Data.SqlClient.SqlDataAdapter _adapter; - - private global::System.Data.SqlClient.SqlConnection _connection; - - private global::System.Data.SqlClient.SqlTransaction _transaction; - - private global::System.Data.SqlClient.SqlCommand[] _commandCollection; - - private bool _clearBeforeFill; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public LogDataTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { - get { - if ((this._adapter == null)) { - this.InitAdapter(); - } - return this._adapter; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal global::System.Data.SqlClient.SqlConnection Connection { - get { - if ((this._connection == null)) { - this.InitConnection(); - } - return this._connection; - } - set { - this._connection = value; - if ((this.Adapter.InsertCommand != null)) { - this.Adapter.InsertCommand.Connection = value; - } - if ((this.Adapter.DeleteCommand != null)) { - this.Adapter.DeleteCommand.Connection = value; - } - if ((this.Adapter.UpdateCommand != null)) { - this.Adapter.UpdateCommand.Connection = value; - } - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - if ((this.CommandCollection[i] != null)) { - ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; - } - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal global::System.Data.SqlClient.SqlTransaction Transaction { - get { - return this._transaction; - } - set { - this._transaction = value; - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - this.CommandCollection[i].Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.DeleteCommand != null))) { - this.Adapter.DeleteCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.InsertCommand != null))) { - this.Adapter.InsertCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.UpdateCommand != null))) { - this.Adapter.UpdateCommand.Transaction = this._transaction; - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { - get { - if ((this._commandCollection == null)) { - this.InitCommandCollection(); - } - return this._commandCollection; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool ClearBeforeFill { - get { - return this._clearBeforeFill; - } - set { - this._clearBeforeFill = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private void InitAdapter() { - this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); - global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); - tableMapping.SourceTable = "Table"; - tableMapping.DataSetTable = "LogData"; + tableMapping.DataSetTable = "Log_SMTRepare_Data"; tableMapping.ColumnMappings.Add("idx", "idx"); tableMapping.ColumnMappings.Add("gcode", "gcode"); tableMapping.ColumnMappings.Add("lcode", "lcode"); @@ -2390,7 +1833,7 @@ SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, wdate, dbo.getUserName(wuid) AS userName -FROM LogData +FROM Log_SMTRepare_Data WHERE (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (serial LIKE @search) OR (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (result LIKE @search) OR (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (location LIKE @search) OR @@ -2409,7 +1852,7 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DSLog.LogDataDataTable dataTable, string gcode, string sd, string ed, string search) { + public virtual int Fill(DSLog.Log_SMTRepare_DataDataTable dataTable, string gcode, string sd, string ed, string search) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -2446,7 +1889,7 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DSLog.LogDataDataTable GetData(string gcode, string sd, string ed, string search) { + public virtual DSLog.Log_SMTRepare_DataDataTable GetData(string gcode, string sd, string ed, string search) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -2472,7 +1915,7 @@ ORDER BY pdate DESC"; else { this.Adapter.SelectCommand.Parameters[3].Value = ((string)(search)); } - DSLog.LogDataDataTable dataTable = new DSLog.LogDataDataTable(); + DSLog.Log_SMTRepare_DataDataTable dataTable = new DSLog.Log_SMTRepare_DataDataTable(); this.Adapter.Fill(dataTable); return dataTable; } @@ -2480,7 +1923,7 @@ ORDER BY pdate DESC"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DSLog.LogDataDataTable dataTable) { + public virtual int Update(DSLog.Log_SMTRepare_DataDataTable dataTable) { return this.Adapter.Update(dataTable); } @@ -2488,7 +1931,7 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(DSLog dataSet) { - return this.Adapter.Update(dataSet, "LogData"); + return this.Adapter.Update(dataSet, "Log_SMTRepare_Data"); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2864,6 +2307,611 @@ ORDER BY pdate DESC"; } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class Log_SMTRepare_ItemTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Log_SMTRepare_ItemTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Log_SMTRepare_Item"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("code", "code"); + tableMapping.ColumnMappings.Add("Title", "Title"); + tableMapping.ColumnMappings.Add("Barcode", "Barcode"); + tableMapping.ColumnMappings.Add("Remark", "Remark"); + tableMapping.ColumnMappings.Add("wuid", "wuid"); + tableMapping.ColumnMappings.Add("wdate", "wdate"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Log_SMTRepare_Item] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([code] = @Original_code) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Barcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_wuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_wdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [Log_SMTRepare_Item] ([gcode], [code], [Title], [Barcode], [Remark], [wuid], [wdate]) VALUES (@gcode, @code, @Title, @Barcode, @Remark, @wuid, @wdate); +SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate FROM Log_SMTRepare_Item WHERE (idx = SCOPE_IDENTITY()) ORDER BY code, Title"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [Log_SMTRepare_Item] SET [gcode] = @gcode, [code] = @code, [Title] = @Title, [Barcode] = @Barcode, [Remark] = @Remark, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([code] = @Original_code) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate))); +SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate FROM Log_SMTRepare_Item WHERE (idx = @idx) ORDER BY code, Title"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Barcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_wuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_wdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::FLG0000.Properties.Settings.Default.gwcs; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate\r\nFROM Log_SMTRe" + + "pare_Item\r\nWHERE (gcode = @gcode)\r\nORDER BY code, Title"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate\r\nFROM Log_SMTRe" + + "pare_Item\r\nWHERE (gcode = @gcode) and barcode = @barcode\r\nORDER BY code, Title"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@barcode", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DSLog.Log_SMTRepare_ItemDataTable dataTable, string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DSLog.Log_SMTRepare_ItemDataTable GetData(string gcode) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + DSLog.Log_SMTRepare_ItemDataTable dataTable = new DSLog.Log_SMTRepare_ItemDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] + public virtual int FillByBarcode(DSLog.Log_SMTRepare_ItemDataTable dataTable, string gcode, string barcode) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((barcode == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(barcode)); + } + 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DSLog.Log_SMTRepare_ItemDataTable GetByBarcode(string gcode, string barcode) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((barcode == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(barcode)); + } + DSLog.Log_SMTRepare_ItemDataTable dataTable = new DSLog.Log_SMTRepare_ItemDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DSLog.Log_SMTRepare_ItemDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DSLog dataSet) { + return this.Adapter.Update(dataSet, "Log_SMTRepare_Item"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idx, string Original_gcode, string Original_code, string Original_Title, string Original_Barcode, string Original_Remark, string Original_wuid, global::System.Nullable Original_wdate) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode)); + } + if ((Original_code == null)) { + throw new global::System.ArgumentNullException("Original_code"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_code)); + } + if ((Original_Title == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Title)); + } + if ((Original_Barcode == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Barcode)); + } + if ((Original_Remark == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Remark)); + } + if ((Original_wuid == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_wuid)); + } + if ((Original_wdate.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_wdate.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string gcode, string code, string Title, string Barcode, string Remark, string wuid, global::System.Nullable wdate) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((code == null)) { + throw new global::System.ArgumentNullException("code"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(code)); + } + if ((Title == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Title)); + } + if ((Barcode == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Barcode)); + } + if ((Remark == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Remark)); + } + if ((wuid == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(wuid)); + } + if ((wdate.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(wdate.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string gcode, + string code, + string Title, + string Barcode, + string Remark, + string wuid, + global::System.Nullable wdate, + int Original_idx, + string Original_gcode, + string Original_code, + string Original_Title, + string Original_Barcode, + string Original_Remark, + string Original_wuid, + global::System.Nullable Original_wdate, + int idx) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((code == null)) { + throw new global::System.ArgumentNullException("code"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(code)); + } + if ((Title == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Title)); + } + if ((Barcode == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Barcode)); + } + if ((Remark == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Remark)); + } + if ((wuid == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(wuid)); + } + if ((wdate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(wdate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_gcode)); + } + if ((Original_code == null)) { + throw new global::System.ArgumentNullException("Original_code"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_code)); + } + if ((Original_Title == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Title)); + } + if ((Original_Barcode == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Barcode)); + } + if ((Original_Remark == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Remark)); + } + if ((Original_wuid == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_wuid)); + } + if ((Original_wdate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_wdate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[20].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)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string gcode, string code, string Title, string Barcode, string Remark, string wuid, global::System.Nullable wdate, int Original_idx, string Original_gcode, string Original_code, string Original_Title, string Original_Barcode, string Original_Remark, string Original_wuid, global::System.Nullable Original_wdate) { + return this.Update(gcode, code, Title, Barcode, Remark, wuid, wdate, Original_idx, Original_gcode, Original_code, Original_Title, Original_Barcode, Original_Remark, Original_wuid, Original_wdate, Original_idx); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -2876,9 +2924,9 @@ ORDER BY pdate DESC"; private UpdateOrderOption _updateOrder; - private LogItemTableAdapter _logItemTableAdapter; + private Log_SMTRepare_DataTableAdapter _log_SMTRepare_DataTableAdapter; - private LogDataTableAdapter _logDataTableAdapter; + private Log_SMTRepare_ItemTableAdapter _log_SMTRepare_ItemTableAdapter; private bool _backupDataSetBeforeUpdate; @@ -2900,12 +2948,12 @@ ORDER BY pdate DESC"; [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] - public LogItemTableAdapter LogItemTableAdapter { + public Log_SMTRepare_DataTableAdapter Log_SMTRepare_DataTableAdapter { get { - return this._logItemTableAdapter; + return this._log_SMTRepare_DataTableAdapter; } set { - this._logItemTableAdapter = value; + this._log_SMTRepare_DataTableAdapter = value; } } @@ -2914,12 +2962,12 @@ ORDER BY pdate DESC"; [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + "a", "System.Drawing.Design.UITypeEditor")] - public LogDataTableAdapter LogDataTableAdapter { + public Log_SMTRepare_ItemTableAdapter Log_SMTRepare_ItemTableAdapter { get { - return this._logDataTableAdapter; + return this._log_SMTRepare_ItemTableAdapter; } set { - this._logDataTableAdapter = value; + this._log_SMTRepare_ItemTableAdapter = value; } } @@ -2942,13 +2990,13 @@ ORDER BY pdate DESC"; if ((this._connection != null)) { return this._connection; } - if (((this._logItemTableAdapter != null) - && (this._logItemTableAdapter.Connection != null))) { - return this._logItemTableAdapter.Connection; + if (((this._log_SMTRepare_DataTableAdapter != null) + && (this._log_SMTRepare_DataTableAdapter.Connection != null))) { + return this._log_SMTRepare_DataTableAdapter.Connection; } - if (((this._logDataTableAdapter != null) - && (this._logDataTableAdapter.Connection != null))) { - return this._logDataTableAdapter.Connection; + if (((this._log_SMTRepare_ItemTableAdapter != null) + && (this._log_SMTRepare_ItemTableAdapter.Connection != null))) { + return this._log_SMTRepare_ItemTableAdapter.Connection; } return null; } @@ -2963,10 +3011,10 @@ ORDER BY pdate DESC"; public int TableAdapterInstanceCount { get { int count = 0; - if ((this._logItemTableAdapter != null)) { + if ((this._log_SMTRepare_DataTableAdapter != null)) { count = (count + 1); } - if ((this._logDataTableAdapter != null)) { + if ((this._log_SMTRepare_ItemTableAdapter != null)) { count = (count + 1); } return count; @@ -2980,21 +3028,21 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateUpdatedRows(DSLog dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._logItemTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.LogItem.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._log_SMTRepare_DataTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Log_SMTRepare_Data.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._logItemTableAdapter.Update(updatedRows)); + result = (result + this._log_SMTRepare_DataTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } - if ((this._logDataTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.LogData.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._log_SMTRepare_ItemTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Log_SMTRepare_Item.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._logDataTableAdapter.Update(updatedRows)); + result = (result + this._log_SMTRepare_ItemTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -3008,19 +3056,19 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateInsertedRows(DSLog dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._logItemTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.LogItem.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._log_SMTRepare_DataTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Log_SMTRepare_Data.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._logItemTableAdapter.Update(addedRows)); + result = (result + this._log_SMTRepare_DataTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } - if ((this._logDataTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.LogData.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._log_SMTRepare_ItemTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Log_SMTRepare_Item.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._logDataTableAdapter.Update(addedRows)); + result = (result + this._log_SMTRepare_ItemTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -3034,19 +3082,19 @@ ORDER BY pdate DESC"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DSLog dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._logDataTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.LogData.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._log_SMTRepare_ItemTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Log_SMTRepare_Item.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._logDataTableAdapter.Update(deletedRows)); + result = (result + this._log_SMTRepare_ItemTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } - if ((this._logItemTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.LogItem.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._log_SMTRepare_DataTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Log_SMTRepare_Data.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._logItemTableAdapter.Update(deletedRows)); + result = (result + this._log_SMTRepare_DataTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -3089,12 +3137,12 @@ ORDER BY pdate DESC"; if ((dataSet.HasChanges() == false)) { return 0; } - if (((this._logItemTableAdapter != null) - && (this.MatchTableAdapterConnection(this._logItemTableAdapter.Connection) == false))) { + if (((this._log_SMTRepare_DataTableAdapter != null) + && (this.MatchTableAdapterConnection(this._log_SMTRepare_DataTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); } - if (((this._logDataTableAdapter != null) - && (this.MatchTableAdapterConnection(this._logDataTableAdapter.Connection) == false))) { + if (((this._log_SMTRepare_ItemTableAdapter != null) + && (this.MatchTableAdapterConnection(this._log_SMTRepare_ItemTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); } global::System.Data.IDbConnection workConnection = this.Connection; @@ -3128,22 +3176,22 @@ ORDER BY pdate DESC"; try { // ---- Prepare for update ----------- // - if ((this._logItemTableAdapter != null)) { - revertConnections.Add(this._logItemTableAdapter, this._logItemTableAdapter.Connection); - this._logItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._logItemTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._logItemTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._logItemTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._logItemTableAdapter.Adapter); + if ((this._log_SMTRepare_DataTableAdapter != null)) { + revertConnections.Add(this._log_SMTRepare_DataTableAdapter, this._log_SMTRepare_DataTableAdapter.Connection); + this._log_SMTRepare_DataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._log_SMTRepare_DataTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._log_SMTRepare_DataTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._log_SMTRepare_DataTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._log_SMTRepare_DataTableAdapter.Adapter); } } - if ((this._logDataTableAdapter != null)) { - revertConnections.Add(this._logDataTableAdapter, this._logDataTableAdapter.Connection); - this._logDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._logDataTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._logDataTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._logDataTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._logDataTableAdapter.Adapter); + if ((this._log_SMTRepare_ItemTableAdapter != null)) { + revertConnections.Add(this._log_SMTRepare_ItemTableAdapter, this._log_SMTRepare_ItemTableAdapter.Connection); + this._log_SMTRepare_ItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._log_SMTRepare_ItemTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._log_SMTRepare_ItemTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._log_SMTRepare_ItemTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._log_SMTRepare_ItemTableAdapter.Adapter); } } // @@ -3204,13 +3252,13 @@ ORDER BY pdate DESC"; if (workConnOpened) { workConnection.Close(); } - if ((this._logItemTableAdapter != null)) { - this._logItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._logItemTableAdapter])); - this._logItemTableAdapter.Transaction = null; + if ((this._log_SMTRepare_DataTableAdapter != null)) { + this._log_SMTRepare_DataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._log_SMTRepare_DataTableAdapter])); + this._log_SMTRepare_DataTableAdapter.Transaction = null; } - if ((this._logDataTableAdapter != null)) { - this._logDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._logDataTableAdapter])); - this._logDataTableAdapter.Transaction = null; + if ((this._log_SMTRepare_ItemTableAdapter != null)) { + this._log_SMTRepare_ItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._log_SMTRepare_ItemTableAdapter])); + this._log_SMTRepare_ItemTableAdapter.Transaction = null; } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; diff --git a/SubProject/FLG0000/DSLog.xsd b/SubProject/FLG0000/DSLog.xsd index bc31e0c..17be7d8 100644 --- a/SubProject/FLG0000/DSLog.xsd +++ b/SubProject/FLG0000/DSLog.xsd @@ -7,100 +7,9 @@ - + - - - - DELETE FROM [LogItem] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([lcode] = @Original_lcode) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Grp = 1 AND [Grp] IS NULL) OR ([Grp] = @Original_Grp)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark))) - - - - - - - - - - - - - - - - - - - - INSERT INTO [LogItem] ([gcode], [lcode], [type], [Grp], [Item], [Barcode], [Remark]) VALUES (@gcode, @lcode, @type, @Grp, @Item, @Barcode, @Remark); -SELECT idx, gcode, lcode, type, Grp, Item, Barcode, Remark FROM LogItem WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - SELECT idx, gcode, lcode, type, Grp, Item, Barcode, Remark -FROM LogItem -WHERE (gcode = @gcode) - - - - - - - - UPDATE [LogItem] SET [gcode] = @gcode, [lcode] = @lcode, [type] = @type, [Grp] = @Grp, [Item] = @Item, [Barcode] = @Barcode, [Remark] = @Remark WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([lcode] = @Original_lcode) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Grp = 1 AND [Grp] IS NULL) OR ([Grp] = @Original_Grp)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark))); -SELECT idx, gcode, lcode, type, Grp, Item, Barcode, Remark FROM LogItem WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + DELETE FROM [LogData] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([lcode] = @Original_lcode) AND ([pdate] = @Original_pdate) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_location = 1 AND [location] IS NULL) OR ([location] = @Original_location)) AND ((@IsNull_reason = 1 AND [reason] IS NULL) OR ([reason] = @Original_reason)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) @@ -145,7 +54,7 @@ SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, wdate, dbo.getUserName(wuid) AS userName -FROM LogData +FROM Log_SMTRepare_Data WHERE (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (serial LIKE @search) OR (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (result LIKE @search) OR (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (location LIKE @search) OR @@ -154,10 +63,10 @@ WHERE (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (serial LIKE @search (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (dbo.getUserName(wuid) LIKE @search) ORDER BY pdate DESC - - - - + + + + @@ -214,6 +123,113 @@ SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, + + + + + + DELETE FROM [Log_SMTRepare_Item] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([code] = @Original_code) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate))) + + + + + + + + + + + + + + + + + + + + INSERT INTO [Log_SMTRepare_Item] ([gcode], [code], [Title], [Barcode], [Remark], [wuid], [wdate]) VALUES (@gcode, @code, @Title, @Barcode, @Remark, @wuid, @wdate); +SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate FROM Log_SMTRepare_Item WHERE (idx = SCOPE_IDENTITY()) ORDER BY code, Title + + + + + + + + + + + + + + SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate +FROM Log_SMTRepare_Item +WHERE (gcode = @gcode) +ORDER BY code, Title + + + + + + + + UPDATE [Log_SMTRepare_Item] SET [gcode] = @gcode, [code] = @code, [Title] = @Title, [Barcode] = @Barcode, [Remark] = @Remark, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([code] = @Original_code) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Barcode = 1 AND [Barcode] IS NULL) OR ([Barcode] = @Original_Barcode)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate))); +SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate FROM Log_SMTRepare_Item WHERE (idx = @idx) ORDER BY code, Title + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, gcode, code, Title, Barcode, Remark, wuid, wdate +FROM Log_SMTRepare_Item +WHERE (gcode = @gcode) and barcode = @barcode +ORDER BY code, Title + + + + + + + + + @@ -222,63 +238,7 @@ SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -356,14 +316,64 @@ SELECT idx, gcode, lcode, pdate, serial, location, reason, result, remark, wuid, + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + diff --git a/SubProject/FLG0000/FLG0000.csproj b/SubProject/FLG0000/FLG0000.csproj index 4e3d43b..ed5c670 100644 --- a/SubProject/FLG0000/FLG0000.csproj +++ b/SubProject/FLG0000/FLG0000.csproj @@ -75,35 +75,35 @@ True DSLog.xsd - + Form - + List.cs - + Form - + Add.cs - + Form - + Lov_LogItem.cs - + List.cs - + Add.cs - + Lov_LogItem.cs diff --git a/SubProject/FLG0000/LogData/Add.Designer.cs b/SubProject/FLG0000/LogData/Add.Designer.cs deleted file mode 100644 index feceff4..0000000 --- a/SubProject/FLG0000/LogData/Add.Designer.cs +++ /dev/null @@ -1,260 +0,0 @@ -namespace FLG0000.LogData -{ - partial class Add - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.Windows.Forms.Label deptLabel; - System.Windows.Forms.Label label1; - System.Windows.Forms.Label label2; - this.tbRemark = new System.Windows.Forms.TextBox(); - this.dtPdate = new System.Windows.Forms.DateTimePicker(); - this.btSave = new System.Windows.Forms.Button(); - this.linkLabel7 = new System.Windows.Forms.LinkLabel(); - this.linkLabel6 = new System.Windows.Forms.LinkLabel(); - this.linkLabel5 = new System.Windows.Forms.LinkLabel(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.dsLog = new FLG0000.DSLog(); - this.bs = new System.Windows.Forms.BindingSource(this.components); - this.ta = new FLG0000.DSLogTableAdapters.LogDataTableAdapter(); - this.tbLocation = new System.Windows.Forms.ComboBox(); - this.tbReason = new System.Windows.Forms.ComboBox(); - this.tbResult = new System.Windows.Forms.ComboBox(); - this.textBox1 = new System.Windows.Forms.TextBox(); - deptLabel = new System.Windows.Forms.Label(); - label1 = new System.Windows.Forms.Label(); - label2 = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.dsLog)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); - this.SuspendLayout(); - // - // deptLabel - // - deptLabel.AutoSize = true; - deptLabel.Location = new System.Drawing.Point(29, 262); - deptLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - deptLabel.Name = "deptLabel"; - deptLabel.Size = new System.Drawing.Size(52, 28); - deptLabel.TabIndex = 0; - deptLabel.Text = "비고"; - // - // label1 - // - label1.AutoSize = true; - label1.Location = new System.Drawing.Point(9, 19); - label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - label1.Name = "label1"; - label1.Size = new System.Drawing.Size(72, 28); - label1.TabIndex = 0; - label1.Text = "입력일"; - // - // label2 - // - label2.AutoSize = true; - label2.Location = new System.Drawing.Point(29, 64); - label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - label2.Name = "label2"; - label2.Size = new System.Drawing.Size(46, 28); - label2.TabIndex = 9; - label2.Text = "S/N"; - // - // tbRemark - // - this.tbRemark.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbRemark.Location = new System.Drawing.Point(90, 257); - this.tbRemark.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.tbRemark.MaxLength = 500; - this.tbRemark.Name = "tbRemark"; - this.tbRemark.Size = new System.Drawing.Size(465, 34); - this.tbRemark.TabIndex = 7; - this.tbRemark.TabStop = false; - // - // dtPdate - // - this.dtPdate.Location = new System.Drawing.Point(90, 16); - this.dtPdate.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.dtPdate.Name = "dtPdate"; - this.dtPdate.Size = new System.Drawing.Size(465, 34); - this.dtPdate.TabIndex = 1; - // - // btSave - // - this.btSave.Location = new System.Drawing.Point(23, 303); - this.btSave.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.btSave.Name = "btSave"; - this.btSave.Size = new System.Drawing.Size(532, 69); - this.btSave.TabIndex = 8; - this.btSave.Text = "확인(&S)"; - this.btSave.UseVisualStyleBackColor = true; - this.btSave.Click += new System.EventHandler(this.button1_Click); - // - // linkLabel7 - // - this.linkLabel7.AutoSize = true; - this.linkLabel7.Location = new System.Drawing.Point(29, 212); - this.linkLabel7.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - this.linkLabel7.Name = "linkLabel7"; - this.linkLabel7.Size = new System.Drawing.Size(52, 28); - this.linkLabel7.TabIndex = 12; - this.linkLabel7.TabStop = true; - this.linkLabel7.Text = "결과"; - this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked); - // - // linkLabel6 - // - this.linkLabel6.AutoSize = true; - this.linkLabel6.Location = new System.Drawing.Point(29, 160); - this.linkLabel6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - this.linkLabel6.Name = "linkLabel6"; - this.linkLabel6.Size = new System.Drawing.Size(52, 28); - this.linkLabel6.TabIndex = 11; - this.linkLabel6.TabStop = true; - this.linkLabel6.Text = "원인"; - this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked); - // - // linkLabel5 - // - this.linkLabel5.AutoSize = true; - this.linkLabel5.Location = new System.Drawing.Point(29, 108); - this.linkLabel5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); - this.linkLabel5.Name = "linkLabel5"; - this.linkLabel5.Size = new System.Drawing.Size(52, 28); - this.linkLabel5.TabIndex = 10; - this.linkLabel5.TabStop = true; - this.linkLabel5.Text = "위치"; - this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked); - // - // dsLog - // - this.dsLog.DataSetName = "dsPurchase"; - this.dsLog.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; - // - // bs - // - this.bs.DataMember = "LogData"; - this.bs.DataSource = this.dsLog; - // - // ta - // - this.ta.ClearBeforeFill = true; - // - // tbLocation - // - this.tbLocation.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.tbLocation.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.tbLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.tbLocation.FormattingEnabled = true; - this.tbLocation.Location = new System.Drawing.Point(90, 104); - this.tbLocation.Name = "tbLocation"; - this.tbLocation.Size = new System.Drawing.Size(465, 36); - this.tbLocation.TabIndex = 4; - // - // tbReason - // - this.tbReason.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.tbReason.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.tbReason.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.tbReason.FormattingEnabled = true; - this.tbReason.Location = new System.Drawing.Point(90, 155); - this.tbReason.Name = "tbReason"; - this.tbReason.Size = new System.Drawing.Size(465, 36); - this.tbReason.TabIndex = 5; - // - // tbResult - // - this.tbResult.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.tbResult.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.tbResult.BackColor = System.Drawing.Color.White; - this.tbResult.FormattingEnabled = true; - this.tbResult.Location = new System.Drawing.Point(90, 207); - this.tbResult.Name = "tbResult"; - this.tbResult.Size = new System.Drawing.Size(465, 36); - this.tbResult.TabIndex = 6; - // - // textBox1 - // - this.textBox1.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.textBox1.Location = new System.Drawing.Point(90, 60); - this.textBox1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.textBox1.MaxLength = 500; - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(465, 34); - this.textBox1.TabIndex = 3; - this.textBox1.TabStop = false; - // - // Add - // - this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 28F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(571, 389); - this.Controls.Add(this.textBox1); - this.Controls.Add(label2); - this.Controls.Add(this.tbResult); - this.Controls.Add(this.tbReason); - this.Controls.Add(this.tbLocation); - this.Controls.Add(this.linkLabel7); - this.Controls.Add(this.linkLabel6); - this.Controls.Add(this.btSave); - this.Controls.Add(this.linkLabel5); - this.Controls.Add(this.dtPdate); - this.Controls.Add(this.tbRemark); - this.Controls.Add(label1); - this.Controls.Add(deptLabel); - this.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "Add"; - this.Text = "로그 데이터 추가/변경"; - this.Load += new System.EventHandler(this.@__Load); - ((System.ComponentModel.ISupportInitialize)(this.dsLog)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox tbRemark; - private System.Windows.Forms.DateTimePicker dtPdate; - private System.Windows.Forms.Button btSave; - private DSLog dsLog; - private System.Windows.Forms.BindingSource bs; - private DSLogTableAdapters.LogDataTableAdapter ta; - private System.Windows.Forms.ToolTip toolTip1; - private System.Windows.Forms.LinkLabel linkLabel5; - private System.Windows.Forms.LinkLabel linkLabel6; - private System.Windows.Forms.LinkLabel linkLabel7; - private System.Windows.Forms.ComboBox tbLocation; - private System.Windows.Forms.ComboBox tbReason; - private System.Windows.Forms.ComboBox tbResult; - private System.Windows.Forms.TextBox textBox1; - } -} \ No newline at end of file diff --git a/SubProject/FLG0000/LogData/Add.cs b/SubProject/FLG0000/LogData/Add.cs deleted file mode 100644 index b889d2f..0000000 --- a/SubProject/FLG0000/LogData/Add.cs +++ /dev/null @@ -1,417 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace FLG0000.LogData -{ - public partial class Add : Form - { - BindingSource bsManu; - BindingSource bsModel; - DSLog.LogDataRow dr; - public Boolean repeatAdd = false; - public Add(DSLog.LogDataRow dr_) - { - InitializeComponent(); - bsManu = new BindingSource(); - bsModel = new BindingSource(); - this.dr = dr_; - this.KeyPreview = true; - this.StartPosition = FormStartPosition.CenterScreen; - this.KeyDown += (s1, e1) => - { - if (e1.KeyCode == Keys.Escape) this.Close(); - }; - - foreach (Control ctl in this.Controls) - { - if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) - { - ctl.KeyDown += ctl_KeyDown; - } - } - } - - - - private void __Load(object sender, EventArgs e) - { - - ////장비제조 - //var dt_dept = FCOMMON.DBM.getCodeTable("06"); - //bsManu.DataSource = dt_dept; - //this.cbEQManu.DisplayMember = "Value"; - //this.cbEQManu.ValueMember = "Value"; - //this.cbEQManu.DataSource = bsManu; - - dtPdate.Value = DateTime.Parse(dr.pdate); - - tbLocation.Text = dr.location; - tbReason.Text = dr.reason; - tbResult.Text = dr.result; - - tbLocation.Tag = tbLocation.Text; - tbReason.Tag = tbReason.Text; - tbResult.Tag = tbResult.Text; - - tbRemark.Text = dr.remark; - - this.Show(); - Application.DoEvents(); - textBox1.Focus(); - - } - - void ctl_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Enter) - { - Control ctl = sender as Control; - string nm = ctl.Name.ToLower(); - string search = ctl.Text.Trim(); - - Console.WriteLine("inner keydown " + nm + ":" + search); - - switch (nm) - { - case "tblocation": - if (search == "") - Lov_Location(search, false); - else if (search.Contains("L")) //바코드입력 - { - var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); - if (grpdata.title != null) - { - if (grpdata.code.Length > 6) - { - //각 깊이별 이름을 다 가져와야한다 - System.Text.StringBuilder sb = new StringBuilder(); - int itemCount = (int)((grpdata.code.Length - 6) / 2.0); - for (int i = 6; i <= grpdata.code.Length; i += 2) - { - var codeStr = grpdata.code.Substring(0, i); - var codeData = FCOMMON.DBM.getCodeByCode("19", codeStr); - if (codeData.title != "") - { - if (sb.Length > 0) sb.Append('|'); - sb.Append(codeData.title.Replace("|", "")); - } - } - ctl.Text = sb.ToString(); - ctl.Tag = ctl.Text; - } - else - { - ctl.Text = grpdata.title; - ctl.Tag = ctl.Text; - } - SendKeys.Send("{TAB}"); - } - else Lov_Location(search, false); - } - break; - case "tbreason": - if (search == "") - Lov_Reason(search, false); - else if (search.StartsWith("L")) //바코드입력 - { - var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); - if (grpdata.title != null) - { - if (grpdata.code.Length > 6) - { - //각 깊이별 이름을 다 가져와야한다 - System.Text.StringBuilder sb = new StringBuilder(); - int itemCount = (int)((grpdata.code.Length - 6) / 2.0); - for (int i = 6; i <= grpdata.code.Length; i += 2) - { - var codeStr = grpdata.code.Substring(0, i); - var codeData = FCOMMON.DBM.getCodeByCode("19", codeStr); - if (codeData.title != "") - { - if (sb.Length > 0) sb.Append('|'); - sb.Append(codeData.title.Replace("|", "")); - } - } - ctl.Text = sb.ToString(); - ctl.Tag = ctl.Text; - } - else - { - ctl.Text = grpdata.title; - ctl.Tag = ctl.Text; - } - SendKeys.Send("{TAB}"); - } - else Lov_Reason(search, false); - } - break; - case "tbresult": - if (search.StartsWith("L")) - { - var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); - if (grpdata.title != null) - { - if (grpdata.code.Length > 6) - { - //각 깊이별 이름을 다 가져와야한다 - System.Text.StringBuilder sb = new StringBuilder(); - int itemCount = (int)((grpdata.code.Length - 6) / 2.0); - for (int i = 6; i <= grpdata.code.Length; i += 2) - { - var codeStr = grpdata.code.Substring(0, i); - var codeData = FCOMMON.DBM.getCodeByCode("19", codeStr); - if (codeData.title != "") - { - if (sb.Length > 0) sb.Append('|'); - sb.Append(codeData.title.Replace("|", "")); - } - } - ctl.Text = sb.ToString(); - ctl.Tag = ctl.Text; - } - else - { - ctl.Text = grpdata.title; - ctl.Tag = ctl.Text; - } - btSave.Focus(); - } - else Lov_Result(search, false); - } - else if (search != "") - Lov_Result(search, false); - break; - default: - SendKeys.Send("{TAB}"); - break; - } - } - } - private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - Lov_Location("", true); - } - - void Lov_Location(string search, Boolean allowAll) - { - var f = new Lov_LogItem("00", "00"); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - if (f.tbItem.Text.Trim() != "") - this.tbLocation.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); - else - this.tbLocation.Text = f.tbGrp.Text.Trim(); - this.tbLocation.Tag = this.tbLocation.Text; - } - } - void Lov_Reason(string search, Boolean allowAll) - { - var f = new Lov_LogItem("00", "01"); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - if (f.tbItem.Text.Trim() != "") - this.tbReason.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); - else - this.tbResult.Text = f.tbGrp.Text.Trim(); - this.tbReason.Tag = this.tbReason.Text; - } - } - void Lov_Result(string search, Boolean allowAll) - { - var f = new Lov_LogItem("00", "02"); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - if (f.tbItem.Text.Trim() != "") - this.tbResult.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); - else - this.tbResult.Text = f.tbGrp.Text.Trim(); - this.tbReason.Tag = this.tbReason.Text; - } - } - private bool saveData() - { - this.Validate(); - - if (tbLocation.Text.isEmpty()) - { - FCOMMON.Util.MsgE("위치정보가 없습니다."); - tbLocation.Focus(); - return false; - } - - if (tbReason.Text == "") - { - FCOMMON.Util.MsgE("원인을 입력하세요."); - tbReason.Focus(); - return false; - } - //if (tbResult.Text == "") - //{ - // FCOMMON.Util.MsgE("결과를 입력하세요."); - // tbResult.Focus(); - // return false; - //} - - //임의 기록데이터가 있다면 신규 목록을 추가 한다. - if (tbLocation.Text != tbLocation.Tag.ToString()) - { - var codeDatas = FCOMMON.DBM.getCodeTable("19"); - - var list = tbLocation.Text.Split('|'); - int depth = 0; - string codeHeader = ""; - string baseCode = "00" + "00"; //location 은 00,reason 01, 조치 02 - for (int i = 0; i < list.Length; i++) - { - var strData = list[i]; - if (strData.Trim() == "") continue; - - //이 데이터가 존재하지 않으면 추가한다. - var existData = FCOMMON.DBM.getCodeByMemo("19", strData); - if (existData.title != "" && existData.code.StartsWith(baseCode)) baseCode = existData.code; - else - { - //없으므로 신규추가해준다. - int codeLen = 6 + depth * 2; - var filterStr = string.Format("code like '{0}%' and len(code) = {1}", baseCode.Substring(0, codeLen - 2), codeLen); - var preList = codeDatas.Select(filterStr, "code desc"); - var newCode = ""; - if (preList.Length == 0) - { - newCode = baseCode + "00"; - } - else - { - //동일코드가 하나도 없다. - var lastCode = preList[0]["code"].ToString(); - var lastNo = lastCode.Substring(baseCode.Length, 2); - newCode = baseCode + string.Format("{0:00}", int.Parse(lastNo) + 1); - } - FCOMMON.DBM.insertCode("19", newCode, strData, "LA" + newCode); - baseCode = newCode; - } - depth += 1; - } - } - - - if (this.tbReason.Text != tbReason.Tag.ToString()) - { - var codeDatas = FCOMMON.DBM.getCodeTable("19"); - - var list = tbReason.Text.Split('|'); - int depth = 0; - string codeHeader = ""; - string baseCode = "00" + "01"; //location 은 00,reason 01, 조치 02 - for (int i = 0; i < list.Length; i++) - { - var strData = list[i]; - if (strData.Trim() == "") continue; - - //이 데이터가 존재하지 않으면 추가한다. - var existData = FCOMMON.DBM.getCodeByMemo("19", strData); - if (existData.title != "" && existData.code.StartsWith(baseCode)) baseCode = existData.code; - else - { - //없으므로 신규추가해준다. - int codeLen = 6 + depth * 2; - var filterStr = string.Format("code like '{0}%' and len(code) = {1}", baseCode.Substring(0, codeLen - 2), codeLen); - var preList = codeDatas.Select(filterStr, "code desc"); - var newCode = ""; - if (preList.Length == 0) - { - newCode = baseCode + "00"; - } - else - { - //동일코드가 하나도 없다. - var lastCode = preList[0]["code"].ToString(); - var lastNo = lastCode.Substring(baseCode.Length, 2); - newCode = baseCode + string.Format("{0:00}", int.Parse(lastNo) + 1); - } - FCOMMON.DBM.insertCode("19", newCode, strData, "LB" + newCode); - baseCode = newCode; - } - depth += 1; - } - } - - if (this.tbResult.Text != tbResult.Tag.ToString()) - { - var codeDatas = FCOMMON.DBM.getCodeTable("19"); - - var list = tbReason.Text.Split('|'); - int depth = 0; - string codeHeader = ""; - string baseCode = "00" + "02"; //location 은 00,reason 01, 조치 02 - for (int i = 0; i < list.Length; i++) - { - var strData = list[i]; - if (strData.Trim() == "") continue; - - //이 데이터가 존재하지 않으면 추가한다. - var existData = FCOMMON.DBM.getCodeByMemo("19", strData); - if (existData.title != "" && existData.code.StartsWith(baseCode)) baseCode = existData.code; - else - { - //없으므로 신규추가해준다. - int codeLen = 6 + depth * 2; - var filterStr = string.Format("code like '{0}%' and len(code) = {1}", baseCode.Substring(0, codeLen - 2), codeLen); - var preList = codeDatas.Select(filterStr, "code desc"); - var newCode = ""; - if (preList.Length == 0) - { - newCode = baseCode + "00"; - } - else - { - //동일코드가 하나도 없다. - var lastCode = preList[0]["code"].ToString(); - var lastNo = lastCode.Substring(baseCode.Length, 2); - newCode = baseCode + string.Format("{0:00}", int.Parse(lastNo) + 1); - } - FCOMMON.DBM.insertCode("19", newCode, strData, "LC" + newCode); - baseCode = newCode; - } - depth += 1; - } - } - - - dr.gcode = FCOMMON.info.Login.gcode; - dr.pdate = this.dtPdate.Value.ToShortDateString(); - dr.location = tbLocation.Text.Trim().Replace("|", ""); - dr.reason = tbReason.Text.Trim().Replace("|", ""); - dr.result = tbResult.Text.Trim().Replace("|", ""); - dr.remark = tbRemark.Text.Trim(); - dr.EndEdit(); - return true; - } - - private void button1_Click(object sender, EventArgs e) - { - if (!saveData()) return; - DialogResult = System.Windows.Forms.DialogResult.OK; - } - - - private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - //lov 공급처 - Lov_Reason("", true); - } - - private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - //lov 프로젝트 - Lov_Result("", true); - } - - } -} diff --git a/SubProject/FLG0000/LogData/Add.resx b/SubProject/FLG0000/LogData/Add.resx deleted file mode 100644 index a44dd72..0000000 --- a/SubProject/FLG0000/LogData/Add.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - False - - - False - - - False - - - 257, 17 - - - 17, 17 - - - 131, 17 - - - 195, 17 - - - 58 - - \ No newline at end of file diff --git a/SubProject/FLG0000/LogData/List.Designer.cs b/SubProject/FLG0000/LogData/List.Designer.cs deleted file mode 100644 index 6998fe3..0000000 --- a/SubProject/FLG0000/LogData/List.Designer.cs +++ /dev/null @@ -1,684 +0,0 @@ -namespace FLG0000.LogData -{ - partial class List - { - /// - /// 필수 디자이너 변수입니다. - /// - 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(List)); - FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); - this.dsPurchase = new FLG0000.DSLog(); - this.bs = new System.Windows.Forms.BindingSource(this.components); - this.ta = new FLG0000.DSLogTableAdapters.LogDataTableAdapter(); - this.tam = new FLG0000.DSLogTableAdapters.TableAdapterManager(); - this.bn = new System.Windows.Forms.BindingNavigator(this.components); - this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); - this.toolStripLabel6 = 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.btAdd = new System.Windows.Forms.ToolStripButton(); - this.btCopy = new System.Windows.Forms.ToolStripButton(); - this.btEdit = new System.Windows.Forms.ToolStripButton(); - this.btDel = new System.Windows.Forms.ToolStripButton(); - this.btSave = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); - 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.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); - this.추가ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.편집ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.삭제ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel(); - this.cmbLogType = new System.Windows.Forms.ToolStripComboBox(); - this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel(); - this.dtSD = new System.Windows.Forms.ToolStripTextBox(); - this.lbEnd = new System.Windows.Forms.ToolStripLabel(); - this.dtED = new System.Windows.Forms.ToolStripTextBox(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); - this.tbSearch = new System.Windows.Forms.ToolStripTextBox(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.btSearch = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); - this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); - ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); - this.bn.SuspendLayout(); - this.cm1.SuspendLayout(); - this.toolStrip1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); - this.SuspendLayout(); - // - // dsPurchase - // - this.dsPurchase.DataSetName = "dsPurchase"; - this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; - // - // bs - // - this.bs.DataMember = "LogData"; - this.bs.DataSource = this.dsPurchase; - // - // ta - // - this.ta.ClearBeforeFill = true; - // - // tam - // - this.tam.BackupDataSetBeforeUpdate = true; - this.tam.LogDataTableAdapter = this.ta; - this.tam.LogItemTableAdapter = null; - this.tam.UpdateOrder = FLG0000.DSLogTableAdapters.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.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripLabel6, - this.bindingNavigatorMoveFirstItem, - this.bindingNavigatorMovePreviousItem, - this.bindingNavigatorSeparator, - this.bindingNavigatorPositionItem, - this.bindingNavigatorCountItem, - this.bindingNavigatorSeparator1, - this.bindingNavigatorMoveNextItem, - this.bindingNavigatorMoveLastItem, - this.bindingNavigatorSeparator2, - this.btAdd, - this.btCopy, - this.btEdit, - this.btDel, - this.btSave, - this.toolStripSeparator1, - this.toolStripLabel1, - this.lbSum, - this.toolStripLabel5, - this.toolStripLabel2, - this.tbFind, - this.btFind, - this.toolStripSeparator6}); - this.bn.Location = new System.Drawing.Point(0, 639); - 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(1074, 26); - this.bn.TabIndex = 0; - this.bn.Text = "bindingNavigator1"; - // - // bindingNavigatorCountItem - // - this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; - this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 23); - this.bindingNavigatorCountItem.Text = "/{0}"; - this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; - // - // toolStripLabel6 - // - this.toolStripLabel6.ForeColor = System.Drawing.Color.Gray; - this.toolStripLabel6.Name = "toolStripLabel6"; - this.toolStripLabel6.Size = new System.Drawing.Size(57, 23); - this.toolStripLabel6.Text = "[LG0000]"; - // - // 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(23, 23); - 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(23, 23); - this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; - // - // bindingNavigatorSeparator - // - this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; - this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 26); - // - // bindingNavigatorPositionItem - // - this.bindingNavigatorPositionItem.AccessibleName = "위치"; - this.bindingNavigatorPositionItem.AutoSize = false; - 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, 26); - // - // 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(23, 23); - 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(23, 23); - this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; - // - // bindingNavigatorSeparator2 - // - this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; - this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 26); - // - // btAdd - // - this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image"))); - this.btAdd.Name = "btAdd"; - this.btAdd.RightToLeftAutoMirrorImage = true; - this.btAdd.Size = new System.Drawing.Size(67, 23); - this.btAdd.Text = "추가(&A)"; - this.btAdd.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click); - // - // btCopy - // - this.btCopy.Image = ((System.Drawing.Image)(resources.GetObject("btCopy.Image"))); - this.btCopy.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btCopy.Name = "btCopy"; - this.btCopy.Size = new System.Drawing.Size(67, 23); - this.btCopy.Text = "복사(&C)"; - this.btCopy.Click += new System.EventHandler(this.toolStripButton1_Click_2); - // - // 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(65, 23); - this.btEdit.Text = "편집(&E)"; - this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); - // - // btDel - // - this.btDel.Image = ((System.Drawing.Image)(resources.GetObject("btDel.Image"))); - this.btDel.Name = "btDel"; - this.btDel.RightToLeftAutoMirrorImage = true; - this.btDel.Size = new System.Drawing.Size(68, 23); - this.btDel.Text = "삭제(&D)"; - this.btDel.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click); - // - // btSave - // - this.btSave.Image = global::FLG0000.Properties.Resources.action_save; - this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btSave.Name = "btSave"; - this.btSave.Size = new System.Drawing.Size(66, 23); - this.btSave.Text = "저장(&S)"; - this.btSave.Click += new System.EventHandler(this.btSave_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26); - // - // toolStripLabel1 - // - this.toolStripLabel1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.toolStripLabel1.Name = "toolStripLabel1"; - this.toolStripLabel1.Size = new System.Drawing.Size(19, 23); - this.toolStripLabel1.Text = "건"; - // - // 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, 23); - 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, 23); - this.toolStripLabel5.Text = "합계"; - // - // toolStripLabel2 - // - this.toolStripLabel2.Name = "toolStripLabel2"; - this.toolStripLabel2.Size = new System.Drawing.Size(31, 23); - this.toolStripLabel2.Text = "검색"; - // - // tbFind - // - this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.tbFind.Name = "tbFind"; - this.tbFind.Size = new System.Drawing.Size(100, 26); - 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(23, 23); - this.btFind.Text = "toolStripButton2"; - this.btFind.Click += new System.EventHandler(this.btFind_Click); - // - // toolStripSeparator6 - // - this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 26); - // - // cm1 - // - this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F); - this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.columnSizeToolStripMenuItem, - this.exportDataToolStripMenuItem, - this.toolStripMenuItem3, - this.추가ToolStripMenuItem, - this.makeRepeatToolStripMenuItem, - this.편집ToolStripMenuItem1, - this.삭제ToolStripMenuItem}); - this.cm1.Name = "contextMenuStrip1"; - this.cm1.Size = new System.Drawing.Size(203, 262); - // - // columnSizeToolStripMenuItem - // - this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.saveToolStripMenuItem, - this.loadToolStripMenuItem, - this.resetToolStripMenuItem}); - this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem"; - this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.columnSizeToolStripMenuItem.Text = "열 너비"; - // - // saveToolStripMenuItem - // - this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.saveToolStripMenuItem.Text = "저장"; - this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); - // - // loadToolStripMenuItem - // - this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image"))); - this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; - this.loadToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.loadToolStripMenuItem.Text = "불러오기"; - this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click); - // - // resetToolStripMenuItem - // - this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image"))); - this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; - this.resetToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.resetToolStripMenuItem.Text = "초기화"; - this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); - // - // exportDataToolStripMenuItem - // - this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem"; - this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.exportDataToolStripMenuItem.Text = "내보내기"; - this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click); - // - // toolStripMenuItem3 - // - this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(199, 6); - // - // 추가ToolStripMenuItem - // - this.추가ToolStripMenuItem.Name = "추가ToolStripMenuItem"; - this.추가ToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.추가ToolStripMenuItem.Text = "추가"; - this.추가ToolStripMenuItem.Click += new System.EventHandler(this.추가ToolStripMenuItem_Click); - // - // makeRepeatToolStripMenuItem - // - this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem"; - this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.makeRepeatToolStripMenuItem.Text = "복사"; - this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click); - // - // 편집ToolStripMenuItem1 - // - this.편집ToolStripMenuItem1.Name = "편집ToolStripMenuItem1"; - this.편집ToolStripMenuItem1.Size = new System.Drawing.Size(202, 42); - this.편집ToolStripMenuItem1.Text = "편집"; - this.편집ToolStripMenuItem1.Click += new System.EventHandler(this.편집ToolStripMenuItem1_Click); - // - // 삭제ToolStripMenuItem - // - this.삭제ToolStripMenuItem.Name = "삭제ToolStripMenuItem"; - this.삭제ToolStripMenuItem.Size = new System.Drawing.Size(202, 42); - this.삭제ToolStripMenuItem.Text = "삭제"; - this.삭제ToolStripMenuItem.Click += new System.EventHandler(this.삭제ToolStripMenuItem_Click); - // - // toolStrip1 - // - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripLabel7, - this.cmbLogType, - this.toolStripLabel4, - this.dtSD, - this.lbEnd, - this.dtED, - this.toolStripSeparator2, - this.toolStripLabel3, - this.tbSearch, - this.toolStripSeparator4, - this.btSearch, - this.toolStripButton2}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(1074, 37); - this.toolStrip1.TabIndex = 3; - this.toolStrip1.Text = "toolStrip1"; - // - // toolStripLabel7 - // - this.toolStripLabel7.Name = "toolStripLabel7"; - this.toolStripLabel7.Size = new System.Drawing.Size(31, 34); - this.toolStripLabel7.Text = "종류"; - // - // cmbLogType - // - this.cmbLogType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbLogType.Name = "cmbLogType"; - this.cmbLogType.Size = new System.Drawing.Size(170, 37); - // - // toolStripLabel4 - // - this.toolStripLabel4.Name = "toolStripLabel4"; - this.toolStripLabel4.Size = new System.Drawing.Size(31, 34); - this.toolStripLabel4.Text = "기간"; - // - // dtSD - // - this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.dtSD.Name = "dtSD"; - this.dtSD.Size = new System.Drawing.Size(90, 37); - this.dtSD.Text = "1982-11-23"; - this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // lbEnd - // - this.lbEnd.Name = "lbEnd"; - this.lbEnd.Size = new System.Drawing.Size(15, 34); - this.lbEnd.Text = "~"; - this.lbEnd.Click += new System.EventHandler(this.lbEnd_Click); - // - // dtED - // - this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.dtED.Name = "dtED"; - this.dtED.Size = new System.Drawing.Size(90, 37); - this.dtED.Text = "1982-11-23"; - this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 37); - // - // toolStripLabel3 - // - this.toolStripLabel3.Name = "toolStripLabel3"; - this.toolStripLabel3.Size = new System.Drawing.Size(31, 34); - this.toolStripLabel3.Text = "검색"; - this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click); - // - // tbSearch - // - this.tbSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.tbSearch.Name = "tbSearch"; - this.tbSearch.Size = new System.Drawing.Size(150, 37); - this.tbSearch.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.tbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbRequest_KeyDown); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 37); - // - // btSearch - // - this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); - this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btSearch.Name = "btSearch"; - this.btSearch.Size = new System.Drawing.Size(80, 34); - this.btSearch.Text = "조회(&R)"; - this.btSearch.Click += new System.EventHandler(this.btSearch_Click); - // - // 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(65, 34); - this.toolStripButton2.Text = "닫기"; - this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); - // - // fpSpread1 - // - this.fpSpread1.AccessibleDescription = ""; - this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; - this.fpSpread1.Location = new System.Drawing.Point(0, 37); - this.fpSpread1.Name = "fpSpread1"; - this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { - this.fpSpread1_Sheet1}); - this.fpSpread1.Size = new System.Drawing.Size(1074, 602); - this.fpSpread1.TabIndex = 4; - // - // 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 = 7; - this.fpSpread1_Sheet1.ActiveColumnIndex = -1; - this.fpSpread1_Sheet1.ActiveRowIndex = -1; - this.fpSpread1_Sheet1.AutoGenerateColumns = false; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "등록일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "S/N"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "위치"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "원인"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "결과"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "등록자"; - this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 40F; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; - this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; - this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; - this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; - this.fpSpread1_Sheet1.Columns.Get(1).DataField = "serial"; - this.fpSpread1_Sheet1.Columns.Get(1).Label = "S/N"; - this.fpSpread1_Sheet1.Columns.Get(1).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; - this.fpSpread1_Sheet1.Columns.Get(2).DataField = "location"; - this.fpSpread1_Sheet1.Columns.Get(2).Label = "위치"; - this.fpSpread1_Sheet1.Columns.Get(2).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; - this.fpSpread1_Sheet1.Columns.Get(3).DataField = "reason"; - this.fpSpread1_Sheet1.Columns.Get(3).Label = "원인"; - this.fpSpread1_Sheet1.Columns.Get(3).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; - this.fpSpread1_Sheet1.Columns.Get(4).DataField = "result"; - this.fpSpread1_Sheet1.Columns.Get(4).Label = "결과"; - this.fpSpread1_Sheet1.Columns.Get(4).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; - this.fpSpread1_Sheet1.Columns.Get(5).DataField = "remark"; - this.fpSpread1_Sheet1.Columns.Get(5).Label = "비고"; - this.fpSpread1_Sheet1.Columns.Get(5).Width = 151F; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; - this.fpSpread1_Sheet1.Columns.Get(6).DataField = "userName"; - this.fpSpread1_Sheet1.Columns.Get(6).Label = "등록자"; - this.fpSpread1_Sheet1.Columns.Get(6).Width = 151F; - this.fpSpread1_Sheet1.DataAutoCellTypes = false; - this.fpSpread1_Sheet1.DataAutoHeadings = false; - this.fpSpread1_Sheet1.DataAutoSizeColumns = false; - this.fpSpread1_Sheet1.DataSource = this.bs; - this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; - this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; - // - // List - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1074, 665); - this.Controls.Add(this.fpSpread1); - this.Controls.Add(this.toolStrip1); - this.Controls.Add(this.bn); - this.DoubleBuffered = true; - this.Name = "List"; - 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(); - this.cm1.ResumeLayout(false); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private DSLog dsPurchase; - private System.Windows.Forms.BindingSource bs; - private DSLogTableAdapters.LogDataTableAdapter ta; - private DSLogTableAdapters.TableAdapterManager tam; - private System.Windows.Forms.BindingNavigator bn; - private System.Windows.Forms.ToolStripButton btAdd; - private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; - private System.Windows.Forms.ToolStripButton btDel; - 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.ToolStripTextBox dtSD; - private System.Windows.Forms.ToolStripLabel lbEnd; - private System.Windows.Forms.ToolStripTextBox dtED; - private System.Windows.Forms.ToolStripButton btSearch; - private System.Windows.Forms.ContextMenuStrip cm1; - private System.Windows.Forms.ToolStripLabel toolStripLabel3; - private System.Windows.Forms.ToolStripTextBox tbSearch; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripLabel toolStripLabel5; - private System.Windows.Forms.ToolStripLabel lbSum; - private System.Windows.Forms.ToolStripButton btSave; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripLabel toolStripLabel2; - private System.Windows.Forms.ToolStripTextBox tbFind; - private System.Windows.Forms.ToolStripButton btFind; - private FarPoint.Win.Spread.FpSpread fpSpread1; - private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem; - private System.Windows.Forms.ToolStripButton btEdit; - private System.Windows.Forms.ToolStripMenuItem exportDataToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; - private System.Windows.Forms.ToolStripButton btCopy; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; - private System.Windows.Forms.ToolStripMenuItem makeRepeatToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem 편집ToolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem 삭제ToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem 추가ToolStripMenuItem; - private System.Windows.Forms.ToolStripButton toolStripButton2; - private System.Windows.Forms.ToolStripLabel toolStripLabel4; - private System.Windows.Forms.ToolStripLabel toolStripLabel1; - private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; - private System.Windows.Forms.ToolStripLabel toolStripLabel6; - private System.Windows.Forms.ToolStripLabel toolStripLabel7; - private System.Windows.Forms.ToolStripComboBox cmbLogType; - } -} diff --git a/SubProject/FLG0000/LogData/List.cs b/SubProject/FLG0000/LogData/List.cs deleted file mode 100644 index 5be08a7..0000000 --- a/SubProject/FLG0000/LogData/List.cs +++ /dev/null @@ -1,429 +0,0 @@ -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; - -namespace FLG0000.LogData -{ - public partial class List : FCOMMON.fBase - { - string fn_fpcolsize = ""; - UserSetting userset = null; - public List() - { - InitializeComponent(); - - //화면전용 설정파일 - var usersetfile = new System.IO.FileInfo(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, - "Setting", "LG0000.xml")); - if (usersetfile.Directory.Exists == false) usersetfile.Directory.Create(); - userset = new UserSetting(usersetfile.FullName); - userset.Load(); - if (userset.Xml.Exist() == false) userset.Xml.CreateFile(); - - - fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); - this.dsPurchase.LogData.TableNewRow += Purchase_TableNewRow; - this.FormClosed += __Closed; - dtSD.KeyDown += dtSD_KeyDown; - dtED.KeyDown += dtSD_KeyDown; - //this.dv1.CellFormatting += dv1_CellFormatting; - } - - 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; - } - } - if (tb == dtSD) - { - dtED.Focus(); - dtED.SelectAll(); - } - else - { - btSearch.PerformClick(); - tb.SelectAll(); - } - } - - void __Closed(object sender, FormClosedEventArgs e) - { - FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize); - } - - void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e) - { - e.Row["gcode"] = FCOMMON.info.Login.gcode; - e.Row["pdate"] = DateTime.Now.ToShortDateString(); - e.Row["wuid"] = FCOMMON.info.Login.no; - e.Row["wdate"] = DateTime.Now; - e.Row["lcode"] = "00"; - } - - private void __Load(object sender, EventArgs e) - { - - //로그타입(18) 가져오기 - var logtypelist = FCOMMON.DBM.getCodeList("18"); - this.cmbLogType.Items.Clear(); - foreach (var item in logtypelist) - { - this.cmbLogType.Items.Add(string.Format("[{0}] {1}", item.Key, item.Value)); - } - //마지막에 사용한 값으로 자동 선택해준다. - var preSelectedType = "[" + userset.lastType + "]"; - for (int i = 0; i < cmbLogType.Items.Count; i++) - { - if (cmbLogType.Items[i].ToString().StartsWith(preSelectedType)) - { - cmbLogType.SelectedIndex = i; - break; - } - } - //선택된 자료가 없고 아이템이 잇다면 1번 항목으로 설정한다. - if (cmbLogType.SelectedIndex < 0 && cmbLogType.Items.Count > 0) cmbLogType.SelectedIndex = 0; - - this.tbSearch.Text = string.Empty; - this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString(); - this.dtED.Text = DateTime.Now.ToShortDateString(); - - refreshData(); - } - - private void refreshData() - { - - try - { - var search = tbSearch.Text.Trim(); - this.dsPurchase.LogData.Clear(); - this.ta.Fill(this.dsPurchase.LogData, - FCOMMON.info.Login.gcode, - dtSD.Text, dtED.Text, "%" + search + "%"); - this.dsPurchase.LogData.AcceptChanges(); - showSummary(); - FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - } - 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; - for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) - { - - } - this.fpSpread1.ResumeLayout(); - } - - private void saveData(Boolean prompt) - { - this.Validate(); - this.bs.EndEdit(); - try - { - var cnt = this.ta.Update(this.dsPurchase.LogData); - if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt)); - } - catch (Exception ex) - { - FCOMMON.Util.MsgE("저장 실패\n" + ex.Message); - } - } - void showSummary() - { - decimal sum = 0; - var list = this.dsPurchase.LogData.Select(this.bs.Filter, "") as DSLog.LogDataRow[]; - // sum = list.Sum(t => t.pumamt); - //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) - //if (!dr.IspumamtNull()) sum += dr.pumamt; - lbSum.Text = list.Count().ToString("N0"); - } - - private void btSearch_Click(object sender, EventArgs e) - { - refreshData(); - } - - private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) - { - func_add(); - } - - private void tbRequest_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Enter) - btSearch.PerformClick(); - } - - private void btSave_Click(object sender, EventArgs e) - { - saveData(true); - } - - - private void lbEnd_Click(object sender, EventArgs e) - { - //end date - var list = FCOMMON.DBM.getGroupList("pdate", "purchase", "pdate >= '" + dtSD.Text + "'", true); - FCM0000.fLovOneItem f = new FCM0000.fLovOneItem(list); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - dtED.Text = f.Title; - btSearch.PerformClick(); - } - } - - private void toolStripLabel3_Click(object sender, EventArgs e) - { - //사용자목록처리 - if (tbSearch.Text.Trim() == "") - { - tbSearch.Text = FCOMMON.info.Login.nameK; - } - else - { - tbSearch.Text = string.Empty; - } - - refreshData(); - } - - - private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) - { - func_delete(); - } - void func_add() - { - var newdr = this.dsPurchase.LogData.NewLogDataRow();//.NewPurchaseRow(); - var f = new LogData.Add(newdr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - this.dsPurchase.LogData.AddLogDataRow(newdr); - int cnt = this.ta.Update(newdr); - if (cnt == 0) FCOMMON.Util.MsgE("저장 실패\n\n다시 시도하시고 증상이 반복되면 chikyun.kim@amkor.co.kr 로 문의 주십시요"); - newdr.AcceptChanges(); - refreshData(); //181210 - } - else newdr.Delete(); - } - void func_delete() - { - var drv = bs.Current as DataRowView; - if (drv == null) return; - - var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); - if (dlg != System.Windows.Forms.DialogResult.Yes) return; - bs.RemoveCurrent(); - - try - { - int cnt = ta.Update(this.dsPurchase); - if (cnt != 1) - FCOMMON.Util.MsgE(cnt.ToString() + "건의 자료가 삭제되었습니다."); - } - catch (Exception ex) - { - FCOMMON.Util.MsgE("delete error\n" + ex.Message); - } - } - - - - 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 = "serial like ? or location like ? or reason like ? or result like ? or remark 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(); - } - - private void editDataToolStripMenuItem_Click(object sender, EventArgs e) - { - Func_Edit(); - } - void Func_Edit() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as DSLog.LogDataRow; - - var f = new LogData.Add(dr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - //존재하지 않는 sid 는 추가를 해준다. - if (dr.RowState != DataRowState.Unchanged) - { - this.ta.Update(dr); - dr.AcceptChanges(); - } - } - else dr.RejectChanges(); - } - - private void autoToolStripMenuItem_Click(object sender, EventArgs e) - { - FCOMMON.Util.FPColSizeAuto(this.fpSpread1); - } - - private void resetToolStripMenuItem_Click(object sender, EventArgs e) - { - foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) - { - col.Width = 100; - } - } - - private void saveToolStripMenuItem_Click(object sender, EventArgs e) - { - FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize); - } - - private void loadToolStripMenuItem_Click(object sender, EventArgs e) - { - FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - } - - private void toolStripButton2_Click(object sender, EventArgs e) - { - Func_Edit(); - } - - - private void exportDataToolStripMenuItem_Click(object sender, EventArgs e) - { - SaveFileDialog sd = new SaveFileDialog(); - sd.Filter = "excel|*.xls"; - sd.FileName = "logdata.xls"; - if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - fpSpread1.SaveExcel(sd.FileName, - FarPoint.Excel.ExcelSaveFlags.SaveAsViewed - | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered - | FarPoint.Excel.ExcelSaveFlags.NoFormulas - | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); - FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName); - } - - } - - - - void func_copy() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as DSLog.LogItemRow; - - //현재 데이터를 입력하여 신규 추가를 한다. - var newdr = this.dsPurchase.LogData.NewLogDataRow(); - FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr); - newdr.gcode = FCOMMON.info.Login.gcode; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.wdate = DateTime.Now; - newdr.wuid = FCOMMON.info.Login.no; - newdr.EndEdit(); - - var f = new LogData.Add(newdr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - - this.dsPurchase.LogData.AddLogDataRow(newdr);//.Purchase.AddPurchaseRow(newdr); - this.ta.Update(newdr); - newdr.AcceptChanges(); - } - else newdr.Delete(); - } - - - private void toolStripButton1_Click_2(object sender, EventArgs e) - { - func_copy(); - } - - private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e) - { - func_copy(); - } - - private void 편집ToolStripMenuItem1_Click(object sender, EventArgs e) - { - Func_Edit(); - } - - private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e) - { - func_delete(); - } - - private void 추가ToolStripMenuItem_Click(object sender, EventArgs e) - { - func_add(); - } - - private void toolStripButton2_Click_1(object sender, EventArgs e) - { - this.Close(); - } - - } -} diff --git a/SubProject/FLG0000/LogData/List.resx b/SubProject/FLG0000/LogData/List.resx deleted file mode 100644 index 6342ebf..0000000 --- a/SubProject/FLG0000/LogData/List.resx +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - 257, 17 - - - 330, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/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 - wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/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 - wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 - n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI - N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f - oAc0QjgAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/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 - wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/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 - zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/ - IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E - rkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFDSURBVDhPlZK9SgNREIXzOpY+gEXQIg+QkMLOTuwsLNRU - ViKIja0SbMRCBQsLUxgQArERf1ARCaLBCErUIoWJjnyzTna4Ccs6cLLkzpzvnr17M5KiMknFQPXyQfbO - m6rNkxtZ3q9LqVyR2bVdVSKEJsbr53dpvnVUrx/RE61W2zI5v6EQqz9rVCwAYLj2+KP6VyL+bJ825LPz - pWYzpknUB7CLARgIE6HK/bfO0F86aklhZiWC8ENEA9D0iUKAKRHgE5kZHdz2VPTyUwsxYHHrWN+TIQAe - 6M07F10VvVx+OgZwsgaYO3wZAHhz+ayr5zMAwGAAn8gDMA8F8Fmu7p4Uwh3wibx5vd5TNVptyeaKMQAD - p4o4HJ9oGAD42EQhBoTlE9kFYleEmZQjo+M6q5fJF4thIt4XEZudMfc/Y1i6mrpEfgGL0hchHI3KDgAA - AABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm - +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV - kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP - 0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w - 9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF - KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC - DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC - rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV - i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG - 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG - QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX - bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 - qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO - b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY - hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 - 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon - GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== - - - - 504, 23 - - - - R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh - e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw - QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK - HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC - un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs= - - - - - R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7 - 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ - IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj - SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG - vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw== - - - - - R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R - PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg - oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX - dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7 - - - - 396, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQjSURBVEhLtVdbT1NZGD3RMfoTHI2JxrvvOibz4KvRiYhi - KgplSqvUKyqVKkgOVkXaA7SjRWS0gxVs8YIadKgUG0Da0lJHYCaZeqetipcoBby8aafrsDc9QlU6HFey - 05N8a3+r+/JdNpMo1q27MHHV3qvT1hY0/rSmoPHnpPwbM5axzT8Qs7iQsE3zZKVubmtFt2O3yR/Mqbrf - x9YGPx2s643kmvwfUjWOFYQqDiRs80z5bz7rvrMP3ugawhHO1j9qHL7yMrJB0/QLmTJ+SHUulcp8/yln - iy9Ix0hhqbbNkX2yOzBypBU7Q2sLbEmENho4w0ydu7LQ2vteKIAV51qDAzsq/3FvMXZaFYaOUwqD17TJ - 4KlPYW8uIdOZbRXdjcJ5GCpz4EU650onlPiAaFF970c6SdfQH1GbHz7LLPVWSoqa5hHaFzFaOByRlrTX - E3N8YHuFK9X+2RfJOuZrTeNaZxHKNxFvxXnWwPuMYtdOQvkcuEhDZxoTles7Li/f0TCZUMYEKqy2BsLF - 1/uGxVVn/KG4C1AYPLX0ImF7s47fbklUFIAwzjStuE2uNHa6qTB8Ksp81YQ2hI0ax3yEDCXhTBPZXiE2 - HnW2pHGu9fherWlZCF/Ur+rM4xepGvtcngjIODdH4xS/sjLvSWJKGElq20zyyUOh9/4RC8mo72giIiaG - QUai/yrf0jO4RvivxglEQq6lZ4D631LeZecNiFukQWrYWdHl4g0iYvuJvz3UP7T43L4y79r0/ebH/dSg - NN6pJXzRoDx25zz1v9/c048iwySz9qUH60LDCSNT76skfNEAn9Q/iktynn0pg/JWWBf8rsKbDB2/U/+F - l4IfkwsaFvNbLTz8LKNP/K0u77xI/edU3etbobo+ldm8+fYk4eXCRSB80SC8XHtO3e3BheYNyhOdN6kh - 1xIYEDOcUtnmBfmW4CD1v7Wiq4mYoodf4ikRBjmCnph4jEwKiUBe5j0tTE5SzqUlJoZJOeCYn1P96BX9 - V0hzKUduLYIN6Q9pkCcmCLRM6up7z6nfPTWPXqcU3ZhDzEOQ671WJHJKihYJV+rRFunemge9SPyENmZE - k8QU+Ij5DKPa1RBzDBKdY/buqn+fUGGUNLUlEMZ3osIQlek99Sit1F9OlT8kiXakhPI5MrROZWFd6C0l - 05GIMLZXafzLKRRlLwXfSUvasgklPjJK26/FLtrYhSUa+0J5qdeEMxUeGdqoDM759WqXrm2V4EyFohhC - YTR2aPDQ6KHhU5Z3nUecHrAEBuntpQMrhehw3MYDWk+0oPFaU7SshMaglUVLKxQYPcIRVfRM03Vtu8i0 - 8eNrwlgxQkam7zj3xYv0f4HnCp4teL6g0iD3Zpv8AWS/X7l2reSQYzahigsUcTzU8GBDZUvOs/3IsuwE - Yh4jGOY/gmD0WF7YCuoAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR - DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il - zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij - KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY - UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC - - - - 579, 23 - - \ No newline at end of file diff --git a/SubProject/FLG0000/LogData/Lov_LogItem.Designer.cs b/SubProject/FLG0000/LogData/Lov_LogItem.Designer.cs deleted file mode 100644 index 41b710b..0000000 --- a/SubProject/FLG0000/LogData/Lov_LogItem.Designer.cs +++ /dev/null @@ -1,132 +0,0 @@ -namespace FLG0000.LogData -{ - partial class Lov_LogItem - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.tbGrp = new System.Windows.Forms.TextBox(); - this.tbItem = new System.Windows.Forms.TextBox(); - this.btOK = new System.Windows.Forms.Button(); - this.listBox1 = new System.Windows.Forms.ListView(); - this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.listBox2 = new System.Windows.Forms.ListView(); - this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.SuspendLayout(); - // - // tbGrp - // - this.tbGrp.Location = new System.Drawing.Point(14, 192); - this.tbGrp.Margin = new System.Windows.Forms.Padding(2); - this.tbGrp.Name = "tbGrp"; - this.tbGrp.Size = new System.Drawing.Size(561, 46); - this.tbGrp.TabIndex = 1; - // - // tbItem - // - this.tbItem.Location = new System.Drawing.Point(14, 426); - this.tbItem.Margin = new System.Windows.Forms.Padding(2); - this.tbItem.Name = "tbItem"; - this.tbItem.Size = new System.Drawing.Size(561, 46); - this.tbItem.TabIndex = 2; - // - // btOK - // - this.btOK.Location = new System.Drawing.Point(12, 482); - this.btOK.Name = "btOK"; - this.btOK.Size = new System.Drawing.Size(563, 52); - this.btOK.TabIndex = 3; - this.btOK.Text = "확인"; - this.btOK.UseVisualStyleBackColor = true; - this.btOK.Click += new System.EventHandler(this.btOK_Click); - // - // listBox1 - // - this.listBox1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader1}); - this.listBox1.FullRowSelect = true; - this.listBox1.GridLines = true; - this.listBox1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.listBox1.Location = new System.Drawing.Point(14, 12); - this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(561, 175); - this.listBox1.TabIndex = 4; - this.listBox1.UseCompatibleStateImageBehavior = false; - this.listBox1.View = System.Windows.Forms.View.Details; - // - // columnHeader1 - // - this.columnHeader1.Width = 544; - // - // listBox2 - // - this.listBox2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader2}); - this.listBox2.FullRowSelect = true; - this.listBox2.GridLines = true; - this.listBox2.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.listBox2.Location = new System.Drawing.Point(14, 246); - this.listBox2.Name = "listBox2"; - this.listBox2.Size = new System.Drawing.Size(561, 175); - this.listBox2.TabIndex = 5; - this.listBox2.UseCompatibleStateImageBehavior = false; - this.listBox2.View = System.Windows.Forms.View.Details; - // - // columnHeader2 - // - this.columnHeader2.Width = 544; - // - // Lov_LogItem - // - this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 40F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(592, 550); - this.Controls.Add(this.listBox2); - this.Controls.Add(this.listBox1); - this.Controls.Add(this.btOK); - this.Controls.Add(this.tbItem); - this.Controls.Add(this.tbGrp); - this.Font = new System.Drawing.Font("맑은 고딕", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.Margin = new System.Windows.Forms.Padding(7, 10, 7, 10); - this.Name = "Lov_LogItem"; - this.Text = "Lov_LogItem"; - this.Load += new System.EventHandler(this.Lov_LogItem_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Button btOK; - private System.Windows.Forms.ListView listBox1; - private System.Windows.Forms.ColumnHeader columnHeader1; - private System.Windows.Forms.ListView listBox2; - private System.Windows.Forms.ColumnHeader columnHeader2; - public System.Windows.Forms.TextBox tbGrp; - public System.Windows.Forms.TextBox tbItem; - } -} \ No newline at end of file diff --git a/SubProject/FLG0000/LogData/Lov_LogItem.cs b/SubProject/FLG0000/LogData/Lov_LogItem.cs deleted file mode 100644 index ab0835b..0000000 --- a/SubProject/FLG0000/LogData/Lov_LogItem.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace FLG0000.LogData -{ - public partial class Lov_LogItem : Form - { - bool binit = false; - string logType = ""; - string logDiv = ""; - - DataTable dtList = null; - public Lov_LogItem(string logType_, string logDiv_) - { - InitializeComponent(); - this.logType = logType_; - this.logDiv = logDiv_; - this.listBox1.MultiSelect = false; - this.listBox1.FullRowSelect = true; - this.listBox1.GridLines = true; - this.listBox1.SelectedIndexChanged += listBox1_SelectedIndexChanged; - - - this.listBox2.MultiSelect = false; - this.listBox2.FullRowSelect = true; - this.listBox2.GridLines = true; - this.listBox2.SelectedIndexChanged += listBox2_SelectedIndexChanged; - } - - void listBox2_SelectedIndexChanged(object sender, EventArgs e) - { - if (binit == false) return; - var listview = sender as ListView; - if (listview.SelectedItems.Count > 0) - { - this.tbItem.Text = listview.SelectedItems[0].Text; - } - } - - void listBox1_SelectedIndexChanged(object sender, EventArgs e) - { - if (binit == false) return; - var listview = sender as ListView; - this.listBox2.Items.Clear(); - if (listview.SelectedItems.Count > 0) - { - this.tbGrp.Text = listview.SelectedItems[0].Text; - var typestr = listBox1.SelectedItems[0].Tag.ToString();// listBox1.Items[listBox1.SelectedIndex].ToString(); - var grplist = dtList.AsEnumerable().Where(t => t.Field(0).StartsWith(typestr) && t.Field(0).Length == 8); - foreach (var item in grplist) - { - //string data = string.Format("[{0}] {1}", item[0], item[1]); - var lv = this.listBox2.Items.Add(item[1].ToString()); - lv.Tag = item[0]; - } - } - } - - private void Lov_LogItem_Load(object sender, EventArgs e) - { - //해다 자료를 불러와서 표시해준다. - var typestr = logType + logDiv; - this.Text = typestr; - - this.Show(); - Application.DoEvents(); - - - dtList = FCOMMON.DBM.getCodeTable("19"); - - var grplist = dtList.AsEnumerable().Where(t => t.Field(0).StartsWith(typestr) && t.Field(0).Length == 6); - this.listBox1.Items.Clear(); - foreach (var item in grplist) - { - var lv = this.listBox1.Items.Add(item[1].ToString()); - lv.Tag = item[0].ToString(); - } - binit = true; - - this.tbGrp.Focus(); - } - - private void btOK_Click(object sender, EventArgs e) - { - DialogResult = System.Windows.Forms.DialogResult.OK; - } - } -} diff --git a/SubProject/FLG0000/LogData/Lov_LogItem.resx b/SubProject/FLG0000/LogData/Lov_LogItem.resx deleted file mode 100644 index 1af7de1..0000000 --- a/SubProject/FLG0000/LogData/Lov_LogItem.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/SubProject/FLG0000/Properties/Settings.Designer.cs b/SubProject/FLG0000/Properties/Settings.Designer.cs index 5dd3002..d543aa9 100644 --- a/SubProject/FLG0000/Properties/Settings.Designer.cs +++ b/SubProject/FLG0000/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace FLG0000.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/SubProject/FLG0000/Properties/Settings.settings b/SubProject/FLG0000/Properties/Settings.settings index a2a298e..f81d8df 100644 --- a/SubProject/FLG0000/Properties/Settings.settings +++ b/SubProject/FLG0000/Properties/Settings.settings @@ -1,14 +1,14 @@  - + <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! \ No newline at end of file diff --git a/SubProject/FLG0000/Setting.cs b/SubProject/FLG0000/Setting.cs index 54b50fa..33dea6e 100644 --- a/SubProject/FLG0000/Setting.cs +++ b/SubProject/FLG0000/Setting.cs @@ -23,7 +23,7 @@ namespace FLG0000 } public override void AfterLoad() { - if (lastType == "") lastType = "00"; + //if (lastType == "") lastType = ""; } public override void AfterSave() { diff --git a/SubProject/FLG0000/app.config b/SubProject/FLG0000/app.config index 41347bc..a8fe42e 100644 --- a/SubProject/FLG0000/app.config +++ b/SubProject/FLG0000/app.config @@ -3,6 +3,9 @@ - + + diff --git a/SubProject/FPJ0000/Properties/Settings.Designer.cs b/SubProject/FPJ0000/Properties/Settings.Designer.cs index 1e94bab..7fff934 100644 --- a/SubProject/FPJ0000/Properties/Settings.Designer.cs +++ b/SubProject/FPJ0000/Properties/Settings.Designer.cs @@ -26,8 +26,8 @@ namespace FPJ0000.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;Us" + - "er ID=gw;Password=Amkor123!")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=EEmicro123!")] public string gwcs { get { return ((string)(this["gwcs"])); diff --git a/SubProject/FPJ0000/Properties/Settings.settings b/SubProject/FPJ0000/Properties/Settings.settings index 74dec33..9347bc3 100644 --- a/SubProject/FPJ0000/Properties/Settings.settings +++ b/SubProject/FPJ0000/Properties/Settings.settings @@ -1,14 +1,14 @@  - + <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!</ConnectionString> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123! + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! \ No newline at end of file diff --git a/SubProject/FPJ0000/app.config b/SubProject/FPJ0000/app.config index 818fc96..e625be5 100644 --- a/SubProject/FPJ0000/app.config +++ b/SubProject/FPJ0000/app.config @@ -5,5 +5,7 @@ + \ No newline at end of file