From 80d00fd4b654fe787e5c1b500f1224ffb805522c Mon Sep 17 00:00:00 2001 From: "chikyun.kim" Date: Tue, 1 Oct 2019 15:51:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=AC=EA=B3=A0=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=EC=B9=B8=20=EB=B9=84=ED=99=9C=EC=84=B1?= =?UTF-8?q?=ED=99=94=20=3D>=20=EC=99=84=EB=A3=8C=20=EC=9E=AC=EA=B3=A0=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=ED=99=94=EB=A9=B4=20-=20=EB=B3=B4?= =?UTF-8?q?=EA=B4=80=EC=86=8C=20=ED=95=84=ED=84=B0=EB=A7=81=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=B6=94=EA=B0=80=20=EC=9E=AC=EA=B3=A0=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EB=93=B1=EB=A1=9D=20=ED=99=94=EB=A9=B4=20=EA=B7=9C?= =?UTF-8?q?=EA=B2=A9=EC=9D=98=20=EA=B0=92=EC=9D=B4=20=EC=97=86=EC=96=B4?= =?UTF-8?q?=EB=8F=84=20=EB=93=B1=EB=A1=9D=20=EA=B0=80=EB=8A=A5=20=3D>=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C=20=EB=B3=B4=EA=B4=80=EC=86=8C=20=EC=A7=81?= =?UTF-8?q?=EC=A0=91=EC=9E=85=EB=A0=A5=EC=9D=B4=20=EC=95=84=EB=8B=8C=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=ED=95=98=EA=B2=8C=20=3D>=20=EC=9E=AC?= =?UTF-8?q?=EA=B3=A0=EB=93=B1=EB=A1=9D=ED=99=94=EB=A9=B4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95,=20=ED=92=88=EB=AA=A9=EC=A0=95=EB=B3=B4=EC=97=90=20?= =?UTF-8?q?=EA=B3=B5=EA=B8=89=EC=B2=98=20=EC=84=A0=ED=83=9D=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=3D>=20=EA=B3=B5=EA=B8=89=EC=B2=98=20=EC=B9=B8(?= =?UTF-8?q?=EC=A0=9C=EC=9D=BC=20=EC=9A=B0=EC=B8=A1)=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20=EC=A3=BC=EB=AC=B8=EB=8F=84=20=EB=B3=B4=EA=B4=80=EC=86=8C=20?= =?UTF-8?q?=EB=B3=84=EB=A1=9C=20=EC=B2=98=EB=A6=AC=20=3D>=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C=20=EC=95=88=EC=A0=84=EC=9A=A9=20=EC=A3=BC=EB=AC=B8?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=ED=99=94=EB=A9=B4=20=EC=B6=94=EA=B0=80=20=3D?= =?UTF-8?q?>=20=EB=B3=B4=EA=B4=80=EC=86=8C=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EA=B5=AC=EB=A7=A4=20=EC=8B=A0=EC=B2=AD=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EC=97=90=20"=EB=B3=B4=EA=B4=80=EC=86=8C"=20?= =?UTF-8?q?=EC=97=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EETGW.sln | 8 + Project/History.txt | 13 + Project/Properties/AssemblyInfo.cs | 4 +- Project/dsMSSQL.xss | 15 +- Project/fMain.Designer.cs | 93 +- Project/fMain.cs | 21 + Project/fMain.resx | 30 + .../FCM0000/Board/fPatchList.Designer.cs | 77 +- SubProject/FCM0000/Board/fPatchList.cs | 13 +- SubProject/FCM0000/Board/fPatchList.resx | 30 + .../FCM0000/Board/fRequestItem.Designer.cs | 2 - SubProject/FCM0000/Board/fRequestItem.cs | 12 +- .../Board/fRequestItem_Add.Designer.cs | 2 - SubProject/FCM0000/Board/fRequestItem_Add.cs | 12 +- SubProject/FCM0000/DSInventory.Designer.cs | 37 +- SubProject/FCM0000/DSInventory.xsd | 15 +- SubProject/FCM0000/DSInventory.xss | 2 +- SubProject/FCM0000/DSMail.Designer.cs | 5940 +++++++++++++++++ SubProject/FCM0000/DSMail.xsc | 9 + SubProject/FCM0000/DSMail.xsd | 693 ++ SubProject/FCM0000/DSMail.xss | 14 + SubProject/FCM0000/DSReport.Designer.cs | 19 +- SubProject/FCM0000/DSReport.xsd | 13 +- SubProject/FCM0000/DSReport.xss | 4 +- SubProject/FCM0000/DSUser.xss | 5 +- SubProject/FCM0000/FCM0000.csproj | 93 +- SubProject/FCM0000/Inventory/RepInvStock.cs | 2 +- .../FCM0000/Inventory/fInventory.Designer.cs | 119 +- SubProject/FCM0000/Inventory/fInventory.cs | 13 +- SubProject/FCM0000/Inventory/fInventory.resx | 15 +- .../Inventory/fInventoryJagoList.Designer.cs | 144 +- .../FCM0000/Inventory/fInventoryJagoList.cs | 12 +- .../FCM0000/Inventory/fInventoryJagoList.resx | 15 +- .../Inventory/fInventoryUser.Designer.cs | 2 - .../Inventory/finventoryAdd.Designer.cs | 30 +- SubProject/FCM0000/Inventory/finventoryAdd.cs | 22 +- SubProject/FCM0000/Item/fItems.Designer.cs | 664 +- SubProject/FCM0000/Item/fItems.cs | 108 +- SubProject/FCM0000/Item/fItems.resx | 125 +- SubProject/FCM0000/Item/fLovItem.Designer.cs | 2 - .../FCM0000/Mail/fAutoSendSetting.Designer.cs | 386 ++ SubProject/FCM0000/Mail/fAutoSendSetting.cs | 135 + SubProject/FCM0000/Mail/fAutoSendSetting.resx | 244 + .../FCM0000/Mail/fMailAutoAdd.Designer.cs | 595 ++ SubProject/FCM0000/Mail/fMailAutoAdd.cs | 222 + SubProject/FCM0000/Mail/fMailAutoAdd.resx | 179 + SubProject/FCM0000/Mail/fMailList.Designer.cs | 406 ++ SubProject/FCM0000/Mail/fMailList.cs | 70 + SubProject/FCM0000/Mail/fMailList.resx | 210 + .../{Board => Mail}/fMailform.Designer.cs | 947 ++- .../FCM0000/{Board => Mail}/fMailform.cs | 199 +- .../FCM0000/{Board => Mail}/fMailform.resx | 461 +- .../{Board => Mail}/fSendMail.Designer.cs | 568 +- .../FCM0000/{Board => Mail}/fSendMail.cs | 8 +- .../FCM0000/{Board => Mail}/fSendMail.resx | 330 +- SubProject/FCM0000/dsMSSQL.Designer.cs | 3090 +-------- SubProject/FCM0000/dsMSSQL.xsd | 380 +- SubProject/FCM0000/dsMSSQL.xss | 4 +- SubProject/FCM0000/fCode.Designer.cs | 2 - SubProject/FCM0000/fCustoms.Designer.cs | 2 - SubProject/FCM0000/fLovProject.Designer.cs | 2 - SubProject/FCOMMON/DataBaseManager.cs | 23 +- SubProject/FCOMMON/FCOMMON.csproj | 9 + SubProject/FCOMMON/fSelectDay.Designer.cs | 77 + SubProject/FCOMMON/fSelectDay.cs | 31 + SubProject/FCOMMON/fSelectDay.resx | 120 + SubProject/FEQ0000/FEQ0000.csproj | 9 + .../FEQ0000/Purchase/fPurchase.Designer.cs | 290 +- SubProject/FEQ0000/Purchase/fPurchase.cs | 201 +- SubProject/FEQ0000/Purchase/fPurchase_Add.cs | 3 + .../Purchase/fPurchase_AddS.Designer.cs | 494 ++ SubProject/FEQ0000/Purchase/fPurchase_AddS.cs | 602 ++ .../FEQ0000/Purchase/fPurchase_AddS.resx | 165 + SubProject/FEQ0000/dsPurchase.Designer.cs | 87 +- SubProject/FEQ0000/dsPurchase.xsd | 158 +- .../FPJ0000/Project/fProjectData.Designer.cs | 154 +- SubProject/FPJ0000/Project/fProjectData.cs | 57 +- SubProject/FPJ0000/Project/fProjectData.resx | 18 +- 78 files changed, 13867 insertions(+), 5520 deletions(-) create mode 100644 SubProject/FCM0000/DSMail.Designer.cs create mode 100644 SubProject/FCM0000/DSMail.xsc create mode 100644 SubProject/FCM0000/DSMail.xsd create mode 100644 SubProject/FCM0000/DSMail.xss create mode 100644 SubProject/FCM0000/Mail/fAutoSendSetting.Designer.cs create mode 100644 SubProject/FCM0000/Mail/fAutoSendSetting.cs create mode 100644 SubProject/FCM0000/Mail/fAutoSendSetting.resx create mode 100644 SubProject/FCM0000/Mail/fMailAutoAdd.Designer.cs create mode 100644 SubProject/FCM0000/Mail/fMailAutoAdd.cs create mode 100644 SubProject/FCM0000/Mail/fMailAutoAdd.resx create mode 100644 SubProject/FCM0000/Mail/fMailList.Designer.cs create mode 100644 SubProject/FCM0000/Mail/fMailList.cs create mode 100644 SubProject/FCM0000/Mail/fMailList.resx rename SubProject/FCM0000/{Board => Mail}/fMailform.Designer.cs (95%) rename SubProject/FCM0000/{Board => Mail}/fMailform.cs (86%) rename SubProject/FCM0000/{Board => Mail}/fMailform.resx (97%) rename SubProject/FCM0000/{Board => Mail}/fSendMail.Designer.cs (91%) rename SubProject/FCM0000/{Board => Mail}/fSendMail.cs (91%) rename SubProject/FCM0000/{Board => Mail}/fSendMail.resx (98%) create mode 100644 SubProject/FCOMMON/fSelectDay.Designer.cs create mode 100644 SubProject/FCOMMON/fSelectDay.cs create mode 100644 SubProject/FCOMMON/fSelectDay.resx create mode 100644 SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs create mode 100644 SubProject/FEQ0000/Purchase/fPurchase_AddS.cs create mode 100644 SubProject/FEQ0000/Purchase/fPurchase_AddS.resx diff --git a/EETGW.sln b/EETGW.sln index bf2e780..4292601 100644 --- a/EETGW.sln +++ b/EETGW.sln @@ -31,6 +31,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTPClass", "Sub\arftp\FTPCl EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FLG0000", "SubProject\FLG0000\FLG0000.csproj", "{0677FB12-D582-4A7A-B266-EF2477A89688}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MailManager", "MailManager\MailManager.csproj", "{0D8E0019-909A-4879-9088-B2927509264E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -113,6 +115,12 @@ Global {0677FB12-D582-4A7A-B266-EF2477A89688}.Release|Any CPU.ActiveCfg = Release|Any CPU {0677FB12-D582-4A7A-B266-EF2477A89688}.Release|Any CPU.Build.0 = Release|Any CPU {0677FB12-D582-4A7A-B266-EF2477A89688}.Release|x86.ActiveCfg = Release|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Debug|x86.ActiveCfg = Debug|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.Build.0 = Release|Any CPU + {0D8E0019-909A-4879-9088-B2927509264E}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Project/History.txt b/Project/History.txt index 039e3ec..3de5f3e 100644 --- a/Project/History.txt +++ b/Project/History.txt @@ -1,4 +1,17 @@ * 주간내역이 업데이트 되지 않는 데이터를 강조시키고 알림을 띄울 방안 확인\ + +191001 +재고 등록화면 프로젝트 입력칸 비활성화 => 완료 +재고 관리 화면 - 보관소 필터링 기능 추가 +재고 관리 등록 화면 규격의 값이 없어도 등록 가능 => 완료 +보관소 직접입력이 아닌 선택 하게 => 재고등록화면 수정, +품목정보에 공급처 선택 기능 => 공급처 칸(제일 우측) 추가 +주문도 보관소 별로 처리 => 완료 +안전용 주문등록화면 추가 => 보관소 기능 추가 +구매 신청 목록에 "보관소" 열 추가 + + +190927 chi 프로젝트 데이터중 날짜를 선택해서 입력가능 하게 함 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 6bdd023..376af7d 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.09.26.0830")] -[assembly: AssemblyFileVersion("19.09.26.0830")] +[assembly: AssemblyVersion("19.10.01.1400")] +[assembly: AssemblyFileVersion("19.10.01.1400")] diff --git a/Project/dsMSSQL.xss b/Project/dsMSSQL.xss index aab6c55..f6c1c56 100644 --- a/Project/dsMSSQL.xss +++ b/Project/dsMSSQL.xss @@ -4,14 +4,15 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - + + + + + + + \ No newline at end of file diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index bf64fb5..739bbcb 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -52,6 +52,7 @@ this.권한설정ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.customerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_kuntae = new System.Windows.Forms.ToolStripMenuItem(); + this.메일양식ToolStripMenuItem = 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(); @@ -68,8 +69,11 @@ this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); this.라인코드관리ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.personalInventoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.메일전송ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.mn_docu = new System.Windows.Forms.ToolStripMenuItem(); this.패치내역ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.메일내역ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); this.minutesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.holidayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.requestITemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -91,7 +95,6 @@ this.계정목록ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.그룹정보ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); this.임의테이블조작ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.cmTab.SuspendLayout(); @@ -202,7 +205,8 @@ this.itemsToolStripMenuItem, this.userInfoToolStripMenuItem, this.customerToolStripMenuItem, - this.mn_kuntae}); + this.mn_kuntae, + this.메일양식ToolStripMenuItem}); this.commonToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("commonToolStripMenuItem.Image"))); this.commonToolStripMenuItem.Name = "commonToolStripMenuItem"; this.commonToolStripMenuItem.Size = new System.Drawing.Size(93, 23); @@ -210,6 +214,7 @@ // // codesToolStripMenuItem // + this.codesToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("codesToolStripMenuItem.Image"))); this.codesToolStripMenuItem.Name = "codesToolStripMenuItem"; this.codesToolStripMenuItem.Size = new System.Drawing.Size(153, 24); this.codesToolStripMenuItem.Text = "공용코드"; @@ -267,6 +272,14 @@ this.mn_kuntae.Text = "월별 근무표"; this.mn_kuntae.Click += new System.EventHandler(this.월별근무표ToolStripMenuItem_Click); // + // 메일양식ToolStripMenuItem + // + this.메일양식ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일양식ToolStripMenuItem.Image"))); + this.메일양식ToolStripMenuItem.Name = "메일양식ToolStripMenuItem"; + this.메일양식ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.메일양식ToolStripMenuItem.Text = "메일 양식"; + this.메일양식ToolStripMenuItem.Click += new System.EventHandler(this.메일양식ToolStripMenuItem_Click); + // // mn_logdata // this.mn_logdata.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -292,7 +305,8 @@ this.mn_dailyhistory, this.mn_jago, this.mn_eq, - this.personalInventoryToolStripMenuItem}); + this.personalInventoryToolStripMenuItem, + this.메일전송ToolStripMenuItem1}); this.managementToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("managementToolStripMenuItem.Image"))); this.managementToolStripMenuItem.Name = "managementToolStripMenuItem"; this.managementToolStripMenuItem.Size = new System.Drawing.Size(65, 23); @@ -302,7 +316,7 @@ // this.mn_purchase.Image = ((System.Drawing.Image)(resources.GetObject("mn_purchase.Image"))); this.mn_purchase.Name = "mn_purchase"; - this.mn_purchase.Size = new System.Drawing.Size(153, 24); + this.mn_purchase.Size = new System.Drawing.Size(162, 24); this.mn_purchase.Text = "구매신청"; this.mn_purchase.Click += new System.EventHandler(this.nRPurchaseToolStripMenuItem_Click); // @@ -310,7 +324,7 @@ // this.mn_project.Image = ((System.Drawing.Image)(resources.GetObject("mn_project.Image"))); this.mn_project.Name = "mn_project"; - this.mn_project.Size = new System.Drawing.Size(153, 24); + this.mn_project.Size = new System.Drawing.Size(162, 24); this.mn_project.Text = "프로젝트"; this.mn_project.Click += new System.EventHandler(this.프로젝트ToolStripMenuItem_Click); // @@ -318,7 +332,7 @@ // this.mn_dailyhistory.Image = ((System.Drawing.Image)(resources.GetObject("mn_dailyhistory.Image"))); this.mn_dailyhistory.Name = "mn_dailyhistory"; - this.mn_dailyhistory.Size = new System.Drawing.Size(153, 24); + this.mn_dailyhistory.Size = new System.Drawing.Size(162, 24); this.mn_dailyhistory.Text = "업무일지"; this.mn_dailyhistory.Click += new System.EventHandler(this.업무일지ToolStripMenuItem1_Click); // @@ -329,7 +343,7 @@ this.재고현황ToolStripMenuItem}); this.mn_jago.Image = ((System.Drawing.Image)(resources.GetObject("mn_jago.Image"))); this.mn_jago.Name = "mn_jago"; - this.mn_jago.Size = new System.Drawing.Size(153, 24); + this.mn_jago.Size = new System.Drawing.Size(162, 24); this.mn_jago.Text = "품목재고"; this.mn_jago.Click += new System.EventHandler(this.재고관리ToolStripMenuItem_Click); // @@ -357,7 +371,7 @@ this.라인코드관리ToolStripMenuItem}); this.mn_eq.Image = ((System.Drawing.Image)(resources.GetObject("mn_eq.Image"))); this.mn_eq.Name = "mn_eq"; - this.mn_eq.Size = new System.Drawing.Size(153, 24); + this.mn_eq.Size = new System.Drawing.Size(162, 24); this.mn_eq.Text = "장비 목록"; // // dataFOLToolStripMenuItem @@ -397,15 +411,25 @@ // this.personalInventoryToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.personalInventoryToolStripMenuItem.Name = "personalInventoryToolStripMenuItem"; - this.personalInventoryToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.personalInventoryToolStripMenuItem.Size = new System.Drawing.Size(162, 24); this.personalInventoryToolStripMenuItem.Text = "개인별 물품"; this.personalInventoryToolStripMenuItem.Visible = false; this.personalInventoryToolStripMenuItem.Click += new System.EventHandler(this.personalInventoryToolStripMenuItem_Click); // + // 메일전송ToolStripMenuItem1 + // + this.메일전송ToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem1.Image"))); + this.메일전송ToolStripMenuItem1.Name = "메일전송ToolStripMenuItem1"; + this.메일전송ToolStripMenuItem1.Size = new System.Drawing.Size(162, 24); + this.메일전송ToolStripMenuItem1.Text = "메일자동발신"; + this.메일전송ToolStripMenuItem1.Click += new System.EventHandler(this.메일전송ToolStripMenuItem1_Click); + // // mn_docu // this.mn_docu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.패치내역ToolStripMenuItem1, + this.메일내역ToolStripMenuItem, + this.toolStripMenuItem3, this.minutesToolStripMenuItem, this.holidayToolStripMenuItem, this.requestITemToolStripMenuItem, @@ -421,62 +445,81 @@ // 패치내역ToolStripMenuItem1 // this.패치내역ToolStripMenuItem1.Name = "패치내역ToolStripMenuItem1"; - this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(149, 24); - this.패치내역ToolStripMenuItem1.Text = "패치내역"; + this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(152, 24); + this.패치내역ToolStripMenuItem1.Text = "패치 내역"; this.패치내역ToolStripMenuItem1.Click += new System.EventHandler(this.패치내역ToolStripMenuItem1_Click); // + // 메일내역ToolStripMenuItem + // + this.메일내역ToolStripMenuItem.Name = "메일내역ToolStripMenuItem"; + this.메일내역ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); + this.메일내역ToolStripMenuItem.Text = "메일 내역"; + this.메일내역ToolStripMenuItem.Click += new System.EventHandler(this.메일내역ToolStripMenuItem_Click); + // + // toolStripMenuItem3 + // + this.toolStripMenuItem3.Name = "toolStripMenuItem3"; + this.toolStripMenuItem3.Size = new System.Drawing.Size(149, 6); + // // minutesToolStripMenuItem // this.minutesToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.minutesToolStripMenuItem.Name = "minutesToolStripMenuItem"; - this.minutesToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.minutesToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.minutesToolStripMenuItem.Text = "회의록"; + this.minutesToolStripMenuItem.Visible = false; this.minutesToolStripMenuItem.Click += new System.EventHandler(this.minutesToolStripMenuItem_Click); // // holidayToolStripMenuItem // this.holidayToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.holidayToolStripMenuItem.Name = "holidayToolStripMenuItem"; - this.holidayToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.holidayToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.holidayToolStripMenuItem.Text = "휴가내역"; + this.holidayToolStripMenuItem.Visible = false; this.holidayToolStripMenuItem.Click += new System.EventHandler(this.holidayToolStripMenuItem_Click); // // requestITemToolStripMenuItem // this.requestITemToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.requestITemToolStripMenuItem.Name = "requestITemToolStripMenuItem"; - this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.requestITemToolStripMenuItem.Text = "견적요청"; + this.requestITemToolStripMenuItem.Visible = false; this.requestITemToolStripMenuItem.Click += new System.EventHandler(this.requestITemToolStripMenuItem_Click); // // freeBoardToolStripMenuItem // this.freeBoardToolStripMenuItem.Enabled = false; this.freeBoardToolStripMenuItem.Name = "freeBoardToolStripMenuItem"; - this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.freeBoardToolStripMenuItem.Text = "Free Board"; + this.freeBoardToolStripMenuItem.Visible = false; // // bugReportToolStripMenuItem // this.bugReportToolStripMenuItem.Enabled = false; this.bugReportToolStripMenuItem.Name = "bugReportToolStripMenuItem"; - this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.bugReportToolStripMenuItem.Text = "Bug Report"; + this.bugReportToolStripMenuItem.Visible = false; // // todoListToolStripMenuItem // this.todoListToolStripMenuItem.Enabled = false; this.todoListToolStripMenuItem.Name = "todoListToolStripMenuItem"; - this.todoListToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.todoListToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.todoListToolStripMenuItem.Text = "Todo List"; + this.todoListToolStripMenuItem.Visible = false; this.todoListToolStripMenuItem.Click += new System.EventHandler(this.todoListToolStripMenuItem_Click); // // 메일전송ToolStripMenuItem // this.메일전송ToolStripMenuItem.ForeColor = System.Drawing.Color.Red; this.메일전송ToolStripMenuItem.Name = "메일전송ToolStripMenuItem"; - this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(149, 24); + this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); this.메일전송ToolStripMenuItem.Text = "메일전송"; + this.메일전송ToolStripMenuItem.Visible = false; this.메일전송ToolStripMenuItem.Click += new System.EventHandler(this.메일전송ToolStripMenuItem_Click); // // 즐겨찾기ToolStripMenuItem @@ -501,7 +544,6 @@ this.계정목록ToolStripMenuItem, this.그룹정보ToolStripMenuItem1, this.toolStripMenuItem1, - this.toolStripMenuItem3, this.임의테이블조작ToolStripMenuItem}); this.btDev.ForeColor = System.Drawing.Color.Blue; this.btDev.Name = "btDev"; @@ -594,14 +636,6 @@ this.toolStripMenuItem1.Text = "Staff Grid"; this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); // - // toolStripMenuItem3 - // - this.toolStripMenuItem3.ForeColor = System.Drawing.Color.HotPink; - this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - 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"; @@ -713,10 +747,13 @@ private System.Windows.Forms.ToolStripMenuItem 관리ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 재고현황ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; - 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; + private System.Windows.Forms.ToolStripMenuItem 메일전송ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem 메일양식ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 메일내역ToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index d150b98..1e971ec 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -865,5 +865,26 @@ namespace Project { Menu_logData(); } + + private void 메일양식ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "MAILFORM"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fMailform()); + } + + private void 메일전송ToolStripMenuItem1_Click(object sender, EventArgs e) + { + string formkey = "AUTOMAIL"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.Mail.fAutoSendSetting()); + } + + private void 메일내역ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "MAILLIST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.Mail.fMailList()); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index 2196060..986a9fb 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -153,6 +153,26 @@ Mi4wAwEBAAAh+QQBAAAXACwAAAAAEAAQAAAIggAvCBwo0IJBCwQTFqwAAQEDhAoXTpgoYQDEhBYqTKDA kYKEBRclciRAoMEDCREuZtw40oKCCihVauxIIYEBmCkJruxYoWfMggYPsOyJU+WAABMqCJDgM+eFg0iV Aigg4WfBo0kFADAYwWnBABSkQjSIcYDYiAMtBHCwFW3ag24HBgQAOw== + + + + + R0lGODlhEAAQAIQAAHan1azQ4ldvj9vp9HSQruTr80lVa+vx9pu811SRuXifuj13uYyz2VFhe4Gt2UNL + XPL1+Orv+ufu9YOqxYyzzNHW3SkxQz5FVWag2T6CuZe3y5G0t+Do7+r0/77a9f///yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIrwA/CBxIsKDAAQESIkBAYYICBQQICCAgMMAACQMyaswo + oUKDih0SZMiwoKTJBQcEVDyAoEMHDy5hdnAg4eMHBBIQeNjJcyeDAjYRRNAQs+hMoAIpRNjQs6eDAgYE + TshpVCYAqAIV5GzKU0GBB1klMKjqEgMHsB8IiOW60+wFgQQgIGDgoC4AABgwADjw9oOAChAkSChAmIPh + AxUswBXAuEEDAwYePLhwwYJNg5gFBgQAOw== + + + + + R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 + /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY + gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi + SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG + CyQdKlaIsLHjggEBADs= @@ -235,6 +255,16 @@ AAAIfABJCBxIsKDBgwhJjFjIMOEIARQyGICAYMTBhyNEJCDAIMADiwIZChhhAAGHAQoUBJjAcESIly8v LDwA8+VCEThxghAYISfOhSCCBh2wsACAo0dbNhhxoIKEDh8wBFjQMKSGjBs7egBZcIQFByA2LCjA1WDL hQnTql2rNiAAOw== + + + + + R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 + /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY + gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi + SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG + CyQdKlaIsLHjggEBADs= diff --git a/SubProject/FCM0000/Board/fPatchList.Designer.cs b/SubProject/FCM0000/Board/fPatchList.Designer.cs index d08f821..bc52de4 100644 --- a/SubProject/FCM0000/Board/fPatchList.Designer.cs +++ b/SubProject/FCM0000/Board/fPatchList.Designer.cs @@ -30,9 +30,9 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPatchList)); - 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 textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsMSSQL = new FCM0000.dsMSSQL(); @@ -53,12 +53,17 @@ this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.btSearch = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); this.bn.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); + this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // bn @@ -200,11 +205,12 @@ this.tam.BoardTableAdapter = this.ta; this.tam.CommonTableAdapter = null; this.tam.CustomsTableAdapter = null; + this.tam.HolidayLIstTableAdapter = null; + this.tam.InventoryUserTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = null; this.tam.PurchaseTableAdapter = null; + this.tam.RequestItemTableAdapter = null; this.tam.StaffTableAdapter = null; this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; // @@ -215,11 +221,11 @@ // richTextBox1 // this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "contents", true)); - this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Right; + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom; this.richTextBox1.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.richTextBox1.Location = new System.Drawing.Point(716, 0); + this.richTextBox1.Location = new System.Drawing.Point(0, 450); this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(330, 550); + this.richTextBox1.Size = new System.Drawing.Size(1046, 100); this.richTextBox1.TabIndex = 3; this.richTextBox1.Text = ""; // @@ -227,11 +233,11 @@ // this.fpSpread1.AccessibleDescription = ""; this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; - this.fpSpread1.Location = new System.Drawing.Point(0, 0); + 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(716, 550); + this.fpSpread1.Size = new System.Drawing.Size(1046, 413); this.fpSpread1.TabIndex = 4; // // fpSpread1_Sheet1 @@ -243,7 +249,6 @@ this.fpSpread1_Sheet1.ColumnCount = 3; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; - this.fpSpread1_Sheet1.AutoCalculation = false; this.fpSpread1_Sheet1.AutoGenerateColumns = false; this.fpSpread1_Sheet1.AutoSortEnhancedContextMenu = true; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "구분"; @@ -252,15 +257,15 @@ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 36F; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "cate"; this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).Label = "구분"; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "title"; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(1).Label = "제목"; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "url"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Label = "요청자"; @@ -272,12 +277,50 @@ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.btSearch, + this.toolStripSeparator5, + this.toolStripButton2}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(1046, 37); + this.toolStrip1.TabIndex = 9; + this.toolStrip1.Text = "toolStrip1"; + // + // 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_1); + // + // toolStripSeparator5 + // + this.toolStripSeparator5.Name = "toolStripSeparator5"; + this.toolStripSeparator5.Size = new System.Drawing.Size(6, 37); + // + // 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); + // // fPatchList // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1046, 575); this.Controls.Add(this.fpSpread1); + this.Controls.Add(this.toolStrip1); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.bn); this.Name = "fPatchList"; @@ -290,6 +333,8 @@ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -317,5 +362,9 @@ private System.Windows.Forms.RichTextBox richTextBox1; private FarPoint.Win.Spread.FpSpread fpSpread1; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripButton btSearch; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; + private System.Windows.Forms.ToolStripButton toolStripButton2; } } \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fPatchList.cs b/SubProject/FCM0000/Board/fPatchList.cs index f0de588..65c463c 100644 --- a/SubProject/FCM0000/Board/fPatchList.cs +++ b/SubProject/FCM0000/Board/fPatchList.cs @@ -26,6 +26,7 @@ namespace FCM0000 e.Row["wdate"] = DateTime.Now; e.Row["bidx"] = 5; e.Row["pidx"] = -1; + e.Row["gcode"] = FCOMMON.info.Login.gcode; } private void fRequestItem_Load(object sender, EventArgs e) @@ -63,7 +64,7 @@ namespace FCM0000 { try { - this.ta.Fill(this.dsMSSQL.Board,5); + this.ta.Fill(this.dsMSSQL.Board,5, FCOMMON.info.Login.gcode); } catch (System.Exception ex) { @@ -85,6 +86,16 @@ namespace FCM0000 //else this.dsMSSQL.RequestItem.AddRequestItemRow(newdr); } + private void btSearch_Click_1(object sender, EventArgs e) + { + refreshData(); + } + + private void toolStripButton2_Click(object sender, EventArgs e) + { + this.Close(); + } + } } diff --git a/SubProject/FCM0000/Board/fPatchList.resx b/SubProject/FCM0000/Board/fPatchList.resx index 3ff5ca9..339ea35 100644 --- a/SubProject/FCM0000/Board/fPatchList.resx +++ b/SubProject/FCM0000/Board/fPatchList.resx @@ -198,6 +198,9 @@ dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= + + 17, 17 + 186, 17 @@ -207,4 +210,31 @@ 387, 17 + + 387, 17 + + + 608, 17 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPtZPPasJAEMbzPn0FwWA92JtP4NGKB1/DP7ei + QSsovkChh7ZBrCfpyR4sikopUgq9StFzM/UbZ5asSS4FfzAkO7vft5udiZMEnSBpk5dhFJmncjdHxXaG + A+9K4SbFT1luEwQBbXavVO5d0nI3ovnW5yeiMriiu+kt5asXbABEdgRigAUQDr+aHLU3lxoLl/yPJhvF + GsiYJ/vPdX5qPK3bVJ25VFukafztGQNsKHJ791I3w+8KcpNth8XDz5YxACI/gsR1J8sTYcO4UIzwv1gG + cTshgJ5IT8hChTMHsHi+v+fvffmxywVwN2FDkdsGEOK2ceu4feQ0tDqKyKMGqDfqjvprLzyswuX7Tf4E + dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR + DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il + zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij + KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY + UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC + + \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fRequestItem.Designer.cs b/SubProject/FCM0000/Board/fRequestItem.Designer.cs index 20a7e68..6de7824 100644 --- a/SubProject/FCM0000/Board/fRequestItem.Designer.cs +++ b/SubProject/FCM0000/Board/fRequestItem.Designer.cs @@ -502,8 +502,6 @@ this.tam.CommonTableAdapter = null; this.tam.CustomsTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = null; this.tam.PurchaseTableAdapter = null; this.tam.RequestItemTableAdapter = this.ta; diff --git a/SubProject/FCM0000/Board/fRequestItem.cs b/SubProject/FCM0000/Board/fRequestItem.cs index 6a07eb1..d748c17 100644 --- a/SubProject/FCM0000/Board/fRequestItem.cs +++ b/SubProject/FCM0000/Board/fRequestItem.cs @@ -100,11 +100,11 @@ namespace FCM0000 //자로에서 불러와서 그 값을 가져온다.s string subject = "[AMKOR-K4] 견적문의"; - dsMSSQLTableAdapters.MailFormTableAdapter taMF = new dsMSSQLTableAdapters.MailFormTableAdapter(); - var data = taMF.GetbyCate("BY"); + var taMF = new DSMailTableAdapters.MailFormTableAdapter(); + var data = taMF.GetByCate(FCOMMON.info.Login.gcode, "BY"); if (data != null && data.Rows.Count > 0) { - var drForm = data.Rows[0] as dsMSSQL.MailFormRow; + var drForm = data.Rows[0] as DSMail.MailFormRow; subject = drForm.subject; } @@ -151,11 +151,11 @@ namespace FCM0000 //자로에서 불러와서 그 값을 가져온다.s string subject = "[AMKOR-K4] 견적문의"; - dsMSSQLTableAdapters.MailFormTableAdapter taMF = new dsMSSQLTableAdapters.MailFormTableAdapter(); - var data = taMF.GetbyCate("BY"); + var taMF = new DSMailTableAdapters.MailFormTableAdapter(); + var data = taMF.GetByCate(FCOMMON.info.Login.gcode, "BY"); if (data != null && data.Rows.Count > 0) { - var drForm = data.Rows[0] as dsMSSQL.MailFormRow; + var drForm = data.Rows[0] as DSMail.MailFormRow; subject = drForm.subject; } diff --git a/SubProject/FCM0000/Board/fRequestItem_Add.Designer.cs b/SubProject/FCM0000/Board/fRequestItem_Add.Designer.cs index 648313e..f2ec0e9 100644 --- a/SubProject/FCM0000/Board/fRequestItem_Add.Designer.cs +++ b/SubProject/FCM0000/Board/fRequestItem_Add.Designer.cs @@ -212,8 +212,6 @@ this.tam.BoardTableAdapter = null; this.tam.CommonTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = null; this.tam.RequestItemTableAdapter = this.ta; this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; diff --git a/SubProject/FCM0000/Board/fRequestItem_Add.cs b/SubProject/FCM0000/Board/fRequestItem_Add.cs index b190c13..eb3d73c 100644 --- a/SubProject/FCM0000/Board/fRequestItem_Add.cs +++ b/SubProject/FCM0000/Board/fRequestItem_Add.cs @@ -33,11 +33,11 @@ namespace FCM0000 if (this.dr.RowState == DataRowState.Detached) { //자로에서 불러와서 그 값을 가져온다. - dsMSSQLTableAdapters.MailFormTableAdapter taMF = new dsMSSQLTableAdapters.MailFormTableAdapter(); - var data = taMF.GetbyCate("BY"); + var taMF = new DSMailTableAdapters.MailFormTableAdapter(); + var data = taMF.GetByCate(FCOMMON.info.Login.gcode, "BY"); if (data != null && data.Rows.Count > 0) { - var drForm = data.Rows[0] as dsMSSQL.MailFormRow; + var drForm = data.Rows[0] as DSMail.MailFormRow; this.tbItem.Text = drForm.title; this.tbRemark.Html = drForm.body; @@ -88,11 +88,11 @@ namespace FCM0000 if (dlg != System.Windows.Forms.DialogResult.Yes) return; //자로에서 불러와서 그 값을 가져온다. - dsMSSQLTableAdapters.MailFormTableAdapter taMF = new dsMSSQLTableAdapters.MailFormTableAdapter(); - var data = taMF.GetbyCate("BY"); + var taMF = new DSMailTableAdapters.MailFormTableAdapter(); + var data = taMF.GetByCate( FCOMMON.info.Login.gcode, "BY"); if (data != null && data.Rows.Count > 0) { - var drForm = data.Rows[0] as dsMSSQL.MailFormRow; + var drForm = data.Rows[0] as DSMail.MailFormRow; this.tbRemark.Html = drForm.body; } } diff --git a/SubProject/FCM0000/DSInventory.Designer.cs b/SubProject/FCM0000/DSInventory.Designer.cs index aff3105..5a8d84b 100644 --- a/SubProject/FCM0000/DSInventory.Designer.cs +++ b/SubProject/FCM0000/DSInventory.Designer.cs @@ -3912,21 +3912,22 @@ WHERE (idx = @Original_idx)"; B.model AS itemModel, A.project, A.projectName, A.wuid, A.wdate, B.sid FROM Inventory AS A LEFT OUTER JOIN Items AS B ON A.item = B.idx -WHERE (A.gcode = @gcode) AND (A.pdate BETWEEN @sd AND @ed) AND (ISNULL(A.uid, '') LIKE @uid) AND (A.invtype LIKE @invtype) +WHERE (A.gcode = @gcode) AND (A.pdate BETWEEN @sd AND @ed) AND (A.invtype LIKE @invtype) AND (ISNULL(A.uid, N'') LIKE @uid) AND (ISNULL(A.place, N'') LIKE @place) ORDER BY A.pdate DESC"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@invtype", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", 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(DSInventory.vInventoryDataTable dataTable, string gcode, string sd, string ed, string uid, string invtype) { + public virtual int Fill(DSInventory.vInventoryDataTable dataTable, string gcode, string sd, string ed, string invtype, string uid, string place) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -3946,17 +3947,23 @@ ORDER BY A.pdate DESC"; else { this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); } + if ((invtype == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(invtype)); + } if ((uid == null)) { throw new global::System.ArgumentNullException("uid"); } else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(uid)); + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(uid)); } - if ((invtype == null)) { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + if ((place == null)) { + throw new global::System.ArgumentNullException("place"); } else { - this.Adapter.SelectCommand.Parameters[4].Value = ((string)(invtype)); + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(place)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); @@ -3969,7 +3976,7 @@ ORDER BY A.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 DSInventory.vInventoryDataTable GetData(string gcode, string sd, string ed, string uid, string invtype) { + public virtual DSInventory.vInventoryDataTable GetData(string gcode, string sd, string ed, string invtype, string uid, string place) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -3989,17 +3996,23 @@ ORDER BY A.pdate DESC"; else { this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); } + if ((invtype == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(invtype)); + } if ((uid == null)) { throw new global::System.ArgumentNullException("uid"); } else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(uid)); + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(uid)); } - if ((invtype == null)) { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + if ((place == null)) { + throw new global::System.ArgumentNullException("place"); } else { - this.Adapter.SelectCommand.Parameters[4].Value = ((string)(invtype)); + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(place)); } DSInventory.vInventoryDataTable dataTable = new DSInventory.vInventoryDataTable(); this.Adapter.Fill(dataTable); diff --git a/SubProject/FCM0000/DSInventory.xsd b/SubProject/FCM0000/DSInventory.xsd index e305189..7ffad77 100644 --- a/SubProject/FCM0000/DSInventory.xsd +++ b/SubProject/FCM0000/DSInventory.xsd @@ -249,14 +249,15 @@ VALUES (@gcode,@pdate,@invtype,@uid,@serial,@dr_qty,@dr_amt,@cr_qty,@cr_amt,@pl B.model AS itemModel, A.project, A.projectName, A.wuid, A.wdate, B.sid FROM Inventory AS A LEFT OUTER JOIN Items AS B ON A.item = B.idx -WHERE (A.gcode = @gcode) AND (A.pdate BETWEEN @sd AND @ed) AND (ISNULL(A.uid, '') LIKE @uid) AND (A.invtype LIKE @invtype) +WHERE (A.gcode = @gcode) AND (A.pdate BETWEEN @sd AND @ed) AND (A.invtype LIKE @invtype) AND (ISNULL(A.uid, N'') LIKE @uid) AND (ISNULL(A.place, N'') LIKE @place) ORDER BY A.pdate DESC - - - + + + + - + @@ -322,7 +323,7 @@ WHERE (idx = @Original_idx) - + @@ -413,7 +414,7 @@ WHERE (idx = @Original_idx) - + diff --git a/SubProject/FCM0000/DSInventory.xss b/SubProject/FCM0000/DSInventory.xss index b5c3c36..f5d606e 100644 --- a/SubProject/FCM0000/DSInventory.xss +++ b/SubProject/FCM0000/DSInventory.xss @@ -6,7 +6,7 @@ --> - + diff --git a/SubProject/FCM0000/DSMail.Designer.cs b/SubProject/FCM0000/DSMail.Designer.cs new file mode 100644 index 0000000..36448cd --- /dev/null +++ b/SubProject/FCM0000/DSMail.Designer.cs @@ -0,0 +1,5940 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace FCM0000 { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DSMail")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DSMail : global::System.Data.DataSet { + + private MailFormDataTable tableMailForm; + + private MailDataDataTable tableMailData; + + private MailAutoDataTable tableMailAuto; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DSMail() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DSMail(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + 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["MailForm"] != null)) { + base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); + } + if ((ds.Tables["MailData"] != null)) { + base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); + } + if ((ds.Tables["MailAuto"] != null)) { + base.Tables.Add(new MailAutoDataTable(ds.Tables["MailAuto"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 MailFormDataTable MailForm { + get { + return this.tableMailForm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 MailDataDataTable MailData { + get { + return this.tableMailData; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 MailAutoDataTable MailAuto { + get { + return this.tableMailAuto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataSet Clone() { + DSMail cln = ((DSMail)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["MailForm"] != null)) { + base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); + } + if ((ds.Tables["MailData"] != null)) { + base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); + } + if ((ds.Tables["MailAuto"] != null)) { + base.Tables.Add(new MailAutoDataTable(ds.Tables["MailAuto"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars(bool initTable) { + this.tableMailForm = ((MailFormDataTable)(base.Tables["MailForm"])); + if ((initTable == true)) { + if ((this.tableMailForm != null)) { + this.tableMailForm.InitVars(); + } + } + this.tableMailData = ((MailDataDataTable)(base.Tables["MailData"])); + if ((initTable == true)) { + if ((this.tableMailData != null)) { + this.tableMailData.InitVars(); + } + } + this.tableMailAuto = ((MailAutoDataTable)(base.Tables["MailAuto"])); + if ((initTable == true)) { + if ((this.tableMailAuto != null)) { + this.tableMailAuto.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.DataSetName = "DSMail"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DSMail.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableMailForm = new MailFormDataTable(); + base.Tables.Add(this.tableMailForm); + this.tableMailData = new MailDataDataTable(); + base.Tables.Add(this.tableMailData); + this.tableMailAuto = new MailAutoDataTable(); + base.Tables.Add(this.tableMailAuto); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMailForm() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMailData() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMailAuto() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DSMail ds = new DSMail(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + 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; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MailFormRowChangeEventHandler(object sender, MailFormRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MailDataRowChangeEventHandler(object sender, MailDataRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MailAutoRowChangeEventHandler(object sender, MailAutoRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MailFormDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columncate; + + private global::System.Data.DataColumn columntitle; + + private global::System.Data.DataColumn columntolist; + + private global::System.Data.DataColumn columnbcc; + + private global::System.Data.DataColumn columncc; + + private global::System.Data.DataColumn columnsubject; + + private global::System.Data.DataColumn columntail; + + private global::System.Data.DataColumn columnbody; + + private global::System.Data.DataColumn columnselfTo; + + private global::System.Data.DataColumn columnselfCC; + + private global::System.Data.DataColumn columnselfBCC; + + 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 MailFormDataTable() { + this.TableName = "MailForm"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailFormDataTable(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 MailFormDataTable(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 cateColumn { + get { + return this.columncate; + } + } + + [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 tolistColumn { + get { + return this.columntolist; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bccColumn { + get { + return this.columnbcc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ccColumn { + get { + return this.columncc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn subjectColumn { + get { + return this.columnsubject; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn tailColumn { + get { + return this.columntail; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bodyColumn { + get { + return this.columnbody; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn selfToColumn { + get { + return this.columnselfTo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn selfCCColumn { + get { + return this.columnselfCC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn selfBCCColumn { + get { + return this.columnselfBCC; + } + } + + [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 MailFormRow this[int index] { + get { + return ((MailFormRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailFormRowChangeEventHandler MailFormRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailFormRowChangeEventHandler MailFormRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailFormRowChangeEventHandler MailFormRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailFormRowChangeEventHandler MailFormRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMailFormRow(MailFormRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailFormRow AddMailFormRow(string gcode, string cate, string title, string tolist, string bcc, string cc, string subject, string tail, string body, bool selfTo, bool selfCC, bool selfBCC, string wuid, System.DateTime wdate) { + MailFormRow rowMailFormRow = ((MailFormRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + gcode, + cate, + title, + tolist, + bcc, + cc, + subject, + tail, + body, + selfTo, + selfCC, + selfBCC, + wuid, + wdate}; + rowMailFormRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMailFormRow); + return rowMailFormRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailFormRow FindByidx(int idx) { + return ((MailFormRow)(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() { + MailFormDataTable cln = ((MailFormDataTable)(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 MailFormDataTable(); + } + + [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.columncate = base.Columns["cate"]; + this.columntitle = base.Columns["title"]; + this.columntolist = base.Columns["tolist"]; + this.columnbcc = base.Columns["bcc"]; + this.columncc = base.Columns["cc"]; + this.columnsubject = base.Columns["subject"]; + this.columntail = base.Columns["tail"]; + this.columnbody = base.Columns["body"]; + this.columnselfTo = base.Columns["selfTo"]; + this.columnselfCC = base.Columns["selfCC"]; + this.columnselfBCC = base.Columns["selfBCC"]; + 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.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncate); + this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntitle); + this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntolist); + this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbcc); + this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncc); + this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsubject); + this.columntail = new global::System.Data.DataColumn("tail", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntail); + this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbody); + this.columnselfTo = new global::System.Data.DataColumn("selfTo", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnselfTo); + this.columnselfCC = new global::System.Data.DataColumn("selfCC", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnselfCC); + this.columnselfBCC = new global::System.Data.DataColumn("selfBCC", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnselfBCC); + 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 = 10; + this.columncate.MaxLength = 2; + this.columntitle.MaxLength = 100; + this.columntolist.MaxLength = 2147483647; + this.columnbcc.MaxLength = 2147483647; + this.columncc.MaxLength = 2147483647; + this.columnsubject.MaxLength = 2147483647; + this.columntail.MaxLength = 2147483647; + this.columnbody.MaxLength = 2147483647; + this.columnwuid.AllowDBNull = false; + this.columnwuid.MaxLength = 20; + this.columnwdate.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailFormRow NewMailFormRow() { + return ((MailFormRow)(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 MailFormRow(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(MailFormRow); + } + + [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.MailFormRowChanged != null)) { + this.MailFormRowChanged(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowChanging != null)) { + this.MailFormRowChanging(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowDeleted != null)) { + this.MailFormRowDeleted(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowDeleting != null)) { + this.MailFormRowDeleting(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMailFormRow(MailFormRow 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(); + DSMail ds = new DSMail(); + 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 = "MailFormDataTable"; + 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 MailDataDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columnproject; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columncate; + + private global::System.Data.DataColumn columnpdate; + + private global::System.Data.DataColumn columnsubject; + + private global::System.Data.DataColumn columntolist; + + private global::System.Data.DataColumn columnbcc; + + private global::System.Data.DataColumn columncc; + + private global::System.Data.DataColumn columnbody; + + private global::System.Data.DataColumn columnwuid; + + private global::System.Data.DataColumn columnwdate; + + private global::System.Data.DataColumn columnSendOK; + + private global::System.Data.DataColumn columnfromlist; + + private global::System.Data.DataColumn columnSendMsg; + + private global::System.Data.DataColumn columnaidx; + + private global::System.Data.DataColumn columnatime; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailDataDataTable() { + this.TableName = "MailData"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailDataDataTable(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 MailDataDataTable(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 projectColumn { + get { + return this.columnproject; + } + } + + [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 cateColumn { + get { + return this.columncate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pdateColumn { + get { + return this.columnpdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn subjectColumn { + get { + return this.columnsubject; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn tolistColumn { + get { + return this.columntolist; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bccColumn { + get { + return this.columnbcc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ccColumn { + get { + return this.columncc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bodyColumn { + get { + return this.columnbody; + } + } + + [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")] + public global::System.Data.DataColumn SendOKColumn { + get { + return this.columnSendOK; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn fromlistColumn { + get { + return this.columnfromlist; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SendMsgColumn { + get { + return this.columnSendMsg; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn aidxColumn { + get { + return this.columnaidx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn atimeColumn { + get { + return this.columnatime; + } + } + + [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 MailDataRow this[int index] { + get { + return ((MailDataRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailDataRowChangeEventHandler MailDataRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailDataRowChangeEventHandler MailDataRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailDataRowChangeEventHandler MailDataRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailDataRowChangeEventHandler MailDataRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMailDataRow(MailDataRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailDataRow AddMailDataRow( + int project, + string gcode, + string cate, + string pdate, + string subject, + string tolist, + string bcc, + string cc, + string body, + string wuid, + System.DateTime wdate, + bool SendOK, + string fromlist, + string SendMsg, + int aidx, + string atime) { + MailDataRow rowMailDataRow = ((MailDataRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + project, + gcode, + cate, + pdate, + subject, + tolist, + bcc, + cc, + body, + wuid, + wdate, + SendOK, + fromlist, + SendMsg, + aidx, + atime}; + rowMailDataRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMailDataRow); + return rowMailDataRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailDataRow FindByidx(int idx) { + return ((MailDataRow)(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() { + MailDataDataTable cln = ((MailDataDataTable)(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 MailDataDataTable(); + } + + [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.columnproject = base.Columns["project"]; + this.columngcode = base.Columns["gcode"]; + this.columncate = base.Columns["cate"]; + this.columnpdate = base.Columns["pdate"]; + this.columnsubject = base.Columns["subject"]; + this.columntolist = base.Columns["tolist"]; + this.columnbcc = base.Columns["bcc"]; + this.columncc = base.Columns["cc"]; + this.columnbody = base.Columns["body"]; + this.columnwuid = base.Columns["wuid"]; + this.columnwdate = base.Columns["wdate"]; + this.columnSendOK = base.Columns["SendOK"]; + this.columnfromlist = base.Columns["fromlist"]; + this.columnSendMsg = base.Columns["SendMsg"]; + this.columnaidx = base.Columns["aidx"]; + this.columnatime = base.Columns["atime"]; + } + + [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.columnproject = new global::System.Data.DataColumn("project", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnproject); + this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngcode); + this.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncate); + this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpdate); + this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsubject); + this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntolist); + this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbcc); + this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncc); + this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbody); + 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.columnSendOK = new global::System.Data.DataColumn("SendOK", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSendOK); + this.columnfromlist = new global::System.Data.DataColumn("fromlist", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnfromlist); + this.columnSendMsg = new global::System.Data.DataColumn("SendMsg", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSendMsg); + this.columnaidx = new global::System.Data.DataColumn("aidx", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnaidx); + this.columnatime = new global::System.Data.DataColumn("atime", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnatime); + 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 = 10; + this.columncate.MaxLength = 2; + this.columnpdate.MaxLength = 10; + this.columnsubject.MaxLength = 2147483647; + this.columntolist.MaxLength = 2147483647; + this.columnbcc.MaxLength = 2147483647; + this.columncc.MaxLength = 2147483647; + this.columnbody.MaxLength = 2147483647; + this.columnwuid.AllowDBNull = false; + this.columnwuid.MaxLength = 20; + this.columnwdate.AllowDBNull = false; + this.columnfromlist.MaxLength = 2147483647; + this.columnSendMsg.MaxLength = 255; + this.columnatime.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailDataRow NewMailDataRow() { + return ((MailDataRow)(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 MailDataRow(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(MailDataRow); + } + + [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.MailDataRowChanged != null)) { + this.MailDataRowChanged(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowChanging != null)) { + this.MailDataRowChanging(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowDeleted != null)) { + this.MailDataRowDeleted(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowDeleting != null)) { + this.MailDataRowDeleting(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMailDataRow(MailDataRow 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(); + DSMail ds = new DSMail(); + 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 = "MailDataDataTable"; + 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 MailAutoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columnenable; + + private global::System.Data.DataColumn columnfidx; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columnfromlist; + + private global::System.Data.DataColumn columntolist; + + private global::System.Data.DataColumn columnbcc; + + private global::System.Data.DataColumn columncc; + + private global::System.Data.DataColumn columnsdate; + + private global::System.Data.DataColumn columnedate; + + private global::System.Data.DataColumn columnstime; + + private global::System.Data.DataColumn columnsday; + + private global::System.Data.DataColumn columnwuid; + + private global::System.Data.DataColumn columnwdate; + + private global::System.Data.DataColumn columnsubject; + + private global::System.Data.DataColumn columnbody; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailAutoDataTable() { + this.TableName = "MailAuto"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailAutoDataTable(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 MailAutoDataTable(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 enableColumn { + get { + return this.columnenable; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn fidxColumn { + get { + return this.columnfidx; + } + } + + [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 fromlistColumn { + get { + return this.columnfromlist; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn tolistColumn { + get { + return this.columntolist; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bccColumn { + get { + return this.columnbcc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ccColumn { + get { + return this.columncc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn sdateColumn { + get { + return this.columnsdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn edateColumn { + get { + return this.columnedate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn stimeColumn { + get { + return this.columnstime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn sdayColumn { + get { + return this.columnsday; + } + } + + [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")] + public global::System.Data.DataColumn subjectColumn { + get { + return this.columnsubject; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn bodyColumn { + get { + return this.columnbody; + } + } + + [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 MailAutoRow this[int index] { + get { + return ((MailAutoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailAutoRowChangeEventHandler MailAutoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailAutoRowChangeEventHandler MailAutoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailAutoRowChangeEventHandler MailAutoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MailAutoRowChangeEventHandler MailAutoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMailAutoRow(MailAutoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailAutoRow AddMailAutoRow(bool enable, int fidx, string gcode, string fromlist, string tolist, string bcc, string cc, string sdate, string edate, string stime, byte[] sday, string wuid, System.DateTime wdate, string subject, string body) { + MailAutoRow rowMailAutoRow = ((MailAutoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + enable, + fidx, + gcode, + fromlist, + tolist, + bcc, + cc, + sdate, + edate, + stime, + sday, + wuid, + wdate, + subject, + body}; + rowMailAutoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMailAutoRow); + return rowMailAutoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailAutoRow FindByidx(int idx) { + return ((MailAutoRow)(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() { + MailAutoDataTable cln = ((MailAutoDataTable)(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 MailAutoDataTable(); + } + + [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.columnenable = base.Columns["enable"]; + this.columnfidx = base.Columns["fidx"]; + this.columngcode = base.Columns["gcode"]; + this.columnfromlist = base.Columns["fromlist"]; + this.columntolist = base.Columns["tolist"]; + this.columnbcc = base.Columns["bcc"]; + this.columncc = base.Columns["cc"]; + this.columnsdate = base.Columns["sdate"]; + this.columnedate = base.Columns["edate"]; + this.columnstime = base.Columns["stime"]; + this.columnsday = base.Columns["sday"]; + this.columnwuid = base.Columns["wuid"]; + this.columnwdate = base.Columns["wdate"]; + this.columnsubject = base.Columns["subject"]; + this.columnbody = base.Columns["body"]; + } + + [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.columnenable = new global::System.Data.DataColumn("enable", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnenable); + this.columnfidx = new global::System.Data.DataColumn("fidx", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnfidx); + this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngcode); + this.columnfromlist = new global::System.Data.DataColumn("fromlist", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnfromlist); + this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntolist); + this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbcc); + this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncc); + this.columnsdate = new global::System.Data.DataColumn("sdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsdate); + this.columnedate = new global::System.Data.DataColumn("edate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnedate); + this.columnstime = new global::System.Data.DataColumn("stime", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnstime); + this.columnsday = new global::System.Data.DataColumn("sday", typeof(byte[]), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsday); + 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.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsubject); + this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbody); + 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.columnfidx.AllowDBNull = false; + this.columngcode.AllowDBNull = false; + this.columngcode.MaxLength = 10; + this.columnfromlist.MaxLength = 2147483647; + this.columntolist.MaxLength = 2147483647; + this.columnbcc.MaxLength = 2147483647; + this.columncc.MaxLength = 2147483647; + this.columnsdate.MaxLength = 10; + this.columnedate.MaxLength = 10; + this.columnstime.MaxLength = 8; + this.columnwuid.AllowDBNull = false; + this.columnwuid.MaxLength = 20; + this.columnwdate.AllowDBNull = false; + this.columnsubject.MaxLength = 2147483647; + this.columnbody.MaxLength = 2147483647; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MailAutoRow NewMailAutoRow() { + return ((MailAutoRow)(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 MailAutoRow(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(MailAutoRow); + } + + [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.MailAutoRowChanged != null)) { + this.MailAutoRowChanged(this, new MailAutoRowChangeEvent(((MailAutoRow)(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.MailAutoRowChanging != null)) { + this.MailAutoRowChanging(this, new MailAutoRowChangeEvent(((MailAutoRow)(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.MailAutoRowDeleted != null)) { + this.MailAutoRowDeleted(this, new MailAutoRowChangeEvent(((MailAutoRow)(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.MailAutoRowDeleting != null)) { + this.MailAutoRowDeleting(this, new MailAutoRowChangeEvent(((MailAutoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMailAutoRow(MailAutoRow 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(); + DSMail ds = new DSMail(); + 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 = "MailAutoDataTable"; + 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 strongly named DataRow class. + /// + public partial class MailFormRow : global::System.Data.DataRow { + + private MailFormDataTable tableMailForm; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailFormRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMailForm = ((MailFormDataTable)(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.tableMailForm.idxColumn])); + } + set { + this[this.tableMailForm.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.tableMailForm.gcodeColumn])); + } + set { + this[this.tableMailForm.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string cate { + get { + if (this.IscateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.cateColumn])); + } + } + set { + this[this.tableMailForm.cateColumn] = 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.tableMailForm.titleColumn])); + } + } + set { + this[this.tableMailForm.titleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string tolist { + get { + if (this.IstolistNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.tolistColumn])); + } + } + set { + this[this.tableMailForm.tolistColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string bcc { + get { + if (this.IsbccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.bccColumn])); + } + } + set { + this[this.tableMailForm.bccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string cc { + get { + if (this.IsccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.ccColumn])); + } + } + set { + this[this.tableMailForm.ccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string subject { + get { + if (this.IssubjectNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.subjectColumn])); + } + } + set { + this[this.tableMailForm.subjectColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string tail { + get { + if (this.IstailNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.tailColumn])); + } + } + set { + this[this.tableMailForm.tailColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string body { + get { + if (this.IsbodyNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailForm.bodyColumn])); + } + } + set { + this[this.tableMailForm.bodyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool selfTo { + get { + try { + return ((bool)(this[this.tableMailForm.selfToColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'MailForm\' 테이블의 \'selfTo\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableMailForm.selfToColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool selfCC { + get { + try { + return ((bool)(this[this.tableMailForm.selfCCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'MailForm\' 테이블의 \'selfCC\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableMailForm.selfCCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool selfBCC { + get { + try { + return ((bool)(this[this.tableMailForm.selfBCCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'MailForm\' 테이블의 \'selfBCC\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableMailForm.selfBCCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string wuid { + get { + return ((string)(this[this.tableMailForm.wuidColumn])); + } + set { + this[this.tableMailForm.wuidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime wdate { + get { + return ((global::System.DateTime)(this[this.tableMailForm.wdateColumn])); + } + set { + this[this.tableMailForm.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscateNull() { + return this.IsNull(this.tableMailForm.cateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcateNull() { + this[this.tableMailForm.cateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstitleNull() { + return this.IsNull(this.tableMailForm.titleColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettitleNull() { + this[this.tableMailForm.titleColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstolistNull() { + return this.IsNull(this.tableMailForm.tolistColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettolistNull() { + this[this.tableMailForm.tolistColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbccNull() { + return this.IsNull(this.tableMailForm.bccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbccNull() { + this[this.tableMailForm.bccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsccNull() { + return this.IsNull(this.tableMailForm.ccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetccNull() { + this[this.tableMailForm.ccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssubjectNull() { + return this.IsNull(this.tableMailForm.subjectColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsubjectNull() { + this[this.tableMailForm.subjectColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstailNull() { + return this.IsNull(this.tableMailForm.tailColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettailNull() { + this[this.tableMailForm.tailColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbodyNull() { + return this.IsNull(this.tableMailForm.bodyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbodyNull() { + this[this.tableMailForm.bodyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsselfToNull() { + return this.IsNull(this.tableMailForm.selfToColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetselfToNull() { + this[this.tableMailForm.selfToColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsselfCCNull() { + return this.IsNull(this.tableMailForm.selfCCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetselfCCNull() { + this[this.tableMailForm.selfCCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsselfBCCNull() { + return this.IsNull(this.tableMailForm.selfBCCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetselfBCCNull() { + this[this.tableMailForm.selfBCCColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MailDataRow : global::System.Data.DataRow { + + private MailDataDataTable tableMailData; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailDataRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMailData = ((MailDataDataTable)(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.tableMailData.idxColumn])); + } + set { + this[this.tableMailData.idxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int project { + get { + try { + return ((int)(this[this.tableMailData.projectColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'project\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableMailData.projectColumn] = 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.tableMailData.gcodeColumn])); + } + set { + this[this.tableMailData.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string cate { + get { + if (this.IscateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.cateColumn])); + } + } + set { + this[this.tableMailData.cateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string pdate { + get { + if (this.IspdateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.pdateColumn])); + } + } + set { + this[this.tableMailData.pdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string subject { + get { + if (this.IssubjectNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.subjectColumn])); + } + } + set { + this[this.tableMailData.subjectColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string tolist { + get { + if (this.IstolistNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.tolistColumn])); + } + } + set { + this[this.tableMailData.tolistColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string bcc { + get { + if (this.IsbccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.bccColumn])); + } + } + set { + this[this.tableMailData.bccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string cc { + get { + if (this.IsccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.ccColumn])); + } + } + set { + this[this.tableMailData.ccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string body { + get { + if (this.IsbodyNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.bodyColumn])); + } + } + set { + this[this.tableMailData.bodyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string wuid { + get { + return ((string)(this[this.tableMailData.wuidColumn])); + } + set { + this[this.tableMailData.wuidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime wdate { + get { + return ((global::System.DateTime)(this[this.tableMailData.wdateColumn])); + } + set { + this[this.tableMailData.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool SendOK { + get { + if (this.IsSendOKNull()) { + return false; + } + else { + return ((bool)(this[this.tableMailData.SendOKColumn])); + } + } + set { + this[this.tableMailData.SendOKColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string fromlist { + get { + if (this.IsfromlistNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.fromlistColumn])); + } + } + set { + this[this.tableMailData.fromlistColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string SendMsg { + get { + if (this.IsSendMsgNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.SendMsgColumn])); + } + } + set { + this[this.tableMailData.SendMsgColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int aidx { + get { + if (this.IsaidxNull()) { + return -1; + } + else { + return ((int)(this[this.tableMailData.aidxColumn])); + } + } + set { + this[this.tableMailData.aidxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string atime { + get { + if (this.IsatimeNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailData.atimeColumn])); + } + } + set { + this[this.tableMailData.atimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsprojectNull() { + return this.IsNull(this.tableMailData.projectColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetprojectNull() { + this[this.tableMailData.projectColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscateNull() { + return this.IsNull(this.tableMailData.cateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcateNull() { + this[this.tableMailData.cateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspdateNull() { + return this.IsNull(this.tableMailData.pdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpdateNull() { + this[this.tableMailData.pdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssubjectNull() { + return this.IsNull(this.tableMailData.subjectColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsubjectNull() { + this[this.tableMailData.subjectColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstolistNull() { + return this.IsNull(this.tableMailData.tolistColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettolistNull() { + this[this.tableMailData.tolistColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbccNull() { + return this.IsNull(this.tableMailData.bccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbccNull() { + this[this.tableMailData.bccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsccNull() { + return this.IsNull(this.tableMailData.ccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetccNull() { + this[this.tableMailData.ccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbodyNull() { + return this.IsNull(this.tableMailData.bodyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbodyNull() { + this[this.tableMailData.bodyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSendOKNull() { + return this.IsNull(this.tableMailData.SendOKColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSendOKNull() { + this[this.tableMailData.SendOKColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsfromlistNull() { + return this.IsNull(this.tableMailData.fromlistColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetfromlistNull() { + this[this.tableMailData.fromlistColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSendMsgNull() { + return this.IsNull(this.tableMailData.SendMsgColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSendMsgNull() { + this[this.tableMailData.SendMsgColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsaidxNull() { + return this.IsNull(this.tableMailData.aidxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetaidxNull() { + this[this.tableMailData.aidxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsatimeNull() { + return this.IsNull(this.tableMailData.atimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetatimeNull() { + this[this.tableMailData.atimeColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MailAutoRow : global::System.Data.DataRow { + + private MailAutoDataTable tableMailAuto; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MailAutoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMailAuto = ((MailAutoDataTable)(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.tableMailAuto.idxColumn])); + } + set { + this[this.tableMailAuto.idxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool enable { + get { + if (this.IsenableNull()) { + return false; + } + else { + return ((bool)(this[this.tableMailAuto.enableColumn])); + } + } + set { + this[this.tableMailAuto.enableColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int fidx { + get { + return ((int)(this[this.tableMailAuto.fidxColumn])); + } + set { + this[this.tableMailAuto.fidxColumn] = 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.tableMailAuto.gcodeColumn])); + } + set { + this[this.tableMailAuto.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string fromlist { + get { + if (this.IsfromlistNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.fromlistColumn])); + } + } + set { + this[this.tableMailAuto.fromlistColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string tolist { + get { + if (this.IstolistNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.tolistColumn])); + } + } + set { + this[this.tableMailAuto.tolistColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string bcc { + get { + if (this.IsbccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.bccColumn])); + } + } + set { + this[this.tableMailAuto.bccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string cc { + get { + if (this.IsccNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.ccColumn])); + } + } + set { + this[this.tableMailAuto.ccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string sdate { + get { + if (this.IssdateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.sdateColumn])); + } + } + set { + this[this.tableMailAuto.sdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string edate { + get { + if (this.IsedateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.edateColumn])); + } + } + set { + this[this.tableMailAuto.edateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string stime { + get { + if (this.IsstimeNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.stimeColumn])); + } + } + set { + this[this.tableMailAuto.stimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public byte[] sday { + get { + try { + return ((byte[])(this[this.tableMailAuto.sdayColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'MailAuto\' 테이블의 \'sday\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableMailAuto.sdayColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string wuid { + get { + return ((string)(this[this.tableMailAuto.wuidColumn])); + } + set { + this[this.tableMailAuto.wuidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime wdate { + get { + return ((global::System.DateTime)(this[this.tableMailAuto.wdateColumn])); + } + set { + this[this.tableMailAuto.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string subject { + get { + if (this.IssubjectNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.subjectColumn])); + } + } + set { + this[this.tableMailAuto.subjectColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string body { + get { + if (this.IsbodyNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableMailAuto.bodyColumn])); + } + } + set { + this[this.tableMailAuto.bodyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsenableNull() { + return this.IsNull(this.tableMailAuto.enableColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetenableNull() { + this[this.tableMailAuto.enableColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsfromlistNull() { + return this.IsNull(this.tableMailAuto.fromlistColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetfromlistNull() { + this[this.tableMailAuto.fromlistColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstolistNull() { + return this.IsNull(this.tableMailAuto.tolistColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettolistNull() { + this[this.tableMailAuto.tolistColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbccNull() { + return this.IsNull(this.tableMailAuto.bccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbccNull() { + this[this.tableMailAuto.bccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsccNull() { + return this.IsNull(this.tableMailAuto.ccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetccNull() { + this[this.tableMailAuto.ccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssdateNull() { + return this.IsNull(this.tableMailAuto.sdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsdateNull() { + this[this.tableMailAuto.sdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsedateNull() { + return this.IsNull(this.tableMailAuto.edateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetedateNull() { + this[this.tableMailAuto.edateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsstimeNull() { + return this.IsNull(this.tableMailAuto.stimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetstimeNull() { + this[this.tableMailAuto.stimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssdayNull() { + return this.IsNull(this.tableMailAuto.sdayColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsdayNull() { + this[this.tableMailAuto.sdayColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssubjectNull() { + return this.IsNull(this.tableMailAuto.subjectColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsubjectNull() { + this[this.tableMailAuto.subjectColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsbodyNull() { + return this.IsNull(this.tableMailAuto.bodyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetbodyNull() { + this[this.tableMailAuto.bodyColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MailFormRowChangeEvent : global::System.EventArgs { + + private MailFormRow 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 MailFormRowChangeEvent(MailFormRow 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 MailFormRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MailDataRowChangeEvent : global::System.EventArgs { + + private MailDataRow 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 MailDataRowChangeEvent(MailDataRow 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 MailDataRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MailAutoRowChangeEvent : global::System.EventArgs { + + private MailAutoRow 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 MailAutoRowChangeEvent(MailAutoRow 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 MailAutoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace FCM0000.DSMailTableAdapters { + + + /// + ///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 MailFormTableAdapter : 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 MailFormTableAdapter() { + 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 = "MailForm"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("cate", "cate"); + tableMapping.ColumnMappings.Add("title", "title"); + tableMapping.ColumnMappings.Add("tolist", "tolist"); + tableMapping.ColumnMappings.Add("bcc", "bcc"); + tableMapping.ColumnMappings.Add("cc", "cc"); + tableMapping.ColumnMappings.Add("subject", "subject"); + tableMapping.ColumnMappings.Add("tail", "tail"); + tableMapping.ColumnMappings.Add("body", "body"); + tableMapping.ColumnMappings.Add("selfTo", "selfTo"); + tableMapping.ColumnMappings.Add("selfCC", "selfCC"); + tableMapping.ColumnMappings.Add("selfBCC", "selfBCC"); + 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 [MailForm] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, 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("@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 [MailForm] ([gcode], [cate], [title], [tolist], [bcc], [cc], [subject], [tail], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate]) VALUES (@gcode, @cate, @title, @tolist, @bcc, @cc, @subject, @tail, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate); +SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = SCOPE_IDENTITY()) ORDER BY 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("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", 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 [MailForm] SET [gcode] = @gcode, [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [tail] = @tail, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); +SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = @idx) ORDER BY 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("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", 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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, 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("@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::FCM0000.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[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, se" + + "lfCC, selfBCC, wuid, wdate\r\nFROM MailForm\r\nWHERE (gcode = @gcode)\r\nORDER BY" + + " 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, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, se" + + "lfCC, selfBCC, wuid, wdate\r\nFROM MailForm\r\nWHERE (gcode = @gcode)\r\nand cate" + + " = @cate\r\nORDER BY 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, 10, 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("@cate", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, se" + + "lfCC, selfBCC, wuid, wdate\r\nFROM MailForm\r\nWHERE (gcode = @gcode)\r\nand idx " + + "=@idx\r\nORDER BY title"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].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")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DSMail.MailFormDataTable 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 DSMail.MailFormDataTable 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)); + } + DSMail.MailFormDataTable dataTable = new DSMail.MailFormDataTable(); + 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 FillByCate(DSMail.MailFormDataTable dataTable, string gcode, string cate) { + 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 ((cate == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(cate)); + } + 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 DSMail.MailFormDataTable GetByCate(string gcode, string cate) { + 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 ((cate == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(cate)); + } + DSMail.MailFormDataTable dataTable = new DSMail.MailFormDataTable(); + 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 FillByIdx(DSMail.MailFormDataTable dataTable, string gcode, int idx) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idx)); + 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 DSMail.MailFormDataTable GetByIdx(string gcode, int idx) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); + } + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idx)); + DSMail.MailFormDataTable dataTable = new DSMail.MailFormDataTable(); + 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(DSMail.MailFormDataTable 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(DSMail dataSet) { + return this.Adapter.Update(dataSet, "MailForm"); + } + + [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_cate, string Original_title, global::System.Nullable Original_selfTo, global::System.Nullable Original_selfCC, global::System.Nullable Original_selfBCC, string Original_wuid, System.DateTime 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_cate == null)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_cate)); + } + if ((Original_title == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_title)); + } + if ((Original_selfTo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((bool)(Original_selfTo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_selfCC.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((bool)(Original_selfCC.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Original_selfBCC.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((bool)(Original_selfBCC.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_wdate)); + 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 cate, string title, string tolist, string bcc, string cc, string subject, string tail, string body, global::System.Nullable selfTo, global::System.Nullable selfCC, global::System.Nullable selfBCC, string wuid, System.DateTime wdate) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((cate == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(cate)); + } + if ((title == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(title)); + } + if ((tolist == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(cc)); + } + if ((subject == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(subject)); + } + if ((tail == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(tail)); + } + if ((body == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(body)); + } + if ((selfTo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((bool)(selfTo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((selfCC.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((bool)(selfCC.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((selfBCC.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((bool)(selfBCC.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(wuid)); + } + this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(wdate)); + 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 cate, + string title, + string tolist, + string bcc, + string cc, + string subject, + string tail, + string body, + global::System.Nullable selfTo, + global::System.Nullable selfCC, + global::System.Nullable selfBCC, + string wuid, + System.DateTime wdate, + int Original_idx, + string Original_gcode, + string Original_cate, + string Original_title, + global::System.Nullable Original_selfTo, + global::System.Nullable Original_selfCC, + global::System.Nullable Original_selfBCC, + string Original_wuid, + System.DateTime Original_wdate, + int idx) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((cate == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(cate)); + } + if ((title == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(title)); + } + if ((tolist == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(cc)); + } + if ((subject == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(subject)); + } + if ((tail == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(tail)); + } + if ((body == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(body)); + } + if ((selfTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(selfTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((selfCC.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(selfCC.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((selfBCC.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(selfBCC.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(wuid)); + } + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(wdate)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_gcode)); + } + if ((Original_cate == 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_cate)); + } + if ((Original_title == 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_title)); + } + if ((Original_selfTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((bool)(Original_selfTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_selfCC.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(Original_selfCC.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((Original_selfBCC.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((bool)(Original_selfBCC.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[28].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 cate, + string title, + string tolist, + string bcc, + string cc, + string subject, + string tail, + string body, + global::System.Nullable selfTo, + global::System.Nullable selfCC, + global::System.Nullable selfBCC, + string wuid, + System.DateTime wdate, + int Original_idx, + string Original_gcode, + string Original_cate, + string Original_title, + global::System.Nullable Original_selfTo, + global::System.Nullable Original_selfCC, + global::System.Nullable Original_selfBCC, + string Original_wuid, + System.DateTime Original_wdate) { + return this.Update(gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, Original_idx, Original_gcode, Original_cate, Original_title, Original_selfTo, Original_selfCC, Original_selfBCC, Original_wuid, Original_wdate, 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 MailDataTableAdapter : 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 MailDataTableAdapter() { + 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 = "MailData"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("project", "project"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("cate", "cate"); + tableMapping.ColumnMappings.Add("pdate", "pdate"); + tableMapping.ColumnMappings.Add("subject", "subject"); + tableMapping.ColumnMappings.Add("tolist", "tolist"); + tableMapping.ColumnMappings.Add("bcc", "bcc"); + tableMapping.ColumnMappings.Add("cc", "cc"); + tableMapping.ColumnMappings.Add("body", "body"); + tableMapping.ColumnMappings.Add("wuid", "wuid"); + tableMapping.ColumnMappings.Add("wdate", "wdate"); + tableMapping.ColumnMappings.Add("SendOK", "SendOK"); + tableMapping.ColumnMappings.Add("fromlist", "fromlist"); + tableMapping.ColumnMappings.Add("SendMsg", "SendMsg"); + tableMapping.ColumnMappings.Add("aidx", "aidx"); + tableMapping.ColumnMappings.Add("atime", "atime"); + 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 [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", 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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + 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("@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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendOK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendMsg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_atime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", 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 [MailData] ([project], [gcode], [cate], [pdate], [subject], [tolist], [bcc], [cc], [body], [wuid], [wdate], [SendOK], [fromlist], [SendMsg], [aidx], [atime]) VALUES (@project, @gcode, @cate, @pdate, @subject, @tolist, @bcc, @cc, @body, @wuid, @wdate, @SendOK, @fromlist, @SendMsg, @aidx, @atime); +SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime FROM MailData WHERE (idx = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", 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 [MailData] SET [project] = @project, [gcode] = @gcode, [cate] = @cate, [pdate] = @pdate, [subject] = @subject, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [body] = @body, [wuid] = @wuid, [wdate] = @wdate, [SendOK] = @SendOK, [fromlist] = @fromlist, [SendMsg] = @SendMsg, [aidx] = @aidx, [atime] = @atime WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime))); +SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime FROM MailData WHERE (idx = @idx)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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("@SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + 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("@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("@IsNull_SendOK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendMsg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_atime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", 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::FCM0000.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, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, w" + + "date, SendOK, fromlist, SendMsg, aidx, atime\r\nFROM MailData\r\nWHERE (gcode =" + + " @gcode) AND (pdate BETWEEN @sd AND @ed) AND (ISNULL(cate, \'\') LIKE @cate)"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", 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(DSMail.MailDataDataTable dataTable, string gcode, string sd, string ed, string cate) { + 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 ((sd == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); + } + if ((ed == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); + } + if ((cate == null)) { + throw new global::System.ArgumentNullException("cate"); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(cate)); + } + 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 DSMail.MailDataDataTable GetData(string gcode, string sd, string ed, string cate) { + 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 ((sd == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); + } + if ((ed == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); + } + if ((cate == null)) { + throw new global::System.ArgumentNullException("cate"); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(cate)); + } + DSMail.MailDataDataTable dataTable = new DSMail.MailDataDataTable(); + 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(DSMail.MailDataDataTable 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(DSMail dataSet) { + return this.Adapter.Update(dataSet, "MailData"); + } + + [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, global::System.Nullable Original_project, string Original_gcode, string Original_cate, string Original_pdate, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_SendOK, string Original_SendMsg, global::System.Nullable Original_aidx, string Original_atime) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); + if ((Original_project.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_project.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_gcode)); + } + if ((Original_cate == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_cate)); + } + if ((Original_pdate == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_pdate)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[9].Value = ((System.DateTime)(Original_wdate)); + if ((Original_SendOK.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((bool)(Original_SendOK.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_SendMsg == null)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_SendMsg)); + } + if ((Original_aidx.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_aidx.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_atime == null)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_atime)); + } + 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( + global::System.Nullable project, + string gcode, + string cate, + string pdate, + string subject, + string tolist, + string bcc, + string cc, + string body, + string wuid, + System.DateTime wdate, + global::System.Nullable SendOK, + string fromlist, + string SendMsg, + global::System.Nullable aidx, + string atime) { + if ((project.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(project.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(gcode)); + } + if ((cate == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(cate)); + } + if ((pdate == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(pdate)); + } + if ((subject == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(subject)); + } + if ((tolist == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(cc)); + } + if ((body == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(body)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(wuid)); + } + this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(wdate)); + if ((SendOK.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((bool)(SendOK.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((fromlist == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(fromlist)); + } + if ((SendMsg == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(SendMsg)); + } + if ((aidx.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[14].Value = ((int)(aidx.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((atime == null)) { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(atime)); + } + 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( + global::System.Nullable project, + string gcode, + string cate, + string pdate, + string subject, + string tolist, + string bcc, + string cc, + string body, + string wuid, + System.DateTime wdate, + global::System.Nullable SendOK, + string fromlist, + string SendMsg, + global::System.Nullable aidx, + string atime, + int Original_idx, + global::System.Nullable Original_project, + string Original_gcode, + string Original_cate, + string Original_pdate, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_SendOK, + string Original_SendMsg, + global::System.Nullable Original_aidx, + string Original_atime, + int idx) { + if ((project.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(project.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(gcode)); + } + if ((cate == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(cate)); + } + if ((pdate == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(pdate)); + } + if ((subject == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(subject)); + } + if ((tolist == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(cc)); + } + if ((body == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(body)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(wuid)); + } + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(wdate)); + if ((SendOK.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(SendOK.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((fromlist == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(fromlist)); + } + if ((SendMsg == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(SendMsg)); + } + if ((aidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(aidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((atime == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(atime)); + } + this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_idx)); + if ((Original_project.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_project.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_gcode)); + } + if ((Original_cate == null)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_cate)); + } + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_pdate)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_wdate)); + if ((Original_SendOK.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((bool)(Original_SendOK.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + if ((Original_SendMsg == null)) { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_SendMsg)); + } + if ((Original_aidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_aidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + } + if ((Original_atime == null)) { + this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_atime)); + } + this.Adapter.UpdateCommand.Parameters[34].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( + global::System.Nullable project, + string gcode, + string cate, + string pdate, + string subject, + string tolist, + string bcc, + string cc, + string body, + string wuid, + System.DateTime wdate, + global::System.Nullable SendOK, + string fromlist, + string SendMsg, + global::System.Nullable aidx, + string atime, + int Original_idx, + global::System.Nullable Original_project, + string Original_gcode, + string Original_cate, + string Original_pdate, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_SendOK, + string Original_SendMsg, + global::System.Nullable Original_aidx, + string Original_atime) { + return this.Update(project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime, Original_idx, Original_project, Original_gcode, Original_cate, Original_pdate, Original_wuid, Original_wdate, Original_SendOK, Original_SendMsg, Original_aidx, Original_atime, 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 MailAutoTableAdapter : 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 MailAutoTableAdapter() { + 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 = "MailAuto"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("enable", "enable"); + tableMapping.ColumnMappings.Add("fidx", "fidx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("fromlist", "fromlist"); + tableMapping.ColumnMappings.Add("tolist", "tolist"); + tableMapping.ColumnMappings.Add("bcc", "bcc"); + tableMapping.ColumnMappings.Add("cc", "cc"); + tableMapping.ColumnMappings.Add("sdate", "sdate"); + tableMapping.ColumnMappings.Add("edate", "edate"); + tableMapping.ColumnMappings.Add("stime", "stime"); + tableMapping.ColumnMappings.Add("sday", "sday"); + tableMapping.ColumnMappings.Add("wuid", "wuid"); + tableMapping.ColumnMappings.Add("wdate", "wdate"); + tableMapping.ColumnMappings.Add("subject", "subject"); + tableMapping.ColumnMappings.Add("body", "body"); + 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 [MailAuto] WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([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("@IsNull_enable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", 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("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, false, 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("@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 [MailAuto] ([enable], [fidx], [gcode], [fromlist], [tolist], [bcc], [cc], [sdate], [edate], [stime], [sday], [wuid], [wdate], [subject], [body]) VALUES (@enable, @fidx, @gcode, @fromlist, @tolist, @bcc, @cc, @sdate, @edate, @stime, @sday, @wuid, @wdate, @subject, @body); +SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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 [MailAuto] SET [enable] = @enable, [fidx] = @fidx, [gcode] = @gcode, [fromlist] = @fromlist, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [sdate] = @sdate, [edate] = @edate, [stime] = @stime, [sday] = @sday, [wuid] = @wuid, [wdate] = @wdate, [subject] = @subject, [body] = @body WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); +SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = @idx)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", 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("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_enable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, false, 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("@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::FCM0000.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, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime," + + " sday, wuid, wdate, subject, body\r\nFROM MailAuto\r\nWHERE (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, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DSMail.MailAutoDataTable 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 DSMail.MailAutoDataTable 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)); + } + DSMail.MailAutoDataTable dataTable = new DSMail.MailAutoDataTable(); + 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(DSMail.MailAutoDataTable 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(DSMail dataSet) { + return this.Adapter.Update(dataSet, "MailAuto"); + } + + [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, global::System.Nullable Original_enable, int Original_fidx, string Original_gcode, string Original_sdate, string Original_edate, string Original_stime, byte[] Original_sday, string Original_wuid, System.DateTime Original_wdate) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); + if ((Original_enable.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_enable.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_fidx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_gcode)); + } + if ((Original_sdate == 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_sdate)); + } + if ((Original_edate == 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_edate)); + } + if ((Original_stime == 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_stime)); + } + if ((Original_sday == 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 = ((byte[])(Original_sday)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_wdate)); + 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(global::System.Nullable enable, int fidx, string gcode, string fromlist, string tolist, string bcc, string cc, string sdate, string edate, string stime, byte[] sday, string wuid, System.DateTime wdate, string subject, string body) { + if ((enable.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[0].Value = ((bool)(enable.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(fidx)); + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(gcode)); + } + if ((fromlist == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(fromlist)); + } + if ((tolist == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(cc)); + } + if ((sdate == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(sdate)); + } + if ((edate == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(edate)); + } + if ((stime == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(stime)); + } + if ((sday == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((byte[])(sday)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(wuid)); + } + this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(wdate)); + if ((subject == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(subject)); + } + if ((body == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(body)); + } + 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( + global::System.Nullable enable, + int fidx, + string gcode, + string fromlist, + string tolist, + string bcc, + string cc, + string sdate, + string edate, + string stime, + byte[] sday, + string wuid, + System.DateTime wdate, + string subject, + string body, + int Original_idx, + global::System.Nullable Original_enable, + int Original_fidx, + string Original_gcode, + string Original_sdate, + string Original_edate, + string Original_stime, + byte[] Original_sday, + string Original_wuid, + System.DateTime Original_wdate, + int idx) { + if ((enable.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((bool)(enable.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(fidx)); + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(gcode)); + } + if ((fromlist == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(fromlist)); + } + if ((tolist == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(tolist)); + } + if ((bcc == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(bcc)); + } + if ((cc == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(cc)); + } + if ((sdate == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(sdate)); + } + if ((edate == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(edate)); + } + if ((stime == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(stime)); + } + if ((sday == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((byte[])(sday)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(wuid)); + } + this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(wdate)); + if ((subject == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(subject)); + } + if ((body == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(body)); + } + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx)); + if ((Original_enable.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_enable.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_fidx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_gcode)); + } + if ((Original_sdate == null)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_sdate)); + } + if ((Original_edate == null)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_edate)); + } + if ((Original_stime == null)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_stime)); + } + if ((Original_sday == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((byte[])(Original_sday)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[30].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( + global::System.Nullable enable, + int fidx, + string gcode, + string fromlist, + string tolist, + string bcc, + string cc, + string sdate, + string edate, + string stime, + byte[] sday, + string wuid, + System.DateTime wdate, + string subject, + string body, + int Original_idx, + global::System.Nullable Original_enable, + int Original_fidx, + string Original_gcode, + string Original_sdate, + string Original_edate, + string Original_stime, + byte[] Original_sday, + string Original_wuid, + System.DateTime Original_wdate) { + return this.Update(enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body, Original_idx, Original_enable, Original_fidx, Original_gcode, Original_sdate, Original_edate, Original_stime, Original_sday, Original_wuid, Original_wdate, Original_idx); + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private MailFormTableAdapter _mailFormTableAdapter; + + private MailDataTableAdapter _mailDataTableAdapter; + + private MailAutoTableAdapter _mailAutoTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [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 MailFormTableAdapter MailFormTableAdapter { + get { + return this._mailFormTableAdapter; + } + set { + this._mailFormTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [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 MailDataTableAdapter MailDataTableAdapter { + get { + return this._mailDataTableAdapter; + } + set { + this._mailDataTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [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 MailAutoTableAdapter MailAutoTableAdapter { + get { + return this._mailAutoTableAdapter; + } + set { + this._mailAutoTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._mailFormTableAdapter != null) + && (this._mailFormTableAdapter.Connection != null))) { + return this._mailFormTableAdapter.Connection; + } + if (((this._mailDataTableAdapter != null) + && (this._mailDataTableAdapter.Connection != null))) { + return this._mailDataTableAdapter.Connection; + } + if (((this._mailAutoTableAdapter != null) + && (this._mailAutoTableAdapter.Connection != null))) { + return this._mailAutoTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._mailFormTableAdapter != null)) { + count = (count + 1); + } + if ((this._mailDataTableAdapter != null)) { + count = (count + 1); + } + if ((this._mailAutoTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateUpdatedRows(DSMail dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._mailFormTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._mailFormTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._mailDataTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._mailDataTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._mailAutoTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._mailAutoTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateInsertedRows(DSMail dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._mailFormTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._mailFormTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._mailDataTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._mailDataTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._mailAutoTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._mailAutoTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateDeletedRows(DSMail dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._mailAutoTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._mailAutoTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._mailDataTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._mailDataTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._mailFormTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._mailFormTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public virtual int UpdateAll(DSMail dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._mailFormTableAdapter != null) + && (this.MatchTableAdapterConnection(this._mailFormTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); + } + if (((this._mailDataTableAdapter != null) + && (this.MatchTableAdapterConnection(this._mailDataTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); + } + if (((this._mailAutoTableAdapter != null) + && (this.MatchTableAdapterConnection(this._mailAutoTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager에 연결 정보가 없습니다. 각 TableAdapterManager TableAdapter 속성을 올바른 Tabl" + + "eAdapter 인스턴스로 설정하십시오."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("트랜잭션을 시작할 수 없습니다. 현재 데이터 연결에서 트랜잭션이 지원되지 않거나 현재 상태에서 트랜잭션을 시작할 수 없습니다."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._mailFormTableAdapter != null)) { + revertConnections.Add(this._mailFormTableAdapter, this._mailFormTableAdapter.Connection); + this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._mailFormTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._mailFormTableAdapter.Adapter); + } + } + if ((this._mailDataTableAdapter != null)) { + revertConnections.Add(this._mailDataTableAdapter, this._mailDataTableAdapter.Connection); + this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._mailDataTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._mailDataTableAdapter.Adapter); + } + } + if ((this._mailAutoTableAdapter != null)) { + revertConnections.Add(this._mailAutoTableAdapter, this._mailAutoTableAdapter.Connection); + this._mailAutoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._mailAutoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._mailAutoTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._mailAutoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._mailAutoTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._mailFormTableAdapter != null)) { + this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailFormTableAdapter])); + this._mailFormTableAdapter.Transaction = null; + } + if ((this._mailDataTableAdapter != null)) { + this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailDataTableAdapter])); + this._mailDataTableAdapter.Transaction = null; + } + if ((this._mailAutoTableAdapter != null)) { + this._mailAutoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailAutoTableAdapter])); + this._mailAutoTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/SubProject/FCM0000/DSMail.xsc b/SubProject/FCM0000/DSMail.xsc new file mode 100644 index 0000000..05b0199 --- /dev/null +++ b/SubProject/FCM0000/DSMail.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/SubProject/FCM0000/DSMail.xsd b/SubProject/FCM0000/DSMail.xsd new file mode 100644 index 0000000..71806fc --- /dev/null +++ b/SubProject/FCM0000/DSMail.xsd @@ -0,0 +1,693 @@ + + + + + + + + + + + + + + + DELETE FROM [MailForm] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) + + + + + + + + + + + + + + + + + + + + + INSERT INTO [MailForm] ([gcode], [cate], [title], [tolist], [bcc], [cc], [subject], [tail], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate]) VALUES (@gcode, @cate, @title, @tolist, @bcc, @cc, @subject, @tail, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate); +SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = SCOPE_IDENTITY()) ORDER BY title + + + + + + + + + + + + + + + + + + + + + SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate +FROM MailForm +WHERE (gcode = @gcode) +ORDER BY title + + + + + + + + UPDATE [MailForm] SET [gcode] = @gcode, [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [tail] = @tail, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); +SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = @idx) ORDER BY title + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate +FROM MailForm +WHERE (gcode = @gcode) +and cate = @cate +ORDER BY title + + + + + + + + + + + SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate +FROM MailForm +WHERE (gcode = @gcode) +and idx =@idx +ORDER BY title + + + + + + + + + + + + + + + DELETE FROM [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime))) + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [MailData] ([project], [gcode], [cate], [pdate], [subject], [tolist], [bcc], [cc], [body], [wuid], [wdate], [SendOK], [fromlist], [SendMsg], [aidx], [atime]) VALUES (@project, @gcode, @cate, @pdate, @subject, @tolist, @bcc, @cc, @body, @wuid, @wdate, @SendOK, @fromlist, @SendMsg, @aidx, @atime); +SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime FROM MailData WHERE (idx = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime +FROM MailData +WHERE (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) AND (ISNULL(cate, '') LIKE @cate) + + + + + + + + + + + UPDATE [MailData] SET [project] = @project, [gcode] = @gcode, [cate] = @cate, [pdate] = @pdate, [subject] = @subject, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [body] = @body, [wuid] = @wuid, [wdate] = @wdate, [SendOK] = @SendOK, [fromlist] = @fromlist, [SendMsg] = @SendMsg, [aidx] = @aidx, [atime] = @atime WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime))); +SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, wuid, wdate, SendOK, fromlist, SendMsg, aidx, atime FROM MailData WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [MailAuto] WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [MailAuto] ([enable], [fidx], [gcode], [fromlist], [tolist], [bcc], [cc], [sdate], [edate], [stime], [sday], [wuid], [wdate], [subject], [body]) VALUES (@enable, @fidx, @gcode, @fromlist, @tolist, @bcc, @cc, @sdate, @edate, @stime, @sday, @wuid, @wdate, @subject, @body); +SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body +FROM MailAuto +WHERE (gcode = @gcode) + + + + + + + + UPDATE [MailAuto] SET [enable] = @enable, [fidx] = @fidx, [gcode] = @gcode, [fromlist] = @fromlist, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [sdate] = @sdate, [edate] = @edate, [stime] = @stime, [sday] = @sday, [wuid] = @wuid, [wdate] = @wdate, [subject] = @subject, [body] = @body WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); +SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SubProject/FCM0000/DSMail.xss b/SubProject/FCM0000/DSMail.xss new file mode 100644 index 0000000..e13a609 --- /dev/null +++ b/SubProject/FCM0000/DSMail.xss @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/SubProject/FCM0000/DSReport.Designer.cs b/SubProject/FCM0000/DSReport.Designer.cs index 49018cf..74474de 100644 --- a/SubProject/FCM0000/DSReport.Designer.cs +++ b/SubProject/FCM0000/DSReport.Designer.cs @@ -2647,11 +2647,12 @@ GROUP BY Items.idx, Items.name, Items.sid, Items.model, Items.supply"; this._commandCollection[0].CommandText = @"SELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply FROM Inventory LEFT OUTER JOIN Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx -WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate <= @baseDate) +WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate <= @baseDate) AND (ISNULL(Inventory.place, N'') LIKE @place) GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@baseDate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", 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 Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply @@ -2669,7 +2670,7 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place"; [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(DSReport.jagosummaryPlaceDataTable dataTable, string gcode, string baseDate) { + public virtual int Fill(DSReport.jagosummaryPlaceDataTable dataTable, string gcode, string baseDate, string place) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -2683,6 +2684,12 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place"; else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(baseDate)); } + if ((place == null)) { + throw new global::System.ArgumentNullException("place"); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(place)); + } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } @@ -2694,7 +2701,7 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place"; [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 DSReport.jagosummaryPlaceDataTable GetData(string gcode, string baseDate) { + public virtual DSReport.jagosummaryPlaceDataTable GetData(string gcode, string baseDate, string place) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((gcode == null)) { throw new global::System.ArgumentNullException("gcode"); @@ -2708,6 +2715,12 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place"; else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(baseDate)); } + if ((place == null)) { + throw new global::System.ArgumentNullException("place"); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(place)); + } DSReport.jagosummaryPlaceDataTable dataTable = new DSReport.jagosummaryPlaceDataTable(); this.Adapter.Fill(dataTable); return dataTable; diff --git a/SubProject/FCM0000/DSReport.xsd b/SubProject/FCM0000/DSReport.xsd index 2fbbde1..3106141 100644 --- a/SubProject/FCM0000/DSReport.xsd +++ b/SubProject/FCM0000/DSReport.xsd @@ -72,11 +72,12 @@ GROUP BY Items.idx, Items.name, Items.sid, Items.model, Items.supplySELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply FROM Inventory LEFT OUTER JOIN Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx -WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate <= @baseDate) +WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate <= @baseDate) AND (ISNULL(Inventory.place, N'') LIKE @place) GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place - - + + + @@ -119,7 +120,7 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place - + @@ -154,7 +155,7 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place - + @@ -198,7 +199,7 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place - + diff --git a/SubProject/FCM0000/DSReport.xss b/SubProject/FCM0000/DSReport.xss index 43a34d2..30500a3 100644 --- a/SubProject/FCM0000/DSReport.xss +++ b/SubProject/FCM0000/DSReport.xss @@ -4,11 +4,11 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + \ No newline at end of file diff --git a/SubProject/FCM0000/DSUser.xss b/SubProject/FCM0000/DSUser.xss index 8888590..c620fa1 100644 --- a/SubProject/FCM0000/DSUser.xss +++ b/SubProject/FCM0000/DSUser.xss @@ -6,8 +6,9 @@ --> - - + + + \ No newline at end of file diff --git a/SubProject/FCM0000/FCM0000.csproj b/SubProject/FCM0000/FCM0000.csproj index 32a4374..2fe2541 100644 --- a/SubProject/FCM0000/FCM0000.csproj +++ b/SubProject/FCM0000/FCM0000.csproj @@ -11,6 +11,21 @@ FCM0000 v4.0 512 + 게시\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true x86 @@ -94,10 +109,33 @@ fPatchList.cs - + + True + True + DSMail.xsd + + Form - + + fAutoSendSetting.cs + + + Form + + + fMailAutoAdd.cs + + + Form + + + fMailList.cs + + + Form + + fSendMail.cs @@ -245,10 +283,10 @@ fLovItem.cs - + Form - + fMailform.cs @@ -287,7 +325,16 @@ fPatchList.cs - + + fAutoSendSetting.cs + + + fMailAutoAdd.cs + + + fMailList.cs + + fSendMail.cs @@ -348,7 +395,7 @@ fLovItem.cs - + fMailform.cs @@ -394,6 +441,17 @@ DSInventory.xsd + + DSMail.xsd + + + Designer + MSDataSetGenerator + DSMail.Designer.cs + + + DSMail.xsd + dsMSSQL.xsd @@ -433,7 +491,6 @@ Designer MSDataSetGenerator - DSUser.Designer.cs DSUser.xsd @@ -466,6 +523,28 @@ + + + False + Microsoft .NET Framework 4%28x86 및 x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 4.5 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 608, 17 + + + 172, 17 + + + 83, 17 + + + 17, 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== + + + + + R0lGODlhEAAQAIQAAGB3lYivyMDf/XiZt+Ts9ajT/Mbh/UlVa/P2+bLY/FRlfu3x9ZzN++Xy/rTR4ENL + XN7v/tTk8Jm/1enx96jL3uDo7ykxQz5FVb2JAP+8Bv/RV6HQ/FSr9qfR+jhllf///yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIugA/CBxIsKDACA4cUJAgIUCAARA9eJAg0EEEAhMyTiDA + 0UMHDh4qTjBAkqSABh5BKhBIAUFJASdTekCw8oMElwZgovzoAQJNgTdzxuQJocDPDwEQ6MRAtIDRAwKT + nsSgIUPPAh02EID6YcCCBlQzYCiaVesDgV4jVB2LdcMGBhXOdl2QQIFdBQAGMNhb4QJaBAkSYC0wAIBh + AAv8fgAQAcFGjgQqSF7gwAJavHcPHHjw4MIFCzUNihYYEAA7 + + + + + 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/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo + dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= + + + + 236, 17 + + + 298, 17 + + + 502, 17 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPtZPPasJAEMbzPn0FwWA92JtP4NGKB1/DP7ei + QSsovkChh7ZBrCfpyR4sikopUgq9StFzM/UbZ5asSS4FfzAkO7vft5udiZMEnSBpk5dhFJmncjdHxXaG + A+9K4SbFT1luEwQBbXavVO5d0nI3ovnW5yeiMriiu+kt5asXbABEdgRigAUQDr+aHLU3lxoLl/yPJhvF + GsiYJ/vPdX5qPK3bVJ25VFukafztGQNsKHJ791I3w+8KcpNth8XDz5YxACI/gsR1J8sTYcO4UIzwv1gG + cTshgJ5IT8hChTMHsHi+v+fvffmxywVwN2FDkdsGEOK2ceu4feQ0tDqKyKMGqDfqjvprLzyswuX7Tf4E + dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR + DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il + zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij + KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY + UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC + + + \ No newline at end of file diff --git a/SubProject/FCM0000/Mail/fMailAutoAdd.Designer.cs b/SubProject/FCM0000/Mail/fMailAutoAdd.Designer.cs new file mode 100644 index 0000000..95302bb --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailAutoAdd.Designer.cs @@ -0,0 +1,595 @@ +namespace FCM0000 +{ + partial class fMailAutoAdd + { + /// + /// 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 tolistLabel; + System.Windows.Forms.Label bccLabel; + System.Windows.Forms.Label ccLabel; + System.Windows.Forms.Label subjectLabel; + System.Windows.Forms.Label bodyLabel; + System.Windows.Forms.Label label1; + System.Windows.Forms.Label label2; + System.Windows.Forms.Label label5; + System.Windows.Forms.Label label4; + System.Windows.Forms.Label label6; + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailAutoAdd)); + this.dsMSSQL = new FCM0000.DSMail(); + this.panel1 = new System.Windows.Forms.Panel(); + this.tbFrom = new System.Windows.Forms.TextBox(); + this.bsForm = new System.Windows.Forms.BindingSource(this.components); + this.btOK = new System.Windows.Forms.Button(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.dtSd = new System.Windows.Forms.DateTimePicker(); + this.dtEd = new System.Windows.Forms.DateTimePicker(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.chkMon = new System.Windows.Forms.CheckBox(); + this.chkTue = new System.Windows.Forms.CheckBox(); + this.chkWend = new System.Windows.Forms.CheckBox(); + this.cmbDay = new System.Windows.Forms.ComboBox(); + this.chkThjur = new System.Windows.Forms.CheckBox(); + this.chkFri = new System.Windows.Forms.CheckBox(); + this.radWeek = new System.Windows.Forms.RadioButton(); + this.chkSat = new System.Windows.Forms.CheckBox(); + this.radMon = new System.Windows.Forms.RadioButton(); + this.chkSun = new System.Windows.Forms.CheckBox(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.cmbMinute = new System.Windows.Forms.ComboBox(); + this.cmbHour = new System.Windows.Forms.ComboBox(); + this.tbBody = new YARTE.UI.HtmlEditor(); + this.chkEnb = new System.Windows.Forms.CheckBox(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.tbTo = new System.Windows.Forms.TextBox(); + this.tbBcc = new System.Windows.Forms.TextBox(); + this.tbCC = new System.Windows.Forms.TextBox(); + this.tbSubject = new System.Windows.Forms.TextBox(); + this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager(); + this.ta = new FCM0000.DSMailTableAdapters.MailAutoTableAdapter(); + this.taf = new FCM0000.DSMailTableAdapters.MailFormTableAdapter(); + this.linkLabel2 = new System.Windows.Forms.LinkLabel(); + tolistLabel = new System.Windows.Forms.Label(); + bccLabel = new System.Windows.Forms.Label(); + ccLabel = new System.Windows.Forms.Label(); + subjectLabel = new System.Windows.Forms.Label(); + bodyLabel = new System.Windows.Forms.Label(); + label1 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + label5 = new System.Windows.Forms.Label(); + label4 = new System.Windows.Forms.Label(); + label6 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bsForm)).BeginInit(); + this.groupBox3.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + this.SuspendLayout(); + // + // tolistLabel + // + tolistLabel.AutoSize = true; + tolistLabel.Location = new System.Drawing.Point(46, 192); + tolistLabel.Name = "tolistLabel"; + tolistLabel.Size = new System.Drawing.Size(29, 12); + tolistLabel.TabIndex = 6; + tolistLabel.Text = "수신"; + // + // bccLabel + // + bccLabel.AutoSize = true; + bccLabel.Location = new System.Drawing.Point(22, 219); + bccLabel.Name = "bccLabel"; + bccLabel.Size = new System.Drawing.Size(53, 12); + bccLabel.TabIndex = 8; + bccLabel.Text = "숨은참조"; + // + // ccLabel + // + ccLabel.AutoSize = true; + ccLabel.Location = new System.Drawing.Point(46, 246); + ccLabel.Name = "ccLabel"; + ccLabel.Size = new System.Drawing.Size(29, 12); + ccLabel.TabIndex = 10; + ccLabel.Text = "참조"; + // + // subjectLabel + // + subjectLabel.AutoSize = true; + subjectLabel.Location = new System.Drawing.Point(46, 272); + subjectLabel.Name = "subjectLabel"; + subjectLabel.Size = new System.Drawing.Size(29, 12); + subjectLabel.TabIndex = 12; + subjectLabel.Text = "제목"; + // + // bodyLabel + // + bodyLabel.AutoSize = true; + bodyLabel.Location = new System.Drawing.Point(46, 301); + bodyLabel.Name = "bodyLabel"; + bodyLabel.Size = new System.Drawing.Size(29, 12); + bodyLabel.TabIndex = 16; + bodyLabel.Text = "내용"; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new System.Drawing.Point(100, 26); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(17, 12); + label1.TabIndex = 31; + label1.Text = "시"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new System.Drawing.Point(187, 28); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(14, 12); + label2.TabIndex = 34; + label2.Text = "~"; + // + // label5 + // + label5.AutoSize = true; + label5.Location = new System.Drawing.Point(163, 25); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(17, 12); + label5.TabIndex = 41; + label5.Text = "일"; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new System.Drawing.Point(101, 52); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(17, 12); + label4.TabIndex = 32; + label4.Text = "분"; + // + // label6 + // + label6.AutoSize = true; + label6.Location = new System.Drawing.Point(46, 166); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(29, 12); + label6.TabIndex = 48; + label6.Text = "발신"; + // + // dsMSSQL + // + this.dsMSSQL.DataSetName = "dsMail"; + this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // panel1 + // + this.panel1.Controls.Add(this.linkLabel2); + this.panel1.Controls.Add(label6); + this.panel1.Controls.Add(this.tbFrom); + this.panel1.Controls.Add(this.btOK); + this.panel1.Controls.Add(this.groupBox3); + this.panel1.Controls.Add(this.groupBox2); + this.panel1.Controls.Add(this.groupBox1); + this.panel1.Controls.Add(this.tbBody); + this.panel1.Controls.Add(this.chkEnb); + this.panel1.Controls.Add(tolistLabel); + this.panel1.Controls.Add(this.tbTo); + this.panel1.Controls.Add(bccLabel); + this.panel1.Controls.Add(this.tbBcc); + this.panel1.Controls.Add(ccLabel); + this.panel1.Controls.Add(this.tbCC); + this.panel1.Controls.Add(subjectLabel); + this.panel1.Controls.Add(this.tbSubject); + this.panel1.Controls.Add(bodyLabel); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(685, 607); + this.panel1.TabIndex = 3; + // + // tbFrom + // + this.tbFrom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbFrom.Location = new System.Drawing.Point(82, 163); + this.tbFrom.Name = "tbFrom"; + this.tbFrom.Size = new System.Drawing.Size(593, 21); + this.tbFrom.TabIndex = 49; + // + // bsForm + // + this.bsForm.DataMember = "MailForm"; + this.bsForm.DataSource = this.dsMSSQL; + // + // btOK + // + this.btOK.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btOK.Location = new System.Drawing.Point(0, 574); + this.btOK.Name = "btOK"; + this.btOK.Size = new System.Drawing.Size(685, 33); + this.btOK.TabIndex = 45; + this.btOK.Text = "확 인"; + this.btOK.UseVisualStyleBackColor = true; + this.btOK.Click += new System.EventHandler(this.button1_Click); + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.dtSd); + this.groupBox3.Controls.Add(this.dtEd); + this.groupBox3.Controls.Add(label2); + this.groupBox3.Controls.Add(this.linkLabel1); + this.groupBox3.Location = new System.Drawing.Point(77, 12); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(598, 60); + this.groupBox3.TabIndex = 44; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "적용 기간"; + // + // dtSd + // + this.dtSd.Location = new System.Drawing.Point(15, 24); + this.dtSd.Name = "dtSd"; + this.dtSd.Size = new System.Drawing.Size(166, 21); + this.dtSd.TabIndex = 32; + // + // dtEd + // + this.dtEd.Location = new System.Drawing.Point(207, 24); + this.dtEd.Name = "dtEd"; + this.dtEd.Size = new System.Drawing.Size(166, 21); + this.dtEd.TabIndex = 33; + this.dtEd.Value = new System.DateTime(2099, 12, 31, 15, 35, 0, 0); + // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(380, 30); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(41, 12); + this.linkLabel1.TabIndex = 36; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "한번만"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.chkMon); + this.groupBox2.Controls.Add(this.chkTue); + this.groupBox2.Controls.Add(label5); + this.groupBox2.Controls.Add(this.chkWend); + this.groupBox2.Controls.Add(this.cmbDay); + this.groupBox2.Controls.Add(this.chkThjur); + this.groupBox2.Controls.Add(this.chkFri); + this.groupBox2.Controls.Add(this.radWeek); + this.groupBox2.Controls.Add(this.chkSat); + this.groupBox2.Controls.Add(this.radMon); + this.groupBox2.Controls.Add(this.chkSun); + this.groupBox2.Location = new System.Drawing.Point(77, 80); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(467, 79); + this.groupBox2.TabIndex = 43; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "전송 간격"; + // + // chkMon + // + this.chkMon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkMon.AutoSize = true; + this.chkMon.Location = new System.Drawing.Point(123, 47); + this.chkMon.Name = "chkMon"; + this.chkMon.Size = new System.Drawing.Size(36, 16); + this.chkMon.TabIndex = 19; + this.chkMon.Text = "월"; + this.chkMon.UseVisualStyleBackColor = true; + // + // chkTue + // + this.chkTue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkTue.AutoSize = true; + this.chkTue.Location = new System.Drawing.Point(174, 47); + this.chkTue.Name = "chkTue"; + this.chkTue.Size = new System.Drawing.Size(36, 16); + this.chkTue.TabIndex = 20; + this.chkTue.Text = "화"; + this.chkTue.UseVisualStyleBackColor = true; + // + // chkWend + // + this.chkWend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkWend.AutoSize = true; + this.chkWend.Location = new System.Drawing.Point(225, 47); + this.chkWend.Name = "chkWend"; + this.chkWend.Size = new System.Drawing.Size(36, 16); + this.chkWend.TabIndex = 24; + this.chkWend.Text = "수"; + this.chkWend.UseVisualStyleBackColor = true; + // + // cmbDay + // + this.cmbDay.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbDay.FormattingEnabled = true; + this.cmbDay.Location = new System.Drawing.Point(79, 20); + this.cmbDay.Name = "cmbDay"; + this.cmbDay.Size = new System.Drawing.Size(78, 20); + this.cmbDay.TabIndex = 40; + // + // chkThjur + // + this.chkThjur.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkThjur.AutoSize = true; + this.chkThjur.Location = new System.Drawing.Point(276, 47); + this.chkThjur.Name = "chkThjur"; + this.chkThjur.Size = new System.Drawing.Size(36, 16); + this.chkThjur.TabIndex = 25; + this.chkThjur.Text = "목"; + this.chkThjur.UseVisualStyleBackColor = true; + // + // chkFri + // + this.chkFri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkFri.AutoSize = true; + this.chkFri.Location = new System.Drawing.Point(327, 47); + this.chkFri.Name = "chkFri"; + this.chkFri.Size = new System.Drawing.Size(36, 16); + this.chkFri.TabIndex = 26; + this.chkFri.Text = "금"; + this.chkFri.UseVisualStyleBackColor = true; + // + // radWeek + // + this.radWeek.AutoSize = true; + this.radWeek.Location = new System.Drawing.Point(19, 48); + this.radWeek.Name = "radWeek"; + this.radWeek.Size = new System.Drawing.Size(47, 16); + this.radWeek.TabIndex = 38; + this.radWeek.TabStop = true; + this.radWeek.Text = "매주"; + this.radWeek.UseVisualStyleBackColor = true; + // + // chkSat + // + this.chkSat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkSat.AutoSize = true; + this.chkSat.Location = new System.Drawing.Point(378, 47); + this.chkSat.Name = "chkSat"; + this.chkSat.Size = new System.Drawing.Size(36, 16); + this.chkSat.TabIndex = 27; + this.chkSat.Text = "토"; + this.chkSat.UseVisualStyleBackColor = true; + // + // radMon + // + this.radMon.AutoSize = true; + this.radMon.Location = new System.Drawing.Point(19, 24); + this.radMon.Name = "radMon"; + this.radMon.Size = new System.Drawing.Size(47, 16); + this.radMon.TabIndex = 37; + this.radMon.TabStop = true; + this.radMon.Text = "매월"; + this.radMon.UseVisualStyleBackColor = true; + // + // chkSun + // + this.chkSun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkSun.AutoSize = true; + this.chkSun.Location = new System.Drawing.Point(79, 47); + this.chkSun.Name = "chkSun"; + this.chkSun.Size = new System.Drawing.Size(36, 16); + this.chkSun.TabIndex = 28; + this.chkSun.Text = "일"; + this.chkSun.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Controls.Add(label4); + this.groupBox1.Controls.Add(this.cmbMinute); + this.groupBox1.Controls.Add(this.cmbHour); + this.groupBox1.Controls.Add(label1); + this.groupBox1.Location = new System.Drawing.Point(550, 80); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(125, 79); + this.groupBox1.TabIndex = 42; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "전송 시간"; + // + // cmbMinute + // + this.cmbMinute.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbMinute.FormattingEnabled = true; + this.cmbMinute.Location = new System.Drawing.Point(17, 48); + this.cmbMinute.Name = "cmbMinute"; + this.cmbMinute.Size = new System.Drawing.Size(78, 20); + this.cmbMinute.TabIndex = 30; + // + // cmbHour + // + this.cmbHour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbHour.FormattingEnabled = true; + this.cmbHour.Location = new System.Drawing.Point(17, 22); + this.cmbHour.Name = "cmbHour"; + this.cmbHour.Size = new System.Drawing.Size(78, 20); + this.cmbHour.TabIndex = 29; + // + // tbBody + // + this.tbBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbBody.Html = resources.GetString("tbBody.Html"); + this.tbBody.Location = new System.Drawing.Point(82, 296); + this.tbBody.Name = "tbBody"; + this.tbBody.ReadOnly = false; + this.tbBody.ShowToolbar = true; + this.tbBody.Size = new System.Drawing.Size(593, 272); + this.tbBody.TabIndex = 23; + // + // chkEnb + // + this.chkEnb.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkEnb.AutoSize = true; + this.chkEnb.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "enable", true)); + this.chkEnb.Location = new System.Drawing.Point(11, 20); + this.chkEnb.Name = "chkEnb"; + this.chkEnb.Size = new System.Drawing.Size(60, 16); + this.chkEnb.TabIndex = 18; + this.chkEnb.Text = "활성화"; + this.chkEnb.UseVisualStyleBackColor = true; + // + // bs + // + this.bs.DataMember = "MailAuto"; + this.bs.DataSource = this.dsMSSQL; + // + // tbTo + // + this.tbTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbTo.Location = new System.Drawing.Point(82, 189); + this.tbTo.Name = "tbTo"; + this.tbTo.Size = new System.Drawing.Size(593, 21); + this.tbTo.TabIndex = 7; + // + // tbBcc + // + this.tbBcc.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbBcc.Location = new System.Drawing.Point(82, 216); + this.tbBcc.Name = "tbBcc"; + this.tbBcc.Size = new System.Drawing.Size(593, 21); + this.tbBcc.TabIndex = 9; + // + // tbCC + // + this.tbCC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbCC.Location = new System.Drawing.Point(82, 243); + this.tbCC.Name = "tbCC"; + this.tbCC.Size = new System.Drawing.Size(593, 21); + this.tbCC.TabIndex = 11; + // + // tbSubject + // + this.tbSubject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbSubject.Location = new System.Drawing.Point(82, 269); + this.tbSubject.Name = "tbSubject"; + this.tbSubject.Size = new System.Drawing.Size(593, 21); + this.tbSubject.TabIndex = 13; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = false; + this.tam.MailAutoTableAdapter = this.ta; + this.tam.MailDataTableAdapter = null; + this.tam.MailFormTableAdapter = null; + this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // taf + // + this.taf.ClearBeforeFill = true; + // + // linkLabel2 + // + this.linkLabel2.AutoSize = true; + this.linkLabel2.Location = new System.Drawing.Point(22, 325); + this.linkLabel2.Name = "linkLabel2"; + this.linkLabel2.Size = new System.Drawing.Size(53, 12); + this.linkLabel2.TabIndex = 50; + this.linkLabel2.TabStop = true; + this.linkLabel2.Text = "양식선택"; + this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); + // + // fMailAutoAdd + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(685, 607); + this.Controls.Add(this.panel1); + this.Name = "fMailAutoAdd"; + this.Text = "메일 자동 발신 설정"; + this.Load += new System.EventHandler(this.fMailform_Load); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bsForm)).EndInit(); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DSMail dsMSSQL; + private DSMailTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox tbTo; + private System.Windows.Forms.TextBox tbBcc; + private System.Windows.Forms.TextBox tbCC; + private System.Windows.Forms.TextBox tbSubject; + private System.Windows.Forms.CheckBox chkEnb; + private System.Windows.Forms.CheckBox chkTue; + private System.Windows.Forms.CheckBox chkMon; + private YARTE.UI.HtmlEditor tbBody; + private System.Windows.Forms.CheckBox chkSun; + private System.Windows.Forms.CheckBox chkSat; + private System.Windows.Forms.CheckBox chkFri; + private System.Windows.Forms.CheckBox chkThjur; + private System.Windows.Forms.CheckBox chkWend; + private System.Windows.Forms.ComboBox cmbHour; + private System.Windows.Forms.ComboBox cmbMinute; + private System.Windows.Forms.DateTimePicker dtEd; + private System.Windows.Forms.DateTimePicker dtSd; + private System.Windows.Forms.BindingSource bs; + private DSMailTableAdapters.MailAutoTableAdapter ta; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.ComboBox cmbDay; + private System.Windows.Forms.RadioButton radWeek; + private System.Windows.Forms.RadioButton radMon; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Button btOK; + private DSMailTableAdapters.MailFormTableAdapter taf; + private System.Windows.Forms.BindingSource bsForm; + private System.Windows.Forms.TextBox tbFrom; + private System.Windows.Forms.LinkLabel linkLabel2; + } +} \ No newline at end of file diff --git a/SubProject/FCM0000/Mail/fMailAutoAdd.cs b/SubProject/FCM0000/Mail/fMailAutoAdd.cs new file mode 100644 index 0000000..c3084ef --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailAutoAdd.cs @@ -0,0 +1,222 @@ +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; +using YARTE.UI.Buttons; + +namespace FCM0000 +{ + public partial class fMailAutoAdd : FCOMMON.fBase + { + DSMail.MailAutoRow dr = null; + public fMailAutoAdd(DSMail.MailAutoRow dr_) + { + InitializeComponent(); + PredefinedButtonSets.SetupDefaultButtons(this.tbBody); + this.dr = dr_; + } + + private void fMailform_Load(object sender, EventArgs e) + { + + //시작일을 오늘로 + this.dtSd.Value = DateTime.Now; + + cmbDay.Items.Clear(); + foreach (var i in Enumerable.Range(1, 31)) + cmbDay.Items.Add(i.ToString("00")); + + cmbHour.Items.Clear(); + foreach (var i in Enumerable.Range(1, 24)) + cmbHour.Items.Add(i.ToString("00")); + + this.cmbMinute.Items.Clear(); + foreach (var i in Enumerable.Range(0, 59)) + cmbMinute.Items.Add(i.ToString("00")); + + //메일양식 + this.taf.Fill(this.dsMSSQL.MailForm, FCOMMON.info.Login.gcode); + + dtSd.Value = DateTime.Parse(dr.sdate); + dtEd.Value = DateTime.Parse(dr.edate); + chkEnb.Checked = dr.enable; + if (dr.sday == null || dr.sday.Length < 2) + { + //아무것도 없다 매주 월요일로 한다 + radWeek.Checked = true; + this.chkMon.Checked = true; + } + else + { + if (dr.sday[0] == 1) + { + radWeek.Checked = true; + var bitString = Convert.ToString(dr.sday[1], 2).PadLeft(8, '0').ToArray(); + this.chkSun.Checked = bitString[1] == '1'; + this.chkMon.Checked = bitString[2] == '1'; + this.chkTue.Checked = bitString[3] == '1'; + this.chkWend.Checked = bitString[4] == '1'; + this.chkThjur.Checked = bitString[5] == '1'; + this.chkFri.Checked = bitString[6] == '1'; + this.chkSat.Checked = bitString[7] == '1'; + } + else + { + radMon.Checked = true; + cmbDay.Text = dr.sday[1].ToString("00"); + } + + } + + tbTo.Text = dr.tolist; + tbBcc.Text = dr.bcc; + tbCC.Text = dr.cc; + tbFrom.Text = dr.fromlist; + tbSubject.Text = dr.subject; + tbBody.Html = dr.body; + + //전송시간 + var buf = dr.stime.Split(':'); + cmbHour.Text = buf[0]; + cmbMinute.Text = buf[1]; + + //선택된 자료갸ㅏ 있다면 선택해준다. + // if (dr.fidx != -1) this.cmbMailForm.SelectedValue = dr.fidx; + // cmbMailForm_SelectedIndexChanged(null, null); + } + + private void cmbMailForm_SelectedIndexChanged(object sender, EventArgs e) + { + + } + private void button1_Click(object sender, EventArgs e) + { + //메일폼이 선택되어이 있어야 함 + if (chkEnb.Checked) + { + if (this.tbBody.Html=="") + { + FCOMMON.Util.MsgE("메일 내용을 입력하세요"); + this.tbBody.Focus(); + return; + } + if (tbTo.Text.Trim() == "") + { + FCOMMON.Util.MsgE("수신목록을 입력하세요"); + this.tbBody.Focus(); + return; + } + if (tbSubject.Text.Trim() == "") + { + FCOMMON.Util.MsgE("제목을 입력하세요"); + this.tbBody.Focus(); + return; + } + } + + if(radMon.Checked && cmbDay.SelectedIndex < 0) + { + FCOMMON.Util.MsgE("전송간격의 [일]을 선택하세요"); + cmbDay.Focus(); + return; + } + if (tbFrom.Text.Trim() == "") + { + FCOMMON.Util.MsgE("발신 주소가 없습니다"); + tbFrom.Focus(); + return; + } + if(tbTo.Text.Trim() == "") + { + FCOMMON.Util.MsgE("수신 주소가 없습니다"); + tbTo.Focus(); + return; + } + if(tbSubject.Text.Trim() == "") + { + FCOMMON.Util.MsgE("메일 제목이 없습니다"); + tbSubject.Focus(); + return; + } + if(tbBody.Html.Trim() == "") + { + FCOMMON.Util.MsgE("메일 본문이 없습니다"); + tbBody.Focus(); + return; + } + + this.dr.fromlist = tbFrom.Text.Trim(); + this.dr.enable = chkEnb.Checked; + this.dr.sdate = dtSd.Value.ToShortDateString(); + this.dr.edate = dtEd.Value.ToShortDateString(); + this.dr.stime = string.Format("{0}:{1}",cmbHour.Text,cmbMinute.Text); + this.dr.tolist = tbTo.Text.Trim(); + this.dr.bcc = tbBcc.Text.Trim(); + this.dr.cc = tbCC.Text.Trim(); + this.dr.subject = tbSubject.Text.Trim(); + this.dr.body = tbBody.Html; + //this.dr.fidx = (int)(cmbMailForm.SelectedValue); + + byte sendtype = 0; + if (radWeek.Checked) sendtype = 1; + + byte sendvalue = 0; + if (radMon.Checked) sendvalue = byte.Parse(cmbDay.Text); + else + { + //체크박스를 비트로 처리한다. + var bitString = "0"; + bitString += chkSun.Checked ? "1" : "0"; + bitString += chkMon.Checked ? "1" : "0"; + bitString += chkTue.Checked ? "1" : "0"; + bitString += chkWend.Checked ? "1" : "0"; + bitString += chkThjur.Checked ? "1" : "0"; + bitString += chkFri.Checked ? "1" : "0"; + bitString += chkSat.Checked ? "1" : "0"; + sendvalue = Convert.ToByte(bitString, 2); + } + this.dr.sday = new byte[] { sendtype, sendvalue }; + DialogResult = System.Windows.Forms.DialogResult.OK; + } + + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + dtEd.Value = dtSd.Value; + } + + private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + FCOMMON.Util.MsgE("양식 선택 준비중"); + ////메일폼이 선택되면 그 자료를 불러온다 + ////var drv = cmbMailForm.SelectedValue as DataRowView; + //if (cmbMailForm.SelectedIndex < 0) + //{ + // tbSubject.Text = ""; + // tbBody.ResetText(); + // return; + //} + //var idx = (int)cmbMailForm.SelectedValue;// int.Parse(drv["idx"].ToString()); + //var data = taf.GetByIdx(FCOMMON.info.Login.gcode, idx); + //if (data != null && data.Rows.Count > 0) + //{ + // var dr = data.Rows[0] as DSMail.MailFormRow; + // tbSubject.Text = dr.subject; + // tbBody.Html = dr.body; + // if (tbTo.Text.Trim() == "") tbTo.Text = dr.tolist; + // if (tbBcc.Text.Trim() == "") tbBcc.Text = dr.bcc; + // if (tbCC.Text.Trim() == "") tbCC.Text = dr.cc; + //} + //else + //{ + // tbSubject.Text = ""; + // tbBody.ResetText(); + + //} + } + + } +} diff --git a/SubProject/FCM0000/Mail/fMailAutoAdd.resx b/SubProject/FCM0000/Mail/fMailAutoAdd.resx new file mode 100644 index 0000000..3ad8647 --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailAutoAdd.resx @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + 17, 17 + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML><HEAD> +<META content="text/html; charset=unicode" http-equiv=Content-Type> +<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> +<BODY></BODY></HTML> + + + + 261, 17 + + + 453, 17 + + + 261, 17 + + + 122, 17 + + + 325, 17 + + + 387, 17 + + \ No newline at end of file diff --git a/SubProject/FCM0000/Mail/fMailList.Designer.cs b/SubProject/FCM0000/Mail/fMailList.Designer.cs new file mode 100644 index 0000000..b0529e0 --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailList.Designer.cs @@ -0,0 +1,406 @@ +namespace FCM0000.Mail +{ + partial class fMailList + { + /// + /// 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailList)); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + this.dSMail = new FCM0000.DSMail(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.ta = new FCM0000.DSMailTableAdapters.MailDataTableAdapter(); + this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager(); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.btAdd = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.btDel = new System.Windows.Forms.ToolStripButton(); + 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.btSave = new System.Windows.Forms.ToolStripButton(); + this.panel1 = new System.Windows.Forms.Panel(); + this.button1 = new System.Windows.Forms.Button(); + this.btRefresh = new System.Windows.Forms.Button(); + this.dtEd = new System.Windows.Forms.DateTimePicker(); + this.label2 = new System.Windows.Forms.Label(); + this.dtSd = new System.Windows.Forms.DateTimePicker(); + this.label1 = new System.Windows.Forms.Label(); + this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); + ((System.ComponentModel.ISupportInitialize)(this.dSMail)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); + this.SuspendLayout(); + // + // dSMail + // + this.dSMail.DataSetName = "DSMail"; + this.dSMail.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bs + // + this.bs.DataMember = "MailData"; + this.bs.DataSource = this.dSMail; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = false; + this.tam.MailAutoTableAdapter = null; + this.tam.MailDataTableAdapter = this.ta; + this.tam.MailFormTableAdapter = null; + this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // bn + // + this.bn.AddNewItem = this.btAdd; + this.bn.BindingSource = this.bs; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = this.btDel; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.btAdd, + this.btDel, + this.btSave}); + this.bn.Location = new System.Drawing.Point(0, 499); + 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(791, 25); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // btAdd + // + this.btAdd.Enabled = false; + 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(79, 22); + this.btAdd.Text = "새로 추가"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // btDel + // + this.btDel.Enabled = false; + 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(51, 22); + this.btDel.Text = "삭제"; + // + // 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, 22); + 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, 22); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); + // + // 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, 25); + // + // 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, 22); + 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, 22); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); + // + // btSave + // + this.btSave.Enabled = false; + this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image"))); + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(91, 22); + this.btSave.Text = "데이터 저장"; + this.btSave.Click += new System.EventHandler(this.mailDataBindingNavigatorSaveItem_Click); + // + // panel1 + // + this.panel1.Controls.Add(this.button1); + this.panel1.Controls.Add(this.btRefresh); + this.panel1.Controls.Add(this.dtEd); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.dtSd); + this.panel1.Controls.Add(this.label1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(791, 36); + this.panel1.TabIndex = 3; + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.button1.Location = new System.Drawing.Point(721, 7); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(64, 21); + this.button1.TabIndex = 5; + this.button1.Text = "닫기"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // btRefresh + // + this.btRefresh.Location = new System.Drawing.Point(482, 9); + this.btRefresh.Name = "btRefresh"; + this.btRefresh.Size = new System.Drawing.Size(64, 21); + this.btRefresh.TabIndex = 4; + this.btRefresh.Text = "조회"; + this.btRefresh.UseVisualStyleBackColor = true; + this.btRefresh.Click += new System.EventHandler(this.btRefresh_Click); + // + // dtEd + // + this.dtEd.Location = new System.Drawing.Point(273, 9); + this.dtEd.Name = "dtEd"; + this.dtEd.Size = new System.Drawing.Size(200, 21); + this.dtEd.TabIndex = 3; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(253, 13); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(14, 12); + this.label2.TabIndex = 2; + this.label2.Text = "~"; + // + // dtSd + // + this.dtSd.Location = new System.Drawing.Point(45, 7); + this.dtSd.Name = "dtSd"; + this.dtSd.Size = new System.Drawing.Size(200, 21); + this.dtSd.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(10, 12); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(29, 12); + this.label1.TabIndex = 0; + this.label1.Text = "기간"; + // + // fpSpread1 + // + this.fpSpread1.AccessibleDescription = ""; + this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; + this.fpSpread1.Location = new System.Drawing.Point(0, 36); + this.fpSpread1.Name = "fpSpread1"; + this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { + this.fpSpread1_Sheet1}); + this.fpSpread1.Size = new System.Drawing.Size(791, 463); + 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 = 9; + 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 = "등록일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "제목"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "발신"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "수신"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "숨은참조"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "참조"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "비고"; + this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 32F; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1; + this.fpSpread1_Sheet1.Columns.Get(0).DataField = "SendOK"; + this.fpSpread1_Sheet1.Columns.Get(0).Label = "전송"; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1; + this.fpSpread1_Sheet1.Columns.Get(1).DataField = "pdate"; + this.fpSpread1_Sheet1.Columns.Get(1).Label = "등록일"; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2; + this.fpSpread1_Sheet1.Columns.Get(2).DataField = "subject"; + this.fpSpread1_Sheet1.Columns.Get(2).Label = "제목"; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3; + this.fpSpread1_Sheet1.Columns.Get(3).DataField = "fromlist"; + this.fpSpread1_Sheet1.Columns.Get(3).Label = "발신"; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4; + this.fpSpread1_Sheet1.Columns.Get(4).DataField = "tolist"; + this.fpSpread1_Sheet1.Columns.Get(4).Label = "수신"; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5; + this.fpSpread1_Sheet1.Columns.Get(5).DataField = "bcc"; + this.fpSpread1_Sheet1.Columns.Get(5).Label = "숨은참조"; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6; + this.fpSpread1_Sheet1.Columns.Get(6).DataField = "cc"; + this.fpSpread1_Sheet1.Columns.Get(6).Label = "참조"; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType7; + this.fpSpread1_Sheet1.Columns.Get(7).DataField = "SendMsg"; + this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(7).Label = "비고"; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType8; + this.fpSpread1_Sheet1.Columns.Get(8).DataField = "cate"; + this.fpSpread1_Sheet1.DataSource = this.bs; + this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; + this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; + // + // fMailList + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(791, 524); + this.Controls.Add(this.fpSpread1); + this.Controls.Add(this.panel1); + this.Controls.Add(this.bn); + this.Name = "fMailList"; + this.Text = "메일 발신 내역"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.dSMail)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private DSMail dSMail; + private System.Windows.Forms.BindingSource bs; + private DSMailTableAdapters.MailDataTableAdapter ta; + private DSMailTableAdapters.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.ToolStripButton btSave; + private System.Windows.Forms.Panel panel1; + private FarPoint.Win.Spread.FpSpread fpSpread1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.DateTimePicker dtEd; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.DateTimePicker dtSd; + private System.Windows.Forms.Button btRefresh; + private System.Windows.Forms.Button button1; + private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; + } +} \ No newline at end of file diff --git a/SubProject/FCM0000/Mail/fMailList.cs b/SubProject/FCM0000/Mail/fMailList.cs new file mode 100644 index 0000000..a15c660 --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailList.cs @@ -0,0 +1,70 @@ +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 FCM0000.Mail +{ + public partial class fMailList : Form + { + string fn_fpcolsize = ""; + public fMailList() + { + InitializeComponent(); + this.FormClosed += fAutoSendSetting_FormClosed; + fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + } + + void fAutoSendSetting_FormClosed(object sender, FormClosedEventArgs e) + { + FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize); + } + private void mailDataBindingNavigatorSaveItem_Click(object sender, EventArgs e) + { + this.Validate(); + this.bs.EndEdit(); + this.tam.UpdateAll(this.dSMail); + + } + private void __Load(object sender, EventArgs e) + { + //한달전으로 처리 + this.dtEd.Value = DateTime.Now; + this.dtSd.Value = DateTime.Now.AddMonths(-1); + refreshData(); + } + + private void fillToolStripButton_Click(object sender, EventArgs e) + { + + + } + + void refreshData() + { + try + { + this.ta.Fill(this.dSMail.MailData, FCOMMON.info.Login.gcode, dtSd.Value.ToShortDateString(), dtEd.Value.ToShortDateString(),"%"); + } + catch (System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.Message); + } + FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize); + } + private void btRefresh_Click(object sender, EventArgs e) + { + refreshData(); + } + + private void button1_Click(object sender, EventArgs e) + { + this.Close(); + } + + } +} diff --git a/SubProject/FCM0000/Mail/fMailList.resx b/SubProject/FCM0000/Mail/fMailList.resx new file mode 100644 index 0000000..87c6691 --- /dev/null +++ b/SubProject/FCM0000/Mail/fMailList.resx @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 90, 17 + + + 179, 17 + + + 243, 17 + + + 17, 17 + + + 305, 17 + + + + + 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/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/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+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo + dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= + + + + 371, 17 + + \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fMailform.Designer.cs b/SubProject/FCM0000/Mail/fMailform.Designer.cs similarity index 95% rename from SubProject/FCM0000/Board/fMailform.Designer.cs rename to SubProject/FCM0000/Mail/fMailform.Designer.cs index 07e84d9..0f008e9 100644 --- a/SubProject/FCM0000/Board/fMailform.Designer.cs +++ b/SubProject/FCM0000/Mail/fMailform.Designer.cs @@ -1,477 +1,472 @@ -namespace FCM0000 -{ - partial class fMailform - { - /// - /// 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 tolistLabel; - System.Windows.Forms.Label bccLabel; - System.Windows.Forms.Label ccLabel; - System.Windows.Forms.Label subjectLabel; - System.Windows.Forms.Label bodyLabel; - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailform)); - this.bn = new System.Windows.Forms.BindingNavigator(this.components); - this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); - this.bs = new System.Windows.Forms.BindingSource(this.components); - this.dsMSSQL = new FCM0000.dsMSSQL(); - this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); - this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); - this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); - this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton(); - this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); - this.mailFormDataGridView = new System.Windows.Forms.DataGridView(); - this.panel1 = new System.Windows.Forms.Panel(); - this.htmlEditor1 = new YARTE.UI.HtmlEditor(); - this.checkBox3 = new System.Windows.Forms.CheckBox(); - this.checkBox2 = new System.Windows.Forms.CheckBox(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.tolistTextBox = new System.Windows.Forms.TextBox(); - this.bccTextBox = new System.Windows.Forms.TextBox(); - this.ccTextBox = new System.Windows.Forms.TextBox(); - this.subjectTextBox = new System.Windows.Forms.TextBox(); - this.ta = new FCM0000.dsMSSQLTableAdapters.MailFormTableAdapter(); - this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - tolistLabel = new System.Windows.Forms.Label(); - bccLabel = new System.Windows.Forms.Label(); - ccLabel = new System.Windows.Forms.Label(); - subjectLabel = new System.Windows.Forms.Label(); - bodyLabel = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); - this.bn.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).BeginInit(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // tolistLabel - // - tolistLabel.AutoSize = true; - tolistLabel.Location = new System.Drawing.Point(30, 15); - tolistLabel.Name = "tolistLabel"; - tolistLabel.Size = new System.Drawing.Size(35, 12); - tolistLabel.TabIndex = 6; - tolistLabel.Text = "tolist:"; - // - // bccLabel - // - bccLabel.AutoSize = true; - bccLabel.Location = new System.Drawing.Point(35, 42); - bccLabel.Name = "bccLabel"; - bccLabel.Size = new System.Drawing.Size(30, 12); - bccLabel.TabIndex = 8; - bccLabel.Text = "bcc:"; - // - // ccLabel - // - ccLabel.AutoSize = true; - ccLabel.Location = new System.Drawing.Point(42, 69); - ccLabel.Name = "ccLabel"; - ccLabel.Size = new System.Drawing.Size(23, 12); - ccLabel.TabIndex = 10; - ccLabel.Text = "cc:"; - // - // subjectLabel - // - subjectLabel.AutoSize = true; - subjectLabel.Location = new System.Drawing.Point(15, 96); - subjectLabel.Name = "subjectLabel"; - subjectLabel.Size = new System.Drawing.Size(50, 12); - subjectLabel.TabIndex = 12; - subjectLabel.Text = "subject:"; - // - // bodyLabel - // - bodyLabel.AutoSize = true; - bodyLabel.Location = new System.Drawing.Point(28, 122); - bodyLabel.Name = "bodyLabel"; - bodyLabel.Size = new System.Drawing.Size(37, 12); - bodyLabel.TabIndex = 16; - bodyLabel.Text = "body:"; - // - // bn - // - this.bn.AddNewItem = this.bindingNavigatorAddNewItem; - 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.bindingNavigatorMoveFirstItem, - this.bindingNavigatorMovePreviousItem, - this.bindingNavigatorSeparator, - this.bindingNavigatorPositionItem, - this.bindingNavigatorCountItem, - this.bindingNavigatorSeparator1, - this.bindingNavigatorMoveNextItem, - this.bindingNavigatorMoveLastItem, - this.bindingNavigatorSeparator2, - this.bindingNavigatorAddNewItem, - this.bindingNavigatorDeleteItem, - this.mailFormBindingNavigatorSaveItem}); - this.bn.Location = new System.Drawing.Point(0, 598); - 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(816, 25); - this.bn.TabIndex = 0; - this.bn.Text = "bindingNavigator1"; - // - // bindingNavigatorAddNewItem - // - this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image"))); - this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem"; - this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(65, 22); - this.bindingNavigatorAddNewItem.Text = "Add(&A)"; - this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click); - // - // bs - // - this.bs.DataMember = "MailForm"; - this.bs.DataSource = this.dsMSSQL; - this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); - // - // dsMSSQL - // - this.dsMSSQL.DataSetName = "dsMSSQL"; - this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; - // - // bindingNavigatorCountItem - // - this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; - this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); - this.bindingNavigatorCountItem.Text = "/{0}"; - this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; - // - // bindingNavigatorMoveFirstItem - // - this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); - this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; - this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); - 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, 22); - this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; - // - // bindingNavigatorSeparator - // - this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; - this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); - // - // 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, 25); - // - // 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, 22); - 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, 22); - this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; - // - // bindingNavigatorSeparator2 - // - this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; - this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); - // - // bindingNavigatorDeleteItem - // - this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image"))); - this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem"; - this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(78, 22); - this.bindingNavigatorDeleteItem.Text = "Delete(&D)"; - this.bindingNavigatorDeleteItem.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click); - // - // mailFormBindingNavigatorSaveItem - // - this.mailFormBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("mailFormBindingNavigatorSaveItem.Image"))); - this.mailFormBindingNavigatorSaveItem.Name = "mailFormBindingNavigatorSaveItem"; - this.mailFormBindingNavigatorSaveItem.Size = new System.Drawing.Size(67, 22); - this.mailFormBindingNavigatorSaveItem.Text = "Save(&S)"; - this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click); - // - // mailFormDataGridView - // - this.mailFormDataGridView.AllowUserToAddRows = false; - this.mailFormDataGridView.AutoGenerateColumns = false; - this.mailFormDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; - this.mailFormDataGridView.ColumnHeadersHeight = 30; - this.mailFormDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.mailFormDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewTextBoxColumn2, - this.dataGridViewTextBoxColumn3}); - this.mailFormDataGridView.DataSource = this.bs; - this.mailFormDataGridView.Dock = System.Windows.Forms.DockStyle.Left; - this.mailFormDataGridView.Location = new System.Drawing.Point(0, 0); - this.mailFormDataGridView.Name = "mailFormDataGridView"; - this.mailFormDataGridView.RowTemplate.Height = 23; - this.mailFormDataGridView.Size = new System.Drawing.Size(317, 598); - this.mailFormDataGridView.TabIndex = 2; - this.mailFormDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.mailFormDataGridView_DataError); - // - // panel1 - // - this.panel1.Controls.Add(this.htmlEditor1); - this.panel1.Controls.Add(this.checkBox3); - this.panel1.Controls.Add(this.checkBox2); - this.panel1.Controls.Add(this.checkBox1); - this.panel1.Controls.Add(tolistLabel); - this.panel1.Controls.Add(this.tolistTextBox); - this.panel1.Controls.Add(bccLabel); - this.panel1.Controls.Add(this.bccTextBox); - this.panel1.Controls.Add(ccLabel); - this.panel1.Controls.Add(this.ccTextBox); - this.panel1.Controls.Add(subjectLabel); - this.panel1.Controls.Add(this.subjectTextBox); - this.panel1.Controls.Add(bodyLabel); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(317, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(499, 598); - this.panel1.TabIndex = 3; - // - // htmlEditor1 - // - this.htmlEditor1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.htmlEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.htmlEditor1.Html = resources.GetString("htmlEditor1.Html"); - this.htmlEditor1.Location = new System.Drawing.Point(74, 122); - this.htmlEditor1.Name = "htmlEditor1"; - this.htmlEditor1.ReadOnly = false; - this.htmlEditor1.ShowToolbar = true; - this.htmlEditor1.Size = new System.Drawing.Size(413, 464); - this.htmlEditor1.TabIndex = 23; - this.htmlEditor1.Validated += new System.EventHandler(this.htmlEditor1_Validated); - // - // checkBox3 - // - this.checkBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBox3.AutoSize = true; - this.checkBox3.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfBCC", true)); - this.checkBox3.Location = new System.Drawing.Point(449, 69); - this.checkBox3.Name = "checkBox3"; - this.checkBox3.Size = new System.Drawing.Size(45, 16); - this.checkBox3.TabIndex = 20; - this.checkBox3.Text = "Self"; - this.checkBox3.UseVisualStyleBackColor = true; - // - // checkBox2 - // - this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBox2.AutoSize = true; - this.checkBox2.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfCC", true)); - this.checkBox2.Location = new System.Drawing.Point(449, 41); - this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(45, 16); - this.checkBox2.TabIndex = 19; - this.checkBox2.Text = "Self"; - this.checkBox2.UseVisualStyleBackColor = true; - // - // checkBox1 - // - this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBox1.AutoSize = true; - this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfTo", true)); - this.checkBox1.Location = new System.Drawing.Point(449, 13); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(45, 16); - this.checkBox1.TabIndex = 18; - this.checkBox1.Text = "Self"; - this.checkBox1.UseVisualStyleBackColor = true; - // - // tolistTextBox - // - this.tolistTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tolistTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tolist", true)); - this.tolistTextBox.Location = new System.Drawing.Point(74, 12); - this.tolistTextBox.Name = "tolistTextBox"; - this.tolistTextBox.Size = new System.Drawing.Size(368, 21); - this.tolistTextBox.TabIndex = 7; - // - // bccTextBox - // - this.bccTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.bccTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bcc", true)); - this.bccTextBox.Location = new System.Drawing.Point(74, 39); - this.bccTextBox.Name = "bccTextBox"; - this.bccTextBox.Size = new System.Drawing.Size(368, 21); - this.bccTextBox.TabIndex = 9; - // - // ccTextBox - // - this.ccTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.ccTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cc", true)); - this.ccTextBox.Location = new System.Drawing.Point(74, 66); - this.ccTextBox.Name = "ccTextBox"; - this.ccTextBox.Size = new System.Drawing.Size(368, 21); - this.ccTextBox.TabIndex = 11; - // - // subjectTextBox - // - this.subjectTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.subjectTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "subject", true)); - this.subjectTextBox.Location = new System.Drawing.Point(74, 93); - this.subjectTextBox.Name = "subjectTextBox"; - this.subjectTextBox.Size = new System.Drawing.Size(413, 21); - this.subjectTextBox.TabIndex = 13; - // - // ta - // - this.ta.ClearBeforeFill = true; - // - // tam - // - this.tam.BackupDataSetBeforeUpdate = false; - this.tam.BoardTableAdapter = null; - this.tam.CommonTableAdapter = null; - this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = this.ta; - this.tam.ProjectsTableAdapter = null; - this.tam.RequestItemTableAdapter = null; - this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.DataPropertyName = "cate"; - this.dataGridViewTextBoxColumn2.HeaderText = "cate"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.Width = 54; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn3.DataPropertyName = "title"; - this.dataGridViewTextBoxColumn3.HeaderText = "title"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - // - // fMailform - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(816, 623); - this.Controls.Add(this.panel1); - this.Controls.Add(this.mailFormDataGridView); - this.Controls.Add(this.bn); - this.Name = "fMailform"; - this.Text = "fMailform"; - this.Load += new System.EventHandler(this.fMailform_Load); - ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); - this.bn.ResumeLayout(false); - this.bn.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private dsMSSQL dsMSSQL; - private System.Windows.Forms.BindingSource bs; - private dsMSSQLTableAdapters.MailFormTableAdapter ta; - private dsMSSQLTableAdapters.TableAdapterManager tam; - private System.Windows.Forms.BindingNavigator bn; - private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem; - private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; - private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem; - 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.ToolStripButton mailFormBindingNavigatorSaveItem; - private System.Windows.Forms.DataGridView mailFormDataGridView; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.TextBox tolistTextBox; - private System.Windows.Forms.TextBox bccTextBox; - private System.Windows.Forms.TextBox ccTextBox; - private System.Windows.Forms.TextBox subjectTextBox; - private System.Windows.Forms.CheckBox checkBox1; - private System.Windows.Forms.CheckBox checkBox3; - private System.Windows.Forms.CheckBox checkBox2; - private YARTE.UI.HtmlEditor htmlEditor1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; - } +namespace FCM0000 +{ + partial class fMailform + { + /// + /// 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 tolistLabel; + System.Windows.Forms.Label bccLabel; + System.Windows.Forms.Label ccLabel; + System.Windows.Forms.Label subjectLabel; + System.Windows.Forms.Label bodyLabel; + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailform)); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.dsMSSQL = new FCM0000.DSMail(); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton(); + this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); + this.mailFormDataGridView = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.panel1 = new System.Windows.Forms.Panel(); + this.htmlEditor1 = new YARTE.UI.HtmlEditor(); + this.checkBox3 = new System.Windows.Forms.CheckBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.tolistTextBox = new System.Windows.Forms.TextBox(); + this.bccTextBox = new System.Windows.Forms.TextBox(); + this.ccTextBox = new System.Windows.Forms.TextBox(); + this.subjectTextBox = new System.Windows.Forms.TextBox(); + this.ta = new FCM0000.DSMailTableAdapters.MailFormTableAdapter(); + this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager(); + tolistLabel = new System.Windows.Forms.Label(); + bccLabel = new System.Windows.Forms.Label(); + ccLabel = new System.Windows.Forms.Label(); + subjectLabel = new System.Windows.Forms.Label(); + bodyLabel = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).BeginInit(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // tolistLabel + // + tolistLabel.AutoSize = true; + tolistLabel.Location = new System.Drawing.Point(30, 15); + tolistLabel.Name = "tolistLabel"; + tolistLabel.Size = new System.Drawing.Size(35, 12); + tolistLabel.TabIndex = 6; + tolistLabel.Text = "tolist:"; + // + // bccLabel + // + bccLabel.AutoSize = true; + bccLabel.Location = new System.Drawing.Point(35, 42); + bccLabel.Name = "bccLabel"; + bccLabel.Size = new System.Drawing.Size(30, 12); + bccLabel.TabIndex = 8; + bccLabel.Text = "bcc:"; + // + // ccLabel + // + ccLabel.AutoSize = true; + ccLabel.Location = new System.Drawing.Point(42, 69); + ccLabel.Name = "ccLabel"; + ccLabel.Size = new System.Drawing.Size(23, 12); + ccLabel.TabIndex = 10; + ccLabel.Text = "cc:"; + // + // subjectLabel + // + subjectLabel.AutoSize = true; + subjectLabel.Location = new System.Drawing.Point(15, 96); + subjectLabel.Name = "subjectLabel"; + subjectLabel.Size = new System.Drawing.Size(50, 12); + subjectLabel.TabIndex = 12; + subjectLabel.Text = "subject:"; + // + // bodyLabel + // + bodyLabel.AutoSize = true; + bodyLabel.Location = new System.Drawing.Point(28, 122); + bodyLabel.Name = "bodyLabel"; + bodyLabel.Size = new System.Drawing.Size(37, 12); + bodyLabel.TabIndex = 16; + bodyLabel.Text = "body:"; + // + // bn + // + this.bn.AddNewItem = this.bindingNavigatorAddNewItem; + 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.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.bindingNavigatorAddNewItem, + this.bindingNavigatorDeleteItem, + this.mailFormBindingNavigatorSaveItem}); + this.bn.Location = new System.Drawing.Point(0, 598); + 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(816, 25); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bindingNavigatorAddNewItem + // + this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image"))); + this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem"; + this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(65, 22); + this.bindingNavigatorAddNewItem.Text = "Add(&A)"; + this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click); + // + // bs + // + this.bs.DataMember = "MailForm"; + this.bs.DataSource = this.dsMSSQL; + this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // dsMSSQL + // + this.dsMSSQL.DataSetName = "dsMail"; + this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); + 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, 22); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); + // + // 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, 25); + // + // 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, 22); + 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, 22); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); + // + // bindingNavigatorDeleteItem + // + this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image"))); + this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem"; + this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(78, 22); + this.bindingNavigatorDeleteItem.Text = "Delete(&D)"; + this.bindingNavigatorDeleteItem.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click); + // + // mailFormBindingNavigatorSaveItem + // + this.mailFormBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("mailFormBindingNavigatorSaveItem.Image"))); + this.mailFormBindingNavigatorSaveItem.Name = "mailFormBindingNavigatorSaveItem"; + this.mailFormBindingNavigatorSaveItem.Size = new System.Drawing.Size(67, 22); + this.mailFormBindingNavigatorSaveItem.Text = "Save(&S)"; + this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click); + // + // mailFormDataGridView + // + this.mailFormDataGridView.AllowUserToAddRows = false; + this.mailFormDataGridView.AutoGenerateColumns = false; + this.mailFormDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; + this.mailFormDataGridView.ColumnHeadersHeight = 30; + this.mailFormDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.mailFormDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn3}); + this.mailFormDataGridView.DataSource = this.bs; + this.mailFormDataGridView.Dock = System.Windows.Forms.DockStyle.Left; + this.mailFormDataGridView.Location = new System.Drawing.Point(0, 0); + this.mailFormDataGridView.Name = "mailFormDataGridView"; + this.mailFormDataGridView.RowTemplate.Height = 23; + this.mailFormDataGridView.Size = new System.Drawing.Size(317, 598); + this.mailFormDataGridView.TabIndex = 2; + this.mailFormDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.mailFormDataGridView_DataError); + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "cate"; + this.dataGridViewTextBoxColumn2.HeaderText = "cate"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.Width = 54; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn3.DataPropertyName = "title"; + this.dataGridViewTextBoxColumn3.HeaderText = "title"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + // + // panel1 + // + this.panel1.Controls.Add(this.htmlEditor1); + this.panel1.Controls.Add(this.checkBox3); + this.panel1.Controls.Add(this.checkBox2); + this.panel1.Controls.Add(this.checkBox1); + this.panel1.Controls.Add(tolistLabel); + this.panel1.Controls.Add(this.tolistTextBox); + this.panel1.Controls.Add(bccLabel); + this.panel1.Controls.Add(this.bccTextBox); + this.panel1.Controls.Add(ccLabel); + this.panel1.Controls.Add(this.ccTextBox); + this.panel1.Controls.Add(subjectLabel); + this.panel1.Controls.Add(this.subjectTextBox); + this.panel1.Controls.Add(bodyLabel); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(317, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(499, 598); + this.panel1.TabIndex = 3; + // + // htmlEditor1 + // + this.htmlEditor1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.htmlEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.htmlEditor1.Html = resources.GetString("htmlEditor1.Html"); + this.htmlEditor1.Location = new System.Drawing.Point(74, 122); + this.htmlEditor1.Name = "htmlEditor1"; + this.htmlEditor1.ReadOnly = false; + this.htmlEditor1.ShowToolbar = true; + this.htmlEditor1.Size = new System.Drawing.Size(413, 464); + this.htmlEditor1.TabIndex = 23; + this.htmlEditor1.Validated += new System.EventHandler(this.htmlEditor1_Validated); + // + // checkBox3 + // + this.checkBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox3.AutoSize = true; + this.checkBox3.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfBCC", true)); + this.checkBox3.Location = new System.Drawing.Point(449, 69); + this.checkBox3.Name = "checkBox3"; + this.checkBox3.Size = new System.Drawing.Size(45, 16); + this.checkBox3.TabIndex = 20; + this.checkBox3.Text = "Self"; + this.checkBox3.UseVisualStyleBackColor = true; + // + // checkBox2 + // + this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox2.AutoSize = true; + this.checkBox2.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfCC", true)); + this.checkBox2.Location = new System.Drawing.Point(449, 41); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(45, 16); + this.checkBox2.TabIndex = 19; + this.checkBox2.Text = "Self"; + this.checkBox2.UseVisualStyleBackColor = true; + // + // checkBox1 + // + this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox1.AutoSize = true; + this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "selfTo", true)); + this.checkBox1.Location = new System.Drawing.Point(449, 13); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(45, 16); + this.checkBox1.TabIndex = 18; + this.checkBox1.Text = "Self"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // tolistTextBox + // + this.tolistTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tolistTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tolist", true)); + this.tolistTextBox.Location = new System.Drawing.Point(74, 12); + this.tolistTextBox.Name = "tolistTextBox"; + this.tolistTextBox.Size = new System.Drawing.Size(368, 21); + this.tolistTextBox.TabIndex = 7; + // + // bccTextBox + // + this.bccTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.bccTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bcc", true)); + this.bccTextBox.Location = new System.Drawing.Point(74, 39); + this.bccTextBox.Name = "bccTextBox"; + this.bccTextBox.Size = new System.Drawing.Size(368, 21); + this.bccTextBox.TabIndex = 9; + // + // ccTextBox + // + this.ccTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.ccTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cc", true)); + this.ccTextBox.Location = new System.Drawing.Point(74, 66); + this.ccTextBox.Name = "ccTextBox"; + this.ccTextBox.Size = new System.Drawing.Size(368, 21); + this.ccTextBox.TabIndex = 11; + // + // subjectTextBox + // + this.subjectTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.subjectTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "subject", true)); + this.subjectTextBox.Location = new System.Drawing.Point(74, 93); + this.subjectTextBox.Name = "subjectTextBox"; + this.subjectTextBox.Size = new System.Drawing.Size(413, 21); + this.subjectTextBox.TabIndex = 13; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = false; + this.tam.MailDataTableAdapter = null; + this.tam.MailFormTableAdapter = this.ta; + this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // fMailform + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(816, 623); + this.Controls.Add(this.panel1); + this.Controls.Add(this.mailFormDataGridView); + this.Controls.Add(this.bn); + this.Name = "fMailform"; + this.Text = "메일 양식"; + this.Load += new System.EventHandler(this.fMailform_Load); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private DSMail dsMSSQL; + private System.Windows.Forms.BindingSource bs; + private DSMailTableAdapters.MailFormTableAdapter ta; + private DSMailTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem; + 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.ToolStripButton mailFormBindingNavigatorSaveItem; + private System.Windows.Forms.DataGridView mailFormDataGridView; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox tolistTextBox; + private System.Windows.Forms.TextBox bccTextBox; + private System.Windows.Forms.TextBox ccTextBox; + private System.Windows.Forms.TextBox subjectTextBox; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.CheckBox checkBox3; + private System.Windows.Forms.CheckBox checkBox2; + private YARTE.UI.HtmlEditor htmlEditor1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + } } \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fMailform.cs b/SubProject/FCM0000/Mail/fMailform.cs similarity index 86% rename from SubProject/FCM0000/Board/fMailform.cs rename to SubProject/FCM0000/Mail/fMailform.cs index 6edf718..21141c1 100644 --- a/SubProject/FCM0000/Board/fMailform.cs +++ b/SubProject/FCM0000/Mail/fMailform.cs @@ -1,101 +1,98 @@ -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; -using YARTE.UI.Buttons; - -namespace FCM0000 -{ - public partial class fMailform : FCOMMON.fBase - { - public fMailform() - { - InitializeComponent(); - PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1); - this.dsMSSQL.MailForm.TableNewRow += MailForm_TableNewRow; - } - - void MailForm_TableNewRow(object sender, DataTableNewRowEventArgs e) - { - e.Row["wuid"] = FCOMMON.info.Login.no; - e.Row["wdate"] = DateTime.Now; - e.Row["subject"] = "메일제목"; - e.Row["title"] = "분류제목"; - e.Row["cate"] = "NR"; - } - - private void fMailform_Load(object sender, EventArgs e) - { - refreshData(); - } - - void refreshData() - { - try - { - ta.Fill(this.dsMSSQL.MailForm); - } - catch (Exception ex) - { - FCOMMON.Util.MsgE(ex.Message); - } - } - - private void mailFormBindingNavigatorSaveItem_Click(object sender, EventArgs e) - { - this.Validate(); - this.bs.EndEdit(); - this.tam.UpdateAll(this.dsMSSQL); - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - - } - dsMSSQL.MailFormRow dr = null; - private void bs_CurrentChanged(object sender, EventArgs e) - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - dr = drv.Row as dsMSSQL.MailFormRow; - this.htmlEditor1.Html = dr.body; - //this.htmlEditor2.Html = dr.tail; - } - - private void richTextBox2_Validated(object sender, EventArgs e) - { - - } - - private void htmlEditor1_Validated(object sender, EventArgs e) - { - if (dr != null) - { - dr.body = this.htmlEditor1.Html; - // dr.tail = this.htmlEditor2.Html; - } - } - - private void mailFormDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) - { - - } - - private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) - { - var dlg = FCOMMON.Util.MsgQ("선택된 자료를 삭제하시겠습니까?"); - if (dlg != System.Windows.Forms.DialogResult.Yes) return; - bs.RemoveCurrent(); - } - - private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) - { - - } - } -} +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; +using YARTE.UI.Buttons; + +namespace FCM0000 +{ + public partial class fMailform : FCOMMON.fBase + { + public fMailform() + { + InitializeComponent(); + PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1); + this.dsMSSQL.MailForm.TableNewRow += MailForm_TableNewRow; + } + + void MailForm_TableNewRow(object sender, DataTableNewRowEventArgs e) + { + e.Row["wuid"] = FCOMMON.info.Login.no; + e.Row["wdate"] = DateTime.Now; + e.Row["subject"] = "메일제목"; + e.Row["title"] = "분류제목"; + e.Row["cate"] = "--"; + e.Row["gcode"] = FCOMMON.info.Login.gcode; + } + + private void fMailform_Load(object sender, EventArgs e) + { + refreshData(); + } + + void refreshData() + { + try + { + ta.Fill(this.dsMSSQL.MailForm, FCOMMON.info.Login.gcode); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void mailFormBindingNavigatorSaveItem_Click(object sender, EventArgs e) + { + this.Validate(); + this.bs.EndEdit(); + this.tam.UpdateAll(this.dsMSSQL); + + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + + } + DSMail.MailFormRow dr = null; + private void bs_CurrentChanged(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + dr = drv.Row as DSMail.MailFormRow; + this.htmlEditor1.Html = dr.body; + //this.htmlEditor2.Html = dr.tail; + } + + + private void htmlEditor1_Validated(object sender, EventArgs e) + { + if (dr != null) + { + dr.body = this.htmlEditor1.Html; + // dr.tail = this.htmlEditor2.Html; + } + } + + private void mailFormDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) + { + + } + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + var dlg = FCOMMON.Util.MsgQ("선택된 자료를 삭제하시겠습니까?"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + bs.RemoveCurrent(); + } + + private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) + { + + } + } +} diff --git a/SubProject/FCM0000/Board/fMailform.resx b/SubProject/FCM0000/Mail/fMailform.resx similarity index 97% rename from SubProject/FCM0000/Board/fMailform.resx rename to SubProject/FCM0000/Mail/fMailform.resx index 053decd..e8dbac2 100644 --- a/SubProject/FCM0000/Board/fMailform.resx +++ b/SubProject/FCM0000/Mail/fMailform.resx @@ -1,230 +1,233 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - False - - - False - - - 435, 17 - - - - - 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== - - - - 122, 17 - - - 17, 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+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC - DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC - rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV - i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG - 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG - QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX - bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo - dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<HTML><HEAD> -<META content="text/html; charset=unicode" http-equiv=Content-Type> -<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> -<BODY></BODY></HTML> - - - - 184, 17 - - - 362, 17 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + False + + + False + + + 319, 17 + + + + + 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== + + + + 122, 17 + + + 17, 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+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC + DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC + rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV + i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG + 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG + QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX + bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo + dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= + + + + 17, 17 + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML><HEAD> +<META content="text/html; charset=unicode" http-equiv=Content-Type> +<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> +<BODY></BODY></HTML> + + + + 184, 17 + + + 246, 17 + \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fSendMail.Designer.cs b/SubProject/FCM0000/Mail/fSendMail.Designer.cs similarity index 91% rename from SubProject/FCM0000/Board/fSendMail.Designer.cs rename to SubProject/FCM0000/Mail/fSendMail.Designer.cs index 535ec50..3ec6504 100644 --- a/SubProject/FCM0000/Board/fSendMail.Designer.cs +++ b/SubProject/FCM0000/Mail/fSendMail.Designer.cs @@ -1,289 +1,281 @@ -namespace FCM0000 -{ - partial class fSendMail - { - /// - /// 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 tolistLabel; - System.Windows.Forms.Label bccLabel; - System.Windows.Forms.Label ccLabel; - System.Windows.Forms.Label subjectLabel; - System.Windows.Forms.Label bodyLabel; - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSendMail)); - this.bn = new System.Windows.Forms.BindingNavigator(this.components); - this.bs = new System.Windows.Forms.BindingSource(this.components); - this.dsMSSQL = new FCM0000.dsMSSQL(); - this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.panel1 = new System.Windows.Forms.Panel(); - this.tbBody = new YARTE.UI.HtmlEditor(); - this.tbTo = new System.Windows.Forms.TextBox(); - this.tbBCC = new System.Windows.Forms.TextBox(); - this.tbCC = new System.Windows.Forms.TextBox(); - this.tbSubject = new System.Windows.Forms.TextBox(); - this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager(); - this.ta = new FCM0000.dsMSSQLTableAdapters.MailDataTableAdapter(); - tolistLabel = new System.Windows.Forms.Label(); - bccLabel = new System.Windows.Forms.Label(); - ccLabel = new System.Windows.Forms.Label(); - subjectLabel = new System.Windows.Forms.Label(); - bodyLabel = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); - this.bn.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // tolistLabel - // - tolistLabel.AutoSize = true; - tolistLabel.Location = new System.Drawing.Point(30, 15); - tolistLabel.Name = "tolistLabel"; - tolistLabel.Size = new System.Drawing.Size(35, 12); - tolistLabel.TabIndex = 0; - tolistLabel.Text = "tolist:"; - // - // bccLabel - // - bccLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - bccLabel.AutoSize = true; - bccLabel.Location = new System.Drawing.Point(35, 467); - bccLabel.Name = "bccLabel"; - bccLabel.Size = new System.Drawing.Size(30, 12); - bccLabel.TabIndex = 8; - bccLabel.Text = "bcc:"; - // - // ccLabel - // - ccLabel.AutoSize = true; - ccLabel.Location = new System.Drawing.Point(42, 43); - ccLabel.Name = "ccLabel"; - ccLabel.Size = new System.Drawing.Size(23, 12); - ccLabel.TabIndex = 2; - ccLabel.Text = "cc:"; - // - // subjectLabel - // - subjectLabel.AutoSize = true; - subjectLabel.Location = new System.Drawing.Point(15, 71); - subjectLabel.Name = "subjectLabel"; - subjectLabel.Size = new System.Drawing.Size(50, 12); - subjectLabel.TabIndex = 4; - subjectLabel.Text = "subject:"; - // - // bodyLabel - // - bodyLabel.AutoSize = true; - bodyLabel.Location = new System.Drawing.Point(28, 97); - bodyLabel.Name = "bodyLabel"; - bodyLabel.Size = new System.Drawing.Size(37, 12); - bodyLabel.TabIndex = 6; - bodyLabel.Text = "body:"; - // - // bn - // - this.bn.AddNewItem = null; - this.bn.BindingSource = this.bs; - this.bn.CountItem = null; - this.bn.DeleteItem = null; - this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; - this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.mailFormBindingNavigatorSaveItem, - this.toolStripButton1}); - this.bn.Location = new System.Drawing.Point(0, 498); - this.bn.MoveFirstItem = null; - this.bn.MoveLastItem = null; - this.bn.MoveNextItem = null; - this.bn.MovePreviousItem = null; - this.bn.Name = "bn"; - this.bn.PositionItem = null; - this.bn.Size = new System.Drawing.Size(579, 25); - this.bn.TabIndex = 0; - this.bn.Text = "bindingNavigator1"; - // - // bs - // - this.bs.DataMember = "MailData"; - this.bs.DataSource = this.dsMSSQL; - // - // dsMSSQL - // - this.dsMSSQL.DataSetName = "dsMSSQL"; - this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; - // - // mailFormBindingNavigatorSaveItem - // - this.mailFormBindingNavigatorSaveItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.mailFormBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("mailFormBindingNavigatorSaveItem.Image"))); - this.mailFormBindingNavigatorSaveItem.Name = "mailFormBindingNavigatorSaveItem"; - this.mailFormBindingNavigatorSaveItem.Size = new System.Drawing.Size(69, 22); - this.mailFormBindingNavigatorSaveItem.Text = "Send(&S)"; - this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click); - // - // toolStripButton1 - // - this.toolStripButton1.Image = global::FCM0000.Properties.Resources.action_refresh; - this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(90, 22); - this.toolStripButton1.Text = "To OutLook"; - this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1); - // - // panel1 - // - this.panel1.Controls.Add(this.tbBody); - this.panel1.Controls.Add(tolistLabel); - this.panel1.Controls.Add(this.tbTo); - this.panel1.Controls.Add(bccLabel); - this.panel1.Controls.Add(this.tbBCC); - this.panel1.Controls.Add(ccLabel); - this.panel1.Controls.Add(this.tbCC); - this.panel1.Controls.Add(subjectLabel); - this.panel1.Controls.Add(this.tbSubject); - this.panel1.Controls.Add(bodyLabel); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(579, 498); - this.panel1.TabIndex = 1; - // - // tbBody - // - this.tbBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.tbBody.Html = resources.GetString("tbBody.Html"); - this.tbBody.Location = new System.Drawing.Point(74, 97); - this.tbBody.Name = "tbBody"; - this.tbBody.ReadOnly = false; - this.tbBody.ShowToolbar = true; - this.tbBody.Size = new System.Drawing.Size(493, 361); - this.tbBody.TabIndex = 7; - // - // tbTo - // - this.tbTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbTo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tolist", true)); - this.tbTo.Location = new System.Drawing.Point(74, 12); - this.tbTo.Name = "tbTo"; - this.tbTo.Size = new System.Drawing.Size(493, 21); - this.tbTo.TabIndex = 1; - // - // tbBCC - // - this.tbBCC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbBCC.BackColor = System.Drawing.Color.SkyBlue; - this.tbBCC.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bcc", true)); - this.tbBCC.Location = new System.Drawing.Point(74, 464); - this.tbBCC.Name = "tbBCC"; - this.tbBCC.Size = new System.Drawing.Size(493, 21); - this.tbBCC.TabIndex = 9; - // - // tbCC - // - this.tbCC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbCC.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cc", true)); - this.tbCC.Location = new System.Drawing.Point(74, 40); - this.tbCC.Name = "tbCC"; - this.tbCC.Size = new System.Drawing.Size(493, 21); - this.tbCC.TabIndex = 3; - // - // tbSubject - // - this.tbSubject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbSubject.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "subject", true)); - this.tbSubject.Location = new System.Drawing.Point(74, 68); - this.tbSubject.Name = "tbSubject"; - this.tbSubject.Size = new System.Drawing.Size(493, 21); - this.tbSubject.TabIndex = 5; - // - // tam - // - this.tam.BackupDataSetBeforeUpdate = false; - this.tam.BoardTableAdapter = null; - this.tam.CommonTableAdapter = null; - this.tam.CustomsTableAdapter = null; - this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = this.ta; - this.tam.MailFormTableAdapter = null; - this.tam.ProjectsTableAdapter = null; - this.tam.PurchaseTableAdapter = null; - this.tam.RequestItemTableAdapter = null; - this.tam.StaffTableAdapter = null; - this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; - // - // ta - // - this.ta.ClearBeforeFill = true; - // - // fSendMail - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(579, 523); - this.Controls.Add(this.panel1); - this.Controls.Add(this.bn); - this.Name = "fSendMail"; - this.Text = "Send Mail"; - this.Load += new System.EventHandler(this.fMailform_Load); - ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); - this.bn.ResumeLayout(false); - this.bn.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private dsMSSQL dsMSSQL; - private System.Windows.Forms.BindingSource bs; - private dsMSSQLTableAdapters.TableAdapterManager tam; - private System.Windows.Forms.BindingNavigator bn; - private System.Windows.Forms.ToolStripButton mailFormBindingNavigatorSaveItem; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.TextBox tbTo; - private System.Windows.Forms.TextBox tbBCC; - private System.Windows.Forms.TextBox tbCC; - private System.Windows.Forms.TextBox tbSubject; - private YARTE.UI.HtmlEditor tbBody; - private dsMSSQLTableAdapters.MailDataTableAdapter ta; - private System.Windows.Forms.ToolStripButton toolStripButton1; - } +namespace FCM0000 +{ + partial class fSendMail + { + /// + /// 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 tolistLabel; + System.Windows.Forms.Label bccLabel; + System.Windows.Forms.Label ccLabel; + System.Windows.Forms.Label subjectLabel; + System.Windows.Forms.Label bodyLabel; + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSendMail)); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.dsMSSQL = new FCM0000.DSMail(); + this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.panel1 = new System.Windows.Forms.Panel(); + this.tbBody = new YARTE.UI.HtmlEditor(); + this.tbTo = new System.Windows.Forms.TextBox(); + this.tbBCC = new System.Windows.Forms.TextBox(); + this.tbCC = new System.Windows.Forms.TextBox(); + this.tbSubject = new System.Windows.Forms.TextBox(); + this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager(); + this.ta = new FCM0000.DSMailTableAdapters.MailDataTableAdapter(); + tolistLabel = new System.Windows.Forms.Label(); + bccLabel = new System.Windows.Forms.Label(); + ccLabel = new System.Windows.Forms.Label(); + subjectLabel = new System.Windows.Forms.Label(); + bodyLabel = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // tolistLabel + // + tolistLabel.AutoSize = true; + tolistLabel.Location = new System.Drawing.Point(30, 15); + tolistLabel.Name = "tolistLabel"; + tolistLabel.Size = new System.Drawing.Size(35, 12); + tolistLabel.TabIndex = 0; + tolistLabel.Text = "tolist:"; + // + // bccLabel + // + bccLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + bccLabel.AutoSize = true; + bccLabel.Location = new System.Drawing.Point(35, 467); + bccLabel.Name = "bccLabel"; + bccLabel.Size = new System.Drawing.Size(30, 12); + bccLabel.TabIndex = 8; + bccLabel.Text = "bcc:"; + // + // ccLabel + // + ccLabel.AutoSize = true; + ccLabel.Location = new System.Drawing.Point(42, 43); + ccLabel.Name = "ccLabel"; + ccLabel.Size = new System.Drawing.Size(23, 12); + ccLabel.TabIndex = 2; + ccLabel.Text = "cc:"; + // + // subjectLabel + // + subjectLabel.AutoSize = true; + subjectLabel.Location = new System.Drawing.Point(15, 71); + subjectLabel.Name = "subjectLabel"; + subjectLabel.Size = new System.Drawing.Size(50, 12); + subjectLabel.TabIndex = 4; + subjectLabel.Text = "subject:"; + // + // bodyLabel + // + bodyLabel.AutoSize = true; + bodyLabel.Location = new System.Drawing.Point(28, 97); + bodyLabel.Name = "bodyLabel"; + bodyLabel.Size = new System.Drawing.Size(37, 12); + bodyLabel.TabIndex = 6; + bodyLabel.Text = "body:"; + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bs; + this.bn.CountItem = null; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.mailFormBindingNavigatorSaveItem, + this.toolStripButton1}); + this.bn.Location = new System.Drawing.Point(0, 498); + this.bn.MoveFirstItem = null; + this.bn.MoveLastItem = null; + this.bn.MoveNextItem = null; + this.bn.MovePreviousItem = null; + this.bn.Name = "bn"; + this.bn.PositionItem = null; + this.bn.Size = new System.Drawing.Size(579, 25); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bs + // + this.bs.DataMember = "MailData"; + this.bs.DataSource = this.dsMSSQL; + // + // dsMSSQL + // + this.dsMSSQL.DataSetName = "dsMSSQL"; + this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // mailFormBindingNavigatorSaveItem + // + this.mailFormBindingNavigatorSaveItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.mailFormBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("mailFormBindingNavigatorSaveItem.Image"))); + this.mailFormBindingNavigatorSaveItem.Name = "mailFormBindingNavigatorSaveItem"; + this.mailFormBindingNavigatorSaveItem.Size = new System.Drawing.Size(69, 22); + this.mailFormBindingNavigatorSaveItem.Text = "Send(&S)"; + this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click); + // + // toolStripButton1 + // + this.toolStripButton1.Image = global::FCM0000.Properties.Resources.action_refresh; + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(90, 22); + this.toolStripButton1.Text = "To OutLook"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1); + // + // panel1 + // + this.panel1.Controls.Add(this.tbBody); + this.panel1.Controls.Add(tolistLabel); + this.panel1.Controls.Add(this.tbTo); + this.panel1.Controls.Add(bccLabel); + this.panel1.Controls.Add(this.tbBCC); + this.panel1.Controls.Add(ccLabel); + this.panel1.Controls.Add(this.tbCC); + this.panel1.Controls.Add(subjectLabel); + this.panel1.Controls.Add(this.tbSubject); + this.panel1.Controls.Add(bodyLabel); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(579, 498); + this.panel1.TabIndex = 1; + // + // tbBody + // + this.tbBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbBody.Html = resources.GetString("tbBody.Html"); + this.tbBody.Location = new System.Drawing.Point(74, 97); + this.tbBody.Name = "tbBody"; + this.tbBody.ReadOnly = false; + this.tbBody.ShowToolbar = true; + this.tbBody.Size = new System.Drawing.Size(493, 361); + this.tbBody.TabIndex = 7; + // + // tbTo + // + this.tbTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbTo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tolist", true)); + this.tbTo.Location = new System.Drawing.Point(74, 12); + this.tbTo.Name = "tbTo"; + this.tbTo.Size = new System.Drawing.Size(493, 21); + this.tbTo.TabIndex = 1; + // + // tbBCC + // + this.tbBCC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbBCC.BackColor = System.Drawing.Color.SkyBlue; + this.tbBCC.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bcc", true)); + this.tbBCC.Location = new System.Drawing.Point(74, 464); + this.tbBCC.Name = "tbBCC"; + this.tbBCC.Size = new System.Drawing.Size(493, 21); + this.tbBCC.TabIndex = 9; + // + // tbCC + // + this.tbCC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbCC.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cc", true)); + this.tbCC.Location = new System.Drawing.Point(74, 40); + this.tbCC.Name = "tbCC"; + this.tbCC.Size = new System.Drawing.Size(493, 21); + this.tbCC.TabIndex = 3; + // + // tbSubject + // + this.tbSubject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbSubject.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "subject", true)); + this.tbSubject.Location = new System.Drawing.Point(74, 68); + this.tbSubject.Name = "tbSubject"; + this.tbSubject.Size = new System.Drawing.Size(493, 21); + this.tbSubject.TabIndex = 5; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = false; + this.tam.MailDataTableAdapter = this.ta; + this.tam.MailFormTableAdapter = null; + this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // fSendMail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(579, 523); + this.Controls.Add(this.panel1); + this.Controls.Add(this.bn); + this.Name = "fSendMail"; + this.Text = "Send Mail"; + this.Load += new System.EventHandler(this.fMailform_Load); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private DSMail dsMSSQL; + private System.Windows.Forms.BindingSource bs; + private DSMailTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripButton mailFormBindingNavigatorSaveItem; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox tbTo; + private System.Windows.Forms.TextBox tbBCC; + private System.Windows.Forms.TextBox tbCC; + private System.Windows.Forms.TextBox tbSubject; + private YARTE.UI.HtmlEditor tbBody; + private DSMailTableAdapters.MailDataTableAdapter ta; + private System.Windows.Forms.ToolStripButton toolStripButton1; + } } \ No newline at end of file diff --git a/SubProject/FCM0000/Board/fSendMail.cs b/SubProject/FCM0000/Mail/fSendMail.cs similarity index 91% rename from SubProject/FCM0000/Board/fSendMail.cs rename to SubProject/FCM0000/Mail/fSendMail.cs index f213ada..9a1d467 100644 --- a/SubProject/FCM0000/Board/fSendMail.cs +++ b/SubProject/FCM0000/Mail/fSendMail.cs @@ -40,11 +40,11 @@ namespace FCM0000 void LoadNRData() { //자로에서 불러와서 그 값을 가져온다. - dsMSSQLTableAdapters.MailFormTableAdapter taMF = new dsMSSQLTableAdapters.MailFormTableAdapter(); - var data = taMF.GetbyCate("NR"); + DSMailTableAdapters.MailFormTableAdapter taMF = new DSMailTableAdapters.MailFormTableAdapter(); + var data = taMF.GetByCate(FCOMMON.info.Login.gcode, "NR"); if (data != null && data.Rows.Count > 0) { - var drForm = data.Rows[0] as dsMSSQL.MailFormRow; + var drForm = data.Rows[0] as DSMail.MailFormRow; this.tbSubject.Text = drForm.subject; this.tbBody.Html = drForm.body; this.tbTo.Text = drForm.tolist; @@ -68,7 +68,7 @@ namespace FCM0000 var drv = this.bs.Current as DataRowView; if (drv == null) return; - var dr = drv.Row as dsMSSQL.MailFormRow; + var dr = drv.Row as DSMail.MailFormRow; var tolist = new string[] { "Chikyun.kim@amkor.co.kr" }; //dr.tolist.Split(','); Outlook.Application outlookApplication = new Outlook.Application(); foreach (var to in tolist) diff --git a/SubProject/FCM0000/Board/fSendMail.resx b/SubProject/FCM0000/Mail/fSendMail.resx similarity index 98% rename from SubProject/FCM0000/Board/fSendMail.resx rename to SubProject/FCM0000/Mail/fSendMail.resx index 89444a7..e315f2c 100644 --- a/SubProject/FCM0000/Board/fSendMail.resx +++ b/SubProject/FCM0000/Mail/fSendMail.resx @@ -1,166 +1,166 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - False - - - False - - - 259, 17 - - - 122, 17 - - - 17, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo - dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<HTML><HEAD> -<META content="text/html; charset=unicode" http-equiv=Content-Type> -<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> -<BODY></BODY></HTML> - - - - 186, 17 - - - 325, 17 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + False + + + False + + + 259, 17 + + + 122, 17 + + + 17, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo + dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML><HEAD> +<META content="text/html; charset=unicode" http-equiv=Content-Type> +<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> +<BODY></BODY></HTML> + + + + 186, 17 + + + 325, 17 + \ No newline at end of file diff --git a/SubProject/FCM0000/dsMSSQL.Designer.cs b/SubProject/FCM0000/dsMSSQL.Designer.cs index aae07a3..2faf0fb 100644 --- a/SubProject/FCM0000/dsMSSQL.Designer.cs +++ b/SubProject/FCM0000/dsMSSQL.Designer.cs @@ -28,12 +28,8 @@ namespace FCM0000 { private CommonDataTable tableCommon; - private MailFormDataTable tableMailForm; - private BoardDataTable tableBoard; - private MailDataDataTable tableMailData; - private RequestItemDataTable tableRequestItem; private CustomsDataTable tableCustoms; @@ -82,15 +78,9 @@ namespace FCM0000 { if ((ds.Tables["Common"] != null)) { base.Tables.Add(new CommonDataTable(ds.Tables["Common"])); } - if ((ds.Tables["MailForm"] != null)) { - base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); - } if ((ds.Tables["Board"] != null)) { base.Tables.Add(new BoardDataTable(ds.Tables["Board"])); } - if ((ds.Tables["MailData"] != null)) { - base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); - } if ((ds.Tables["RequestItem"] != null)) { base.Tables.Add(new RequestItemDataTable(ds.Tables["RequestItem"])); } @@ -150,16 +140,6 @@ namespace FCM0000 { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [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 MailFormDataTable MailForm { - get { - return this.tableMailForm; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -170,16 +150,6 @@ namespace FCM0000 { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [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 MailDataDataTable MailData { - get { - return this.tableMailData; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -323,15 +293,9 @@ namespace FCM0000 { if ((ds.Tables["Common"] != null)) { base.Tables.Add(new CommonDataTable(ds.Tables["Common"])); } - if ((ds.Tables["MailForm"] != null)) { - base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); - } if ((ds.Tables["Board"] != null)) { base.Tables.Add(new BoardDataTable(ds.Tables["Board"])); } - if ((ds.Tables["MailData"] != null)) { - base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); - } if ((ds.Tables["RequestItem"] != null)) { base.Tables.Add(new RequestItemDataTable(ds.Tables["RequestItem"])); } @@ -398,24 +362,12 @@ namespace FCM0000 { this.tableCommon.InitVars(); } } - this.tableMailForm = ((MailFormDataTable)(base.Tables["MailForm"])); - if ((initTable == true)) { - if ((this.tableMailForm != null)) { - this.tableMailForm.InitVars(); - } - } this.tableBoard = ((BoardDataTable)(base.Tables["Board"])); if ((initTable == true)) { if ((this.tableBoard != null)) { this.tableBoard.InitVars(); } } - this.tableMailData = ((MailDataDataTable)(base.Tables["MailData"])); - if ((initTable == true)) { - if ((this.tableMailData != null)) { - this.tableMailData.InitVars(); - } - } this.tableRequestItem = ((RequestItemDataTable)(base.Tables["RequestItem"])); if ((initTable == true)) { if ((this.tableRequestItem != null)) { @@ -472,12 +424,8 @@ namespace FCM0000 { base.Tables.Add(this.tableItems); this.tableCommon = new CommonDataTable(); base.Tables.Add(this.tableCommon); - this.tableMailForm = new MailFormDataTable(); - base.Tables.Add(this.tableMailForm); this.tableBoard = new BoardDataTable(); base.Tables.Add(this.tableBoard); - this.tableMailData = new MailDataDataTable(); - base.Tables.Add(this.tableMailData); this.tableRequestItem = new RequestItemDataTable(); base.Tables.Add(this.tableRequestItem); this.tableCustoms = new CustomsDataTable(); @@ -506,24 +454,12 @@ namespace FCM0000 { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeMailForm() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializeBoard() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeMailData() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializeRequestItem() { @@ -627,15 +563,9 @@ namespace FCM0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void CommonRowChangeEventHandler(object sender, CommonRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void MailFormRowChangeEventHandler(object sender, MailFormRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void BoardRowChangeEventHandler(object sender, BoardRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void MailDataRowChangeEventHandler(object sender, MailDataRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void RequestItemRowChangeEventHandler(object sender, RequestItemRowChangeEvent e); @@ -1601,446 +1531,6 @@ namespace FCM0000 { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MailFormDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columncate; - - private global::System.Data.DataColumn columntitle; - - private global::System.Data.DataColumn columntolist; - - private global::System.Data.DataColumn columnbcc; - - private global::System.Data.DataColumn columncc; - - private global::System.Data.DataColumn columnsubject; - - private global::System.Data.DataColumn columnbody; - - private global::System.Data.DataColumn columnselfTo; - - private global::System.Data.DataColumn columnselfCC; - - private global::System.Data.DataColumn columnselfBCC; - - 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 MailFormDataTable() { - this.TableName = "MailForm"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal MailFormDataTable(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 MailFormDataTable(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 cateColumn { - get { - return this.columncate; - } - } - - [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 tolistColumn { - get { - return this.columntolist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn bccColumn { - get { - return this.columnbcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn ccColumn { - get { - return this.columncc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn subjectColumn { - get { - return this.columnsubject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn bodyColumn { - get { - return this.columnbody; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn selfToColumn { - get { - return this.columnselfTo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn selfCCColumn { - get { - return this.columnselfCC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn selfBCCColumn { - get { - return this.columnselfBCC; - } - } - - [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 MailFormRow this[int index] { - get { - return ((MailFormRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddMailFormRow(MailFormRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailFormRow AddMailFormRow(string cate, string title, string tolist, string bcc, string cc, string subject, string body, bool selfTo, bool selfCC, bool selfBCC, string wuid, System.DateTime wdate) { - MailFormRow rowMailFormRow = ((MailFormRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - cate, - title, - tolist, - bcc, - cc, - subject, - body, - selfTo, - selfCC, - selfBCC, - wuid, - wdate}; - rowMailFormRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMailFormRow); - return rowMailFormRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailFormRow FindByidx(int idx) { - return ((MailFormRow)(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() { - MailFormDataTable cln = ((MailFormDataTable)(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 MailFormDataTable(); - } - - [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.columncate = base.Columns["cate"]; - this.columntitle = base.Columns["title"]; - this.columntolist = base.Columns["tolist"]; - this.columnbcc = base.Columns["bcc"]; - this.columncc = base.Columns["cc"]; - this.columnsubject = base.Columns["subject"]; - this.columnbody = base.Columns["body"]; - this.columnselfTo = base.Columns["selfTo"]; - this.columnselfCC = base.Columns["selfCC"]; - this.columnselfBCC = base.Columns["selfBCC"]; - 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.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncate); - this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntitle); - this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntolist); - this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbcc); - this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncc); - this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsubject); - this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbody); - this.columnselfTo = new global::System.Data.DataColumn("selfTo", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfTo); - this.columnselfCC = new global::System.Data.DataColumn("selfCC", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfCC); - this.columnselfBCC = new global::System.Data.DataColumn("selfBCC", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfBCC); - 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.columncate.MaxLength = 2; - this.columntitle.MaxLength = 100; - this.columntolist.MaxLength = 2147483647; - this.columnbcc.MaxLength = 2147483647; - this.columncc.MaxLength = 2147483647; - this.columnsubject.MaxLength = 2147483647; - this.columnbody.MaxLength = 2147483647; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailFormRow NewMailFormRow() { - return ((MailFormRow)(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 MailFormRow(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(MailFormRow); - } - - [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.MailFormRowChanged != null)) { - this.MailFormRowChanged(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowChanging != null)) { - this.MailFormRowChanging(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowDeleted != null)) { - this.MailFormRowDeleted(this, new MailFormRowChangeEvent(((MailFormRow)(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.MailFormRowDeleting != null)) { - this.MailFormRowDeleting(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveMailFormRow(MailFormRow 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(); - dsMSSQL ds = new dsMSSQL(); - 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 = "MailFormDataTable"; - 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. /// @@ -2074,6 +1564,8 @@ namespace FCM0000 { private global::System.Data.DataColumn columnpidx; + private global::System.Data.DataColumn columngcode; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public BoardDataTable() { @@ -2211,6 +1703,14 @@ namespace FCM0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn gcodeColumn { + get { + return this.columngcode; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -2248,7 +1748,7 @@ namespace FCM0000 { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public BoardRow AddBoardRow(int bidx, bool header, string cate, string title, string contents, string file, string guid, string url, string wuid, System.DateTime wdate, int project, int pidx) { + public BoardRow AddBoardRow(int bidx, bool header, string cate, string title, string contents, string file, string guid, string url, string wuid, System.DateTime wdate, int project, int pidx, string gcode) { BoardRow rowBoardRow = ((BoardRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2263,7 +1763,8 @@ namespace FCM0000 { wuid, wdate, project, - pidx}; + pidx, + gcode}; rowBoardRow.ItemArray = columnValuesArray; this.Rows.Add(rowBoardRow); return rowBoardRow; @@ -2306,6 +1807,7 @@ namespace FCM0000 { this.columnwdate = base.Columns["wdate"]; this.columnproject = base.Columns["project"]; this.columnpidx = base.Columns["pidx"]; + this.columngcode = base.Columns["gcode"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2337,6 +1839,8 @@ namespace FCM0000 { base.Columns.Add(this.columnproject); this.columnpidx = new global::System.Data.DataColumn("pidx", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnpidx); + this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngcode); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -2354,6 +1858,8 @@ namespace FCM0000 { this.columnwuid.AllowDBNull = false; this.columnwuid.MaxLength = 20; this.columnwdate.AllowDBNull = false; + this.columngcode.AllowDBNull = false; + this.columngcode.MaxLength = 20; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2480,404 +1986,6 @@ namespace FCM0000 { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MailDataDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columncate; - - private global::System.Data.DataColumn columnpdate; - - private global::System.Data.DataColumn columntolist; - - private global::System.Data.DataColumn columnbcc; - - private global::System.Data.DataColumn columncc; - - private global::System.Data.DataColumn columnsubject; - - private global::System.Data.DataColumn columnbody; - - 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 MailDataDataTable() { - this.TableName = "MailData"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal MailDataDataTable(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 MailDataDataTable(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 cateColumn { - get { - return this.columncate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn tolistColumn { - get { - return this.columntolist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn bccColumn { - get { - return this.columnbcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn ccColumn { - get { - return this.columncc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn subjectColumn { - get { - return this.columnsubject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn bodyColumn { - get { - return this.columnbody; - } - } - - [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 MailDataRow this[int index] { - get { - return ((MailDataRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddMailDataRow(MailDataRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailDataRow AddMailDataRow(string cate, string pdate, string tolist, string bcc, string cc, string subject, string body, string wuid, System.DateTime wdate) { - MailDataRow rowMailDataRow = ((MailDataRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - cate, - pdate, - tolist, - bcc, - cc, - subject, - body, - wuid, - wdate}; - rowMailDataRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMailDataRow); - return rowMailDataRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailDataRow FindByidx(int idx) { - return ((MailDataRow)(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() { - MailDataDataTable cln = ((MailDataDataTable)(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 MailDataDataTable(); - } - - [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.columncate = base.Columns["cate"]; - this.columnpdate = base.Columns["pdate"]; - this.columntolist = base.Columns["tolist"]; - this.columnbcc = base.Columns["bcc"]; - this.columncc = base.Columns["cc"]; - this.columnsubject = base.Columns["subject"]; - this.columnbody = base.Columns["body"]; - 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.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncate); - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntolist); - this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbcc); - this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncc); - this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsubject); - this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbody); - 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.columncate.MaxLength = 2; - this.columnpdate.MaxLength = 10; - this.columntolist.MaxLength = 2147483647; - this.columnbcc.MaxLength = 2147483647; - this.columncc.MaxLength = 2147483647; - this.columnsubject.MaxLength = 2147483647; - this.columnbody.MaxLength = 2147483647; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MailDataRow NewMailDataRow() { - return ((MailDataRow)(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 MailDataRow(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(MailDataRow); - } - - [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.MailDataRowChanged != null)) { - this.MailDataRowChanged(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowChanging != null)) { - this.MailDataRowChanging(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowDeleted != null)) { - this.MailDataRowDeleted(this, new MailDataRowChangeEvent(((MailDataRow)(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.MailDataRowDeleting != null)) { - this.MailDataRowDeleting(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveMailDataRow(MailDataRow 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(); - dsMSSQL ds = new dsMSSQL(); - 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 = "MailDataDataTable"; - 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. /// @@ -6502,11 +5610,11 @@ namespace FCM0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int supplyidx { get { - try { - return ((int)(this[this.tableItems.supplyidxColumn])); + if (this.IssupplyidxNull()) { + return -1; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'supplyidx\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tableItems.supplyidxColumn])); } } set { @@ -7046,334 +6154,6 @@ namespace FCM0000 { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class MailFormRow : global::System.Data.DataRow { - - private MailFormDataTable tableMailForm; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal MailFormRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMailForm = ((MailFormDataTable)(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.tableMailForm.idxColumn])); - } - set { - this[this.tableMailForm.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string cate { - get { - if (this.IscateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.cateColumn])); - } - } - set { - this[this.tableMailForm.cateColumn] = 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.tableMailForm.titleColumn])); - } - } - set { - this[this.tableMailForm.titleColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string tolist { - get { - if (this.IstolistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.tolistColumn])); - } - } - set { - this[this.tableMailForm.tolistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string bcc { - get { - if (this.IsbccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.bccColumn])); - } - } - set { - this[this.tableMailForm.bccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string cc { - get { - if (this.IsccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.ccColumn])); - } - } - set { - this[this.tableMailForm.ccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string subject { - get { - if (this.IssubjectNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.subjectColumn])); - } - } - set { - this[this.tableMailForm.subjectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string body { - get { - if (this.IsbodyNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.bodyColumn])); - } - } - set { - this[this.tableMailForm.bodyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool selfTo { - get { - if (this.IsselfToNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfToColumn])); - } - } - set { - this[this.tableMailForm.selfToColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool selfCC { - get { - if (this.IsselfCCNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfCCColumn])); - } - } - set { - this[this.tableMailForm.selfCCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool selfBCC { - get { - if (this.IsselfBCCNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfBCCColumn])); - } - } - set { - this[this.tableMailForm.selfBCCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableMailForm.wuidColumn])); - } - set { - this[this.tableMailForm.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableMailForm.wdateColumn])); - } - set { - this[this.tableMailForm.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IscateNull() { - return this.IsNull(this.tableMailForm.cateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetcateNull() { - this[this.tableMailForm.cateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IstitleNull() { - return this.IsNull(this.tableMailForm.titleColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SettitleNull() { - this[this.tableMailForm.titleColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IstolistNull() { - return this.IsNull(this.tableMailForm.tolistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SettolistNull() { - this[this.tableMailForm.tolistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsbccNull() { - return this.IsNull(this.tableMailForm.bccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetbccNull() { - this[this.tableMailForm.bccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsccNull() { - return this.IsNull(this.tableMailForm.ccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetccNull() { - this[this.tableMailForm.ccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IssubjectNull() { - return this.IsNull(this.tableMailForm.subjectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetsubjectNull() { - this[this.tableMailForm.subjectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsbodyNull() { - return this.IsNull(this.tableMailForm.bodyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetbodyNull() { - this[this.tableMailForm.bodyColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsselfToNull() { - return this.IsNull(this.tableMailForm.selfToColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetselfToNull() { - this[this.tableMailForm.selfToColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsselfCCNull() { - return this.IsNull(this.tableMailForm.selfCCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetselfCCNull() { - this[this.tableMailForm.selfCCColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsselfBCCNull() { - return this.IsNull(this.tableMailForm.selfBCCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetselfBCCNull() { - this[this.tableMailForm.selfBCCColumn] = global::System.Convert.DBNull; - } - } - /// ///Represents strongly named DataRow class. /// @@ -7581,6 +6361,17 @@ namespace FCM0000 { } } + [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.tableBoard.gcodeColumn])); + } + set { + this[this.tableBoard.gcodeColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsbidxNull() { @@ -7702,250 +6493,6 @@ namespace FCM0000 { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class MailDataRow : global::System.Data.DataRow { - - private MailDataDataTable tableMailData; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal MailDataRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMailData = ((MailDataDataTable)(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.tableMailData.idxColumn])); - } - set { - this[this.tableMailData.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string cate { - get { - try { - return ((string)(this[this.tableMailData.cateColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'cate\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.cateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string pdate { - get { - try { - return ((string)(this[this.tableMailData.pdateColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.pdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string tolist { - get { - try { - return ((string)(this[this.tableMailData.tolistColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'tolist\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.tolistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string bcc { - get { - try { - return ((string)(this[this.tableMailData.bccColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'bcc\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.bccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string cc { - get { - try { - return ((string)(this[this.tableMailData.ccColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'cc\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.ccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string subject { - get { - try { - return ((string)(this[this.tableMailData.subjectColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'subject\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.subjectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string body { - get { - try { - return ((string)(this[this.tableMailData.bodyColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailData\' 테이블의 \'body\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailData.bodyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableMailData.wuidColumn])); - } - set { - this[this.tableMailData.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableMailData.wdateColumn])); - } - set { - this[this.tableMailData.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IscateNull() { - return this.IsNull(this.tableMailData.cateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetcateNull() { - this[this.tableMailData.cateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IspdateNull() { - return this.IsNull(this.tableMailData.pdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetpdateNull() { - this[this.tableMailData.pdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IstolistNull() { - return this.IsNull(this.tableMailData.tolistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SettolistNull() { - this[this.tableMailData.tolistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsbccNull() { - return this.IsNull(this.tableMailData.bccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetbccNull() { - this[this.tableMailData.bccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsccNull() { - return this.IsNull(this.tableMailData.ccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetccNull() { - this[this.tableMailData.ccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IssubjectNull() { - return this.IsNull(this.tableMailData.subjectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetsubjectNull() { - this[this.tableMailData.subjectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsbodyNull() { - return this.IsNull(this.tableMailData.bodyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetbodyNull() { - this[this.tableMailData.bodyColumn] = global::System.Convert.DBNull; - } - } - /// ///Represents strongly named DataRow class. /// @@ -8838,11 +7385,11 @@ namespace FCM0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int cid { get { - try { - return ((int)(this[this.tableStaff.cidColumn])); + if (this.IscidNull()) { + return -1; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Staff\' 테이블의 \'cid\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tableStaff.cidColumn])); } } set { @@ -10791,40 +9338,6 @@ namespace FCM0000 { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class MailFormRowChangeEvent : global::System.EventArgs { - - private MailFormRow 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 MailFormRowChangeEvent(MailFormRow 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 MailFormRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - /// ///Row event argument class /// @@ -10859,40 +9372,6 @@ namespace FCM0000 { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class MailDataRowChangeEvent : global::System.EventArgs { - - private MailDataRow 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 MailDataRowChangeEvent(MailDataRow 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 MailDataRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - /// ///Row event argument class /// @@ -12664,665 +11143,6 @@ SELECT idx, grp, code, svalue, ivalue, fvalue, memo, wuid, wdate, gcode FROM Com } } - /// - ///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 MailFormTableAdapter : 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 MailFormTableAdapter() { - 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 = "MailForm"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("cate", "cate"); - tableMapping.ColumnMappings.Add("title", "title"); - tableMapping.ColumnMappings.Add("tolist", "tolist"); - tableMapping.ColumnMappings.Add("bcc", "bcc"); - tableMapping.ColumnMappings.Add("cc", "cc"); - tableMapping.ColumnMappings.Add("subject", "subject"); - tableMapping.ColumnMappings.Add("body", "body"); - tableMapping.ColumnMappings.Add("selfTo", "selfTo"); - tableMapping.ColumnMappings.Add("selfCC", "selfCC"); - tableMapping.ColumnMappings.Add("selfBCC", "selfBCC"); - 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 [MailForm] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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 [MailForm] ([cate], [title], [tolist], [bcc], [cc], [subject], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate]) VALUES (@cate, @title, @tolist, @bcc, @cc, @subject, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate); -SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", 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.DateTime, 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 [MailForm] SET [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", 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.DateTime, 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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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::FCM0000.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, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC," + - " wuid, wdate FROM MailForm"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "SELECT bcc, body, cate, cc, idx, selfBCC, selfCC, selfTo, subject, title, tolist," + - " wdate, wuid FROM MailForm WHERE (cate = @cate)"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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(dsMSSQL.MailFormDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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 dsMSSQL.MailFormDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - dsMSSQL.MailFormDataTable dataTable = new dsMSSQL.MailFormDataTable(); - 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 FillByCate(dsMSSQL.MailFormDataTable dataTable, string cate) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(cate)); - } - 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 dsMSSQL.MailFormDataTable GetbyCate(string cate) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(cate)); - } - dsMSSQL.MailFormDataTable dataTable = new dsMSSQL.MailFormDataTable(); - 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(dsMSSQL.MailFormDataTable 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(dsMSSQL dataSet) { - return this.Adapter.Update(dataSet, "MailForm"); - } - - [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_cate, string Original_title, global::System.Nullable Original_selfTo, global::System.Nullable Original_selfCC, global::System.Nullable Original_selfBCC, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_cate == null)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_cate)); - } - 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_selfTo.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_selfTo.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; - } - if ((Original_selfCC.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_selfCC.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((Original_selfBCC.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((bool)(Original_selfBCC.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_wdate)); - 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 cate, string title, string tolist, string bcc, string cc, string subject, string body, global::System.Nullable selfTo, global::System.Nullable selfCC, global::System.Nullable selfBCC, string wuid, System.DateTime wdate) { - if ((cate == null)) { - this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(cate)); - } - if ((title == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(title)); - } - if ((tolist == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(body)); - } - if ((selfTo.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(selfTo.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((selfCC.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(selfCC.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((selfBCC.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[9].Value = ((bool)(selfBCC.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[11].Value = ((System.DateTime)(wdate)); - 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 cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string body, - global::System.Nullable selfTo, - global::System.Nullable selfCC, - global::System.Nullable selfBCC, - string wuid, - System.DateTime wdate, - int Original_idx, - string Original_cate, - string Original_title, - global::System.Nullable Original_selfTo, - global::System.Nullable Original_selfCC, - global::System.Nullable Original_selfBCC, - string Original_wuid, - System.DateTime Original_wdate, - int idx) { - if ((cate == null)) { - this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(cate)); - } - if ((title == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(title)); - } - if ((tolist == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(body)); - } - if ((selfTo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(selfTo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((selfCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(selfCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((selfBCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(selfBCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(wdate)); - this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_idx)); - if ((Original_cate == null)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_cate)); - } - if ((Original_title == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_title)); - } - if ((Original_selfTo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(Original_selfTo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((Original_selfCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[20].Value = ((bool)(Original_selfCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - if ((Original_selfBCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[22].Value = ((bool)(Original_selfBCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[24].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[25].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 cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string body, - global::System.Nullable selfTo, - global::System.Nullable selfCC, - global::System.Nullable selfBCC, - string wuid, - System.DateTime wdate, - int Original_idx, - string Original_cate, - string Original_title, - global::System.Nullable Original_selfTo, - global::System.Nullable Original_selfCC, - global::System.Nullable Original_selfBCC, - string Original_wuid, - System.DateTime Original_wdate) { - return this.Update(cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate, Original_idx, Original_cate, Original_title, Original_selfTo, Original_selfCC, Original_selfBCC, Original_wuid, Original_wdate, Original_idx); - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -13457,10 +11277,11 @@ SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC tableMapping.ColumnMappings.Add("wdate", "wdate"); tableMapping.ColumnMappings.Add("project", "project"); tableMapping.ColumnMappings.Add("pidx", "pidx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -13476,11 +11297,12 @@ SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_guid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "guid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_guid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "guid", global::System.Data.DataRowVersion.Original, false, 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", 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.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = @"INSERT INTO [Board] ([bidx], [header], [cate], [title], [contents], [file], [guid], [url], [wuid], [wdate], [project], [pidx]) VALUES (@bidx, @header, @cate, @title, @contents, @file, @guid, @url, @wuid, @wdate, @project, @pidx); @@ -13500,8 +11322,8 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", 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 [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx))); -SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx FROM Board WHERE (idx = @idx)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode)); +SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode FROM Board WHERE (idx = @idx)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -13512,9 +11334,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@guid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "guid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", 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.DateTime, 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("@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("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -13529,11 +11352,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_guid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "guid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_guid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "guid", global::System.Data.DataRowVersion.Original, false, 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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("@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("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", 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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -13551,17 +11375,18 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate," + - " project, pidx\r\nFROM Board\r\nWHERE (bidx = @bidx) AND (ISNULL(header, 0) = 0" + - ")"; + " project, pidx, gcode\r\nFROM Board\r\nWHERE (bidx = @bidx) AND (ISNULL(header," + + " 0) = 0) AND (gcode = @gcode)"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + 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(dsMSSQL.BoardDataTable dataTable, global::System.Nullable bidx) { + public virtual int Fill(dsMSSQL.BoardDataTable dataTable, global::System.Nullable bidx, string gcode) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((bidx.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(bidx.Value)); @@ -13569,6 +11394,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(gcode)); + } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } @@ -13580,7 +11411,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, [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 dsMSSQL.BoardDataTable GetData(global::System.Nullable bidx) { + public virtual dsMSSQL.BoardDataTable GetData(global::System.Nullable bidx, string gcode) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((bidx.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(bidx.Value)); @@ -13588,6 +11419,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, else { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(gcode)); + } dsMSSQL.BoardDataTable dataTable = new dsMSSQL.BoardDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -13626,7 +11463,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, [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, global::System.Nullable Original_bidx, global::System.Nullable Original_header, string Original_cate, string Original_title, string Original_file, string Original_guid, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_project, global::System.Nullable Original_pidx) { + public virtual int Delete(int Original_idx, global::System.Nullable Original_bidx, global::System.Nullable Original_header, string Original_cate, string Original_title, string Original_file, string Original_guid, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_project, global::System.Nullable Original_pidx, string Original_gcode) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_bidx.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); @@ -13699,6 +11536,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_gcode)); + } 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)) { @@ -13820,6 +11663,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, System.DateTime wdate, global::System.Nullable project, global::System.Nullable pidx, + string gcode, int Original_idx, global::System.Nullable Original_bidx, global::System.Nullable Original_header, @@ -13831,6 +11675,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, System.DateTime Original_wdate, global::System.Nullable Original_project, global::System.Nullable Original_pidx, + string Original_gcode, int idx) { if ((bidx.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(bidx.Value)); @@ -13899,79 +11744,91 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, else { this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; } - this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_idx)); - if ((Original_bidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_bidx.Value)); + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); } else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(gcode)); + } + this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx)); + if ((Original_bidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_bidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; } if ((Original_header.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_header.Value)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_header.Value)); } else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; } if ((Original_cate == null)) { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_cate)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_cate)); } if ((Original_title == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_title)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_title)); } if ((Original_file == null)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_file)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_file)); } if ((Original_guid == null)) { - this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_guid)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_guid)); } if ((Original_wuid == null)) { throw new global::System.ArgumentNullException("Original_wuid"); } else { - this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_wuid)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_wuid)); } - this.Adapter.UpdateCommand.Parameters[26].Value = ((System.DateTime)(Original_wdate)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_wdate)); if ((Original_project.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_project.Value)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_project.Value)); } else { - this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; } if ((Original_pidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_pidx.Value)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_pidx.Value)); } else { - this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; } - this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(idx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_gcode)); + } + this.Adapter.UpdateCommand.Parameters[33].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)) { @@ -14005,6 +11862,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, System.DateTime wdate, global::System.Nullable project, global::System.Nullable pidx, + string gcode, int Original_idx, global::System.Nullable Original_bidx, global::System.Nullable Original_header, @@ -14015,518 +11873,9 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_project, - global::System.Nullable Original_pidx) { - return this.Update(bidx, header, cate, title, contents, file, guid, url, wuid, wdate, project, pidx, Original_idx, Original_bidx, Original_header, Original_cate, Original_title, Original_file, Original_guid, Original_wuid, Original_wdate, Original_project, Original_pidx, 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 MailDataTableAdapter : 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 MailDataTableAdapter() { - 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 = "MailData"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("cate", "cate"); - tableMapping.ColumnMappings.Add("pdate", "pdate"); - tableMapping.ColumnMappings.Add("tolist", "tolist"); - tableMapping.ColumnMappings.Add("bcc", "bcc"); - tableMapping.ColumnMappings.Add("cc", "cc"); - tableMapping.ColumnMappings.Add("subject", "subject"); - tableMapping.ColumnMappings.Add("body", "body"); - 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 [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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 [MailData] ([cate], [pdate], [tolist], [bcc], [cc], [subject], [body], [wuid], [wdate]) VALUES (@cate, @pdate, @tolist, @bcc, @cc, @subject, @body, @wuid, @wdate); -SELECT idx, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailData WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate, idx"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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.DateTime, 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 [MailData] SET [cate] = @cate, [pdate] = @pdate, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [body] = @body, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailData WHERE (idx = @idx) ORDER BY pdate, idx"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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.DateTime, 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("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - 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("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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::FCM0000.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, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailDat" + - "a WHERE (cate = @cate) AND (pdate BETWEEN @sd AND @ed) ORDER BY pdate, idx"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [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(dsMSSQL.MailDataDataTable dataTable, string cate, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(cate)); - } - if ((sd == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); - } - if ((ed == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); - } - 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 dsMSSQL.MailDataDataTable GetData(string cate, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(cate)); - } - if ((sd == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); - } - if ((ed == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); - } - dsMSSQL.MailDataDataTable dataTable = new dsMSSQL.MailDataDataTable(); - 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(dsMSSQL.MailDataDataTable 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(dsMSSQL dataSet) { - return this.Adapter.Update(dataSet, "MailData"); - } - - [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_cate, string Original_pdate, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_cate == null)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_cate)); - } - if ((Original_pdate == 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_pdate)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_wdate)); - 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 cate, string pdate, string tolist, string bcc, string cc, string subject, string body, string wuid, System.DateTime wdate) { - if ((cate == null)) { - this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate)); - } - if ((tolist == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(body)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(wdate)); - 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 cate, string pdate, string tolist, string bcc, string cc, string subject, string body, string wuid, System.DateTime wdate, int Original_idx, string Original_cate, string Original_pdate, string Original_wuid, System.DateTime Original_wdate, int idx) { - if ((cate == null)) { - this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate)); - } - if ((tolist == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(body)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(wdate)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idx)); - if ((Original_cate == 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_cate)); - } - if ((Original_pdate == 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_pdate)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[16].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 cate, string pdate, string tolist, string bcc, string cc, string subject, string body, string wuid, System.DateTime wdate, int Original_idx, string Original_cate, string Original_pdate, string Original_wuid, System.DateTime Original_wdate) { - return this.Update(cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate, Original_idx, Original_cate, Original_pdate, Original_wuid, Original_wdate, Original_idx); + global::System.Nullable Original_pidx, + string Original_gcode) { + return this.Update(bidx, header, cate, title, contents, file, guid, url, wuid, wdate, project, pidx, gcode, Original_idx, Original_bidx, Original_header, Original_cate, Original_title, Original_file, Original_guid, Original_wuid, Original_wdate, Original_project, Original_pidx, Original_gcode, Original_idx); } } @@ -16214,13 +13563,20 @@ SELECT idx, gcode, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM St [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 = 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, cid, name, grade, dept, tel, email, memo, wuid, wdate\r\nFROM " + " Staff\r\nWHERE (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, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT idx, gcode, cid, name, grade, dept, tel, email, memo, wuid, wdate\r\nFROM " + + " Staff\r\nWHERE (gcode = @gcode)\r\nand cid = @cid"; + 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, 10, 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("@cid", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -16259,6 +13615,54 @@ SELECT idx, gcode, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM St 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 FillByCID(dsMSSQL.StaffDataTable dataTable, string gcode, global::System.Nullable cid) { + 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 ((cid.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(cid.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + 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 dsMSSQL.StaffDataTable GetByCID(string gcode, global::System.Nullable cid) { + 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 ((cid.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(cid.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + dsMSSQL.StaffDataTable dataTable = new dsMSSQL.StaffDataTable(); + 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")] @@ -19952,12 +17356,8 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, private CommonTableAdapter _commonTableAdapter; - private MailFormTableAdapter _mailFormTableAdapter; - private BoardTableAdapter _boardTableAdapter; - private MailDataTableAdapter _mailDataTableAdapter; - private RequestItemTableAdapter _requestItemTableAdapter; private CustomsTableAdapter _customsTableAdapter; @@ -20015,20 +17415,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [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 MailFormTableAdapter MailFormTableAdapter { - get { - return this._mailFormTableAdapter; - } - set { - this._mailFormTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -20043,20 +17429,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [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 MailDataTableAdapter MailDataTableAdapter { - get { - return this._mailDataTableAdapter; - } - set { - this._mailDataTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -20182,18 +17554,10 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, && (this._commonTableAdapter.Connection != null))) { return this._commonTableAdapter.Connection; } - if (((this._mailFormTableAdapter != null) - && (this._mailFormTableAdapter.Connection != null))) { - return this._mailFormTableAdapter.Connection; - } if (((this._boardTableAdapter != null) && (this._boardTableAdapter.Connection != null))) { return this._boardTableAdapter.Connection; } - if (((this._mailDataTableAdapter != null) - && (this._mailDataTableAdapter.Connection != null))) { - return this._mailDataTableAdapter.Connection; - } if (((this._requestItemTableAdapter != null) && (this._requestItemTableAdapter.Connection != null))) { return this._requestItemTableAdapter.Connection; @@ -20241,15 +17605,9 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, if ((this._commonTableAdapter != null)) { count = (count + 1); } - if ((this._mailFormTableAdapter != null)) { - count = (count + 1); - } if ((this._boardTableAdapter != null)) { count = (count + 1); } - if ((this._mailDataTableAdapter != null)) { - count = (count + 1); - } if ((this._requestItemTableAdapter != null)) { count = (count + 1); } @@ -20300,15 +17658,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allChangedRows.AddRange(updatedRows); } } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._boardTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Board.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -20318,15 +17667,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allChangedRows.AddRange(updatedRows); } } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._requestItemTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.RequestItem.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -20416,14 +17756,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allAddedRows.AddRange(addedRows); } } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._boardTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Board.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -20432,14 +17764,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allAddedRows.AddRange(addedRows); } } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._requestItemTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.RequestItem.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -20562,14 +17886,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allChangedRows.AddRange(deletedRows); } } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._boardTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Board.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -20578,14 +17894,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, allChangedRows.AddRange(deletedRows); } } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._commonTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Common.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -20649,18 +17957,10 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, && (this.MatchTableAdapterConnection(this._commonTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); } - if (((this._mailFormTableAdapter != null) - && (this.MatchTableAdapterConnection(this._mailFormTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } if (((this._boardTableAdapter != null) && (this.MatchTableAdapterConnection(this._boardTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); } - if (((this._mailDataTableAdapter != null) - && (this.MatchTableAdapterConnection(this._mailDataTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } if (((this._requestItemTableAdapter != null) && (this.MatchTableAdapterConnection(this._requestItemTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); @@ -20738,15 +18038,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, adaptersWithAcceptChangesDuringUpdate.Add(this._commonTableAdapter.Adapter); } } - if ((this._mailFormTableAdapter != null)) { - revertConnections.Add(this._mailFormTableAdapter, this._mailFormTableAdapter.Connection); - this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._mailFormTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._mailFormTableAdapter.Adapter); - } - } if ((this._boardTableAdapter != null)) { revertConnections.Add(this._boardTableAdapter, this._boardTableAdapter.Connection); this._boardTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -20756,15 +18047,6 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, adaptersWithAcceptChangesDuringUpdate.Add(this._boardTableAdapter.Adapter); } } - if ((this._mailDataTableAdapter != null)) { - revertConnections.Add(this._mailDataTableAdapter, this._mailDataTableAdapter.Connection); - this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._mailDataTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._mailDataTableAdapter.Adapter); - } - } if ((this._requestItemTableAdapter != null)) { revertConnections.Add(this._requestItemTableAdapter, this._requestItemTableAdapter.Connection); this._requestItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -20894,18 +18176,10 @@ SELECT idx, pdate, invtype, uid, item, ItemName, serial, dr_qty, dr_amt, cr_qty, this._commonTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._commonTableAdapter])); this._commonTableAdapter.Transaction = null; } - if ((this._mailFormTableAdapter != null)) { - this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailFormTableAdapter])); - this._mailFormTableAdapter.Transaction = null; - } if ((this._boardTableAdapter != null)) { this._boardTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._boardTableAdapter])); this._boardTableAdapter.Transaction = null; } - if ((this._mailDataTableAdapter != null)) { - this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailDataTableAdapter])); - this._mailDataTableAdapter.Transaction = null; - } if ((this._requestItemTableAdapter != null)) { this._requestItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._requestItemTableAdapter])); this._requestItemTableAdapter.Transaction = null; diff --git a/SubProject/FCM0000/dsMSSQL.xsd b/SubProject/FCM0000/dsMSSQL.xsd index 6e087eb..0c73029 100644 --- a/SubProject/FCM0000/dsMSSQL.xsd +++ b/SubProject/FCM0000/dsMSSQL.xsd @@ -315,125 +315,12 @@ SELECT idx, grp, code, svalue, ivalue, fvalue, memo, wuid, wdate, gcode FROM Com - - - - - - DELETE FROM [MailForm] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - - - - - - - INSERT INTO [MailForm] ([cate], [title], [tolist], [bcc], [cc], [subject], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate]) VALUES (@cate, @title, @tolist, @bcc, @cc, @subject, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate); -SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - - SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm - - - - - - UPDATE [MailForm] SET [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC, wuid, wdate FROM MailForm WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT bcc, body, cate, cc, idx, selfBCC, selfCC, selfTo, subject, title, tolist, wdate, wuid FROM MailForm WHERE (cate = @cate) - - - - - - - - - + - DELETE FROM [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx))) + DELETE FROM [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode)) @@ -449,11 +336,12 @@ SELECT idx, cate, title, tolist, bcc, cc, subject, body, selfTo, selfCC, selfBCC - + + @@ -479,18 +367,19 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, - SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx + SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode FROM Board -WHERE (bidx = @bidx) AND (ISNULL(header, 0) = 0) +WHERE (bidx = @bidx) AND (ISNULL(header, 0) = 0) AND (gcode = @gcode) - + + - UPDATE [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx))); -SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx FROM Board WHERE (idx = @idx) + UPDATE [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode)); +SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode FROM Board WHERE (idx = @idx) @@ -501,9 +390,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, - + + @@ -518,12 +408,13 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, - + - + + @@ -543,91 +434,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, - - - - - - - - - DELETE FROM [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - INSERT INTO [MailData] ([cate], [pdate], [tolist], [bcc], [cc], [subject], [body], [wuid], [wdate]) VALUES (@cate, @pdate, @tolist, @bcc, @cc, @subject, @body, @wuid, @wdate); -SELECT idx, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailData WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate, idx - - - - - - - - - - - - - - - - SELECT idx, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailData WHERE (cate = @cate) AND (pdate BETWEEN @sd AND @ed) ORDER BY pdate, idx - - - - - - - - - - UPDATE [MailData] SET [cate] = @cate, [pdate] = @pdate, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [body] = @body, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, cate, pdate, tolist, bcc, cc, subject, body, wuid, wdate FROM MailData WHERE (idx = @idx) ORDER BY pdate, idx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -991,7 +798,22 @@ SELECT idx, gcode, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM St - + + + + + SELECT idx, gcode, cid, name, grade, dept, tel, email, memo, wuid, wdate +FROM Staff +WHERE (gcode = @gcode) +and cid = @cid + + + + + + + + @@ -1658,7 +1480,7 @@ ORDER BY pdate - + @@ -1739,73 +1561,6 @@ ORDER BY pdate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1864,70 +1619,13 @@ ORDER BY pdate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - @@ -2137,7 +1835,7 @@ ORDER BY pdate - + @@ -2555,18 +2253,10 @@ ORDER BY pdate - - - - - - - - diff --git a/SubProject/FCM0000/dsMSSQL.xss b/SubProject/FCM0000/dsMSSQL.xss index 0644433..31691ef 100644 --- a/SubProject/FCM0000/dsMSSQL.xss +++ b/SubProject/FCM0000/dsMSSQL.xss @@ -4,13 +4,13 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + diff --git a/SubProject/FCM0000/fCode.Designer.cs b/SubProject/FCM0000/fCode.Designer.cs index 65c0bd5..c8d96be 100644 --- a/SubProject/FCM0000/fCode.Designer.cs +++ b/SubProject/FCM0000/fCode.Designer.cs @@ -325,8 +325,6 @@ this.tam.HolidayLIstTableAdapter = null; this.tam.InventoryUserTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = null; this.tam.PurchaseTableAdapter = null; this.tam.RequestItemTableAdapter = null; diff --git a/SubProject/FCM0000/fCustoms.Designer.cs b/SubProject/FCM0000/fCustoms.Designer.cs index d4dd1dc..7054d8d 100644 --- a/SubProject/FCM0000/fCustoms.Designer.cs +++ b/SubProject/FCM0000/fCustoms.Designer.cs @@ -139,8 +139,6 @@ this.tam.CustomsTableAdapter = this.ta; this.tam.HolidayLIstTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = null; this.tam.PurchaseTableAdapter = null; this.tam.RequestItemTableAdapter = null; diff --git a/SubProject/FCM0000/fLovProject.Designer.cs b/SubProject/FCM0000/fLovProject.Designer.cs index 22d14d7..2bc252a 100644 --- a/SubProject/FCM0000/fLovProject.Designer.cs +++ b/SubProject/FCM0000/fLovProject.Designer.cs @@ -369,8 +369,6 @@ this.tam.CommonTableAdapter = null; this.tam.CustomsTableAdapter = null; this.tam.ItemsTableAdapter = null; - this.tam.MailDataTableAdapter = null; - this.tam.MailFormTableAdapter = null; this.tam.ProjectsTableAdapter = this.ta; this.tam.PurchaseTableAdapter = null; this.tam.RequestItemTableAdapter = null; diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs index 2100325..4fc2794 100644 --- a/SubProject/FCOMMON/DataBaseManager.cs +++ b/SubProject/FCOMMON/DataBaseManager.cs @@ -702,7 +702,28 @@ namespace FCOMMON cn.Dispose(); return retval; } - + public static List getPlaceList(string gcode) + { + var retval = new List(); + var cn = getCn(); + cn.Open(); + var sql = "select isnull(place,'')" + + " from Inventory " + + " where gcode = '{0}'" + + " order by place"; + sql = string.Format(sql, gcode); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString()); + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } public static Dictionary getGroupTable(string GroupColumn, string table, string where = "", Boolean desc = false) { var list = getGroupList(GroupColumn, table, where, desc); diff --git a/SubProject/FCOMMON/FCOMMON.csproj b/SubProject/FCOMMON/FCOMMON.csproj index 06d5f30..c2d4d58 100644 --- a/SubProject/FCOMMON/FCOMMON.csproj +++ b/SubProject/FCOMMON/FCOMMON.csproj @@ -93,6 +93,12 @@ fLovDateList.cs + + Form + + + fSelectDay.cs + Form @@ -122,6 +128,9 @@ fLovDateList.cs + + fSelectDay.cs + fSelectMonth.cs diff --git a/SubProject/FCOMMON/fSelectDay.Designer.cs b/SubProject/FCOMMON/fSelectDay.Designer.cs new file mode 100644 index 0000000..17b835d --- /dev/null +++ b/SubProject/FCOMMON/fSelectDay.Designer.cs @@ -0,0 +1,77 @@ +namespace FCOMMON +{ + partial class fSelectDay + { + /// + /// 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.dtPick = new System.Windows.Forms.MonthCalendar(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // dtPick + // + this.dtPick.Dock = System.Windows.Forms.DockStyle.Top; + this.dtPick.Font = new System.Drawing.Font("맑은 고딕", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.dtPick.Location = new System.Drawing.Point(0, 0); + this.dtPick.Name = "dtPick"; + this.dtPick.TabIndex = 0; + // + // button1 + // + this.button1.Dock = System.Windows.Forms.DockStyle.Fill; + this.button1.Location = new System.Drawing.Point(0, 162); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(220, 42); + this.button1.TabIndex = 1; + this.button1.Text = "확인"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // fSelectDay + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(220, 204); + this.Controls.Add(this.button1); + this.Controls.Add(this.dtPick); + this.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "fSelectDay"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "fSelectDay"; + this.Load += new System.EventHandler(this.fSelectDay_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + public System.Windows.Forms.MonthCalendar dtPick; + } +} \ No newline at end of file diff --git a/SubProject/FCOMMON/fSelectDay.cs b/SubProject/FCOMMON/fSelectDay.cs new file mode 100644 index 0000000..922ac21 --- /dev/null +++ b/SubProject/FCOMMON/fSelectDay.cs @@ -0,0 +1,31 @@ +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 FCOMMON +{ + public partial class fSelectDay : Form + { + public fSelectDay(DateTime dt) + { + InitializeComponent(); + this.dtPick.SelectionStart = dt; + this.dtPick.SelectionEnd = dt; + } + + private void button1_Click(object sender, EventArgs e) + { + DialogResult = System.Windows.Forms.DialogResult.OK; + } + + private void fSelectDay_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/SubProject/FCOMMON/fSelectDay.resx b/SubProject/FCOMMON/fSelectDay.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SubProject/FCOMMON/fSelectDay.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index b379d39..a20ecde 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -124,6 +124,12 @@ fInputSC.cs + + Form + + + fPurchase_AddS.cs + Form @@ -192,6 +198,9 @@ fInputSC.cs + + fPurchase_AddS.cs + fPurchase_Add.cs diff --git a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs index f037d64..a26a21a 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs @@ -39,20 +39,21 @@ FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); @@ -676,37 +677,38 @@ 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 = 27; + this.fpSpread1_Sheet1.ColumnCount = 28; 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 = "상태"; - 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 = "SC#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "CR/CF#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "수령"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "SID#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "품명"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "규격"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "장비\r\n제조사"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "제조\r\n공정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "장비\r\n모델"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "단위"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단가"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "합계금액"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "공급업체"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "관련프로젝트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "입고예정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "PO#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "삭제됨"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 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 = "SC#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "CR/CF#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "수령"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "SID#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "품명"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "규격"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "장비\r\n제조사"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "제조\r\n공정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "장비\r\n모델"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단위"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "단가"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "합계금액"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "공급업체"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "관련프로젝트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고예정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "입고일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "PO#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "비고"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "삭제됨"; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; @@ -715,7 +717,7 @@ this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(0).Width = 82F; + this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F; this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; @@ -724,160 +726,170 @@ this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태"; this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state"; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(1).Width = 66F; + this.fpSpread1_Sheet1.Columns.Get(1).Width = 49F; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; - this.fpSpread1_Sheet1.Columns.Get(2).DataField = "process"; + this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(2).Label = "공정"; + this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소"; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(2).Width = 67F; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; - this.fpSpread1_Sheet1.Columns.Get(3).DataField = "requestName"; - this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(3).Label = "요청"; - this.fpSpread1_Sheet1.Columns.Get(3).Width = 48F; + this.fpSpread1_Sheet1.Columns.Get(3).DataField = "process"; + this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Label = "공정"; + this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Width = 49F; + this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; - this.fpSpread1_Sheet1.Columns.Get(4).DataField = "sc"; - this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).Label = "SC#"; - this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).Width = 27F; + this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName"; + this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청"; + this.fpSpread1_Sheet1.Columns.Get(4).Width = 37F; this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; - this.fpSpread1_Sheet1.Columns.Get(5).DataField = "orderno"; + this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc"; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(5).Label = "CR/CF#"; + this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#"; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(5).Width = 44F; + this.fpSpread1_Sheet1.Columns.Get(5).Width = 24F; this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; - this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receiveName"; - this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(6).Label = "수령"; - this.fpSpread1_Sheet1.Columns.Get(6).Width = 46F; - this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true; + this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno"; + this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(6).Label = "CR/CF#"; + this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(6).Width = 43F; this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8; - this.fpSpread1_Sheet1.Columns.Get(7).DataField = "sid"; - this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Label = "SID#"; - this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Width = 55F; + this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName"; + this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령"; + this.fpSpread1_Sheet1.Columns.Get(7).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true; this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9; - this.fpSpread1_Sheet1.Columns.Get(8).DataField = "pumname"; - this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(8).Label = "품명"; - this.fpSpread1_Sheet1.Columns.Get(8).Width = 33F; - this.fpSpread1_Sheet1.Columns.Get(9).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid"; + this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#"; + this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType10; + this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname"; + this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명"; + this.fpSpread1_Sheet1.Columns.Get(9).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType1.DecimalPlaces = 0; numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType1.MaximumValue = 2147483647D; numberCellType1.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType1; - this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumidx"; - this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(9).Width = 14F; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10; - this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumscale"; - this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(10).Label = "규격"; - this.fpSpread1_Sheet1.Columns.Get(10).Width = 43F; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType1; + this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx"; + this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(10).Width = 14F; this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11; - this.fpSpread1_Sheet1.Columns.Get(11).DataField = "dept"; - this.fpSpread1_Sheet1.Columns.Get(11).Label = "장비\r\n제조사"; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; - this.fpSpread1_Sheet1.Columns.Get(12).DataField = "manuproc"; - this.fpSpread1_Sheet1.Columns.Get(12).Label = "제조\r\n공정"; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; - this.fpSpread1_Sheet1.Columns.Get(13).DataField = "asset"; - this.fpSpread1_Sheet1.Columns.Get(13).Label = "장비\r\n모델"; + this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale"; + this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격"; + this.fpSpread1_Sheet1.Columns.Get(11).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(12).DataField = "dept"; + this.fpSpread1_Sheet1.Columns.Get(12).Label = "장비\r\n제조사"; + this.fpSpread1_Sheet1.Columns.Get(12).Width = 45F; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(13).DataField = "manuproc"; + this.fpSpread1_Sheet1.Columns.Get(13).Label = "제조\r\n공정"; + this.fpSpread1_Sheet1.Columns.Get(13).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(14).DataField = "asset"; + this.fpSpread1_Sheet1.Columns.Get(14).Label = "장비\r\n모델"; + this.fpSpread1_Sheet1.Columns.Get(14).Width = 33F; numberCellType2.DecimalPlaces = 0; numberCellType2.NegativeRed = true; numberCellType2.NullDisplay = "--"; numberCellType2.Separator = ","; numberCellType2.ShowSeparator = true; numberCellType2.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2; - this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqty"; - this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량"; - this.fpSpread1_Sheet1.Columns.Get(14).Width = 44F; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12; - this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType2; + this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).Label = "단위"; - this.fpSpread1_Sheet1.Columns.Get(15).Width = 46F; + this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량"; + this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType13; + this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위"; + this.fpSpread1_Sheet1.Columns.Get(16).Width = 33F; numberCellType3.DecimalPlaces = 0; numberCellType3.NegativeRed = true; numberCellType3.NullDisplay = "--"; numberCellType3.Separator = ","; numberCellType3.ShowSeparator = true; numberCellType3.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumprice"; - this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가"; - this.fpSpread1_Sheet1.Columns.Get(16).Width = 35F; this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(17).Label = "합계금액"; - this.fpSpread1_Sheet1.Columns.Get(17).Width = 32F; - this.fpSpread1_Sheet1.Columns.Get(18).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13; - this.fpSpread1_Sheet1.Columns.Get(18).DataField = "supply"; - this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(18).Label = "공급업체"; - this.fpSpread1_Sheet1.Columns.Get(18).Width = 46F; - this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가"; + this.fpSpread1_Sheet1.Columns.Get(17).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType3; + this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(18).Label = "합계금액"; + this.fpSpread1_Sheet1.Columns.Get(18).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply"; + this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체"; + this.fpSpread1_Sheet1.Columns.Get(19).Width = 49F; + this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType4.DecimalPlaces = 0; numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType4.MaximumValue = 2147483647D; numberCellType4.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType4; - this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supplyidx"; - this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(19).Width = 14F; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType14; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "project"; - this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(20).Label = "관련프로젝트"; - this.fpSpread1_Sheet1.Columns.Get(20).Width = 46F; - this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType4; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx"; + this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(20).Width = 14F; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(21).Label = "관련프로젝트"; + this.fpSpread1_Sheet1.Columns.Get(21).Width = 45F; + this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType5.DecimalPlaces = 0; numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType5.MaximumValue = 2147483647D; numberCellType5.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType5; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(21).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(21).Width = 14F; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15; - this.fpSpread1_Sheet1.Columns.Get(22).DataField = "edate"; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType5; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx"; this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(22).Label = "입고예정"; - this.fpSpread1_Sheet1.Columns.Get(22).Width = 38F; + this.fpSpread1_Sheet1.Columns.Get(22).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(22).Width = 14F; this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16; - this.fpSpread1_Sheet1.Columns.Get(23).DataField = "indate"; + this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate"; this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고일"; - this.fpSpread1_Sheet1.Columns.Get(23).Width = 42F; + this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정"; + this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17; - this.fpSpread1_Sheet1.Columns.Get(24).DataField = "po"; + this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate"; this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(24).Label = "PO#"; - this.fpSpread1_Sheet1.Columns.Get(24).Width = 41F; + this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일"; + this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType18; - this.fpSpread1_Sheet1.Columns.Get(25).DataField = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(25).Label = "비고"; - this.fpSpread1_Sheet1.Columns.Get(25).Width = 33F; - this.fpSpread1_Sheet1.Columns.Get(26).CellType = checkBoxCellType1; - this.fpSpread1_Sheet1.Columns.Get(26).DataField = "isdel"; - this.fpSpread1_Sheet1.Columns.Get(26).Label = "삭제됨"; - this.fpSpread1_Sheet1.Columns.Get(26).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po"; + this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#"; + this.fpSpread1_Sheet1.Columns.Get(25).Width = 32F; + this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(26).DataField = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고"; + this.fpSpread1_Sheet1.Columns.Get(26).Width = 33F; + this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1; + this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨"; + this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(27).Width = 45F; this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoSizeColumns = false; this.fpSpread1_Sheet1.DataSource = this.bs; diff --git a/SubProject/FEQ0000/Purchase/fPurchase.cs b/SubProject/FEQ0000/Purchase/fPurchase.cs index e7f48fa..668c941 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.cs @@ -13,7 +13,7 @@ namespace FEQ0000 public partial class fPurchase : FCOMMON.fBase { string fn_fpcolsize = ""; - + public fPurchase() { InitializeComponent(); @@ -28,7 +28,7 @@ namespace FEQ0000 void dtSD_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode != Keys.Enter) return; - var tb = sender as ToolStripTextBox; + var tb = sender as ToolStripTextBox; var input = tb.Text.Trim(); if (input == "") tb.Text = DateTime.Now.ToShortDateString(); else @@ -46,7 +46,7 @@ namespace FEQ0000 tb.Text = dt; } } - if(tb == dtSD) + if (tb == dtSD) { dtED.Focus(); dtED.SelectAll(); @@ -114,21 +114,21 @@ namespace FEQ0000 col.Locked = true; } - if(curLevel < 5) + if (curLevel < 5) { 집계표ToolStripMenuItem.Visible = false; } - + refreshData(); - + //열표시여부를 설정 - var adv= FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv); - if(adv == false) + var adv = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv); + if (adv == false) { - var hidecols = new string[] { "receivename", "receive","asset", "dept","manuproc","process", "cr", "orderno", "manuproc", "project", "projectidx", "edate", "po" }; - foreach(FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) + var hidecols = new string[] { "receivename", "receive", "asset", "dept", "manuproc", "process", "cr", "orderno", "manuproc", "project", "projectidx", "edate", "po" }; + foreach (FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) { - if (hidecols.Contains(col.DataField.ToLower())) col.Visible = false; + if (hidecols.Contains(col.DataField.ToLower())) col.Visible = false; } } } @@ -136,7 +136,7 @@ namespace FEQ0000 private void refreshData() { - + try { string state = "%"; @@ -155,22 +155,22 @@ namespace FEQ0000 System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); cmd.CommandText = " select *,dbo.getusername(request) as requestName,dbo.getusername(receive) as receiveName" + " from purchase " + - " where gcode='"+ FCOMMON.info.Login.gcode + "' and isnull(" + dateField + ",'') between @sd and @ed "; + " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull(" + dateField + ",'') between @sd and @ed "; + + - - if (btViewDel.Checked == false) cmd.CommandText += " and isnull(isdel,0) = 0"; - - if(tbRequest.Text.Trim() != "") + + if (tbRequest.Text.Trim() != "") { cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)"; } - + if (cmbState.SelectedIndex != 0) { - if(cmbState.Text.ToUpper() == "<=RECEIVED") + if (cmbState.Text.ToUpper() == "<=RECEIVED") { cmd.CommandText += " and isnull([state],'') in ('','---','Approving','PR','PO')"; } @@ -179,7 +179,7 @@ namespace FEQ0000 cmd.CommandText += " and isnull([state],'') like @st"; } } - // else cmd.CommandText += " and (state < '04' or state > '07')"; + // else cmd.CommandText += " and (state < '04' or state > '07')"; cmd.CommandText += " ORDER BY " + dateField + " DESC, idx DESC"; cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sd", dtSD.Text)); @@ -209,7 +209,7 @@ namespace FEQ0000 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++) + for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) { var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex); string stateStr = string.Empty; @@ -246,26 +246,27 @@ namespace FEQ0000 this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; break; } - + } - + } this.fpSpread1.ResumeLayout(); } - private void saveData(Boolean prompt ) + private void saveData(Boolean prompt) { this.Validate(); this.bs.EndEdit(); try { - var cnt = this.tam.UpdateAll(this.dsPurchase); - if(prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.",cnt)); - }catch (Exception ex) + var cnt = this.tam.UpdateAll(this.dsPurchase); + if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt)); + } + catch (Exception ex) { FCOMMON.Util.MsgE("저장 실패\n" + ex.Message); } - + } void showSummary() @@ -274,7 +275,7 @@ namespace FEQ0000 var list = this.dsPurchase.Purchase.Select(this.bs.Filter, "") as dsPurchase.PurchaseRow[]; sum = list.Sum(t => t.pumamt); //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) - //if (!dr.IspumamtNull()) sum += dr.pumamt; + //if (!dr.IspumamtNull()) sum += dr.pumamt; lbSum.Text = sum.ToString("N0"); } @@ -315,7 +316,7 @@ namespace FEQ0000 private void toolStripLabel3_Click(object sender, EventArgs e) { //사용자목록처리 - if(tbRequest.Text.Trim() == "") + if (tbRequest.Text.Trim() == "") { tbRequest.Text = FCOMMON.info.Login.nameK; } @@ -323,11 +324,20 @@ namespace FEQ0000 { tbRequest.Text = string.Empty; } - + refreshData(); } - + private bool getAdminInput + { + get + { + return FCOMMON.Util.getBit( + FCOMMON.info.Login.gpermission, + (int)FCOMMON.eGroupPermission.purchase_adv); + } + } + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) { func_delete(); @@ -342,8 +352,23 @@ namespace FEQ0000 newdr.request = FCOMMON.info.Login.no; repeat: - fPurchase_Add f = new fPurchase_Add(newdr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) { //존재하지 않는 sid 는 추가를 해준다. var newidx = AddItemInfoGetIndex(newdr); @@ -352,17 +377,18 @@ namespace FEQ0000 newdr.pumidx = newidx; newdr.EndEdit(); } - + this.dsPurchase.Purchase.AddPurchaseRow(newdr); - + int cnt = this.ta.Update(newdr); - if(cnt == 1) + if (cnt == 1) { - if (f.repeatAdd) + if (repeat) { FCOMMON.Util.MsgI("저장 완료\n\n연속 저장 모드이므로 직전에 입력된 자료가 자동으로 설정 됩니다."); - } else FCOMMON.Util.MsgI("저장 완료"); + } + else FCOMMON.Util.MsgI("저장 완료"); } else { @@ -371,7 +397,7 @@ namespace FEQ0000 newdr.AcceptChanges(); - if (f.repeatAdd) + if (repeat) { var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); FCOMMON.Util.CopyData(newdr, newdro); @@ -383,13 +409,16 @@ namespace FEQ0000 else refreshData(); //181210 } else newdr.Delete(); + + + } void func_delete() { var drv = bs.Current as DataRowView; if (drv == null) return; - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth( FCOMMON.DBM.eAuthType.purchase)); + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); var dr = drv.Row as dsPurchase.PurchaseRow; if (dr.sc != "") { @@ -400,7 +429,7 @@ namespace FEQ0000 } } - if(dr.request != FCOMMON.info.Login.no) + if (dr.request != FCOMMON.info.Login.no) { if (curLevel < 5) { @@ -414,7 +443,7 @@ namespace FEQ0000 var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); if (dlg != System.Windows.Forms.DialogResult.Yes) return; } - + bs.RemoveCurrent(); //일반사용자는 데이터를 바로 삭제한다. @@ -458,7 +487,7 @@ namespace FEQ0000 private void copyDataToolStripMenuItem_Click(object sender, EventArgs e) { - + } private void btFind_Click(object sender, EventArgs e) @@ -468,7 +497,7 @@ namespace FEQ0000 if (tbFind.Text != search) tbFind.Text = search; try { - if(search.isEmpty()) + if (search.isEmpty()) { this.bs.Filter = ""; tbFind.BackColor = Color.White; @@ -479,7 +508,7 @@ namespace FEQ0000 string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?"; filter = filter.Replace("?", "'%" + search + "%'"); this.bs.Filter = filter; - tbFind.BackColor = Color.Lime; + tbFind.BackColor = Color.Lime; } tbFind.SelectAll(); tbFind.Focus(); @@ -505,40 +534,40 @@ namespace FEQ0000 { var drv = this.bs.Current as DataRowView; if (drv == null) return; - var dr = drv.Row as dsPurchase.PurchaseRow; + var newdr = drv.Row as dsPurchase.PurchaseRow; - var f = new fPurchase_Add(dr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + repeat = false; + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) { //존재하지 않는 sid 는 추가를 해준다. - var newidx = AddItemInfoGetIndex(dr); + var newidx = AddItemInfoGetIndex(newdr); if (newidx != -1) { - dr.pumidx = newidx; - dr.EndEdit(); + newdr.pumidx = newidx; + newdr.EndEdit(); } - if(dr.RowState != DataRowState.Unchanged) + if (newdr.RowState != DataRowState.Unchanged) { - this.ta.Update(dr); - dr.AcceptChanges(); + this.ta.Update(newdr); + newdr.AcceptChanges(); } } - else dr.RejectChanges(); - } + else newdr.RejectChanges(); - private void clearColumnsSizeToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - private void saveColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - private void loadColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) - { - } private void autoToolStripMenuItem_Click(object sender, EventArgs e) @@ -619,7 +648,7 @@ namespace FEQ0000 private void updateSCToolStripMenuItem_Click(object sender, EventArgs e) { var dlg = FCOMMON.Util.MsgQ("#SC가 없는 자료에 한하여 일괄 기록을 실행 합니다."); - if(dlg == System.Windows.Forms.DialogResult.Yes) + if (dlg == System.Windows.Forms.DialogResult.Yes) { } @@ -639,7 +668,7 @@ namespace FEQ0000 | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName); } - + } private void 내가등록한자료ToolStripMenuItem_Click(object sender, EventArgs e) @@ -674,12 +703,12 @@ namespace FEQ0000 refreshData(); } - + private void copyToolStripMenuItem_Click(object sender, EventArgs e) { //선택된 줄의 데이터를 생성하낟. var drv = this.bs.Current as DataRowView; - if(drv==null) return; + if (drv == null) return; var dr = drv.Row as dsPurchase.PurchaseRow; string buffer = string.Format("{0}_{1}_{2}_{3}_{4}", dr.pumname.Replace("_", "-"), dr.pumscale.Replace("_", "-"), dr.dept.Replace("_", "-"), dr.manuproc.Replace("_", "-"), dr.asset.Replace("_", "-")); Clipboard.SetText(buffer); @@ -709,8 +738,22 @@ namespace FEQ0000 newdr.EndEdit(); repeat: - fPurchase_Add f = new fPurchase_Add(newdr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + + bool repeat = false; + DialogResult dlg; + if (getAdminInput == false) + { + var f = new fPurchase_AddS(newdr); + dlg = f.ShowDialog(); + } + else + { + var f = new fPurchase_Add(newdr); + dlg = f.ShowDialog(); + repeat = f.repeatAdd; + } + + if (dlg == System.Windows.Forms.DialogResult.OK) { //존재하지 않는 sid 는 추가를 해준다. var newidx = AddItemInfoGetIndex(newdr); @@ -724,7 +767,7 @@ namespace FEQ0000 this.ta.Update(newdr); newdr.AcceptChanges(); - if (f.repeatAdd) + if (repeat) { var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); FCOMMON.Util.CopyData(newdr, newdro); @@ -737,8 +780,8 @@ namespace FEQ0000 } else newdr.Delete(); } - - + + private void toolStripButton1_Click_2(object sender, EventArgs e) { func_copy(); diff --git a/SubProject/FEQ0000/Purchase/fPurchase_Add.cs b/SubProject/FEQ0000/Purchase/fPurchase_Add.cs index 50f66f7..7205ce7 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase_Add.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase_Add.cs @@ -246,6 +246,9 @@ namespace FEQ0000 if(advInput==false) { this.Width = 528; + this.linkLabel7.Enabled = false; + this.tbProject.Enabled = false; + this.tbProjectIndex.Enabled = false; } this.Show(); Application.DoEvents(); diff --git a/SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs new file mode 100644 index 0000000..d3d4a0a --- /dev/null +++ b/SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs @@ -0,0 +1,494 @@ +namespace FEQ0000 +{ + partial class fPurchase_AddS + { + /// + /// 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 sidLabel; + System.Windows.Forms.Label pumscaleLabel; + System.Windows.Forms.Label pumqtyLabel; + System.Windows.Forms.Label pumpriceLabel; + System.Windows.Forms.Label pumamtLabel; + System.Windows.Forms.Label deptLabel; + System.Windows.Forms.Label label1; + System.Windows.Forms.Label label3; + System.Windows.Forms.Label label6; + System.Windows.Forms.Label label2; + this.tbSID = new System.Windows.Forms.TextBox(); + this.tbPumName = new System.Windows.Forms.TextBox(); + this.tbPumModel = new System.Windows.Forms.TextBox(); + this.tbPumUnit = new System.Windows.Forms.TextBox(); + this.tbPumQty = new System.Windows.Forms.TextBox(); + this.tbPumPrice = new System.Windows.Forms.TextBox(); + this.tbPumAmt = new System.Windows.Forms.TextBox(); + this.tbSupply = new System.Windows.Forms.TextBox(); + this.tbSupplyIndex = new System.Windows.Forms.TextBox(); + this.tbBigo = new System.Windows.Forms.TextBox(); + this.dtPdate = new System.Windows.Forms.DateTimePicker(); + this.btSave = new System.Windows.Forms.Button(); + this.cmbState = new System.Windows.Forms.ComboBox(); + this.cmbRequest = new System.Windows.Forms.ComboBox(); + this.tbPumIDX = new System.Windows.Forms.TextBox(); + this.tbPumStock = new System.Windows.Forms.TextBox(); + this.linkLabel6 = new System.Windows.Forms.LinkLabel(); + this.linkLabel5 = new System.Windows.Forms.LinkLabel(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); + this.cmbPlace = new System.Windows.Forms.ComboBox(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + sidLabel = new System.Windows.Forms.Label(); + pumscaleLabel = new System.Windows.Forms.Label(); + pumqtyLabel = new System.Windows.Forms.Label(); + pumpriceLabel = new System.Windows.Forms.Label(); + pumamtLabel = new System.Windows.Forms.Label(); + deptLabel = new System.Windows.Forms.Label(); + label1 = new System.Windows.Forms.Label(); + label3 = new System.Windows.Forms.Label(); + label6 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // sidLabel + // + sidLabel.AutoSize = true; + sidLabel.Location = new System.Drawing.Point(296, 197); + sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + sidLabel.Name = "sidLabel"; + sidLabel.Size = new System.Drawing.Size(32, 20); + sidLabel.TabIndex = 19; + sidLabel.Text = "SID"; + // + // pumscaleLabel + // + pumscaleLabel.AutoSize = true; + pumscaleLabel.Location = new System.Drawing.Point(19, 124); + pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + pumscaleLabel.Name = "pumscaleLabel"; + pumscaleLabel.Size = new System.Drawing.Size(75, 20); + pumscaleLabel.TabIndex = 9; + pumscaleLabel.Text = "모델/규격"; + // + // pumqtyLabel + // + pumqtyLabel.AutoSize = true; + pumqtyLabel.Location = new System.Drawing.Point(55, 161); + pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + pumqtyLabel.Name = "pumqtyLabel"; + pumqtyLabel.Size = new System.Drawing.Size(39, 20); + pumqtyLabel.TabIndex = 12; + pumqtyLabel.Text = "수량"; + // + // pumpriceLabel + // + pumpriceLabel.AutoSize = true; + pumpriceLabel.Location = new System.Drawing.Point(288, 161); + pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + pumpriceLabel.Name = "pumpriceLabel"; + pumpriceLabel.Size = new System.Drawing.Size(39, 20); + pumpriceLabel.TabIndex = 15; + pumpriceLabel.Text = "단가"; + // + // pumamtLabel + // + pumamtLabel.AutoSize = true; + pumamtLabel.Location = new System.Drawing.Point(55, 197); + pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + pumamtLabel.Name = "pumamtLabel"; + pumamtLabel.Size = new System.Drawing.Size(39, 20); + pumamtLabel.TabIndex = 17; + pumamtLabel.Text = "합계"; + // + // deptLabel + // + deptLabel.AutoSize = true; + deptLabel.Location = new System.Drawing.Point(55, 302); + deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + deptLabel.Name = "deptLabel"; + deptLabel.Size = new System.Drawing.Size(39, 20); + deptLabel.TabIndex = 27; + deptLabel.Text = "비고"; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new System.Drawing.Point(40, 17); + label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(54, 20); + label1.TabIndex = 0; + label1.Text = "입력일"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new System.Drawing.Point(55, 51); + label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(39, 20); + label3.TabIndex = 2; + label3.Text = "요청"; + // + // label6 + // + label6.AutoSize = true; + label6.Location = new System.Drawing.Point(288, 51); + label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(39, 20); + label6.TabIndex = 4; + label6.Text = "상태"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new System.Drawing.Point(40, 270); + label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(54, 20); + label2.TabIndex = 31; + label2.Text = "보관소"; + // + // tbSID + // + this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); + this.tbSID.Location = new System.Drawing.Point(335, 194); + this.tbSID.Margin = new System.Windows.Forms.Padding(4); + this.tbSID.Name = "tbSID"; + this.tbSID.Size = new System.Drawing.Size(148, 27); + this.tbSID.TabIndex = 20; + // + // tbPumName + // + this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.tbPumName.Location = new System.Drawing.Point(101, 84); + this.tbPumName.Margin = new System.Windows.Forms.Padding(4); + this.tbPumName.Name = "tbPumName"; + this.tbPumName.Size = new System.Drawing.Size(311, 27); + this.tbPumName.TabIndex = 7; + // + // tbPumModel + // + this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha; + this.tbPumModel.Location = new System.Drawing.Point(101, 121); + this.tbPumModel.Margin = new System.Windows.Forms.Padding(4); + this.tbPumModel.Name = "tbPumModel"; + this.tbPumModel.Size = new System.Drawing.Size(311, 27); + this.tbPumModel.TabIndex = 10; + // + // tbPumUnit + // + this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); + this.tbPumUnit.Location = new System.Drawing.Point(418, 121); + this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4); + this.tbPumUnit.Name = "tbPumUnit"; + this.tbPumUnit.Size = new System.Drawing.Size(64, 27); + this.tbPumUnit.TabIndex = 11; + this.tbPumUnit.TabStop = false; + this.tbPumUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTip1.SetToolTip(this.tbPumUnit, "단위"); + // + // tbPumQty + // + this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.tbPumQty.Location = new System.Drawing.Point(102, 157); + this.tbPumQty.Margin = new System.Windows.Forms.Padding(4); + this.tbPumQty.Name = "tbPumQty"; + this.tbPumQty.Size = new System.Drawing.Size(111, 27); + this.tbPumQty.TabIndex = 13; + this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); + // + // tbPumPrice + // + this.tbPumPrice.Location = new System.Drawing.Point(335, 157); + this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4); + this.tbPumPrice.Name = "tbPumPrice"; + this.tbPumPrice.Size = new System.Drawing.Size(148, 27); + this.tbPumPrice.TabIndex = 16; + this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); + // + // tbPumAmt + // + this.tbPumAmt.Location = new System.Drawing.Point(101, 194); + this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4); + this.tbPumAmt.Name = "tbPumAmt"; + this.tbPumAmt.ReadOnly = true; + this.tbPumAmt.Size = new System.Drawing.Size(179, 27); + this.tbPumAmt.TabIndex = 18; + this.tbPumAmt.TabStop = false; + this.tbPumAmt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // tbSupply + // + this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.tbSupply.Location = new System.Drawing.Point(101, 230); + this.tbSupply.Margin = new System.Windows.Forms.Padding(4); + this.tbSupply.Name = "tbSupply"; + this.tbSupply.Size = new System.Drawing.Size(311, 27); + this.tbSupply.TabIndex = 22; + // + // tbSupplyIndex + // + this.tbSupplyIndex.Location = new System.Drawing.Point(418, 230); + this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4); + this.tbSupplyIndex.Name = "tbSupplyIndex"; + this.tbSupplyIndex.ReadOnly = true; + this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27); + this.tbSupplyIndex.TabIndex = 23; + this.tbSupplyIndex.TabStop = false; + this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTip1.SetToolTip(this.tbSupplyIndex, "Database ID"); + // + // tbBigo + // + this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.tbBigo.Location = new System.Drawing.Point(101, 302); + this.tbBigo.Margin = new System.Windows.Forms.Padding(4); + this.tbBigo.MaxLength = 500; + this.tbBigo.Multiline = true; + this.tbBigo.Name = "tbBigo"; + this.tbBigo.Size = new System.Drawing.Size(381, 188); + this.tbBigo.TabIndex = 28; + this.tbBigo.TabStop = false; + // + // dtPdate + // + this.dtPdate.Location = new System.Drawing.Point(101, 11); + this.dtPdate.Margin = new System.Windows.Forms.Padding(4); + this.dtPdate.Name = "dtPdate"; + this.dtPdate.Size = new System.Drawing.Size(381, 27); + this.dtPdate.TabIndex = 1; + // + // btSave + // + this.btSave.Location = new System.Drawing.Point(101, 498); + this.btSave.Margin = new System.Windows.Forms.Padding(4); + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(381, 49); + this.btSave.TabIndex = 1; + this.btSave.Text = "저장(&S)"; + this.btSave.UseVisualStyleBackColor = true; + this.btSave.Click += new System.EventHandler(this.button1_Click); + // + // cmbState + // + this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbState.FormattingEnabled = true; + this.cmbState.Location = new System.Drawing.Point(335, 48); + this.cmbState.Margin = new System.Windows.Forms.Padding(4); + this.cmbState.Name = "cmbState"; + this.cmbState.Size = new System.Drawing.Size(148, 28); + this.cmbState.TabIndex = 5; + this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); + // + // cmbRequest + // + this.cmbRequest.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbRequest.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbRequest.FormattingEnabled = true; + this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.cmbRequest.Location = new System.Drawing.Point(101, 48); + this.cmbRequest.Margin = new System.Windows.Forms.Padding(4); + this.cmbRequest.Name = "cmbRequest"; + this.cmbRequest.Size = new System.Drawing.Size(179, 28); + this.cmbRequest.TabIndex = 3; + // + // tbPumIDX + // + this.tbPumIDX.Location = new System.Drawing.Point(418, 84); + this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4); + this.tbPumIDX.Name = "tbPumIDX"; + this.tbPumIDX.ReadOnly = true; + this.tbPumIDX.Size = new System.Drawing.Size(64, 27); + this.tbPumIDX.TabIndex = 8; + this.tbPumIDX.TabStop = false; + this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID"); + // + // tbPumStock + // + this.tbPumStock.Location = new System.Drawing.Point(216, 157); + this.tbPumStock.Margin = new System.Windows.Forms.Padding(4); + this.tbPumStock.Name = "tbPumStock"; + this.tbPumStock.ReadOnly = true; + this.tbPumStock.Size = new System.Drawing.Size(64, 27); + this.tbPumStock.TabIndex = 14; + this.tbPumStock.TabStop = false; + this.tbPumStock.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTip1.SetToolTip(this.tbPumStock, "재고량"); + // + // linkLabel6 + // + this.linkLabel6.AutoSize = true; + this.linkLabel6.Location = new System.Drawing.Point(40, 233); + this.linkLabel6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.linkLabel6.Name = "linkLabel6"; + this.linkLabel6.Size = new System.Drawing.Size(54, 20); + this.linkLabel6.TabIndex = 30; + 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(55, 87); + this.linkLabel5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.linkLabel5.Name = "linkLabel5"; + this.linkLabel5.Size = new System.Drawing.Size(39, 20); + this.linkLabel5.TabIndex = 29; + this.linkLabel5.TabStop = true; + this.linkLabel5.Text = "품명"; + this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked); + // + // dsPurchase + // + this.dsPurchase.DataSetName = "dsPurchase"; + this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // purchaseBindingSource + // + this.purchaseBindingSource.DataMember = "Purchase"; + this.purchaseBindingSource.DataSource = this.dsPurchase; + // + // purchaseTableAdapter + // + this.purchaseTableAdapter.ClearBeforeFill = true; + // + // cmbPlace + // + this.cmbPlace.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbPlace.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbPlace.FormattingEnabled = true; + this.cmbPlace.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.cmbPlace.Location = new System.Drawing.Point(101, 265); + this.cmbPlace.Margin = new System.Windows.Forms.Padding(4); + this.cmbPlace.Name = "cmbPlace"; + this.cmbPlace.Size = new System.Drawing.Size(381, 28); + this.cmbPlace.TabIndex = 32; + // + // pictureBox1 + // + this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); + this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBox1.Location = new System.Drawing.Point(490, 11); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(393, 538); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox1.TabIndex = 33; + this.pictureBox1.TabStop = false; + // + // fPurchase_AddS + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(895, 561); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.cmbPlace); + this.Controls.Add(label2); + this.Controls.Add(this.btSave); + this.Controls.Add(this.linkLabel6); + this.Controls.Add(this.tbBigo); + this.Controls.Add(this.linkLabel5); + this.Controls.Add(this.tbPumModel); + this.Controls.Add(label6); + this.Controls.Add(this.tbPumUnit); + this.Controls.Add(label3); + this.Controls.Add(pumscaleLabel); + this.Controls.Add(this.dtPdate); + this.Controls.Add(this.cmbRequest); + this.Controls.Add(this.tbPumStock); + this.Controls.Add(this.tbPumName); + this.Controls.Add(this.tbPumAmt); + this.Controls.Add(label1); + this.Controls.Add(pumpriceLabel); + this.Controls.Add(deptLabel); + this.Controls.Add(this.tbSupply); + this.Controls.Add(this.tbSupplyIndex); + this.Controls.Add(this.tbPumPrice); + this.Controls.Add(pumamtLabel); + this.Controls.Add(sidLabel); + this.Controls.Add(this.tbPumIDX); + this.Controls.Add(pumqtyLabel); + this.Controls.Add(this.cmbState); + this.Controls.Add(this.tbPumQty); + this.Controls.Add(this.tbSID); + this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "fPurchase_AddS"; + this.Text = "Purchase ADD/EDIT"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox tbSID; + private System.Windows.Forms.TextBox tbPumName; + private System.Windows.Forms.TextBox tbPumModel; + private System.Windows.Forms.TextBox tbPumUnit; + private System.Windows.Forms.TextBox tbPumQty; + private System.Windows.Forms.TextBox tbPumPrice; + private System.Windows.Forms.TextBox tbPumAmt; + private System.Windows.Forms.TextBox tbSupply; + private System.Windows.Forms.TextBox tbSupplyIndex; + private System.Windows.Forms.TextBox tbBigo; + private System.Windows.Forms.DateTimePicker dtPdate; + private System.Windows.Forms.Button btSave; + private System.Windows.Forms.ComboBox cmbState; + private System.Windows.Forms.ComboBox cmbRequest; + private System.Windows.Forms.TextBox tbPumStock; + private System.Windows.Forms.TextBox tbPumIDX; + private dsPurchase dsPurchase; + private System.Windows.Forms.BindingSource purchaseBindingSource; + private dsPurchaseTableAdapters.PurchaseTableAdapter purchaseTableAdapter; + private System.Windows.Forms.ToolTip toolTip1; + private System.Windows.Forms.LinkLabel linkLabel5; + private System.Windows.Forms.LinkLabel linkLabel6; + private System.Windows.Forms.ComboBox cmbPlace; + private System.Windows.Forms.PictureBox pictureBox1; + } +} \ No newline at end of file diff --git a/SubProject/FEQ0000/Purchase/fPurchase_AddS.cs b/SubProject/FEQ0000/Purchase/fPurchase_AddS.cs new file mode 100644 index 0000000..7ae28e1 --- /dev/null +++ b/SubProject/FEQ0000/Purchase/fPurchase_AddS.cs @@ -0,0 +1,602 @@ +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 FEQ0000 +{ + public partial class fPurchase_AddS : Form + { + BindingSource bsManu; + BindingSource bsModel; + dsPurchase.PurchaseRow dr; + public Boolean repeatAdd = false; + public fPurchase_AddS(dsPurchase.PurchaseRow 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(); + }; + this.tbPumName.Leave += tbPumName_Leave; + this.tbSupply.Leave += tbSupply_Leave; + + foreach (Control ctl in this.Controls) + { + if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) + { + ctl.KeyDown += ctl_KeyDown; + } + } + } + + + + //Boolean advInput = false; + private void __Load(object sender, EventArgs e) + { + + //상태 + var stateList = FCOMMON.DBM.getCodeTable("04"); + this.cmbState.DisplayMember = "Value"; + this.cmbState.ValueMember = "Value"; + this.cmbState.DataSource = stateList; + + //보관소 + var dt_dept = FCOMMON.DBM.getCodeTable("50"); + bsManu.DataSource = dt_dept; + this.cmbPlace.DisplayMember = "Value"; + this.cmbPlace.ValueMember = "Value"; + this.cmbPlace.DataSource = bsManu; + + //담당자목록 + var userList = FCOMMON.DBM.getUserList(); //.getGroupList("name", "Users", "[level] > 0 and [level] < 10"); + foreach (var user in userList) + { + this.cmbRequest.Items.Add(string.Format("[{0}] {1}", user.Key, user.Value)); + } + + dtPdate.Value = DateTime.Parse(dr.pdate); + + ///입력된 데이터를 적용한다. + dtPdate.Value = DateTime.Parse(dr.pdate); + if(cmbRequest.Items.Count > 0) + { + for(int i = 0; i< cmbRequest.Items.Count ;i++) + { + if (cmbRequest.Items[i].ToString().StartsWith("[" + dr.request + "]")) + { + cmbRequest.SelectedIndex = i; + break; + } + } + } else cmbRequest.Text = dr.request; + + + + cmbPlace.Text = dr.place; + tbSID.Text = dr.sid; + tbSID.Tag = tbSID.Text; + + tbPumName.Text = dr.pumname; + tbPumName.Tag = tbPumName.Text; + + tbPumModel.Text = dr.pumscale; + tbPumQty.Text = dr.pumqty.ToString(); + tbPumStock.Text = "--"; + if (dr.IspumidxNull()) tbPumIDX.Text = "-1"; + else tbPumIDX.Text = dr.pumidx.ToString(); + tbPumPrice.Text = dr.pumprice.ToString(); + tbPumAmt.Text = dr.pumamt.ToString("N0"); //천단위 구분기호 추가 181222 + tbPumUnit.Text = dr.pumunit; + + tbSupply.Text = dr.supply; + tbSupply.Tag = tbSupply.Text; + tbSupplyIndex.Text = dr.supplyidx.ToString(); + + cmbState.Text = dr.state; + + tbBigo.Text = dr.bigo; + + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); + if (curLevel < 5) + { + + + cmbState.Enabled = false; + if (cmbRequest.Text != "") cmbRequest.Enabled = false; + + //데이터가 편집 상태인데 요청자가 내가 아닌경우에도 편집 불가 + Boolean enb = true; + if (dr.RowState == DataRowState.Unchanged && dr.request != FCOMMON.info.Login.no) + enb = false; + + if (enb == false) //일반 사용자는 쇼핑, 카드 잇으면 수정 불가 + { + btSave.Enabled = false; + } + } + + this.Show(); + Application.DoEvents(); + tbPumName.Focus(); + + //이미지를 불러온다. + if (dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Deleted && dr.RowState != DataRowState.Added) + { + if (dr.IspumidxNull() == false && dr.pumidx != -1) + { + var img = FCOMMON.DBM.GetImageData("Items", "image", dr.pumidx); + if (img != null) + { + this.pictureBox1.Image = img; + } + } + } + + + + } + + string sidTrim(string sid) + { + return sid.Replace(" ", "").Replace("-", "").Replace("_", "").Trim(); + } + + 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 "cmbrequest": + ////요청자가 마지막으로 입력한 자료의 process 를 찾아서 기입해준다. + //var lastprocess = FCOMMON.DBM.getFirstValue("process", "purchase", "request like '%" + this.cmbRequest.Text + "%'", "pdate desc"); + //if (lastprocess != "") cbProcess.Text = lastprocess; + tbSID.Focus(); + break; + case "tbpumname": + Lov_Item(search, false); + break; + case "tbproject": + Lov_Project(search, false); + break; + case "tbsupply": + Lov_Supply(search, false); + break; + default: + SendKeys.Send("{TAB}"); + break; + } + } + } + private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + Lov_Item("",true); + } + + void Lov_Item( string search,Boolean allowAll) + { + if (search == "" && allowAll==false) + { + FCOMMON.Util.MsgE("품명은 필수 값 입니다"); + tbPumName.Focus(); + return; + } + else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다. + { + var f = new FCM0000.fLovItem(search); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + //인덱스값이 다르면 모델 및 가격을 업데이트 한다. + tbPumName.Text = f.itemName; + tbPumName.Tag = f.itemName; + + this.tbPumIDX.Text = f.item.ToString(); + this.tbPumModel.Text = f.itemmodel; + this.tbPumPrice.Text = f.itemprice.ToString(); + this.tbSID.Text = f.SID; + this.tbSID.Tag = f.SID; + this.tbPumUnit.Text = f.itemUnit; //181214 + + this.tbPumModel.Enabled = false; + this.tbPumUnit.Enabled = false; + if (tbSID.Text != "") tbSID.Enabled = false; + else tbSID.Enabled = true; + + //제품을 찾앗다면 suppy 등을 업데이트 해준다. + var pcInfo = FCOMMON.DBM.getLastPurchaseInfo(f.item); + if (pcInfo.idx != -1) + { + tbSupply.Text = pcInfo.supply; + tbSupplyIndex.Text = pcInfo.supplyidx.ToString(); + // if (pcInfo.project != "" && tbProject.Text == "") + // tbProject.Text = pcInfo.project; + } + else + { + tbSupply.Text = f.itemSupply; + tbSupplyIndex.Text = f.itemSupplyidx.ToString(); + } + + //display image + var image = FCOMMON.DBM.GetImageData("Items", "image", int.Parse(tbPumIDX.Text)); + var oimage = this.pictureBox1.Image; + this.pictureBox1.Image = image; + if (oimage != null) oimage.Dispose(); + } + } + this.tbPumQty.Focus(); + } + void Lov_Project(string search, Boolean allowAll) + { + //if (search != "" || allowAll == true) + //{ + // var f = new FCM0000.fLovProject(search); + // if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + // { + // this.tbProject.Text = f.Title; + // this.tbProject.Tag = f.Title; + // this.tbProjectIndex.Text = f.Index.ToString(); + // btSave.Focus(); + // } + // else + // { + // tbProject.SelectAll(); + // tbProject.Focus(); + // } + //} + //else this.btSave.Focus(); + } + void Lov_Supply(string search, Boolean allowAll) + { + if (search != "" || allowAll == true) + { + FCM0000.fLovSupply f = new FCM0000.fLovSupply(search); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + tbSupply.Text = f.Title; + tbSupply.Tag = f.Title; + tbSupplyIndex.Text = f.Index.ToString(); + // if (advInput) + // this.tbProject.Focus(); + //else + this.tbBigo.Focus(); + } + else + { + tbSupply.Focus(); + tbSupply.SelectAll(); + } + } + else + { + // if (advInput) + // this.tbProject.Focus(); + // else + this.tbBigo.Focus(); + } + } + private bool saveData() + { + this.Validate(); + + tbSID.Text = sidTrim(tbSID.Text); + + //if (cbProcess.Text.Trim() == "") + //{ + // FCOMMON.Util.MsgE("추가정보내의 [공정]을 선택하세요."); + // cbProcess.Focus(); + // return false; + //} + + + + if (tbPumName.Text.isEmpty()) + { + FCOMMON.Util.MsgE("품명이 없습니다."); + tbPumName.Focus(); + return false; + } + + if (tbPumModel.Enabled==true && tbPumModel.Text == "") + { + FCOMMON.Util.MsgE("제품 규격을 입력하세요."); + tbPumModel.Focus(); + return false; + } + if (tbPumQty.Text == "") + { + FCOMMON.Util.MsgE("수량을 입력하세요."); + tbPumQty.Focus(); + return false; + } + if ( cmbPlace.SelectedIndex < 0) + { + FCOMMON.Util.MsgE("저장소를 선택하세요"); + cmbPlace.Focus(); + return false; + } + + //품목정보에 없는 데이터이므로 자료를 추가한다. + if(tbPumIDX.Text == "-1") + { + var newidx = FCOMMON.DBM.addItem(tbPumName.Text, tbSID.Text, tbPumModel.Text.Trim(), decimal.Parse(tbPumPrice.Text), tbSupply.Text.Trim(), int.Parse(tbSupplyIndex.Text), null); + if (newidx > 0) tbPumIDX.Text = newidx.ToString(); + } + else if(tbSID.Text != "" && tbSID.Text != tbSID.Tag.ToString()) + { + //SID가 변경되었으므로 업데이트 해주낟. + FCOMMON.DBM.UpdateItemSID(int.Parse(tbPumIDX.Text), tbSID.Text); + } + + //수령을 했는데. 현재 상태가 04 미만이면 04(수령)으로 변경 한다. + + + if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0"; + if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0"; + dr.pumqty = int.Parse(tbPumQty.Text); + dr.pumprice = decimal.Parse(tbPumPrice.Text); + dr.pumamt = dr.pumqty * dr.pumprice; + if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") dr.SetpumidxNull(); + else dr.pumidx = int.Parse(tbPumIDX.Text); + dr.sid = tbSID.Text.Trim(); + + dr.pdate = this.dtPdate.Value.ToShortDateString(); + dr.place = cmbPlace.Text; + + dr.gcode = FCOMMON.info.Login.gcode; + if (cmbRequest.Text.IndexOf("]") != -1) + dr.request = cmbRequest.Text.Substring(1, cmbRequest.Text.IndexOf("]") - 1); + else + dr.request = cmbRequest.Text.Trim(); + + dr.sid = tbSID.Text; + dr.pumname = tbPumName.Text; + dr.pumname = dr.pumname.Replace("*", "x"); //181031 + dr.pumscale = tbPumModel.Text; + dr.pumscale = dr.pumscale.Replace("*", "x"); //181031 + dr.pumunit = tbPumUnit.Text; + dr.supply = tbSupply.Text; + + if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull(); + else dr.supplyidx = int.Parse(tbSupplyIndex.Text); + + dr.state = cmbState.Text.Trim(); + dr.bigo = tbBigo.Text; + + //품정보가 업데이트 되어있으면 해당 데이터의 이미지를 업데이트 한다.(크기비교) + //품정보가 없다면 그대로 생성을 해준다. + if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") + { + + //아이템을 추가해야하낟. + byte[] pic = null; + if (this.pictureBox1.Image != null && this.pictureBox1.Tag.ToString() == "U") + { + //이미지를 변경해줘야 한다. + pic = FCOMMON.DBM.getImagByteArray(this.pictureBox1.Image); + } + var newidx = FCOMMON.DBM.addItem(dr.pumname, dr.sid, dr.pumscale, dr.pumprice, dr.supply, dr.supplyidx, pic); + if (newidx != -1) + { + dr.pumidx = newidx; + Console.WriteLine("new pumidx set = " + dr.pumidx.ToString()); + } + } + else + { + //아이템을 추가해야한다(변경된 이름은 + if (this.pictureBox1.Image != null && this.pictureBox1.Tag.ToString() == "U") + { + //이미지를 변경해줘야 한다. + FCOMMON.DBM.setImageData(this.pictureBox1.Image, "Items", "image", dr.pumidx); + } + } + + dr.EndEdit(); + + return true; + } + + private void button1_Click(object sender, EventArgs e) + { + if (!saveData()) return; + DialogResult = System.Windows.Forms.DialogResult.OK; + } + + private void chkInDate_CheckedChanged(object sender, EventArgs e) + { + // this.dtInDate.Enabled = chkInDate.Checked; + } + + private void chkExp_CheckedChanged(object sender, EventArgs e) + { + // this.dtExpDate.Enabled = chkExp.Checked; + } + + private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) + { + //string code = ""; + //if (cmbState.SelectedIndex < 0) label3.Text = "--"; + //else + //{ + // //var value = cmbState.DataSource as BindingSource; + // //var list = value.DataSource as Dictionary; + // //var item = list.Values + // if (cmbState.Text.StartsWith("[") == false) return; + // code = cmbState.Text.ToString().Substring(1, 2); + // var desc = FCOMMON.DBM.getCodeSavlue("04", code); + // label3.Text = desc; + + //} + //switch (code) + //{ + // case "01": + // label3.BackColor = Color.LightBlue; + // break; + // case "02": + // label3.BackColor = Color.SkyBlue; + // break; + // case "03": + // label3.BackColor = Color.Yellow; + // break; + // case "04": + // label3.BackColor = Color.Green; + // break; + // case "06": + // case "05": + // label3.BackColor = Color.Red; + // break; + // case "07": + // label3.BackColor = Color.Magenta; + // break; + // default: + // label3.BackColor = Color.LightGray; + // break; + //} + + } + + private void button2_Click(object sender, EventArgs e) + { + if (!saveData()) return; + this.repeatAdd = true; + DialogResult = System.Windows.Forms.DialogResult.OK; + } + + private void tbPumQty_TextChanged(object sender, EventArgs e) + { + var strQty = this.tbPumQty.Text; + var strPrice = this.tbPumPrice.Text; + + int qty = 0; + double price = 0; + if (strQty.IsNumeric()) qty = int.Parse(strQty); + if (strPrice.IsNumeric()) price = double.Parse(strPrice); + double amt = price * qty; + tbPumAmt.Text = amt.ToString("N0"); + } + + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + string path = "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년"; + FCOMMON.Util.RunExplorer(path); + } + + private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + OpenFileDialog od = new OpenFileDialog(); + if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; + var image = Image.FromFile(od.FileName); + var oimage = this.pictureBox1.Image; + this.pictureBox1.Image = image; + this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; + this.pictureBox1.Tag = "U"; + if (oimage != null) oimage.Dispose(); + } + + private void imgpase_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + if (!Clipboard.ContainsImage()) + { + FCOMMON.Util.MsgE("이미지를 먼저 클립보드에 복사 하세요."); + return; + } + + var image = Clipboard.GetImage(); + var oimage = this.pictureBox1.Image; + this.pictureBox1.Image = image; + this.pictureBox1.Tag = "U"; + if (oimage != null) oimage.Dispose(); + } + + private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + FCOMMON.fWebCamera f = new FCOMMON.fWebCamera(FCOMMON.info.camIndex); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + var bmp = f.bmp.Clone(); + Application.DoEvents(); + var oimag = this.pictureBox1.Image; + this.pictureBox1.Image = (Image)bmp; + if (oimag != null) oimag.Dispose(); + } + } + + private void cbEQManu_SelectedIndexChanged(object sender, EventArgs e) + { + //string 원본모델 = cbEQModel.Text; + + ////장비모델 필터를 변경해준다. + //if (cbEQManu.SelectedIndex < 0) + //{ + // cbEQModel.SelectedIndex = -1; + // return; + //} + + //string filter = "svalue='" + cbEQManu.Text.Replace("'", "''") + "'"; + //bsModel.Filter = filter; + //if (원본모델 != "") cbEQModel.Text = 원본모델; + //else cbEQModel.SelectedIndex = -1; + } + + private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + //lov 공급처 + Lov_Supply("", true); + } + + private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + //lov 프로젝트 + Lov_Project("", true); + } + + void tbProject_Leave(object sender, EventArgs e) + { + //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다. + //var tb = sender as TextBox; + //if (tb.Text == "") tbProjectIndex.Text = "-1"; + //else if (tb.Text != tb.Tag.ToString()) tbProjectIndex.Text = "-1"; + } + + void tbSupply_Leave(object sender, EventArgs e) + { + //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다.\ + var tb = sender as TextBox; + if (tb.Text == "") tbSupplyIndex.Text = "-1"; + else if (tb.Text != tb.Tag.ToString()) tbSupplyIndex.Text = "-1"; + } + + void tbPumName_Leave(object sender, EventArgs e) + { + //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다. + var tb = sender as TextBox; + if (tb.Text == "") tbPumIDX.Text = "-1"; + else if (tb.Text != tb.Tag.ToString()) tbPumIDX.Text = "-1"; + if(tbPumIDX.Text =="-1") + { + tbPumModel.Enabled = true; + tbPumUnit.Enabled = true; + } + } + } +} diff --git a/SubProject/FEQ0000/Purchase/fPurchase_AddS.resx b/SubProject/FEQ0000/Purchase/fPurchase_AddS.resx new file mode 100644 index 0000000..9470b1a --- /dev/null +++ b/SubProject/FEQ0000/Purchase/fPurchase_AddS.resx @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + 490, 17 + + + 17, 17 + + + 131, 17 + + + 313, 17 + + + 58 + + \ No newline at end of file diff --git a/SubProject/FEQ0000/dsPurchase.Designer.cs b/SubProject/FEQ0000/dsPurchase.Designer.cs index 4c582be..940b2e9 100644 --- a/SubProject/FEQ0000/dsPurchase.Designer.cs +++ b/SubProject/FEQ0000/dsPurchase.Designer.cs @@ -347,6 +347,8 @@ namespace FEQ0000 { private global::System.Data.DataColumn columnrequestName; + private global::System.Data.DataColumn columnplace; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public PurchaseDataTable() { @@ -652,6 +654,14 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn placeColumn { + get { + return this.columnplace; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -722,7 +732,8 @@ namespace FEQ0000 { string orderno, string gcode, string receiveName, - string requestName) { + string requestName, + string place) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -758,7 +769,8 @@ namespace FEQ0000 { orderno, gcode, receiveName, - requestName}; + requestName, + place}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -822,6 +834,7 @@ namespace FEQ0000 { this.columngcode = base.Columns["gcode"]; this.columnreceiveName = base.Columns["receiveName"]; this.columnrequestName = base.Columns["requestName"]; + this.columnplace = base.Columns["place"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -895,6 +908,8 @@ namespace FEQ0000 { base.Columns.Add(this.columnreceiveName); this.columnrequestName = new global::System.Data.DataColumn("requestName", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnrequestName); + this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnplace); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -932,6 +947,7 @@ namespace FEQ0000 { this.columnreceiveName.MaxLength = 200; this.columnrequestName.ReadOnly = true; this.columnrequestName.MaxLength = 200; + this.columnplace.MaxLength = 20; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1596,6 +1612,22 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string place { + get { + if (this.IsplaceNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tablePurchase.placeColumn])); + } + } + set { + this[this.tablePurchase.placeColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IspdateNull() { @@ -1955,6 +1987,18 @@ namespace FEQ0000 { public void SetrequestNameNull() { this[this.tablePurchase.requestNameColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsplaceNull() { + return this.IsNull(this.tablePurchase.placeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetplaceNull() { + this[this.tablePurchase.placeColumn] = global::System.Convert.DBNull; + } } /// @@ -2150,6 +2194,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { tableMapping.ColumnMappings.Add("gcode", "gcode"); tableMapping.ColumnMappings.Add("receiveName", "receiveName"); tableMapping.ColumnMappings.Add("requestName", "requestName"); + tableMapping.ColumnMappings.Add("place", "place"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -2160,8 +2205,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = @"INSERT INTO Purchase (pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, - import, pumidx, isdel, bigo, manuproc, orderno, gcode) -VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode); + import, pumidx, isdel, bigo, manuproc, orderno, gcode, place) +VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode,@place); SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -2187,7 +2232,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, 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.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -2195,14 +2240,15 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = @"UPDATE Purchase SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno -WHERE (idx = @Original_idx); + orderno = @orderno, place = @place +WHERE (idx = @Original_idx); SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -2228,13 +2274,14 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, 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.DateTime, 8, 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("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, 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("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", 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, 4, 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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } @@ -2253,7 +2300,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, - pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode + pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -2271,7 +2318,7 @@ ORDER BY pdate DESC, idx DESC"; this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = @"SELECT idx, asset, bigo, dept, edate, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive, - request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode + request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode, place FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -2463,7 +2510,8 @@ ORDER BY pdate DESC, idx DESC"; string bigo, string manuproc, string orderno, - string gcode) { + string gcode, + string place) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -2645,6 +2693,12 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[30].Value = ((string)(gcode)); } + if ((place == null)) { + this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[31].Value = ((string)(place)); + } 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)) { @@ -2696,6 +2750,7 @@ ORDER BY pdate DESC, idx DESC"; string bigo, string manuproc, string orderno, + string place, int Original_idx, int idx) { if ((pdate == null)) { @@ -2873,8 +2928,14 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(orderno)); } - this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idx)); - this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(idx)); + if ((place == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(place)); + } + this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_idx)); + this.Adapter.UpdateCommand.Parameters[32].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)) { diff --git a/SubProject/FEQ0000/dsPurchase.xsd b/SubProject/FEQ0000/dsPurchase.xsd index a64a776..256948e 100644 --- a/SubProject/FEQ0000/dsPurchase.xsd +++ b/SubProject/FEQ0000/dsPurchase.xsd @@ -9,7 +9,7 @@ - + UPDATE Purchase @@ -21,101 +21,103 @@ WHERE (idx = @Original_idx) - + INSERT INTO Purchase (pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, - import, pumidx, isdel, bigo, manuproc, orderno, gcode) -VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode); + import, pumidx, isdel, bigo, manuproc, orderno, gcode, place) +VALUES (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode,@place); SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, - pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode + pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC - + - + UPDATE Purchase SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno -WHERE (idx = @Original_idx); + orderno = @orderno, place = @place +WHERE (idx = @Original_idx); SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -156,6 +158,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, + @@ -182,7 +185,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc SELECT idx, asset, bigo, dept, edate, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive, - request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode + request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode, place FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -204,7 +207,7 @@ ORDER BY pdate DESC, idx DESC - + @@ -385,6 +388,13 @@ ORDER BY pdate DESC, idx DESC + + + + + + + diff --git a/SubProject/FPJ0000/Project/fProjectData.Designer.cs b/SubProject/FPJ0000/Project/fProjectData.Designer.cs index e4a1ae4..1415f54 100644 --- a/SubProject/FPJ0000/Project/fProjectData.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectData.Designer.cs @@ -31,8 +31,6 @@ this.components = new System.ComponentModel.Container(); System.Windows.Forms.Label nameLabel; System.Windows.Forms.Label reqstaffLabel; - System.Windows.Forms.Label sdateLabel; - System.Windows.Forms.Label edateLabel; System.Windows.Forms.Label usermainLabel; System.Windows.Forms.Label usersubLabel; System.Windows.Forms.Label userManagerLabel; @@ -40,19 +38,17 @@ System.Windows.Forms.Label costnLabel; System.Windows.Forms.Label costeLabel; System.Windows.Forms.Label cntLabel; - System.Windows.Forms.Label ddateLabel; System.Windows.Forms.Label assetLabel; System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; - System.Windows.Forms.Label label7; System.Windows.Forms.Label label4; System.Windows.Forms.Label label6; System.Windows.Forms.Label label8; System.Windows.Forms.Label label9; + System.Windows.Forms.Label label5; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectData)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.Label label5; this.tbIdx = new System.Windows.Forms.TextBox(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsPRJ = new FPJ0000.dsPRJ(); @@ -99,6 +95,7 @@ this.cmbPart = new System.Windows.Forms.ComboBox(); this.arLabel1 = new arCtl.arLabel(); this.panel1 = new System.Windows.Forms.Panel(); + this.cmbCate = new System.Windows.Forms.ComboBox(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.textBox4 = new System.Windows.Forms.TextBox(); this.tbPath = new System.Windows.Forms.TextBox(); @@ -108,6 +105,10 @@ this.textBox3 = new System.Windows.Forms.TextBox(); this.arLabel3 = new arCtl.arLabel(); this.panel2 = new System.Windows.Forms.Panel(); + this.linkLabel5 = new System.Windows.Forms.LinkLabel(); + this.linkLabel4 = new System.Windows.Forms.LinkLabel(); + this.linkLabel3 = new System.Windows.Forms.LinkLabel(); + this.linkLabel2 = new System.Windows.Forms.LinkLabel(); this.arLabel4 = new arCtl.arLabel(); this.panel3 = new System.Windows.Forms.Panel(); this.arLabel5 = new arCtl.arLabel(); @@ -133,11 +134,8 @@ this.bsSchedule = new System.Windows.Forms.BindingSource(this.components); this.taHist = new FPJ0000.dsPRJTableAdapters.ProjectsHistoryTableAdapter(); this.taSchedule = new FPJ0000.dsPRJTableAdapters.ProjectsScheduleTableAdapter(); - this.cmbCate = new System.Windows.Forms.ComboBox(); nameLabel = new System.Windows.Forms.Label(); reqstaffLabel = new System.Windows.Forms.Label(); - sdateLabel = new System.Windows.Forms.Label(); - edateLabel = new System.Windows.Forms.Label(); usermainLabel = new System.Windows.Forms.Label(); usersubLabel = new System.Windows.Forms.Label(); userManagerLabel = new System.Windows.Forms.Label(); @@ -145,12 +143,10 @@ costnLabel = new System.Windows.Forms.Label(); costeLabel = new System.Windows.Forms.Label(); cntLabel = new System.Windows.Forms.Label(); - ddateLabel = new System.Windows.Forms.Label(); assetLabel = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); - label7 = new System.Windows.Forms.Label(); label4 = new System.Windows.Forms.Label(); label6 = new System.Windows.Forms.Label(); label8 = new System.Windows.Forms.Label(); @@ -192,24 +188,6 @@ reqstaffLabel.TabIndex = 8; reqstaffLabel.Text = "담당자"; // - // sdateLabel - // - sdateLabel.AutoSize = true; - sdateLabel.Location = new System.Drawing.Point(44, 35); - sdateLabel.Name = "sdateLabel"; - sdateLabel.Size = new System.Drawing.Size(41, 12); - sdateLabel.TabIndex = 10; - sdateLabel.Text = "시작일"; - // - // edateLabel - // - edateLabel.AutoSize = true; - edateLabel.Location = new System.Drawing.Point(304, 61); - edateLabel.Name = "edateLabel"; - edateLabel.Size = new System.Drawing.Size(41, 12); - edateLabel.TabIndex = 12; - edateLabel.Text = "완료일"; - // // usermainLabel // usermainLabel.AutoSize = true; @@ -273,15 +251,6 @@ cntLabel.TabIndex = 46; cntLabel.Text = "수량"; // - // ddateLabel - // - ddateLabel.AutoSize = true; - ddateLabel.Location = new System.Drawing.Point(304, 35); - ddateLabel.Name = "ddateLabel"; - ddateLabel.Size = new System.Drawing.Size(41, 12); - ddateLabel.TabIndex = 52; - ddateLabel.Text = "만료일"; - // // assetLabel // assetLabel.AutoSize = true; @@ -321,15 +290,6 @@ label3.TabIndex = 8; label3.Text = "IDX"; // - // label7 - // - label7.AutoSize = true; - label7.Location = new System.Drawing.Point(14, 61); - label7.Name = "label7"; - label7.Size = new System.Drawing.Size(71, 12); - label7.TabIndex = 78; - label7.Text = "출고/설치일"; - // // label4 // label4.AutoSize = true; @@ -368,6 +328,16 @@ label9.TabIndex = 12; label9.Text = "CR/CF#"; // + // label5 + // + label5.AutoSize = true; + label5.Location = new System.Drawing.Point(212, 89); + label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(29, 12); + label5.TabIndex = 88; + label5.Text = "분류"; + // // tbIdx // this.tbIdx.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true)); @@ -875,6 +845,19 @@ this.panel1.Size = new System.Drawing.Size(547, 145); this.panel1.TabIndex = 86; // + // cmbCate + // + this.cmbCate.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbCate.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbCate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbCate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbCate.FormattingEnabled = true; + this.cmbCate.Location = new System.Drawing.Point(246, 85); + this.cmbCate.Margin = new System.Windows.Forms.Padding(4); + this.cmbCate.Name = "cmbCate"; + this.cmbCate.Size = new System.Drawing.Size(103, 20); + this.cmbCate.TabIndex = 89; + // // linkLabel1 // this.linkLabel1.AutoSize = true; @@ -1033,20 +1016,64 @@ // panel2 // this.panel2.BackColor = System.Drawing.Color.Gainsboro; + this.panel2.Controls.Add(this.linkLabel5); + this.panel2.Controls.Add(this.linkLabel4); + this.panel2.Controls.Add(this.linkLabel3); + this.panel2.Controls.Add(this.linkLabel2); this.panel2.Controls.Add(this.arLabel4); this.panel2.Controls.Add(this.sdateTextBox); this.panel2.Controls.Add(this.ddateTextBox); - this.panel2.Controls.Add(ddateLabel); this.panel2.Controls.Add(this.edateTextBox); - this.panel2.Controls.Add(edateLabel); - this.panel2.Controls.Add(label7); - this.panel2.Controls.Add(sdateLabel); this.panel2.Controls.Add(this.textBox1); this.panel2.Location = new System.Drawing.Point(12, 329); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(546, 88); this.panel2.TabIndex = 86; // + // linkLabel5 + // + this.linkLabel5.AutoSize = true; + this.linkLabel5.Location = new System.Drawing.Point(17, 61); + this.linkLabel5.Name = "linkLabel5"; + this.linkLabel5.Size = new System.Drawing.Size(71, 12); + this.linkLabel5.TabIndex = 90; + this.linkLabel5.TabStop = true; + this.linkLabel5.Text = "출고/설치일"; + this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked); + // + // linkLabel4 + // + this.linkLabel4.AutoSize = true; + this.linkLabel4.Location = new System.Drawing.Point(307, 61); + this.linkLabel4.Name = "linkLabel4"; + this.linkLabel4.Size = new System.Drawing.Size(41, 12); + this.linkLabel4.TabIndex = 89; + this.linkLabel4.TabStop = true; + this.linkLabel4.Text = "완료일"; + this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel4_LinkClicked); + // + // linkLabel3 + // + this.linkLabel3.AutoSize = true; + this.linkLabel3.Location = new System.Drawing.Point(307, 35); + this.linkLabel3.Name = "linkLabel3"; + this.linkLabel3.Size = new System.Drawing.Size(41, 12); + this.linkLabel3.TabIndex = 88; + this.linkLabel3.TabStop = true; + this.linkLabel3.Text = "만료일"; + this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked); + // + // linkLabel2 + // + this.linkLabel2.AutoSize = true; + this.linkLabel2.Location = new System.Drawing.Point(47, 37); + this.linkLabel2.Name = "linkLabel2"; + this.linkLabel2.Size = new System.Drawing.Size(41, 12); + this.linkLabel2.TabIndex = 87; + this.linkLabel2.TabStop = true; + this.linkLabel2.Text = "시작일"; + this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); + // // arLabel4 // this.arLabel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(229)))), ((int)(((byte)(231))))); @@ -1463,29 +1490,6 @@ // this.taSchedule.ClearBeforeFill = true; // - // cmbCate - // - this.cmbCate.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.cmbCate.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.cmbCate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.cmbCate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbCate.FormattingEnabled = true; - this.cmbCate.Location = new System.Drawing.Point(246, 85); - this.cmbCate.Margin = new System.Windows.Forms.Padding(4); - this.cmbCate.Name = "cmbCate"; - this.cmbCate.Size = new System.Drawing.Size(103, 20); - this.cmbCate.TabIndex = 89; - // - // label5 - // - label5.AutoSize = true; - label5.Location = new System.Drawing.Point(212, 89); - label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - label5.Name = "label5"; - label5.Size = new System.Drawing.Size(29, 12); - label5.TabIndex = 88; - label5.Text = "분류"; - // // fProjectData // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1618,5 +1622,9 @@ private System.Windows.Forms.TextBox textBox4; private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.ComboBox cmbCate; + private System.Windows.Forms.LinkLabel linkLabel2; + private System.Windows.Forms.LinkLabel linkLabel3; + private System.Windows.Forms.LinkLabel linkLabel5; + private System.Windows.Forms.LinkLabel linkLabel4; } } \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectData.cs b/SubProject/FPJ0000/Project/fProjectData.cs index 2d82b9c..a0fb02d 100644 --- a/SubProject/FPJ0000/Project/fProjectData.cs +++ b/SubProject/FPJ0000/Project/fProjectData.cs @@ -63,7 +63,7 @@ namespace FPJ0000 try { if (dr.idx >= 0) - this.taSchedule.Fill(this.dsPRJ.ProjectsSchedule, this.dr.idx); + this.taSchedule.Fill(this.dsPRJ.ProjectsSchedule, this.dr.idx); } catch (System.Exception ex) { @@ -75,7 +75,7 @@ namespace FPJ0000 this.cmbCate.Text = dr.category; //신규데이터는 추가정보를 바로 저장할 수 없다. - if(dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) + if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) { FCOMMON.Util.MsgI("신규자료는 저장을 하기 전에는 파트리스트/IO맵/주간업무등의 서브데이터를 추가할 수 없습니다."); btPart.Enabled = false; @@ -115,7 +115,7 @@ namespace FPJ0000 //this.tableAdapterManager.UpdateAll(this.dsPRJ); } - + private void btMailAddr_Click(object sender, EventArgs e) { fMailList f = new fMailList(this.dr.idx); @@ -125,7 +125,7 @@ namespace FPJ0000 private void btPath_Click(object sender, EventArgs e) { string path = tbPath.Text.Trim(); - if(path == "") + if (path == "") { path = "\\10.131.36.205\\Data\\Projects\\"; path += tbIdx.Text; @@ -133,7 +133,7 @@ namespace FPJ0000 } var dlg = FCOMMON.Util.MsgQ("다음 폴더를 표시할까요?\n\n" + path); - if(dlg == System.Windows.Forms.DialogResult.Yes) + if (dlg == System.Windows.Forms.DialogResult.Yes) FCOMMON.Util.RunExplorer(path); } @@ -158,7 +158,7 @@ namespace FPJ0000 { var drv = this.bsWeek.Current as DataRowView; if (drv == null) return; - var dlg = FCOMMON.Util.MsgQ("선택된 업무현황을 삭제하시겠습니까?" + + var dlg = FCOMMON.Util.MsgQ("선택된 업무현황을 삭제하시겠습니까?" + "\n\n메일이 발송 완료된 경우 발송된 메일은 삭제되지 않습니다."); if (dlg == System.Windows.Forms.DialogResult.Yes) this.bsWeek.RemoveCurrent(); @@ -166,7 +166,7 @@ namespace FPJ0000 private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { - var newdr = this.dsPRJ.ProjectsHistory.NewProjectsHistoryRow(); + var newdr = this.dsPRJ.ProjectsHistory.NewProjectsHistoryRow(); var f = new fHistAdd(newdr); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { @@ -228,7 +228,48 @@ namespace FPJ0000 FCOMMON.info.ftp_passive); f.ShowDialog(); } + void SelectDate(TextBox ctl) + { + DateTime dt; + var dateStr = ctl.Text.Trim(); + if (dateStr == "") dateStr = DateTime.Now.ToShortDateString(); + else + { + if (DateTime.TryParse(dateStr, out dt)) dateStr = dt.ToShortDateString(); + else + { + FCOMMON.Util.MsgE("날짜 형식으로 변환할 수 없는 문자열 입니다.\n" + + "기준일자가 금일로 변경 됩니다"); + dateStr = DateTime.Now.ToShortDateString(); + } + } + dt = DateTime.Parse(dateStr); + var f = new FCOMMON.fSelectDay(dt); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + ctl.Text = f.dtPick.SelectionStart.ToShortDateString(); + } + } + private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + SelectDate(sdateTextBox); + } + + private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + SelectDate(ddateTextBox); + } + + private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + SelectDate(edateTextBox); + } + + private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + SelectDate(textBox1); + } + - } } diff --git a/SubProject/FPJ0000/Project/fProjectData.resx b/SubProject/FPJ0000/Project/fProjectData.resx index b460c2d..428c0a4 100644 --- a/SubProject/FPJ0000/Project/fProjectData.resx +++ b/SubProject/FPJ0000/Project/fProjectData.resx @@ -123,12 +123,6 @@ False - - False - - - False - False @@ -150,9 +144,6 @@ False - - False - False @@ -165,9 +156,6 @@ False - - False - False @@ -180,6 +168,9 @@ False + + False + 100, 17 @@ -323,9 +314,6 @@ 449, 17 - - False - 773, 17