From f96c853911da23ea840633e2b464ff24b6714233 Mon Sep 17 00:00:00 2001 From: chi Date: Wed, 20 Jul 2022 11:43:55 +0900 Subject: [PATCH] .. --- Project/Properties/AssemblyInfo.cs | 4 +- Project/fMain.Designer.cs | 48 +- Project/fMain.cs | 2251 ++++----- Project/fMain.resx | 154 +- .../FBS0000/Holiday/fErrorChk.Designer.cs | 122 +- SubProject/FBS0000/Holiday/fErrorChk.cs | 175 +- SubProject/FBS0000/Holiday/fErrorChk.resx | 117 + SubProject/FPJ0000/DSEboard.Designer.cs | 4018 +++++++++++++++++ SubProject/FPJ0000/DSEboard.xsc | 9 + SubProject/FPJ0000/DSEboard.xsd | 465 ++ SubProject/FPJ0000/DSEboard.xss | 12 + SubProject/FPJ0000/EBoard/Report1.rdlc | 1050 +++++ .../FPJ0000/EBoard/fEBoardImport.Designer.cs | 1378 ++++++ SubProject/FPJ0000/EBoard/fEBoardImport.cs | 374 ++ SubProject/FPJ0000/EBoard/fEBoardImport.resx | 191 + .../FPJ0000/EBoard/fEBoardReport.Designer.cs | 338 ++ SubProject/FPJ0000/EBoard/fEBoardReport.cs | 438 ++ SubProject/FPJ0000/EBoard/fEBoardReport.resx | 135 + .../FPJ0000/EBoard/fEboardData.Designer.cs | 1099 +++++ SubProject/FPJ0000/EBoard/fEboardData.cs | 318 ++ SubProject/FPJ0000/EBoard/fEboardData.resx | 266 ++ .../FPJ0000/EBoard/fEboardList.Designer.cs | 1200 +++++ SubProject/FPJ0000/EBoard/fEboardList.cs | 661 +++ SubProject/FPJ0000/EBoard/fEboardList.resx | 394 ++ SubProject/FPJ0000/FPJ0000.csproj | 53 + SubProject/FPJ0000/MethodExtentions.cs | 318 +- 26 files changed, 14146 insertions(+), 1442 deletions(-) create mode 100644 SubProject/FPJ0000/DSEboard.Designer.cs create mode 100644 SubProject/FPJ0000/DSEboard.xsc create mode 100644 SubProject/FPJ0000/DSEboard.xsd create mode 100644 SubProject/FPJ0000/DSEboard.xss create mode 100644 SubProject/FPJ0000/EBoard/Report1.rdlc create mode 100644 SubProject/FPJ0000/EBoard/fEBoardImport.Designer.cs create mode 100644 SubProject/FPJ0000/EBoard/fEBoardImport.cs create mode 100644 SubProject/FPJ0000/EBoard/fEBoardImport.resx create mode 100644 SubProject/FPJ0000/EBoard/fEBoardReport.Designer.cs create mode 100644 SubProject/FPJ0000/EBoard/fEBoardReport.cs create mode 100644 SubProject/FPJ0000/EBoard/fEBoardReport.resx create mode 100644 SubProject/FPJ0000/EBoard/fEboardData.Designer.cs create mode 100644 SubProject/FPJ0000/EBoard/fEboardData.cs create mode 100644 SubProject/FPJ0000/EBoard/fEboardData.resx create mode 100644 SubProject/FPJ0000/EBoard/fEboardList.Designer.cs create mode 100644 SubProject/FPJ0000/EBoard/fEboardList.cs create mode 100644 SubProject/FPJ0000/EBoard/fEboardList.resx diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index 7112e1e..001ec3d 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("22.07.04.0930")] -[assembly: AssemblyFileVersion("22.07.04.0930")] +[assembly: AssemblyVersion("22.07.20.1130")] +[assembly: AssemblyFileVersion("22.07.20.1130")] diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 9993252..a1f4150 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -82,11 +82,13 @@ this.근태입력ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.휴가신청ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.개인별근태원장ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.근태입력오류확인ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripSeparator(); this.출근부출력ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.휴가사용현황ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.근로명부ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripSeparator(); + this.근태입력오류확인ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.근태마감ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.personalInventoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_docu = new System.Windows.Forms.ToolStripMenuItem(); this.메모장ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -132,8 +134,6 @@ this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); - this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripSeparator(); - this.근태마감ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cmTab.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -213,8 +213,8 @@ this.기타ToolStripMenuItem, this.즐겨찾기ToolStripMenuItem, this.btDev, - this.설명서ToolStripMenuItem, - this.버젼확인ToolStripMenuItem}); + this.버젼확인ToolStripMenuItem, + this.설명서ToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(1, 1); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(1094, 27); @@ -572,13 +572,6 @@ this.개인별근태원장ToolStripMenuItem.Text = "개인별 근태 원장"; this.개인별근태원장ToolStripMenuItem.Click += new System.EventHandler(this.개인별근태원장ToolStripMenuItem_Click); // - // 근태입력오류확인ToolStripMenuItem - // - this.근태입력오류확인ToolStripMenuItem.Name = "근태입력오류확인ToolStripMenuItem"; - this.근태입력오류확인ToolStripMenuItem.Size = new System.Drawing.Size(248, 24); - this.근태입력오류확인ToolStripMenuItem.Text = "근태 입력 오류 확인"; - this.근태입력오류확인ToolStripMenuItem.Click += new System.EventHandler(this.근태입력오류확인ToolStripMenuItem_Click); - // // toolStripMenuItem10 // this.toolStripMenuItem10.Name = "toolStripMenuItem10"; @@ -607,6 +600,25 @@ this.근로명부ToolStripMenuItem.Visible = false; this.근로명부ToolStripMenuItem.Click += new System.EventHandler(this.근로명부ToolStripMenuItem_Click); // + // toolStripMenuItem11 + // + this.toolStripMenuItem11.Name = "toolStripMenuItem11"; + this.toolStripMenuItem11.Size = new System.Drawing.Size(245, 6); + // + // 근태입력오류확인ToolStripMenuItem + // + this.근태입력오류확인ToolStripMenuItem.Name = "근태입력오류확인ToolStripMenuItem"; + this.근태입력오류확인ToolStripMenuItem.Size = new System.Drawing.Size(248, 24); + this.근태입력오류확인ToolStripMenuItem.Text = "근태 입력 오류 확인"; + this.근태입력오류확인ToolStripMenuItem.Click += new System.EventHandler(this.근태입력오류확인ToolStripMenuItem_Click); + // + // 근태마감ToolStripMenuItem + // + this.근태마감ToolStripMenuItem.Name = "근태마감ToolStripMenuItem"; + this.근태마감ToolStripMenuItem.Size = new System.Drawing.Size(248, 24); + this.근태마감ToolStripMenuItem.Text = "근태 마감"; + this.근태마감ToolStripMenuItem.Click += new System.EventHandler(this.근태마감ToolStripMenuItem_Click); + // // personalInventoryToolStripMenuItem // this.personalInventoryToolStripMenuItem.ForeColor = System.Drawing.Color.Tomato; @@ -1004,18 +1016,6 @@ this.toolStripButton2.Text = "품목정보"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); // - // toolStripMenuItem11 - // - this.toolStripMenuItem11.Name = "toolStripMenuItem11"; - this.toolStripMenuItem11.Size = new System.Drawing.Size(245, 6); - // - // 근태마감ToolStripMenuItem - // - this.근태마감ToolStripMenuItem.Name = "근태마감ToolStripMenuItem"; - this.근태마감ToolStripMenuItem.Size = new System.Drawing.Size(248, 24); - this.근태마감ToolStripMenuItem.Text = "근태 마감"; - this.근태마감ToolStripMenuItem.Click += new System.EventHandler(this.근태마감ToolStripMenuItem_Click); - // // fMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; diff --git a/Project/fMain.cs b/Project/fMain.cs index a208fc3..f2aef22 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -11,1121 +11,1162 @@ using System.Windows.Forms; namespace Project { - public partial class fMain : Form - { - string SearchKey = string.Empty; - - public fMain() - { - InitializeComponent(); - this.KeyDown += (s1, e1) => - { - if (e1.KeyCode == Keys.F12) btSetting.PerformClick(); - //else if (e1.KeyCode == Keys.F11) btLog.PerformClick(); - else if (e1.KeyCode == Keys.F1 && e1.Control && e1.Shift) - { - Dialog.fDebug f = new Dialog.fDebug(); - f.Show(); - } - else if (e1.KeyCode == Keys.F2 && e1.Control && e1.Shift) - { - var f = new fLog(); - f.Show(); - } - - if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now; - }; - - this.MouseMove += (s1, e1) => { if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now; }; - this.FormClosing += __Closing; - this.FormClosed += FMain_FormClosed; - } - - //private void Server_ClientConnected(Receiver receiver) - //{ - // this.BeginInvoke(new Action(() => - // { - // var f = new Dialog.fChat(receiver); - // f.Show(); - // f.Activate(); - // })); - //} - - private void FMain_FormClosed(object sender, FormClosedEventArgs e) - { - //if (server != null) - // server.CloseChild(); - //연결종료 - //try - //{ - // var db = new EEEntitiesMain(); - // var dr = db.EETGW_LoginInfo.Where(t => t.uid == FCOMMON.info.Login.no).FirstOrDefault(); - // if (dr != null) - // { - // db.EETGW_LoginInfo.Remove(dr); - // db.SaveChanges(); - // } - //} - //catch { } - } - - private void __Closing(object sender, FormClosingEventArgs e) - { - MessageWindow.CloseAll(); - var rlt = Util.MsgQ(Lang.Question_Exit); - if (rlt != DialogResult.Yes) - { - e.Cancel = true; - return; - } - - ////close redis - //if (this.redisConnection != null && this.redisConnection.IsConnected && this.db != null) - //{ - // this.redisConnection.Close(); - // this.redisConnection.Dispose(); - //} - - Pub.log.Add("Program Close"); - Pub.log.Flush(); - bBW = false; //backgroundWorker - if (bw.IsBusy) bw.CancelAsync(); - } - - //ConnectionMultiplexer redisConnection; - //IDatabase db; - - private void __Load(object sender, EventArgs e) - { - this.Text = Application.ProductName + " v" + Application.ProductVersion; - Pub.init(); - - setToolbar(); - - - _SetLang(); - if (Pub.setting.FullScreen) this.WindowState = FormWindowState.Maximized; - else this.WindowState = FormWindowState.Normal; - this.Show(); - Application.DoEvents(); - - Pub.barcode = new Device.Barcode(); - if (!Pub.setting.Barcode.isEmpty()) Pub.barcode.PortName = Pub.setting.Barcode; - Pub.barcode.ReceiveData += barcode_ReceiveData; - - FCOMMON.info.camIndex = Pub.setting.CamIndex; - UpdateControls(); - - tmDisplay.Start(); //display timer - - Func_Login(); - - if (Pub.setting.SharedDataPath.isEmpty() && FCOMMON.info.Login.gcode == "EET1P") //210524 - { - FCOMMON.info.datapath = @"\\k4fs3201n\k4bpartcenter$"; - Pub.setting.SharedDataPath = FCOMMON.info.datapath; - Pub.setting.Save(); - } - - - Update_Site(); - bw.RunWorkerAsync(); //background worker - UpdateControls(); - - //사용기록추적 - Pub.CheckNRegister3(Application.ProductName, "chi", Application.ProductVersion); - - // Start OWIN host - try - { - - WebApp.Start(url: "http://127.0.0.1:9000"); - Console.WriteLine("start webapp"); - Pub.log.AddI("웹지원 서버 준비 완료"); - } - catch (Exception ex) - { - //Util.MsgE("Web Interface Error\r\n" + ex.Message)/; - Console.WriteLine(ex.Message); - Pub.log.AddE("웹지원오류" + ex.Message); - } - - - ////서버ON - //try - //{ - // this.server.Start(7979);//기본 79포트로 설정한다 - //} - //catch (Exception ex) - //{ - // Console.WriteLine(ex.Message); - //} - - } - void Update_Site() - { - //즐겨찾기 없데이트 g=17 - //타입 - var dt_type = FCOMMON.DBM.getCodeTable("17"); - foreach (DataRow dr in dt_type.Rows) - { - var bt = new ToolStripMenuItem(); - bt.Text = dr["value"].ToString(); - bt.Tag = dr["svalue"].ToString(); - bt.Click += bt_Click; - 즐겨찾기ToolStripMenuItem.DropDownItems.Add(bt); - } - } - - void bt_Click(object sender, EventArgs e) - { - var bt = sender as ToolStripMenuItem; - var cmd = bt.Tag.ToString(); - Util.RunExplorer(cmd); - } - - void Func_Login() - { - Dialog.fLogin flogIn = new Dialog.fLogin(); - if (flogIn.ShowDialog() != System.Windows.Forms.DialogResult.OK) - Application.ExitThread(); - - this.mn_purchase.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_purchase); - this.mn_project.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_project); - this.mn_dailyhistory.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_history); - this.mn_jago.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_jago); - this.mn_eq.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_equipment); - this.mn_kuntae.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_workday); - this.mn_docu.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_docu); - //this.mn_logdata.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_logdata); - - //220421 - FCOMMON.info.Disable_8hourover = Pub.setting.Disable8HourOver; - - if (FCOMMON.info.Login.level >= 10) btDev.Visible = true; - - sbLogin.Text = string.Format("[{0}] ({1}-{2} T:{3}) - ({5}){4}", - FCOMMON.info.Login.title, - FCOMMON.info.Login.no, - FCOMMON.info.Login.nameK, - FCOMMON.info.Login.tel, - FCOMMON.info.Login.dept, - FCOMMON.info.Login.gcode); - Pub.log.Add("Program Start"); - - Func_RunStartForm(); - } - void Func_RunStartForm() - { - var menu_purchaseVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_purchase); - var menu_projectVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_project); - var menu_dailyhistoryVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_history); - var menu_jagoVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_jago); - var menu_eqVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_equipment); - var menu_kuntaeVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_workday); - var menu_logdata = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_logdata); - - - // Menu_Note(); - - //시작폼 확인 - if (Pub.setting.startForm == eFormList.NR구매관리 && menu_purchaseVisible == true) - { - menu_nrpurchase(); - } - else if (Pub.setting.startForm == eFormList.업무일지 && menu_dailyhistoryVisible == true) - { - menu_work_report(); - } - else if (Pub.setting.startForm == eFormList.프로젝트관리 && menu_projectVisible == true) - { - menu_projecT_list(); - } - else if (Pub.setting.startForm == eFormList.재고관리 && menu_jagoVisible == true) - { - Menu_Inventory(); - } - else if (Pub.setting.startForm == eFormList.재고현황 && menu_jagoVisible == true) - { - Menu_InventoryList(); - } - else if (Pub.setting.startForm == eFormList.근태입력) - { - Menu_WorkTable(); - } - - } - void Menu_WorkTable() - { - string formkey = "HOLY"; - if (!ShowForm(formkey)) - AddForm(formkey, new FBS0000.fHolyday()); - } - - void _SetLang() - { - //btSetting.Text = Lang.Setting; - } - - void barcode_ReceiveData(object sender, Device.Barcode.ReceiveDataEventArgs e) - { - #region "invoke" - if (this.InvokeRequired) - { - this.BeginInvoke(new EventHandler(barcode_ReceiveData), new object[] { sender, e }); - return; - } - #endregion - Pub.log.Add("BCD", "Rx:" + e.StrValue); - } - - void Menu_Log() - { - var f = new fLog(); - f.TopMost = true; - f.Show(); - } - - void Menu_Setting() - { - fSetting f = new fSetting(); - if (f.ShowDialog() == DialogResult.OK) - { - FCOMMON.info.camIndex = Pub.setting.CamIndex; - FCOMMON.info.Disable_8hourover = Pub.setting.Disable8HourOver; - Pub.setting.Save(); - Pub.log.AddI("Setting Save"); - Pub.log.Add(Pub.setting.ToString()); - UpdateControls(); - setToolbar(); - } - } - - void setToolbar() - { - if (Pub.setting.HideToolbar == eToolPosition.Hide) - { - this.toolStrip1.Visible = false; - } - else - { - switch (Pub.setting.HideToolbar) - { - case eToolPosition.Bottom: this.toolStrip1.Dock = DockStyle.Bottom; break; - case eToolPosition.Top: this.toolStrip1.Dock = DockStyle.Top; break; - case eToolPosition.Left: this.toolStrip1.Dock = DockStyle.Left; break; - case eToolPosition.Right: this.toolStrip1.Dock = DockStyle.Right; break; - } - this.toolStrip1.Visible = true; - } - } - - #region "util" - - void UpdateControls() - { - - //환율재적용 - 210711 - FCOMMON.info.dollertowon = Pub.setting.wondoller; - FCOMMON.info.NotShowJobReportview = Pub.setting.NotShowJobreportPRewView; - } - - #endregion - - private void settingToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_Setting(); - } - - private void logToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_Log(); - } - - - private void listToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_projecT_list(); - } - - void menu_work_reportautoinput() - { - string formkey = "WORKBOOKAI"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fJobReportAI()); - } - void menu_work_report() - { - string formkey = "WORKBOOK"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fJobReport()); - - } - void menu_save_cost() - { - string formkey = "SAVECOST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fSaveCostList()); - } - - void menu_dayhistory() - { - string formkey = "DAYHISTORY"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fProjectList()); - } - void menu_projecT_list() - { - string formkey = "PROJECTS"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fProjectList()); - - } - - private void helpToolStripButton_Click(object sender, EventArgs e) - { - menu_projecT_list(); - } - - private void itemsToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_pumname(); - } - - void menu_pumname() - { - string formkey = "ITEMS"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fItems()); - } - - - private void personalInventoryToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_InventoryUser(); - } - - void Menu_Inventory() - { - string formkey = "INVENTORY"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fInventory()); - } - void Menu_InventoryUser() - { - string formkey = "INVENTORYUSER"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fInventoryUser()); - } - private void minutesToolStripMenuItem_Click(object sender, EventArgs e) - { - - string formkey = "MINUTES"; - if (!ShowForm(formkey)) - AddForm(formkey, new FBS0000.fMinutes()); - - - } - - private void holidayToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "HOLYDAY"; - if (!ShowForm(formkey)) - AddForm(formkey, new FBS0000.fHolyday()); - - } - - private void codesToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FCM0000.fCode(); - f.ShowDialog(); - } - - - private void requestITemToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "ITEMREQUEST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fRequestItem()); - - } - - void menu_nrpurchase() - { - string formkey = "PUCHASE"; - if (!ShowForm(formkey)) - AddForm(formkey, new FEQ0000.fPurchase()); - } - - private void nRPurchaseToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_nrpurchase(); - } - - private void purchaseImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FEQ0000.fPurchase_Import(); - // f.MdiParent = this; - f.Show(); - } - - private void purchaseDataConvertToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FEQ0000.fPurchase_Data(); - // f.MdiParent = this; - f.Show(); - } - - private void customerToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "CUSTOMS"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fCustoms()); - var f = new FCM0000.fCustoms(); - } - - - private void userAccountToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new _Common.fUserInfo(); - f.ShowDialog(); - } - - - private void myAccouserToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new _Common.fUserList(); - f.ShowDialog(); - } - - - private void customerImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FCM0000.Customer_Import(); - // f.MdiParent = this; - f.Show(); - } - - Boolean ShowForm(string key) - { - int tabIndex = this.tabControl1.TabPages.IndexOfKey(key); - if (tabIndex != -1) - { - this.tabControl1.SelectedIndex = tabIndex; - return true; - } - return false; - } - void AddForm(string key, Form f, string Title = "") - { - f.TopLevel = false; - f.Dock = DockStyle.Fill; - f.ControlBox = false; - f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - f.FormClosed += f_FormClosed; - f.Tag = key; - this.tabControl1.TabPages.Add(key, (Title.isEmpty() ? f.Text : Title)); - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].BorderStyle = BorderStyle.Fixed3D; - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Padding = new Padding(10, 10, 10, 10); - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].BackColor = Color.LightGray; - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].ContextMenuStrip = this.cmTab; - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Controls.Add(f); - this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Tag = key; - this.tabControl1.SelectedIndex = this.tabControl1.TabPages.Count - 1; - f.Show(); - } - - void f_FormClosed(object sender, FormClosedEventArgs e) - { - var f = sender as Form; - var key = f.Tag.ToString(); - foreach (TabPage tab in this.tabControl1.TabPages) - { - if (tab.Visible == true) - { - this.tabControl1.TabPages.Remove(tab); - break; - } - } - if (this.tabControl1.TabPages.Count > 0) this.tabControl1.SelectedIndex = this.tabControl1.TabCount - 1; - } - - private void 라인코드관리ToolStripMenuItem_Click(object sender, EventArgs e) - { - _Management.fLineCode f = new _Management.fLineCode(); - f.ShowDialog(); - } - - private void tabControl1_DrawItem(object sender, DrawItemEventArgs e) - { - //e.Graphics.FillRectangle(Brushes.Red, e.Bounds); - e.DrawBackground(); - e.DrawFocusRectangle(); - e.Graphics.DrawString(this.tabControl1.TabPages[e.Index].Text, e.Font, new SolidBrush(e.ForeColor), e.Bounds); - var tabpos = this.PointToClient(new Point(tabControl1.Left, tabControl1.Top)); - e.Graphics.DrawString("X", this.Font, Brushes.Black, tabControl1.Right - 50, tabControl1.Top); - } - - - private void materialImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FCM0000.fMaterial_Import(); - f.Show(); - } - - private void projectImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FPJ0000.Import(); - f.Show(); - } - - private void 프로젝트ToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - - private void todoListToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - private void projectImportCompleteToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FPJ0000.ImportC(); - f.Show(); - } - - private void purchaseOrderImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FEQ0000.fPurchase_ImportO(); - // f.MdiParent = this; - f.Show(); - } - - private void 로그인ToolStripMenuItem_Click(object sender, EventArgs e) - { - while (tabControl1.TabPages.Count > 0) - { - var tab = this.tabControl1.TabPages[0]; - var f = tab.Controls[0] as System.Windows.Forms.Form; - f.Close(); - f.Dispose(); - tabControl1.TabPages.Remove(tab); - this.tabControl1.Refresh(); - } - - Func_Login(); - } - - private void 메일전송ToolStripMenuItem_Click(object sender, EventArgs e) - { - if (FCOMMON.info.Login.level < 10) - { - FCOMMON.Util.MsgE("테스트 기능이므로 개발자만 사용가능 합니다."); - return; - } - FCM0000.fSendMail f = new FCM0000.fSendMail(); - //f.MdiParent = this; - f.Show(); - } - - private void 업무일지ToolStripMenuItem1_Click(object sender, EventArgs e) - { - - } - - private void 패치내역ToolStripMenuItem1_Click(object sender, EventArgs e) - { - FCM0000.fPatchList f = new FCM0000.fPatchList(); - f.Show(); - } - - private void workReportImportToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FPJ0000.JobReport_.fJobReportImport(); - f.ShowDialog(); - } - - private void 월별근무표ToolStripMenuItem_Click(object sender, EventArgs e) - { - //string formkey = "HOLIS"; - //if (!ShowForm(formkey)) - // AddForm(formkey, new FCM0000.fHolidaytable()); - var f = new FCM0000.fHolidaytable(); - f.ShowDialog(); - } - - - private void addSIdDataToolStripMenuItem_Click(object sender, EventArgs e) - { - string sql = "select idx from items where isnull([sid],'') = ''"; - var cn = FCOMMON.DBM.getCn(); - cn.Open(); - - //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); - var cmdupdate = new System.Data.SqlClient.SqlCommand("update items set [sid] = @sid where idx = @idx", cn); - cmdupdate.Parameters.Add("sid", SqlDbType.VarChar); - cmdupdate.Parameters.Add("idx", SqlDbType.Int); - - var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); - var dar = cmd.ExecuteReader(); - - List idxlist = new List(); - while (dar.Read()) - { - var idx = int.Parse(dar[0].ToString()); - idxlist.Add(idx); - } - dar.Close(); - dar.Dispose(); - - //임시SID는 전체 19자리이며 #TEMP#으로 시작하낟. - foreach (var idx in idxlist) - { - var newsid = "#TEMP#" + idx.ToString("000000000000000"); - cmdupdate.Parameters[0].Value = newsid; - cmdupdate.Parameters[1].Value = idx; - cmdupdate.ExecuteNonQuery(); - } - - cn.Close(); - cn.Dispose(); - } - - private void 계정목록ToolStripMenuItem_Click(object sender, EventArgs e) - { - if (FCOMMON.info.Login.level < 10) - { - FCOMMON.Util.MsgE("개발자 이상 사용가능한 메뉴 입니다."); - return; - } - - var f = new _Common.fADSUserList(); - f.ShowDialog(); - } - - private void 그룹정보ToolStripMenuItem1_Click(object sender, EventArgs e) - { - if (FCOMMON.info.Login.level < 10) - { - FCOMMON.Util.MsgE("개발자 이상 사용가능한 메뉴 입니다."); - return; - } - - var f = new FCM0000.fUserGroup(); - f.ShowDialog(); - } - - private void 권한설정ToolStripMenuItem_Click(object sender, EventArgs e) - { - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.account)); - if (curLevel < 5) - { - FCOMMON.Util.MsgE("(관리자/계정담당자) 전용 메뉴 입니다"); - return; - } - - var f = new FCM0000.fUserAuth(); - f.ShowDialog(); - } - - private void 관리ToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_Inventory(); - } - - - void Menu_InventoryList() - { - string formkey = "INVENTORYLIST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fInventoryJagoList()); - } - void Menu_Note() - { - string formkey = "NOTELIST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.Note.fNote()); - } - private void 재고현황ToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_InventoryList(); - } - - private void toolStripMenuItem1_Click(object sender, EventArgs e) - { - string formkey = "STAFFGRID"; - if (!ShowForm(formkey)) - AddForm(formkey, new _Info.fInfo_Staff()); - } - - - private void 임의테이블조작ToolStripMenuItem_Click(object sender, EventArgs e) - { - - var sql = "select * from Purchase where pdate = '2019-08-01' and orderno = '210000657'"; - var cn = FCOMMON.DBM.getCn(); - var cnU = FCOMMON.DBM.getCn(); - cn.Open(); - cnU.Open(); - - //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); - var sqlU = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657'"; - var cmdupdate = new System.Data.SqlClient.SqlCommand(sqlU, cn); - cmdupdate.Parameters.Add("supply", SqlDbType.VarChar); - cmdupdate.Parameters["supply"].Value = ""; - //cmdupdate.Parameters.Add("sidx", SqlDbType.Int); - - - var cmd = new System.Data.SqlClient.SqlCommand(sql, cnU); - var dar = cmd.ExecuteReader(); - - List idxlist = new List(); - while (dar.Read()) - { - //sid 가 잇다면 해당 sid 의 suuply를 찾아서 업데이트한다. - var sid = dar["sid"].ToString().Trim(); - var itemname = dar["pumname"].ToString().Trim(); - var itemmodel = dar["pumscale"].ToString().Trim(); - - if (itemname == "FIBER SENSOR(반사형)") - { - - } - - - bool sidOK = false; - if (sid.Length == 9) - { - cmdupdate.CommandText = "select isnull(itemsupply,'') from ProjectsPart where project=212 and isnull(itemsid,'') = '" + sid + "'"; - var data = cmdupdate.ExecuteScalar(); - if (data != null && data.ToString().Trim() != "") - { - var supplyname = cmdupdate.ExecuteScalar().ToString().Trim(); - if (supplyname != "") - { - cmdupdate.CommandText = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657' and sid='" + sid + "'"; - cmdupdate.Parameters["supply"].Value = supplyname; - if (cmdupdate.ExecuteNonQuery() > 0) sidOK = true; - } - } - } - - if (sidOK == false && itemname != "") - { - if (itemname == "FIBER SENSOR(반사형)") - { - - } - //아이템으로 찾아야함 - cmdupdate.CommandText = "select isnull(itemsupply,'') from ProjectsPart where project=212 and isnull(ItemName,'') = '" + itemname + "' and isnull(itemmodel,'') = '" + itemmodel + "'"; - var data = cmdupdate.ExecuteScalar(); - if (data != null && data.ToString().Trim() != "") - { - var supplyname = data.ToString().Trim(); - if (supplyname != "") - { - cmdupdate.CommandText = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657' and pumname='" + itemname + "' and isnull(pumscale,'') = '" + itemmodel + "'"; - cmdupdate.Parameters["supply"].Value = supplyname; - var cnt1 = cmdupdate.ExecuteNonQuery(); - } - } - - } - } - - - cmd.Dispose(); - dar.Close(); - dar.Dispose(); - - - cn.Close(); - cn.Dispose(); - cnU.Close(); - cnU.Dispose(); - - FCOMMON.Util.MsgI("complete"); - } - - private void sMTRepairLogToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - private void 메일양식ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "MAILFORM"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fMailform()); - } - - private void 메일내역ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "MAILLIST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.Mail.fMailList()); - } - - - - private void pMP데이터베이스업데이트ToolStripMenuItem_Click(object sender, EventArgs e) - { - } - - private void pMP현황ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "PMPDB"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPM0000.fSPMaster()); - - } - - private void mailBackupToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FCM0000.Mail.fMailBackup(); - f.TopMost = true; - f.Show(); - } - - private void 메모장ToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_Note(); - } - - - private void toolStripMenuItem7_Click(object sender, EventArgs e) - { - menu_nrpurchase(); - } - - private void toolStripMenuItem6_Click(object sender, EventArgs e) - { - menu_projecT_list(); - } - - private void toolStripMenuItem8_Click(object sender, EventArgs e) - { - menu_work_report(); - } - - private void toolStripButton4_Click_1(object sender, EventArgs e) - { - string formkey = "PMPDB"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPM0000.fSPMaster()); - } - - private void 휴가관리ToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - private void 근태입력ToolStripMenuItem_Click(object sender, EventArgs e) - { - Menu_WorkTable(); - } - - private void 근로명부ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "WTABLEUSER"; - if (!ShowForm(formkey)) - AddForm(formkey, new FBS0000.fWorkTableUser()); - } - - private void 비용절감ToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_save_cost(); - } - - private void 목록ToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_projecT_list(); - } - void menu_projectPartStatus_list() - { - string formkey = "PROJECTPARTST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fPartBuyStatus()); - - } - private void 구매진행현황ToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_projectPartStatus_list(); - } - - private void toolStripButton1_Click_2(object sender, EventArgs e) - { - menu_projectPartStatus_list(); - } - - private void toolStripButton2_Click_1(object sender, EventArgs e) - { - menu_pumname(); - } - - private void 목록ToolStripMenuItem1_Click(object sender, EventArgs e) - { - menu_work_report(); - } - - private void 자동입력ToolStripMenuItem_Click(object sender, EventArgs e) - { - //업무일지 자동 입력 - menu_work_reportautoinput(); - } - - private void 업무현황전자실ToolStripMenuItem_Click(object sender, EventArgs e) - { - //업무현황 전자실 - //menu_work_eboard(); - } - - - private void 품목검색ToolStripMenuItem_Click(object sender, EventArgs e) - { - var url = "http://localhost:9000/item/find"; - Util.RunExplorer(url); - //var f = new Dialog.fWebView("http://localhost:9000/item/find"); - //f.Show(); - } - - private void accessDBToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - - private void aLLToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "EQALL"; - if (!ShowForm(formkey)) - AddForm(formkey, new FEQ0000.fEquipment(FEQ0000.fEquipment.eTabletype.ALL), "ALL"); - } - - private void layoutToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "PLYOU"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fProjectLayout()); - } - - private void 교육목록ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "EDLIST"; - if (!ShowForm(formkey)) - AddForm(formkey, new FED0000.fEdulist()); - } - - private void 양식ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "JRFORM"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fJRForm()); - } - - private void 설명서ToolStripMenuItem_Click(object sender, EventArgs e) - { - - Util.RunExplorer("http://127.0.0.1:9000/Manual"); - } - - private void 라이선스ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "LICENSE"; - if (!ShowForm(formkey)) - AddForm(formkey, new FED0000.fLicenseList()); - } - - private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) - { - - } - - private void 휴일연장근무승인ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "OTCONFIRM"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fOTConfirm()); - } - - private void 휴일연장근무집계표출력ToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FPJ0000.JobReport_.rJobReportOT(); - f.Show(); - } - - private void 메일자동발신테스트ToolStripMenuItem_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) - { - var f = new FBS0000.WorkTable(); - f.Show(); - } - - private void 휴가신청ToolStripMenuItem_Click(object sender, EventArgs e) - { - string formkey = "HOLYREQ"; - if (!ShowForm(formkey)) - AddForm(formkey, new FPJ0000.fHolyRequest()); - } - - private void 아이템비활성화하기ToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new Dev.fDisableItem(); - f.ShowDialog(); - } - - private void 휴가사용현황ToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FBS0000.rHolidaySummary(); - f.Show(); - } - - private void 개인별근태원장ToolStripMenuItem_Click(object sender, EventArgs e) - { - var uid = FCOMMON.info.Login.nameK + "(" + FCOMMON.info.Login.no + ")"; - var f = new FBS0000.fHolyDayData(DateTime.Now.ToShortDateString(), uid); - f.Show(); - } - - private void 근태입력오류확인ToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new FBS0000.Holiday.fErrorChk(); - f.Show(); - } + public partial class fMain : Form + { + string SearchKey = string.Empty; + + public fMain() + { + InitializeComponent(); + this.KeyDown += (s1, e1) => + { + if (e1.KeyCode == Keys.F12) btSetting.PerformClick(); + //else if (e1.KeyCode == Keys.F11) btLog.PerformClick(); + else if (e1.KeyCode == Keys.F1 && e1.Control && e1.Shift) + { + Dialog.fDebug f = new Dialog.fDebug(); + f.Show(); + } + else if (e1.KeyCode == Keys.F2 && e1.Control && e1.Shift) + { + var f = new fLog(); + f.Show(); + } + + if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now; + }; + + this.MouseMove += (s1, e1) => { if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now; }; + this.FormClosing += __Closing; + this.FormClosed += FMain_FormClosed; + } + + //private void Server_ClientConnected(Receiver receiver) + //{ + // this.BeginInvoke(new Action(() => + // { + // var f = new Dialog.fChat(receiver); + // f.Show(); + // f.Activate(); + // })); + //} + + private void FMain_FormClosed(object sender, FormClosedEventArgs e) + { + //if (server != null) + // server.CloseChild(); + //연결종료 + //try + //{ + // var db = new EEEntitiesMain(); + // var dr = db.EETGW_LoginInfo.Where(t => t.uid == FCOMMON.info.Login.no).FirstOrDefault(); + // if (dr != null) + // { + // db.EETGW_LoginInfo.Remove(dr); + // db.SaveChanges(); + // } + //} + //catch { } + } + + bool closeforce = false; + + private void __Closing(object sender, FormClosingEventArgs e) + { + MessageWindow.CloseAll(); + if (closeforce == false) + { + var rlt = Util.MsgQ(Lang.Question_Exit); + if (rlt != DialogResult.Yes) + { + e.Cancel = true; + return; + } + } + + + ////close redis + //if (this.redisConnection != null && this.redisConnection.IsConnected && this.db != null) + //{ + // this.redisConnection.Close(); + // this.redisConnection.Dispose(); + //} + + Pub.log.Add("Program Close"); + Pub.log.Flush(); + bBW = false; //backgroundWorker + if (bw.IsBusy) bw.CancelAsync(); + } + + //ConnectionMultiplexer redisConnection; + //IDatabase db; + + private void __Load(object sender, EventArgs e) + { + this.Text = Application.ProductName + " v" + Application.ProductVersion; + Pub.init(); + + setToolbar(); + + + _SetLang(); + if (Pub.setting.FullScreen) this.WindowState = FormWindowState.Maximized; + else this.WindowState = FormWindowState.Normal; + this.Show(); + Application.DoEvents(); + + Pub.barcode = new Device.Barcode(); + if (!Pub.setting.Barcode.isEmpty()) Pub.barcode.PortName = Pub.setting.Barcode; + Pub.barcode.ReceiveData += barcode_ReceiveData; + + FCOMMON.info.camIndex = Pub.setting.CamIndex; + UpdateControls(); + + tmDisplay.Start(); //display timer + + Func_Login(); + + if (Pub.setting.SharedDataPath.isEmpty() && FCOMMON.info.Login.gcode == "EET1P") //210524 + { + FCOMMON.info.datapath = @"\\k4fs3201n\k4bpartcenter$"; + Pub.setting.SharedDataPath = FCOMMON.info.datapath; + Pub.setting.Save(); + } + + + Update_Site(); + bw.RunWorkerAsync(); //background worker + UpdateControls(); + + //사용기록추적 + Pub.CheckNRegister3(Application.ProductName, "chi", Application.ProductVersion); + + // Start OWIN host + try + { + + WebApp.Start(url: "http://127.0.0.1:9000"); + Console.WriteLine("start webapp"); + Pub.log.AddI("웹지원 서버 준비 완료"); + } + catch (Exception ex) + { + //Util.MsgE("Web Interface Error\r\n" + ex.Message)/; + Console.WriteLine(ex.Message); + Pub.log.AddE("웹지원오류" + ex.Message); + } + + + ////서버ON + //try + //{ + // this.server.Start(7979);//기본 79포트로 설정한다 + //} + //catch (Exception ex) + //{ + // Console.WriteLine(ex.Message); + //} + + } + void Update_Site() + { + //즐겨찾기 없데이트 g=17 + //타입 + var dt_type = FCOMMON.DBM.getCodeTable("17"); + foreach (DataRow dr in dt_type.Rows) + { + var bt = new ToolStripMenuItem(); + bt.Text = dr["value"].ToString(); + bt.Tag = dr["svalue"].ToString(); + bt.Click += bt_Click; + 즐겨찾기ToolStripMenuItem.DropDownItems.Add(bt); + } + } + + void bt_Click(object sender, EventArgs e) + { + var bt = sender as ToolStripMenuItem; + var cmd = bt.Tag.ToString(); + Util.RunExplorer(cmd); + } + + void Func_Login() + { + Dialog.fLogin flogIn = new Dialog.fLogin(); + if (flogIn.ShowDialog() != System.Windows.Forms.DialogResult.OK) + Application.ExitThread(); + + this.mn_purchase.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_purchase); + this.mn_project.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_project); + this.mn_dailyhistory.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_history); + this.mn_jago.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_jago); + this.mn_eq.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_equipment); + this.mn_kuntae.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_workday); + this.mn_docu.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_docu); + //this.mn_logdata.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_logdata); + + //220421 + FCOMMON.info.Disable_8hourover = Pub.setting.Disable8HourOver; + + if (FCOMMON.info.Login.level >= 10) btDev.Visible = true; + + sbLogin.Text = string.Format("[{0}] ({1}-{2} T:{3}) - ({5}){4}", + FCOMMON.info.Login.title, + FCOMMON.info.Login.no, + FCOMMON.info.Login.nameK, + FCOMMON.info.Login.tel, + FCOMMON.info.Login.dept, + FCOMMON.info.Login.gcode); + Pub.log.Add("Program Start"); + + Func_RunStartForm(); + } + void Func_RunStartForm() + { + var menu_purchaseVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_purchase); + var menu_projectVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_project); + var menu_dailyhistoryVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_history); + var menu_jagoVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_jago); + var menu_eqVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_equipment); + var menu_kuntaeVisible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_workday); + var menu_logdata = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_logdata); + + + // Menu_Note(); + + //시작폼 확인 + if (Pub.setting.startForm == eFormList.NR구매관리 && menu_purchaseVisible == true) + { + menu_nrpurchase(); + } + else if (Pub.setting.startForm == eFormList.업무일지 && menu_dailyhistoryVisible == true) + { + menu_work_report(); + } + else if (Pub.setting.startForm == eFormList.프로젝트관리 && menu_projectVisible == true) + { + menu_projecT_list(); + } + else if (Pub.setting.startForm == eFormList.재고관리 && menu_jagoVisible == true) + { + Menu_Inventory(); + } + else if (Pub.setting.startForm == eFormList.재고현황 && menu_jagoVisible == true) + { + Menu_InventoryList(); + } + else if (Pub.setting.startForm == eFormList.근태입력) + { + Menu_WorkTable(); + } + + } + void Menu_WorkTable() + { + string formkey = "HOLY"; + if (!ShowForm(formkey)) + AddForm(formkey, new FBS0000.fHolyday()); + } + + void _SetLang() + { + //btSetting.Text = Lang.Setting; + } + + void barcode_ReceiveData(object sender, Device.Barcode.ReceiveDataEventArgs e) + { + #region "invoke" + if (this.InvokeRequired) + { + this.BeginInvoke(new EventHandler(barcode_ReceiveData), new object[] { sender, e }); + return; + } + #endregion + Pub.log.Add("BCD", "Rx:" + e.StrValue); + } + + void Menu_Log() + { + var f = new fLog(); + f.TopMost = true; + f.Show(); + } + + void Menu_Setting() + { + fSetting f = new fSetting(); + if (f.ShowDialog() == DialogResult.OK) + { + FCOMMON.info.camIndex = Pub.setting.CamIndex; + FCOMMON.info.Disable_8hourover = Pub.setting.Disable8HourOver; + Pub.setting.Save(); + Pub.log.AddI("Setting Save"); + Pub.log.Add(Pub.setting.ToString()); + UpdateControls(); + setToolbar(); + } + } + + void setToolbar() + { + if (Pub.setting.HideToolbar == eToolPosition.Hide) + { + this.toolStrip1.Visible = false; + } + else + { + switch (Pub.setting.HideToolbar) + { + case eToolPosition.Bottom: this.toolStrip1.Dock = DockStyle.Bottom; break; + case eToolPosition.Top: this.toolStrip1.Dock = DockStyle.Top; break; + case eToolPosition.Left: this.toolStrip1.Dock = DockStyle.Left; break; + case eToolPosition.Right: this.toolStrip1.Dock = DockStyle.Right; break; + } + this.toolStrip1.Visible = true; + } + } + + #region "util" + + void UpdateControls() + { + + //환율재적용 - 210711 + FCOMMON.info.dollertowon = Pub.setting.wondoller; + FCOMMON.info.NotShowJobReportview = Pub.setting.NotShowJobreportPRewView; + } + + #endregion + + private void settingToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_Setting(); + } + + private void logToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_Log(); + } + + + private void listToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_projecT_list(); + } + + void menu_work_reportautoinput() + { + string formkey = "WORKBOOKAI"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fJobReportAI()); + } + void menu_work_report() + { + string formkey = "WORKBOOK"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fJobReport()); + + } + void menu_save_cost() + { + string formkey = "SAVECOST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fSaveCostList()); + } + + void menu_dayhistory() + { + string formkey = "DAYHISTORY"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fProjectList()); + } + void menu_projecT_list() + { + string formkey = "PROJECTS"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fProjectList()); + + } + + private void helpToolStripButton_Click(object sender, EventArgs e) + { + menu_projecT_list(); + } + + private void itemsToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_pumname(); + } + + void menu_pumname() + { + string formkey = "ITEMS"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fItems()); + } + + + private void personalInventoryToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_InventoryUser(); + } + + void Menu_Inventory() + { + string formkey = "INVENTORY"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fInventory()); + } + void Menu_InventoryUser() + { + string formkey = "INVENTORYUSER"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fInventoryUser()); + } + private void minutesToolStripMenuItem_Click(object sender, EventArgs e) + { + + string formkey = "MINUTES"; + if (!ShowForm(formkey)) + AddForm(formkey, new FBS0000.fMinutes()); + + + } + + private void holidayToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "HOLYDAY"; + if (!ShowForm(formkey)) + AddForm(formkey, new FBS0000.fHolyday()); + + } + + private void codesToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FCM0000.fCode(); + f.ShowDialog(); + } + + + private void requestITemToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "ITEMREQUEST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fRequestItem()); + + } + + void menu_nrpurchase() + { + string formkey = "PUCHASE"; + if (!ShowForm(formkey)) + AddForm(formkey, new FEQ0000.fPurchase()); + } + + private void nRPurchaseToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_nrpurchase(); + } + + private void purchaseImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FEQ0000.fPurchase_Import(); + // f.MdiParent = this; + f.Show(); + } + + private void purchaseDataConvertToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FEQ0000.fPurchase_Data(); + // f.MdiParent = this; + f.Show(); + } + + private void customerToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "CUSTOMS"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fCustoms()); + var f = new FCM0000.fCustoms(); + } + + + private void userAccountToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new _Common.fUserInfo(); + f.ShowDialog(); + } + + + private void myAccouserToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new _Common.fUserList(); + f.ShowDialog(); + } + + + private void customerImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FCM0000.Customer_Import(); + // f.MdiParent = this; + f.Show(); + } + + Boolean ShowForm(string key) + { + int tabIndex = this.tabControl1.TabPages.IndexOfKey(key); + if (tabIndex != -1) + { + this.tabControl1.SelectedIndex = tabIndex; + return true; + } + return false; + } + void AddForm(string key, Form f, string Title = "") + { + f.TopLevel = false; + f.Dock = DockStyle.Fill; + f.ControlBox = false; + f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + f.FormClosed += f_FormClosed; + f.Tag = key; + this.tabControl1.TabPages.Add(key, (Title.isEmpty() ? f.Text : Title)); + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].BorderStyle = BorderStyle.Fixed3D; + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Padding = new Padding(10, 10, 10, 10); + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].BackColor = Color.LightGray; + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].ContextMenuStrip = this.cmTab; + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Controls.Add(f); + this.tabControl1.TabPages[this.tabControl1.TabPages.Count - 1].Tag = key; + this.tabControl1.SelectedIndex = this.tabControl1.TabPages.Count - 1; + f.Show(); + } + + void f_FormClosed(object sender, FormClosedEventArgs e) + { + var f = sender as Form; + var key = f.Tag.ToString(); + foreach (TabPage tab in this.tabControl1.TabPages) + { + if (tab.Visible == true) + { + this.tabControl1.TabPages.Remove(tab); + break; + } + } + if (this.tabControl1.TabPages.Count > 0) this.tabControl1.SelectedIndex = this.tabControl1.TabCount - 1; + } + + private void 라인코드관리ToolStripMenuItem_Click(object sender, EventArgs e) + { + _Management.fLineCode f = new _Management.fLineCode(); + f.ShowDialog(); + } + + private void tabControl1_DrawItem(object sender, DrawItemEventArgs e) + { + //e.Graphics.FillRectangle(Brushes.Red, e.Bounds); + e.DrawBackground(); + e.DrawFocusRectangle(); + e.Graphics.DrawString(this.tabControl1.TabPages[e.Index].Text, e.Font, new SolidBrush(e.ForeColor), e.Bounds); + var tabpos = this.PointToClient(new Point(tabControl1.Left, tabControl1.Top)); + e.Graphics.DrawString("X", this.Font, Brushes.Black, tabControl1.Right - 50, tabControl1.Top); + } + + + private void materialImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FCM0000.fMaterial_Import(); + f.Show(); + } + + private void projectImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FPJ0000.Import(); + f.Show(); + } + + private void 프로젝트ToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + + private void todoListToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void projectImportCompleteToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FPJ0000.ImportC(); + f.Show(); + } + + private void purchaseOrderImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FEQ0000.fPurchase_ImportO(); + // f.MdiParent = this; + f.Show(); + } + + private void 로그인ToolStripMenuItem_Click(object sender, EventArgs e) + { + while (tabControl1.TabPages.Count > 0) + { + var tab = this.tabControl1.TabPages[0]; + var f = tab.Controls[0] as System.Windows.Forms.Form; + f.Close(); + f.Dispose(); + tabControl1.TabPages.Remove(tab); + this.tabControl1.Refresh(); + } + + Func_Login(); + } + + private void 메일전송ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (FCOMMON.info.Login.level < 10) + { + FCOMMON.Util.MsgE("테스트 기능이므로 개발자만 사용가능 합니다."); + return; + } + FCM0000.fSendMail f = new FCM0000.fSendMail(); + //f.MdiParent = this; + f.Show(); + } + + private void 업무일지ToolStripMenuItem1_Click(object sender, EventArgs e) + { + + } + + private void 패치내역ToolStripMenuItem1_Click(object sender, EventArgs e) + { + FCM0000.fPatchList f = new FCM0000.fPatchList(); + f.Show(); + } + + private void workReportImportToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FPJ0000.JobReport_.fJobReportImport(); + f.ShowDialog(); + } + + private void 월별근무표ToolStripMenuItem_Click(object sender, EventArgs e) + { + //string formkey = "HOLIS"; + //if (!ShowForm(formkey)) + // AddForm(formkey, new FCM0000.fHolidaytable()); + var f = new FCM0000.fHolidaytable(); + f.ShowDialog(); + } + + + private void addSIdDataToolStripMenuItem_Click(object sender, EventArgs e) + { + string sql = "select idx from items where isnull([sid],'') = ''"; + var cn = FCOMMON.DBM.getCn(); + cn.Open(); + + //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); + var cmdupdate = new System.Data.SqlClient.SqlCommand("update items set [sid] = @sid where idx = @idx", cn); + cmdupdate.Parameters.Add("sid", SqlDbType.VarChar); + cmdupdate.Parameters.Add("idx", SqlDbType.Int); + + var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); + var dar = cmd.ExecuteReader(); + + List idxlist = new List(); + while (dar.Read()) + { + var idx = int.Parse(dar[0].ToString()); + idxlist.Add(idx); + } + dar.Close(); + dar.Dispose(); + + //임시SID는 전체 19자리이며 #TEMP#으로 시작하낟. + foreach (var idx in idxlist) + { + var newsid = "#TEMP#" + idx.ToString("000000000000000"); + cmdupdate.Parameters[0].Value = newsid; + cmdupdate.Parameters[1].Value = idx; + cmdupdate.ExecuteNonQuery(); + } + + cn.Close(); + cn.Dispose(); + } + + private void 계정목록ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (FCOMMON.info.Login.level < 10) + { + FCOMMON.Util.MsgE("개발자 이상 사용가능한 메뉴 입니다."); + return; + } + + var f = new _Common.fADSUserList(); + f.ShowDialog(); + } + + private void 그룹정보ToolStripMenuItem1_Click(object sender, EventArgs e) + { + if (FCOMMON.info.Login.level < 10) + { + FCOMMON.Util.MsgE("개발자 이상 사용가능한 메뉴 입니다."); + return; + } + + var f = new FCM0000.fUserGroup(); + f.ShowDialog(); + } + + private void 권한설정ToolStripMenuItem_Click(object sender, EventArgs e) + { + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.account)); + if (curLevel < 5) + { + FCOMMON.Util.MsgE("(관리자/계정담당자) 전용 메뉴 입니다"); + return; + } + + var f = new FCM0000.fUserAuth(); + f.ShowDialog(); + } + + private void 관리ToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_Inventory(); + } + + + void Menu_InventoryList() + { + string formkey = "INVENTORYLIST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fInventoryJagoList()); + } + void Menu_Note() + { + string formkey = "NOTELIST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.Note.fNote()); + } + private void 재고현황ToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_InventoryList(); + } + + private void toolStripMenuItem1_Click(object sender, EventArgs e) + { + string formkey = "STAFFGRID"; + if (!ShowForm(formkey)) + AddForm(formkey, new _Info.fInfo_Staff()); + } + + + private void 임의테이블조작ToolStripMenuItem_Click(object sender, EventArgs e) + { + + var sql = "select * from Purchase where pdate = '2019-08-01' and orderno = '210000657'"; + var cn = FCOMMON.DBM.getCn(); + var cnU = FCOMMON.DBM.getCn(); + cn.Open(); + cnU.Open(); + + //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); + var sqlU = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657'"; + var cmdupdate = new System.Data.SqlClient.SqlCommand(sqlU, cn); + cmdupdate.Parameters.Add("supply", SqlDbType.VarChar); + cmdupdate.Parameters["supply"].Value = ""; + //cmdupdate.Parameters.Add("sidx", SqlDbType.Int); + + + var cmd = new System.Data.SqlClient.SqlCommand(sql, cnU); + var dar = cmd.ExecuteReader(); + + List idxlist = new List(); + while (dar.Read()) + { + //sid 가 잇다면 해당 sid 의 suuply를 찾아서 업데이트한다. + var sid = dar["sid"].ToString().Trim(); + var itemname = dar["pumname"].ToString().Trim(); + var itemmodel = dar["pumscale"].ToString().Trim(); + + if (itemname == "FIBER SENSOR(반사형)") + { + + } + + + bool sidOK = false; + if (sid.Length == 9) + { + cmdupdate.CommandText = "select isnull(itemsupply,'') from ProjectsPart where project=212 and isnull(itemsid,'') = '" + sid + "'"; + var data = cmdupdate.ExecuteScalar(); + if (data != null && data.ToString().Trim() != "") + { + var supplyname = cmdupdate.ExecuteScalar().ToString().Trim(); + if (supplyname != "") + { + cmdupdate.CommandText = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657' and sid='" + sid + "'"; + cmdupdate.Parameters["supply"].Value = supplyname; + if (cmdupdate.ExecuteNonQuery() > 0) sidOK = true; + } + } + } + + if (sidOK == false && itemname != "") + { + if (itemname == "FIBER SENSOR(반사형)") + { + + } + //아이템으로 찾아야함 + cmdupdate.CommandText = "select isnull(itemsupply,'') from ProjectsPart where project=212 and isnull(ItemName,'') = '" + itemname + "' and isnull(itemmodel,'') = '" + itemmodel + "'"; + var data = cmdupdate.ExecuteScalar(); + if (data != null && data.ToString().Trim() != "") + { + var supplyname = data.ToString().Trim(); + if (supplyname != "") + { + cmdupdate.CommandText = "update Purchase set supply=@supply where pdate = '2019-08-01' and orderno = '210000657' and pumname='" + itemname + "' and isnull(pumscale,'') = '" + itemmodel + "'"; + cmdupdate.Parameters["supply"].Value = supplyname; + var cnt1 = cmdupdate.ExecuteNonQuery(); + } + } + + } + } + + + cmd.Dispose(); + dar.Close(); + dar.Dispose(); + + + cn.Close(); + cn.Dispose(); + cnU.Close(); + cnU.Dispose(); + + FCOMMON.Util.MsgI("complete"); + } + + private void sMTRepairLogToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void 메일양식ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "MAILFORM"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fMailform()); + } + + private void 메일내역ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "MAILLIST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.Mail.fMailList()); + } + + + + private void pMP데이터베이스업데이트ToolStripMenuItem_Click(object sender, EventArgs e) + { + } + + private void pMP현황ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "PMPDB"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPM0000.fSPMaster()); + + } + + private void mailBackupToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FCM0000.Mail.fMailBackup(); + f.TopMost = true; + f.Show(); + } + + private void 메모장ToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_Note(); + } + + + private void toolStripMenuItem7_Click(object sender, EventArgs e) + { + menu_nrpurchase(); + } + + private void toolStripMenuItem6_Click(object sender, EventArgs e) + { + menu_projecT_list(); + } + + private void toolStripMenuItem8_Click(object sender, EventArgs e) + { + menu_work_report(); + } + + private void toolStripButton4_Click_1(object sender, EventArgs e) + { + string formkey = "PMPDB"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPM0000.fSPMaster()); + } + + private void 휴가관리ToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void 근태입력ToolStripMenuItem_Click(object sender, EventArgs e) + { + Menu_WorkTable(); + } + + private void 근로명부ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "WTABLEUSER"; + if (!ShowForm(formkey)) + AddForm(formkey, new FBS0000.fWorkTableUser()); + } + + private void 비용절감ToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_save_cost(); + } + + private void 목록ToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_projecT_list(); + } + void menu_projectPartStatus_list() + { + string formkey = "PROJECTPARTST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fPartBuyStatus()); + + } + private void 구매진행현황ToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_projectPartStatus_list(); + } + + private void toolStripButton1_Click_2(object sender, EventArgs e) + { + menu_projectPartStatus_list(); + } + + private void toolStripButton2_Click_1(object sender, EventArgs e) + { + menu_pumname(); + } + + private void 목록ToolStripMenuItem1_Click(object sender, EventArgs e) + { + menu_work_report(); + } + + private void 자동입력ToolStripMenuItem_Click(object sender, EventArgs e) + { + //업무일지 자동 입력 + menu_work_reportautoinput(); + } + + private void 업무현황전자실ToolStripMenuItem_Click(object sender, EventArgs e) + { + //업무현황 전자실 + Util.MsgE("자스민 이용하세요!!"); + string formkey = "EBOARD"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fEboardList(), "ALL"); + } + + + private void 품목검색ToolStripMenuItem_Click(object sender, EventArgs e) + { + var url = "http://localhost:9000/item/find"; + Util.RunExplorer(url); + //var f = new Dialog.fWebView("http://localhost:9000/item/find"); + //f.Show(); + } + + private void accessDBToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + + private void aLLToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "EQALL"; + if (!ShowForm(formkey)) + AddForm(formkey, new FEQ0000.fEquipment(FEQ0000.fEquipment.eTabletype.ALL), "ALL"); + } + + private void layoutToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "PLYOU"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fProjectLayout()); + } + + private void 교육목록ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "EDLIST"; + if (!ShowForm(formkey)) + AddForm(formkey, new FED0000.fEdulist()); + } + + private void 양식ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "JRFORM"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fJRForm()); + } + + private void 설명서ToolStripMenuItem_Click(object sender, EventArgs e) + { + + Util.RunExplorer("http://127.0.0.1:9000/Manual"); + } + + private void 라이선스ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "LICENSE"; + if (!ShowForm(formkey)) + AddForm(formkey, new FED0000.fLicenseList()); + } + + private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) + { + + } + + private void 휴일연장근무승인ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "OTCONFIRM"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fOTConfirm()); + } + + private void 휴일연장근무집계표출력ToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FPJ0000.JobReport_.rJobReportOT(); + f.Show(); + } + + private void 메일자동발신테스트ToolStripMenuItem_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) + { + var f = new FBS0000.WorkTable(); + f.Show(); + } + + private void 휴가신청ToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "HOLYREQ"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fHolyRequest()); + } + + private void 아이템비활성화하기ToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new Dev.fDisableItem(); + f.ShowDialog(); + } + + private void 휴가사용현황ToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FBS0000.rHolidaySummary(); + f.Show(); + } + + private void 개인별근태원장ToolStripMenuItem_Click(object sender, EventArgs e) + { + var uid = FCOMMON.info.Login.nameK + "(" + FCOMMON.info.Login.no + ")"; + var f = new FBS0000.fHolyDayData(DateTime.Now.ToShortDateString(), uid); + f.Show(); + } + + private void 근태입력오류확인ToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new FBS0000.Holiday.fErrorChk(); + f.Show(); + } private void 버젼확인ToolStripMenuItem_Click(object sender, EventArgs e) { - var MaxVerstion = FCOMMON.DBM.GetMaxVersion(); - if (MaxVerstion.isEmpty() == false) - { - var curversion = Application.ProductVersion; - var verchk = curversion.CompareTo(MaxVerstion); - if (verchk < 0) - { - //내버젼이 낮다 - Util.MsgE("현재 구 버젼을 사용하고 있습니다.\n업데이트를 진행 하고 사용하시기 바랍니다"); + var MaxVerstion = FCOMMON.DBM.GetMaxVersion(); + if (MaxVerstion.isEmpty() == false) + { + var curversion = Application.ProductVersion; + var verchk = curversion.CompareTo(MaxVerstion); + if (verchk < 0) + { + //내버젼이 낮다 + if (Util.MsgQ("현재 구 버젼을 사용하고 있습니다.\n업데이트를 실행 할까요?") == DialogResult.OK) + UpdateRun(); } else { - Util.MsgI("최신 버젼을 사용하고 있습니다\n\n" + - "서버 : " + MaxVerstion + "\n" + - "현재 : " + curversion); + Util.MsgI("최신 버젼을 사용하고 있습니다\n\n" + + "서버 : " + MaxVerstion + "\n" + + "현재 : " + curversion); } - } - } + } else Util.MsgE("버젼 확인 불가"); + } private void 근태마감ToolStripMenuItem_Click(object sender, EventArgs e) { - var f = new FCOMMON.fMagam(); - f.ShowDialog(); + var f = new FCOMMON.fMagam(); + f.ShowDialog(); + } + + private void 업데이트ToolStripMenuItem_Click(object sender, EventArgs e) + { + + closeforce = true; + UpdateRun(); + } + + void UpdateRun() + { + var pn = System.Diagnostics.Process.GetCurrentProcess().ProcessName; + System.Text.StringBuilder script = new StringBuilder(); + script.AppendLine($"echo \"실행중인 프로그램을 확인 하고 있습니다\""); + script.AppendLine($"$nid = (get-process {pn}).id"); + script.AppendLine($"echo \"종료 대기 중(ID:$nid) 종료되지 않으면 강제로 실행을 종료 해주세요\""); + script.AppendLine($"wait-process -id $nid"); + var fn = $"{AppDomain.CurrentDomain.BaseDirectory}update.exe"; + script.AppendLine($"echo \"start update {fn}\""); + script.AppendLine($"start-process \"{fn}\""); + byte[] byteArray = Encoding.Unicode.GetBytes(script.ToString()); + string scriptBase64Encoded = Convert.ToBase64String(byteArray); + var processStartInfo = new System.Diagnostics.ProcessStartInfo() + { + FileName = "powershell.exe", + Arguments = $"-NoProfile -ExecutionPolicy unrestricted -EncodedCommand {scriptBase64Encoded}", + UseShellExecute = false + }; + System.Diagnostics.Process.Start(processStartInfo); + Application.Exit(); + //this.Close(); } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index 68ce91f..7aa4c5b 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -153,6 +153,83 @@ Mi4wAwEBAAAh+QQBAAAXACwAAAAAEAAQAAAIggAvCBwo0IJBCwQTFqwAAQEDhAoXTpgoYQDEhBYqTKDA kYKEBRclciRAoMEDCREuZtw40oKCCihVauxIIYEBmCkJruxYoWfMggYPsOyJU+WAABMqCJDgM+eFg0iV Aigg4WfBo0kFADAYwWnBABSkQjSIcYDYiAMtBHCwFW3ag24HBgQAOw== + + + + + R0lGODlhEAAQAIQfAP/umP/eN//kV//riOuzSuujJ+usOuu3VuvKgf/0uf/yq+ucF//bJf/pfOvOiO/O + fP/52//ZGP/UAP/haf/ma//hR//ncevDceu8YP39/OuuQP/rp//pdP/nZf///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIkAA/CByYwUOGgQgTfvDgwINChQw9IHD4UGBEABAuUETo + oaNEDxg1erTo4IGDiQAGNFCA4QABAg4jdkxpoYOABAkUGKD4UaUFARUCMLCwk6NGCkADRKBQNKEHDB6E + RpDQlCNUoRYkSJhQYKPFAyqZThjbleMBDxw07CxQYMKGBRs9vNTQcaGHBXjjjuS4t2LFgAA7 + + + + + R0lGODlhEAAQAIQQAP/cpv/GcNvb292RIP+kG/+5T6m5rMStgK13Jv+wOt2TJKmwrP/zcZOru////wAA + AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAQACwAAAAAEAAQAAAIZQAhCBxIsKBABgQBGCTIoCEEBgEWDmRAgMAAAwUgKJQ4 + QIEDBwciSmw4QMDHBRIBBCiQAIGABw8aSBSosgHMmCkH2oQpc6bAnTh9QgDa0ydRoUMffCw6s4FJB0wl + OoWKdGiDBgEBADs= + + + + + R0lGODlhEAAQAIQfAJrM+3OSsKfS++zx9uXt9Yis1FdwkZW51ElVa8fj/bba/NXb5PL2+o276b3d/VJh + e7TR4ENLXNXn8KLD536kwIyzzJ/E2KjL3t7n7ykxQz5FVa/W/OLp8I+w1P///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAItgA9CBxIcOCHgx4kQIBwwcKBChQiBgjgASEECQQGZNRI + oGMDAxU9QCCQoGRJBygZNPgo8AKDBB1iyuzAoOYDgRZeonSgoGfPDQxuejjwcsLMAkgFBBVY4aVPBRui + ClCKQCCFojGRIm0ggEBVDxQG8IQqdSoAAhGsijWqdSsADmk9BBBLdqoAAHgxaBAYgAHPsnjxDtjrwcAC + Bhw5KOaAYQCEDHwNSH7wAAGCCBE0aMggtKBnggEBADs= + + + + + R0lGODlhEAAQAIQfAKnrVsfvlYnVOHy8KnfJLJneRWqyJLvth1W7GzGTEVWnHT2aFIPNMkuiGmrKJGKt + Io7eOXa5KU64GDiWE1yqIHK3KHa5J0WeGGC/IG+1JW/FKGjCJHnRLWrOIP///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIqwA/CBTooeDAgwg9DFjoAWHCAQEAFBjQ0CHBAQAEFLBQ + 8WDBjxEARPjY8YPChREiZshg4EFJhQFiFmBQAAIECh8vLoTAgAEBAgIUeGhwoaHCghUE/NTAgcCFAxAW + GDWZQamGDRgwIEAgYUJBjh4MCODAAYODBRMkSEhQMAJLARQUNODgwGsCtiYjHBDgsuCCDl4NmqxQAK7R + v3gHemD5QK4HtBMSEyRplOTBgAA7 + + + + + R0lGODlhEAAQAIMPAEWi6azap1WzS9LusYrSbApexXLHV+z41vH559Ltw8ns+pe75hBs0iCZEP////// + /yH/C05FVFNDQVBFMi4wAwEBAAAh+QQBAAAPACwAAAAAEAAQAAAIiwAfCBxIsKDBBw4SOjg4MGGDBgwY + JDzo4OEBBAgUMGiwkGBFBAcODAAAYMEAjh4ZIBgwQAAAAgZOdkTIQEGCAQRICoAZACVNBQACkHxpQEDP + jg5qLhgKQIDTowIrJoA5NGKDABIbNpjqlEGBAguyag3QEiLYsDOjPgwQYEFYsQUdRpSY1qDCugzzBgQA + Ow== + + + + + R0lGODlhEAAQAIQfAKxoR8VkLxFw1feVPITSWv+eQv7Qo0Cc6OyIN/v7+3PLTSCZEFy17Wa6XuT1x2bG + Q3nNUU6vRXPAa9mLXMTkwJZEHJt7LL5aJ/z8/O2KONx3L/ubP/r6+rtVI////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpgA/CBxIsOBADBgEeljoweAHDB06eIi4QICAhRwOdjAQ + kaMDCgwELOiQ8WGHAQYMFIjIgMEBCBEzQkSwoUCBCR0OSGigIKZJDQM2cKxwoAGBBx0ykISoIcOGiAcO + EFCAVCkHphueAtgaIYKFpks7NM0qFIDFCxk0kPyQQCzZiB0CbLAqsO1YslnTrq0r9m4GvSUHcoioobDa + vQU5DIar2KFgxYEHBgQAOw== + + + + + R0lGODlhEAAQAIQfAGm6/idTd4yTmF+v8Xa37KvW+lyh3KHJ62aq41ee2bXZ98nm/2mt5W2Ck5XN/C1c + hEZieho8WXXA/2Gn4P39/W+y6V+l3qjP8Njt/lx2izxPYGyv51Oa1EJWZ////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIqgA/CPzgoaBBDwMTEoQgoGGDBhAQKvSQAcOCBQUcaHwg + USBFDARCEqhQgYEEjh47gKxwweAFBAgkREDooYMCAhs8XGCAwMOEmB1o2qywYSdMnxMABCVocwMDngUP + GLAAYCZTBTARHPAgdWpVoQV+TrBgoGwCA1+ZOkgwduuBBAk4pCWogUBcDnjxAgjQkS4BAAMCD9jrgcJE + DQ8eBAjwYKZhhQQPFoRMuXJAADs= + + + + + R0lGODlhEAAQAIQAAP/99v/qaOvOSem4M+zSSv/ypf/ug//1w//2zP/xnv/te//zrf/0uv/41/nWdufB + MP/vkevTVf/rcv/0s//wlv/57OvRM//vi+/OQtaXIuuYEuvTLNyhJ+vHUP///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIoAA/CBxIsCBBDwgTKizogUCEhwQIYLBgYYOHgR4cKPQA + oMEBBAgsfsjoAQGDCQsKJEhAAcKBChYQajyZkiWECwYMAHiAkAAAlCop4FRA9ABPDxgqABVqQIGEpxQG + IMTQoCaEphICaFXAAaEABCmZZtUawECGi0gRHGigloFWCgzOYhRAt0OHASg1yD24cUAFDRcNMhwAWLBB + D4UNMwz8ISAAOw== @@ -173,15 +250,6 @@ gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG CyQdKlaIsLHjggEBADs= - - - - - R0lGODlhEAAQAIQfAP/umP/eN//kV//riOuzSuujJ+usOuu3VuvKgf/0uf/yq+ucF//bJf/pfOvOiO/O - fP/52//ZGP/UAP/haf/ma//hR//ncevDceu8YP39/OuuQP/rp//pdP/nZf///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIkAA/CByYwUOGgQgTfvDgwINChQw9IHD4UGBEABAuUETo - oaNEDxg1erTo4IGDiQAGNFCA4QABAg4jdkxpoYOABAkUGKD4UaUFARUCMLCwk6NGCkADRKBQNKEHDB6E - RpDQlCNUoRYkSJhQYKPFAyqZThjbleMBDxw07CxQYMKGBRs9vNTQcaGHBXjjjuS4t2LFgAA7 @@ -297,74 +365,6 @@ h58L4755nzwWACmRSEixWEynl0gQtXWDq9efcWesTLPb7RZmkg1AikQiUigU0uklEoREZl63mEkW430F g0EHv2mdHpgsyzvNJMvHQ/n9fofX69XJ7HK5bGaSrfBQPNXBzU92nQFgfwCJli/+LKS33wAAAABJRU5E rkJggg== - - - - - R0lGODlhEAAQAIQQAP/cpv/GcNvb292RIP+kG/+5T6m5rMStgK13Jv+wOt2TJKmwrP/zcZOru////wAA - AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAQACwAAAAAEAAQAAAIZQAhCBxIsKBABgQBGCTIoCEEBgEWDmRAgMAAAwUgKJQ4 - QIEDBwciSmw4QMDHBRIBBCiQAIGABw8aSBSosgHMmCkH2oQpc6bAnTh9QgDa0ydRoUMffCw6s4FJB0wl - OoWKdGiDBgEBADs= - - - - - R0lGODlhEAAQAIQfAJrM+3OSsKfS++zx9uXt9Yis1FdwkZW51ElVa8fj/bba/NXb5PL2+o276b3d/VJh - e7TR4ENLXNXn8KLD536kwIyzzJ/E2KjL3t7n7ykxQz5FVa/W/OLp8I+w1P///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAItgA9CBxIcOCHgx4kQIBwwcKBChQiBgjgASEECQQGZNRI - oGMDAxU9QCCQoGRJBygZNPgo8AKDBB1iyuzAoOYDgRZeonSgoGfPDQxuejjwcsLMAkgFBBVY4aVPBRui - ClCKQCCFojGRIm0ggEBVDxQG8IQqdSoAAhGsijWqdSsADmk9BBBLdqoAAHgxaBAYgAHPsnjxDtjrwcAC - Bhw5KOaAYQCEDHwNSH7wAAGCCBE0aMggtKBnggEBADs= - - - - - R0lGODlhEAAQAIQfAKnrVsfvlYnVOHy8KnfJLJneRWqyJLvth1W7GzGTEVWnHT2aFIPNMkuiGmrKJGKt - Io7eOXa5KU64GDiWE1yqIHK3KHa5J0WeGGC/IG+1JW/FKGjCJHnRLWrOIP///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIqwA/CBTooeDAgwg9DFjoAWHCAQEAFBjQ0CHBAQAEFLBQ - 8WDBjxEARPjY8YPChREiZshg4EFJhQFiFmBQAAIECh8vLoTAgAEBAgIUeGhwoaHCghUE/NTAgcCFAxAW - GDWZQamGDRgwIEAgYUJBjh4MCODAAYODBRMkSEhQMAJLARQUNODgwGsCtiYjHBDgsuCCDl4NmqxQAK7R - v3gHemD5QK4HtBMSEyRplOTBgAA7 - - - - - R0lGODlhEAAQAIMPAEWi6azap1WzS9LusYrSbApexXLHV+z41vH559Ltw8ns+pe75hBs0iCZEP////// - /yH/C05FVFNDQVBFMi4wAwEBAAAh+QQBAAAPACwAAAAAEAAQAAAIiwAfCBxIsKDBBw4SOjg4MGGDBgwY - JDzo4OEBBAgUMGiwkGBFBAcODAAAYMEAjh4ZIBgwQAAAAgZOdkTIQEGCAQRICoAZACVNBQACkHxpQEDP - jg5qLhgKQIDTowIrJoA5NGKDABIbNpjqlEGBAguyag3QEiLYsDOjPgwQYEFYsQUdRpSY1qDCugzzBgQA - Ow== - - - - - R0lGODlhEAAQAIQfAKxoR8VkLxFw1feVPITSWv+eQv7Qo0Cc6OyIN/v7+3PLTSCZEFy17Wa6XuT1x2bG - Q3nNUU6vRXPAa9mLXMTkwJZEHJt7LL5aJ/z8/O2KONx3L/ubP/r6+rtVI////////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpgA/CBxIsOBADBgEeljoweAHDB06eIi4QICAhRwOdjAQ - kaMDCgwELOiQ8WGHAQYMFIjIgMEBCBEzQkSwoUCBCR0OSGigIKZJDQM2cKxwoAGBBx0ykISoIcOGiAcO - EFCAVCkHphueAtgaIYKFpks7NM0qFIDFCxk0kPyQQCzZiB0CbLAqsO1YslnTrq0r9m4GvSUHcoioobDa - vQU5DIar2KFgxYEHBgQAOw== - - - - - R0lGODlhEAAQAIQAAP/99v/qaOvOSem4M+zSSv/ypf/ug//1w//2zP/xnv/te//zrf/0uv/41/nWdufB - MP/vkevTVf/rcv/0s//wlv/57OvRM//vi+/OQtaXIuuYEuvTLNyhJ+vHUP///////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIoAA/CBxIsCBBDwgTKizogUCEhwQIYLBgYYOHgR4cKPQA - oMEBBAgsfsjoAQGDCQsKJEhAAcKBChYQajyZkiWECwYMAHiAkAAAlCop4FRA9ABPDxgqABVqQIGEpxQG - IMTQoCaEphICaFXAAaEABCmZZtUawECGi0gRHGigloFWCgzOYhRAt0OHASg1yD24cUAFDRcNMhwAWLBB - D4UNMwz8ISAAOw== - - - - - R0lGODlhEAAQAIQfAGm6/idTd4yTmF+v8Xa37KvW+lyh3KHJ62aq41ee2bXZ98nm/2mt5W2Ck5XN/C1c - hEZieho8WXXA/2Gn4P39/W+y6V+l3qjP8Njt/lx2izxPYGyv51Oa1EJWZ////////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIqgA/CPzgoaBBDwMTEoQgoGGDBhAQKvSQAcOCBQUcaHwg - USBFDARCEqhQgYEEjh47gKxwweAFBAgkREDooYMCAhs8XGCAwMOEmB1o2qywYSdMnxMABCVocwMDngUP - GLAAYCZTBTARHPAgdWpVoQV+TrBgoGwCA1+ZOkgwduuBBAk4pCWogUBcDnjxAgjQkS4BAAMCD9jrgcJE - DQ8eBAjwYKZhhQQPFoRMuXJAADs= diff --git a/SubProject/FBS0000/Holiday/fErrorChk.Designer.cs b/SubProject/FBS0000/Holiday/fErrorChk.Designer.cs index ce07778..e4c661b 100644 --- a/SubProject/FBS0000/Holiday/fErrorChk.Designer.cs +++ b/SubProject/FBS0000/Holiday/fErrorChk.Designer.cs @@ -63,13 +63,13 @@ namespace FBS0000.Holiday this.panel2 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.dtED = new System.Windows.Forms.DateTimePicker(); + this.dtSD = new System.Windows.Forms.DateTimePicker(); + this.button3 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); this.panel4 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.dtSD = new System.Windows.Forms.DateTimePicker(); - this.dtED = new System.Windows.Forms.DateTimePicker(); this.lvOK = new System.Windows.Forms.ListView(); this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -79,6 +79,8 @@ namespace FBS0000.Holiday this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader14 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.panel2.SuspendLayout(); @@ -315,7 +317,8 @@ namespace FBS0000.Holiday this.columnHeader2, this.columnHeader3, this.columnHeader4, - this.columnHeader5}); + this.columnHeader5, + this.columnHeader14}); this.lvNG.Dock = System.Windows.Forms.DockStyle.Fill; this.lvNG.HideSelection = false; this.lvNG.Location = new System.Drawing.Point(3, 17); @@ -397,6 +400,53 @@ namespace FBS0000.Holiday this.groupBox3.TabStop = false; this.groupBox3.Text = "검사기간"; // + // dtED + // + this.dtED.Location = new System.Drawing.Point(223, 20); + this.dtED.Name = "dtED"; + this.dtED.Size = new System.Drawing.Size(200, 21); + this.dtED.TabIndex = 8; + // + // dtSD + // + this.dtSD.Location = new System.Drawing.Point(17, 20); + this.dtSD.Name = "dtSD"; + this.dtSD.Size = new System.Drawing.Size(200, 21); + this.dtSD.TabIndex = 7; + // + // button3 + // + this.button3.Dock = System.Windows.Forms.DockStyle.Right; + this.button3.Location = new System.Drawing.Point(431, 17); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(100, 29); + this.button3.TabIndex = 6; + this.button3.Text = "<< 이전달"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // button2 + // + this.button2.Dock = System.Windows.Forms.DockStyle.Right; + this.button2.Location = new System.Drawing.Point(531, 17); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(100, 29); + this.button2.TabIndex = 5; + this.button2.Text = "이번달"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click_1); + // + // button1 + // + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.Location = new System.Drawing.Point(631, 17); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(100, 29); + this.button1.TabIndex = 4; + this.button1.Text = "다음달 >>"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click_1); + // // panel4 // this.panel4.Dock = System.Windows.Forms.DockStyle.Top; @@ -413,53 +463,6 @@ namespace FBS0000.Holiday this.panel5.Size = new System.Drawing.Size(734, 10); this.panel5.TabIndex = 22; // - // button1 - // - this.button1.Dock = System.Windows.Forms.DockStyle.Right; - this.button1.Location = new System.Drawing.Point(631, 17); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(100, 29); - this.button1.TabIndex = 4; - this.button1.Text = "다음달 >>"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click_1); - // - // button2 - // - this.button2.Dock = System.Windows.Forms.DockStyle.Right; - this.button2.Location = new System.Drawing.Point(531, 17); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(100, 29); - this.button2.TabIndex = 5; - this.button2.Text = "이번달"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click_1); - // - // button3 - // - this.button3.Dock = System.Windows.Forms.DockStyle.Right; - this.button3.Location = new System.Drawing.Point(431, 17); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(100, 29); - this.button3.TabIndex = 6; - this.button3.Text = "<< 이전달"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.button3_Click); - // - // dtSD - // - this.dtSD.Location = new System.Drawing.Point(17, 20); - this.dtSD.Name = "dtSD"; - this.dtSD.Size = new System.Drawing.Size(200, 21); - this.dtSD.TabIndex = 7; - // - // dtED - // - this.dtED.Location = new System.Drawing.Point(223, 20); - this.dtED.Name = "dtED"; - this.dtED.Size = new System.Drawing.Size(200, 21); - this.dtED.TabIndex = 8; - // // lvOK // this.lvOK.BackColor = System.Drawing.Color.Silver; @@ -469,7 +472,8 @@ namespace FBS0000.Holiday this.columnHeader9, this.columnHeader10, this.columnHeader11, - this.columnHeader12}); + this.columnHeader12, + this.columnHeader13}); this.lvOK.Dock = System.Windows.Forms.DockStyle.Fill; this.lvOK.HideSelection = false; this.lvOK.Location = new System.Drawing.Point(3, 17); @@ -531,6 +535,14 @@ namespace FBS0000.Holiday this.groupBox5.TabStop = false; this.groupBox5.Text = "불량 (불일치 데이터가 있는 날짜 입니다)"; // + // columnHeader13 + // + this.columnHeader13.Text = "구분"; + // + // columnHeader14 + // + this.columnHeader14.Text = "구분"; + // // fErrorChk // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -619,5 +631,7 @@ namespace FBS0000.Holiday private System.Windows.Forms.ColumnHeader columnHeader12; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.GroupBox groupBox5; + private System.Windows.Forms.ColumnHeader columnHeader13; + private System.Windows.Forms.ColumnHeader columnHeader14; } } \ No newline at end of file diff --git a/SubProject/FBS0000/Holiday/fErrorChk.cs b/SubProject/FBS0000/Holiday/fErrorChk.cs index c35b082..b8ea24a 100644 --- a/SubProject/FBS0000/Holiday/fErrorChk.cs +++ b/SubProject/FBS0000/Holiday/fErrorChk.cs @@ -111,17 +111,37 @@ namespace FBS0000.Holiday //휴가신청확인 - cmd.CommandText = "select sum(HolyDays),sum(HolyTimes) from EETGW_HolydayRequest where gcode = @gcode and sdate = '{0}' and isnull(conf,0) = 1"; + cmd.CommandText = "select cate,sum(HolyDays),sum(HolyTimes) from EETGW_HolydayRequest where gcode = @gcode and sdate = '{0}' and isnull(conf,0) = 1 group by cate"; cmd.CommandText = string.Format(cmd.CommandText, pdate); var dar = cmd.ExecuteReader(); double val_day = 0; double val_time = 0; + Dictionary catelistd = new Dictionary(); + Dictionary catelistt = new Dictionary(); while (dar.Read()) { - var str_day = dar[0].ToString(); - var str_time = dar[1].ToString(); - if (string.IsNullOrEmpty(str_day) == false) val_day = double.Parse(str_day); - if (string.IsNullOrEmpty(str_time) == false) val_time = double.Parse(str_time); + var str_cate = dar[0].ToString(); + var str_day = dar[1].ToString(); + var str_time = dar[2].ToString(); + + var v_day = 0.0; + var v_time = 0.0; + + v_day += double.Parse(str_day); + v_time += double.Parse(str_time); + + val_day += v_day; + val_time += v_time; + + + if (v_day != 0.0 && catelistd.ContainsKey(str_cate)) + catelistd[str_cate] = catelistd[str_cate] + v_day; + else + catelistd.Add(str_cate, v_day); + if (v_time != 0.0 && catelistt.ContainsKey(str_cate)) + catelistt[str_cate] = catelistt[str_cate] + v_time; + else + catelistt.Add(str_cate, v_time); } textBox3.Tag = val_day;// db_jobreport.Sum(t => t.kisulamt); textBox3.Text = textBox3.Tag.ToString(); @@ -131,9 +151,11 @@ namespace FBS0000.Holiday //근태입력자료확인 - cmd.CommandText = "select sum(term) ,sum(crtime),sum(termdr),sum(drtime)" + + + cmd.CommandText = "select cate,sum(term) ,sum(crtime),sum(termdr),sum(drtime)" + " from Holyday " + - " where gcode = @gcode and sdate = '{0}' and isnull(extidx,-1) <> -1"; + " where gcode = @gcode and sdate = '{0}' and isnull(extidx,-1) <> -1" + + " group by cate"; cmd.CommandText = string.Format(cmd.CommandText, pdate); dar = cmd.ExecuteReader(); @@ -141,20 +163,141 @@ namespace FBS0000.Holiday val_time = 0; double val_day_dr = 0; double val_time_dr = 0; + Dictionary d_drd = new Dictionary(); + Dictionary d_drt = new Dictionary(); + Dictionary d_crd = new Dictionary(); + Dictionary d_crt = new Dictionary(); + double v_crd, v_crt, v_drd, v_drt; + System.Text.StringBuilder sbcate = new StringBuilder(); while (dar.Read()) { - var str_day_cr = dar[0].ToString(); - var str_time_cr = dar[1].ToString(); - var str_day_dr = dar[2].ToString(); - var str_time_dr = dar[3].ToString(); + v_crd = v_crt = v_drd = v_drt = 0.0; + var str_cate = dar[0].ToString(); + var str_day_cr = dar[1].ToString(); + var str_time_cr = dar[2].ToString(); + var str_day_dr = dar[3].ToString(); + var str_time_dr = dar[4].ToString(); - if (string.IsNullOrEmpty(str_day_cr) == false) val_day = double.Parse(str_day_cr); - if (string.IsNullOrEmpty(str_time_cr) == false) val_time = double.Parse(str_time_cr); + if (string.IsNullOrEmpty(str_day_cr) == false) v_crd = double.Parse(str_day_cr); + if (string.IsNullOrEmpty(str_time_cr) == false) v_crt = double.Parse(str_time_cr); - if (string.IsNullOrEmpty(str_day_dr) == false) val_day_dr = double.Parse(str_day_dr); - if (string.IsNullOrEmpty(str_time_dr) == false) val_time_dr = double.Parse(str_time_dr); + if (string.IsNullOrEmpty(str_day_dr) == false) v_drd = double.Parse(str_day_dr); + if (string.IsNullOrEmpty(str_time_dr) == false) v_drt = double.Parse(str_time_dr); + + if (d_crd.ContainsKey(str_cate)) + d_crd[str_cate] = d_crd[str_cate] + v_crd; + else + d_crd.Add(str_cate, v_crd); + + if (d_crt.ContainsKey(str_cate)) + d_crt[str_cate] = d_crt[str_cate] + v_crt; + else + d_crt.Add(str_cate, v_crt); + + if (d_drd.ContainsKey(str_cate)) + d_drd[str_cate] = d_drd[str_cate] + v_drd; + else + d_drd.Add(str_cate, v_drd); + + + if (d_drt.ContainsKey(str_cate)) + d_drt[str_cate] = d_drt[str_cate] + v_drt; + else + d_drt.Add(str_cate, v_drt); + + val_day += v_crd;// double.Parse(str_day_cr); + val_time += v_crt;// double.Parse(str_time_cr); + + val_day_dr += v_drd;// double.Parse(str_day_dr); + val_time_dr += v_drt;// double.Parse(str_time_dr); } dar.Close(); + + //카테고리별데이터확인 (대변[CR]자료를 대상으로함) + bool cateerr = false; + foreach (var item in catelistd) + { + if (d_crd.ContainsKey(item.Key) == false) + { + sbcate.Append($"{item.Key}(X)"); + cateerr = true; + break; + } + else + { + if (d_crd[item.Key] != item.Value) + { + sbcate.Append($"{item.Key}({d_crd[item.Key]}|{item.Value})"); + cateerr = true; + break; + } + } + } + if (cateerr == false) + { + foreach (var item in catelistt) + { + if (d_crt.ContainsKey(item.Key) == false) + { + sbcate.Append($"{item.Key}(X)"); + cateerr = true; + break; + } + else + { + if (d_crt[item.Key] != item.Value) + { + sbcate.Append($"{item.Key}({d_crt[item.Key]}|{item.Value})"); + cateerr = true; + break; + } + } + } + } + if (cateerr == false) + { + foreach (var item in d_crd) + { + if (item.Key.Equals("대체")) continue; + if (catelistd.ContainsKey(item.Key) == false) + { + sbcate.Append($"{item.Key}(X)"); + cateerr = true; + break; + } + else + { + if (catelistd[item.Key] != item.Value) + { + sbcate.Append($"{item.Key}({catelistd[item.Key]}|{item.Value})"); + cateerr = true; + break; + } + } + } + } + if (cateerr == false) + { + foreach (var item in d_crt) + { + if (item.Key.Equals("대체")) continue; + if (catelistt.ContainsKey(item.Key) == false) + { + sbcate.Append($"{item.Key}(X)"); + cateerr = true; + break; + } + else + { + if (catelistt[item.Key] != item.Value) + { + sbcate.Append($"{item.Key}({catelistt[item.Key]}|{item.Value})"); + cateerr = true; + break; + } + } + } + } textBox6.Tag = val_day;// db_jobreport.Sum(t => t.kisulamt); textBox6.Text = textBox6.Tag.ToString(); textBox5.Tag = val_time;// db_jobreport.Sum(t => t.kisulamt); @@ -170,6 +313,7 @@ namespace FBS0000.Holiday if (textBox2.Text.Equals(textBox7.Text) == false) dataError = true; if (textBox3.Text.Equals(textBox6.Text) == false) dataError = true; if (textBox4.Text.Equals(textBox5.Text) == false) dataError = true; + if (cateerr) dataError = true; ListViewItem lv = dataError ? this.lvNG.Items.Add(pdate) : this.lvOK.Items.Add(pdate); @@ -178,6 +322,7 @@ namespace FBS0000.Holiday lv.SubItems.Add($"{textBox2.Text}/{textBox7.Text}"); lv.SubItems.Add($"{textBox3.Text}/{textBox6.Text}"); lv.SubItems.Add($"{textBox4.Text}/{textBox5.Text}"); + lv.SubItems.Add(sbcate.ToString()); if (dataError) { diff --git a/SubProject/FBS0000/Holiday/fErrorChk.resx b/SubProject/FBS0000/Holiday/fErrorChk.resx index 29dcb1b..01d4fcc 100644 --- a/SubProject/FBS0000/Holiday/fErrorChk.resx +++ b/SubProject/FBS0000/Holiday/fErrorChk.resx @@ -117,4 +117,121 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + \ No newline at end of file diff --git a/SubProject/FPJ0000/DSEboard.Designer.cs b/SubProject/FPJ0000/DSEboard.Designer.cs new file mode 100644 index 0000000..380e705 --- /dev/null +++ b/SubProject/FPJ0000/DSEboard.Designer.cs @@ -0,0 +1,4018 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace FPJ0000 { + + + /// + ///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("DSEboard")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DSEboard : global::System.Data.DataSet { + + private EETGW_JobReport_EBoardDataTable tableEETGW_JobReport_EBoard; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public DSEboard() { + 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", "16.0.0.0")] + protected DSEboard(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["EETGW_JobReport_EBoard"] != null)) { + base.Tables.Add(new EETGW_JobReport_EBoardDataTable(ds.Tables["EETGW_JobReport_EBoard"])); + } + 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", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public EETGW_JobReport_EBoardDataTable EETGW_JobReport_EBoard { + get { + return this.tableEETGW_JobReport_EBoard; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.0.0.0")] + public override global::System.Data.DataSet Clone() { + DSEboard cln = ((DSEboard)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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["EETGW_JobReport_EBoard"] != null)) { + base.Tables.Add(new EETGW_JobReport_EBoardDataTable(ds.Tables["EETGW_JobReport_EBoard"])); + } + 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", "16.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", "16.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars(bool initTable) { + this.tableEETGW_JobReport_EBoard = ((EETGW_JobReport_EBoardDataTable)(base.Tables["EETGW_JobReport_EBoard"])); + if ((initTable == true)) { + if ((this.tableEETGW_JobReport_EBoard != null)) { + this.tableEETGW_JobReport_EBoard.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.DataSetName = "DSEboard"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DSEboard.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableEETGW_JobReport_EBoard = new EETGW_JobReport_EBoardDataTable(); + base.Tables.Add(this.tableEETGW_JobReport_EBoard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeEETGW_JobReport_EBoard() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DSEboard ds = new DSEboard(); + 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", "16.0.0.0")] + public delegate void EETGW_JobReport_EBoardRowChangeEventHandler(object sender, EETGW_JobReport_EBoardRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class EETGW_JobReport_EBoardDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columnpdate; + + private global::System.Data.DataColumn columnuid; + + private global::System.Data.DataColumn columnSite; + + private global::System.Data.DataColumn column요청자; + + private global::System.Data.DataColumn column수리완료일; + + private global::System.Data.DataColumn columnStatus; + + private global::System.Data.DataColumn column분류; + + private global::System.Data.DataColumn columnLine; + + private global::System.Data.DataColumn columnDivision; + + private global::System.Data.DataColumn columnTeam; + + private global::System.Data.DataColumn columnProcess; + + private global::System.Data.DataColumn columnEquipment; + + private global::System.Data.DataColumn columnModel; + + private global::System.Data.DataColumn columnBoardName; + + private global::System.Data.DataColumn columnBoardVender; + + private global::System.Data.DataColumn column원인; + + private global::System.Data.DataColumn column결과; + + private global::System.Data.DataColumn columnSN; + + private global::System.Data.DataColumn columnQTY; + + private global::System.Data.DataColumn columnNPrice; + + private global::System.Data.DataColumn columnOPrice; + + private global::System.Data.DataColumn columnRepairCost; + + private global::System.Data.DataColumn columnCostReduction; + + private global::System.Data.DataColumn column외주업체; + + private global::System.Data.DataColumn columnRepairTime; + + private global::System.Data.DataColumn columnmemo; + + private global::System.Data.DataColumn columnimport; + + private global::System.Data.DataColumn columnwuid; + + private global::System.Data.DataColumn columnwdate; + + private global::System.Data.DataColumn column원인2; + + private global::System.Data.DataColumn column결과2; + + private global::System.Data.DataColumn columnrefdata; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public EETGW_JobReport_EBoardDataTable() { + this.TableName = "EETGW_JobReport_EBoard"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal EETGW_JobReport_EBoardDataTable(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", "16.0.0.0")] + protected EETGW_JobReport_EBoardDataTable(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", "16.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", "16.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", "16.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", "16.0.0.0")] + public global::System.Data.DataColumn uidColumn { + get { + return this.columnuid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn SiteColumn { + get { + return this.columnSite; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 요청자Column { + get { + return this.column요청자; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 수리완료일Column { + get { + return this.column수리완료일; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn StatusColumn { + get { + return this.columnStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 분류Column { + get { + return this.column분류; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn LineColumn { + get { + return this.columnLine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DivisionColumn { + get { + return this.columnDivision; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TeamColumn { + get { + return this.columnTeam; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ProcessColumn { + get { + return this.columnProcess; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EquipmentColumn { + get { + return this.columnEquipment; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ModelColumn { + get { + return this.columnModel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BoardNameColumn { + get { + return this.columnBoardName; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BoardVenderColumn { + get { + return this.columnBoardVender; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 원인Column { + get { + return this.column원인; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 결과Column { + get { + return this.column결과; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn SNColumn { + get { + return this.columnSN; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QTYColumn { + get { + return this.columnQTY; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NPriceColumn { + get { + return this.columnNPrice; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OPriceColumn { + get { + return this.columnOPrice; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RepairCostColumn { + get { + return this.columnRepairCost; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CostReductionColumn { + get { + return this.columnCostReduction; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 외주업체Column { + get { + return this.column외주업체; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RepairTimeColumn { + get { + return this.columnRepairTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn memoColumn { + get { + return this.columnmemo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn importColumn { + get { + return this.columnimport; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.0.0.0")] + public global::System.Data.DataColumn 원인2Column { + get { + return this.column원인2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 결과2Column { + get { + return this.column결과2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn refdataColumn { + get { + return this.columnrefdata; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + public EETGW_JobReport_EBoardRow this[int index] { + get { + return ((EETGW_JobReport_EBoardRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event EETGW_JobReport_EBoardRowChangeEventHandler EETGW_JobReport_EBoardRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event EETGW_JobReport_EBoardRowChangeEventHandler EETGW_JobReport_EBoardRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event EETGW_JobReport_EBoardRowChangeEventHandler EETGW_JobReport_EBoardRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event EETGW_JobReport_EBoardRowChangeEventHandler EETGW_JobReport_EBoardRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddEETGW_JobReport_EBoardRow(EETGW_JobReport_EBoardRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public EETGW_JobReport_EBoardRow AddEETGW_JobReport_EBoardRow( + string gcode, + string pdate, + string uid, + string Site, + string 요청자, + string 수리완료일, + string Status, + string 분류, + string Line, + string Division, + string Team, + string Process, + string Equipment, + string Model, + string BoardName, + string BoardVender, + string 원인, + string 결과, + string SN, + int QTY, + decimal NPrice, + decimal OPrice, + decimal RepairCost, + decimal CostReduction, + string 외주업체, + double RepairTime, + string memo, + bool import, + string wuid, + System.DateTime wdate, + string 원인2, + string 결과2, + bool refdata) { + EETGW_JobReport_EBoardRow rowEETGW_JobReport_EBoardRow = ((EETGW_JobReport_EBoardRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + gcode, + pdate, + uid, + Site, + 요청자, + 수리완료일, + Status, + 분류, + Line, + Division, + Team, + Process, + Equipment, + Model, + BoardName, + BoardVender, + 원인, + 결과, + SN, + QTY, + NPrice, + OPrice, + RepairCost, + CostReduction, + 외주업체, + RepairTime, + memo, + import, + wuid, + wdate, + 원인2, + 결과2, + refdata}; + rowEETGW_JobReport_EBoardRow.ItemArray = columnValuesArray; + this.Rows.Add(rowEETGW_JobReport_EBoardRow); + return rowEETGW_JobReport_EBoardRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public EETGW_JobReport_EBoardRow FindByidx(int idx) { + return ((EETGW_JobReport_EBoardRow)(this.Rows.Find(new object[] { + idx}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + EETGW_JobReport_EBoardDataTable cln = ((EETGW_JobReport_EBoardDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new EETGW_JobReport_EBoardDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnidx = base.Columns["idx"]; + this.columngcode = base.Columns["gcode"]; + this.columnpdate = base.Columns["pdate"]; + this.columnuid = base.Columns["uid"]; + this.columnSite = base.Columns["Site"]; + this.column요청자 = base.Columns["요청자"]; + this.column수리완료일 = base.Columns["수리완료일"]; + this.columnStatus = base.Columns["Status"]; + this.column분류 = base.Columns["분류"]; + this.columnLine = base.Columns["Line"]; + this.columnDivision = base.Columns["Division"]; + this.columnTeam = base.Columns["Team"]; + this.columnProcess = base.Columns["Process"]; + this.columnEquipment = base.Columns["Equipment"]; + this.columnModel = base.Columns["Model"]; + this.columnBoardName = base.Columns["BoardName"]; + this.columnBoardVender = base.Columns["BoardVender"]; + this.column원인 = base.Columns["원인"]; + this.column결과 = base.Columns["결과"]; + this.columnSN = base.Columns["SN"]; + this.columnQTY = base.Columns["QTY"]; + this.columnNPrice = base.Columns["NPrice"]; + this.columnOPrice = base.Columns["OPrice"]; + this.columnRepairCost = base.Columns["RepairCost"]; + this.columnCostReduction = base.Columns["CostReduction"]; + this.column외주업체 = base.Columns["외주업체"]; + this.columnRepairTime = base.Columns["RepairTime"]; + this.columnmemo = base.Columns["memo"]; + this.columnimport = base.Columns["import"]; + this.columnwuid = base.Columns["wuid"]; + this.columnwdate = base.Columns["wdate"]; + this.column원인2 = base.Columns["원인2"]; + this.column결과2 = base.Columns["결과2"]; + this.columnrefdata = base.Columns["refdata"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpdate); + this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuid); + this.columnSite = new global::System.Data.DataColumn("Site", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSite); + this.column요청자 = new global::System.Data.DataColumn("요청자", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column요청자); + this.column수리완료일 = new global::System.Data.DataColumn("수리완료일", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column수리완료일); + this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStatus); + this.column분류 = new global::System.Data.DataColumn("분류", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column분류); + this.columnLine = new global::System.Data.DataColumn("Line", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLine); + this.columnDivision = new global::System.Data.DataColumn("Division", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDivision); + this.columnTeam = new global::System.Data.DataColumn("Team", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTeam); + this.columnProcess = new global::System.Data.DataColumn("Process", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProcess); + this.columnEquipment = new global::System.Data.DataColumn("Equipment", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEquipment); + this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModel); + this.columnBoardName = new global::System.Data.DataColumn("BoardName", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBoardName); + this.columnBoardVender = new global::System.Data.DataColumn("BoardVender", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBoardVender); + this.column원인 = new global::System.Data.DataColumn("원인", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column원인); + this.column결과 = new global::System.Data.DataColumn("결과", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column결과); + this.columnSN = new global::System.Data.DataColumn("SN", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSN); + this.columnQTY = new global::System.Data.DataColumn("QTY", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQTY); + this.columnNPrice = new global::System.Data.DataColumn("NPrice", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNPrice); + this.columnOPrice = new global::System.Data.DataColumn("OPrice", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOPrice); + this.columnRepairCost = new global::System.Data.DataColumn("RepairCost", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRepairCost); + this.columnCostReduction = new global::System.Data.DataColumn("CostReduction", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCostReduction); + this.column외주업체 = new global::System.Data.DataColumn("외주업체", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column외주업체); + this.columnRepairTime = new global::System.Data.DataColumn("RepairTime", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRepairTime); + this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmemo); + this.columnimport = new global::System.Data.DataColumn("import", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnimport); + 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.column원인2 = new global::System.Data.DataColumn("원인2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column원인2); + this.column결과2 = new global::System.Data.DataColumn("결과2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.column결과2); + this.columnrefdata = new global::System.Data.DataColumn("refdata", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrefdata); + 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.columnpdate.MaxLength = 10; + this.columnuid.MaxLength = 20; + this.columnSite.MaxLength = 50; + this.column요청자.MaxLength = 50; + this.column수리완료일.MaxLength = 10; + this.columnStatus.MaxLength = 50; + this.column분류.MaxLength = 50; + this.columnLine.MaxLength = 10; + this.columnDivision.MaxLength = 20; + this.columnTeam.MaxLength = 20; + this.columnProcess.MaxLength = 100; + this.columnEquipment.MaxLength = 100; + this.columnModel.MaxLength = 255; + this.columnBoardName.MaxLength = 255; + this.columnBoardVender.MaxLength = 100; + this.column원인.MaxLength = 2147483647; + this.column결과.MaxLength = 2147483647; + this.columnSN.MaxLength = 100; + this.column외주업체.MaxLength = 50; + this.columnmemo.MaxLength = 255; + this.columnwuid.AllowDBNull = false; + this.columnwuid.MaxLength = 20; + this.columnwdate.AllowDBNull = false; + this.column원인2.MaxLength = 2147483647; + this.column결과2.MaxLength = 2147483647; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public EETGW_JobReport_EBoardRow NewEETGW_JobReport_EBoardRow() { + return ((EETGW_JobReport_EBoardRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new EETGW_JobReport_EBoardRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(EETGW_JobReport_EBoardRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.EETGW_JobReport_EBoardRowChanged != null)) { + this.EETGW_JobReport_EBoardRowChanged(this, new EETGW_JobReport_EBoardRowChangeEvent(((EETGW_JobReport_EBoardRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.EETGW_JobReport_EBoardRowChanging != null)) { + this.EETGW_JobReport_EBoardRowChanging(this, new EETGW_JobReport_EBoardRowChangeEvent(((EETGW_JobReport_EBoardRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.EETGW_JobReport_EBoardRowDeleted != null)) { + this.EETGW_JobReport_EBoardRowDeleted(this, new EETGW_JobReport_EBoardRowChangeEvent(((EETGW_JobReport_EBoardRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.EETGW_JobReport_EBoardRowDeleting != null)) { + this.EETGW_JobReport_EBoardRowDeleting(this, new EETGW_JobReport_EBoardRowChangeEvent(((EETGW_JobReport_EBoardRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveEETGW_JobReport_EBoardRow(EETGW_JobReport_EBoardRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); + DSEboard ds = new DSEboard(); + 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 = "EETGW_JobReport_EBoardDataTable"; + 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 EETGW_JobReport_EBoardRow : global::System.Data.DataRow { + + private EETGW_JobReport_EBoardDataTable tableEETGW_JobReport_EBoard; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal EETGW_JobReport_EBoardRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableEETGW_JobReport_EBoard = ((EETGW_JobReport_EBoardDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int idx { + get { + return ((int)(this[this.tableEETGW_JobReport_EBoard.idxColumn])); + } + set { + this[this.tableEETGW_JobReport_EBoard.idxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string gcode { + get { + return ((string)(this[this.tableEETGW_JobReport_EBoard.gcodeColumn])); + } + set { + this[this.tableEETGW_JobReport_EBoard.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string pdate { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.pdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.pdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string uid { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.uidColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'uid\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.uidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Site { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.SiteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Site\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.SiteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 요청자 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.요청자Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'요청자\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.요청자Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 수리완료일 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.수리완료일Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'수리완료일\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.수리완료일Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Status { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.StatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Status\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.StatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 분류 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.분류Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'분류\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.분류Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Line { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.LineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Line\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.LineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Division { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.DivisionColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Division\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.DivisionColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Team { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.TeamColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Team\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.TeamColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Process { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.ProcessColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Process\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.ProcessColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Equipment { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.EquipmentColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Equipment\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.EquipmentColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Model { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.ModelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'Model\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.ModelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string BoardName { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.BoardNameColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'BoardName\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.BoardNameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string BoardVender { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.BoardVenderColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'BoardVender\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.BoardVenderColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 원인 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.원인Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'원인\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.원인Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 결과 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.결과Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'결과\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.결과Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string SN { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.SNColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'SN\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.SNColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QTY { + get { + try { + return ((int)(this[this.tableEETGW_JobReport_EBoard.QTYColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'QTY\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.QTYColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal NPrice { + get { + try { + return ((decimal)(this[this.tableEETGW_JobReport_EBoard.NPriceColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'NPrice\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.NPriceColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal OPrice { + get { + try { + return ((decimal)(this[this.tableEETGW_JobReport_EBoard.OPriceColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'OPrice\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.OPriceColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal RepairCost { + get { + try { + return ((decimal)(this[this.tableEETGW_JobReport_EBoard.RepairCostColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'RepairCost\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.RepairCostColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal CostReduction { + get { + try { + return ((decimal)(this[this.tableEETGW_JobReport_EBoard.CostReductionColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'CostReduction\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.CostReductionColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 외주업체 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.외주업체Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'외주업체\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.외주업체Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double RepairTime { + get { + try { + return ((double)(this[this.tableEETGW_JobReport_EBoard.RepairTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'RepairTime\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.RepairTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string memo { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.memoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.memoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool import { + get { + try { + return ((bool)(this[this.tableEETGW_JobReport_EBoard.importColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'import\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.importColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string wuid { + get { + return ((string)(this[this.tableEETGW_JobReport_EBoard.wuidColumn])); + } + set { + this[this.tableEETGW_JobReport_EBoard.wuidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime wdate { + get { + return ((global::System.DateTime)(this[this.tableEETGW_JobReport_EBoard.wdateColumn])); + } + set { + this[this.tableEETGW_JobReport_EBoard.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 원인2 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.원인2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'원인2\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.원인2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string 결과2 { + get { + try { + return ((string)(this[this.tableEETGW_JobReport_EBoard.결과2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_JobReport_EBoard\' 테이블의 \'결과2\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.결과2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool refdata { + get { + if (this.IsrefdataNull()) { + return false; + } + else { + return ((bool)(this[this.tableEETGW_JobReport_EBoard.refdataColumn])); + } + } + set { + this[this.tableEETGW_JobReport_EBoard.refdataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspdateNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.pdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpdateNull() { + this[this.tableEETGW_JobReport_EBoard.pdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsuidNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.uidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetuidNull() { + this[this.tableEETGW_JobReport_EBoard.uidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsSiteNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.SiteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetSiteNull() { + this[this.tableEETGW_JobReport_EBoard.SiteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is요청자Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.요청자Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set요청자Null() { + this[this.tableEETGW_JobReport_EBoard.요청자Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is수리완료일Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.수리완료일Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set수리완료일Null() { + this[this.tableEETGW_JobReport_EBoard.수리완료일Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsStatusNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.StatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetStatusNull() { + this[this.tableEETGW_JobReport_EBoard.StatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is분류Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.분류Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set분류Null() { + this[this.tableEETGW_JobReport_EBoard.분류Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsLineNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.LineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetLineNull() { + this[this.tableEETGW_JobReport_EBoard.LineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDivisionNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.DivisionColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDivisionNull() { + this[this.tableEETGW_JobReport_EBoard.DivisionColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTeamNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.TeamColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTeamNull() { + this[this.tableEETGW_JobReport_EBoard.TeamColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsProcessNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.ProcessColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetProcessNull() { + this[this.tableEETGW_JobReport_EBoard.ProcessColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEquipmentNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.EquipmentColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEquipmentNull() { + this[this.tableEETGW_JobReport_EBoard.EquipmentColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsModelNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.ModelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetModelNull() { + this[this.tableEETGW_JobReport_EBoard.ModelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBoardNameNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.BoardNameColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBoardNameNull() { + this[this.tableEETGW_JobReport_EBoard.BoardNameColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBoardVenderNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.BoardVenderColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBoardVenderNull() { + this[this.tableEETGW_JobReport_EBoard.BoardVenderColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is원인Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.원인Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set원인Null() { + this[this.tableEETGW_JobReport_EBoard.원인Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is결과Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.결과Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set결과Null() { + this[this.tableEETGW_JobReport_EBoard.결과Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsSNNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.SNColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetSNNull() { + this[this.tableEETGW_JobReport_EBoard.SNColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQTYNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.QTYColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQTYNull() { + this[this.tableEETGW_JobReport_EBoard.QTYColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNPriceNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.NPriceColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNPriceNull() { + this[this.tableEETGW_JobReport_EBoard.NPriceColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOPriceNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.OPriceColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOPriceNull() { + this[this.tableEETGW_JobReport_EBoard.OPriceColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsRepairCostNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.RepairCostColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetRepairCostNull() { + this[this.tableEETGW_JobReport_EBoard.RepairCostColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCostReductionNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.CostReductionColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCostReductionNull() { + this[this.tableEETGW_JobReport_EBoard.CostReductionColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is외주업체Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.외주업체Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set외주업체Null() { + this[this.tableEETGW_JobReport_EBoard.외주업체Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsRepairTimeNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.RepairTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetRepairTimeNull() { + this[this.tableEETGW_JobReport_EBoard.RepairTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsmemoNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.memoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetmemoNull() { + this[this.tableEETGW_JobReport_EBoard.memoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsimportNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.importColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetimportNull() { + this[this.tableEETGW_JobReport_EBoard.importColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is원인2Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.원인2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set원인2Null() { + this[this.tableEETGW_JobReport_EBoard.원인2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Is결과2Null() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.결과2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Set결과2Null() { + this[this.tableEETGW_JobReport_EBoard.결과2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsrefdataNull() { + return this.IsNull(this.tableEETGW_JobReport_EBoard.refdataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetrefdataNull() { + this[this.tableEETGW_JobReport_EBoard.refdataColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class EETGW_JobReport_EBoardRowChangeEvent : global::System.EventArgs { + + private EETGW_JobReport_EBoardRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public EETGW_JobReport_EBoardRowChangeEvent(EETGW_JobReport_EBoardRow 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", "16.0.0.0")] + public EETGW_JobReport_EBoardRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace FPJ0000.DSEboardTableAdapters { + + + /// + ///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 EETGW_JobReport_EBoardTableAdapter : 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", "16.0.0.0")] + public EETGW_JobReport_EBoardTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "EETGW_JobReport_EBoard"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("pdate", "pdate"); + tableMapping.ColumnMappings.Add("uid", "uid"); + tableMapping.ColumnMappings.Add("Site", "Site"); + tableMapping.ColumnMappings.Add("요청자", "요청자"); + tableMapping.ColumnMappings.Add("수리완료일", "수리완료일"); + tableMapping.ColumnMappings.Add("Status", "Status"); + tableMapping.ColumnMappings.Add("분류", "분류"); + tableMapping.ColumnMappings.Add("Line", "Line"); + tableMapping.ColumnMappings.Add("Division", "Division"); + tableMapping.ColumnMappings.Add("Team", "Team"); + tableMapping.ColumnMappings.Add("Process", "Process"); + tableMapping.ColumnMappings.Add("Equipment", "Equipment"); + tableMapping.ColumnMappings.Add("Model", "Model"); + tableMapping.ColumnMappings.Add("BoardName", "BoardName"); + tableMapping.ColumnMappings.Add("BoardVender", "BoardVender"); + tableMapping.ColumnMappings.Add("원인", "원인"); + tableMapping.ColumnMappings.Add("결과", "결과"); + tableMapping.ColumnMappings.Add("SN", "SN"); + tableMapping.ColumnMappings.Add("QTY", "QTY"); + tableMapping.ColumnMappings.Add("NPrice", "NPrice"); + tableMapping.ColumnMappings.Add("OPrice", "OPrice"); + tableMapping.ColumnMappings.Add("RepairCost", "RepairCost"); + tableMapping.ColumnMappings.Add("CostReduction", "CostReduction"); + tableMapping.ColumnMappings.Add("외주업체", "외주업체"); + tableMapping.ColumnMappings.Add("RepairTime", "RepairTime"); + tableMapping.ColumnMappings.Add("memo", "memo"); + tableMapping.ColumnMappings.Add("import", "import"); + tableMapping.ColumnMappings.Add("wuid", "wuid"); + tableMapping.ColumnMappings.Add("wdate", "wdate"); + tableMapping.ColumnMappings.Add("원인2", "원인2"); + tableMapping.ColumnMappings.Add("결과2", "결과2"); + tableMapping.ColumnMappings.Add("refdata", "refdata"); + 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 [EETGW_JobReport_EBoard] WHERE (([idx] = @Original_idx) AND ([gcode] " + + "= @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @O" + + "riginal_pdate)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_u" + + "id)) AND ((@IsNull_Site = 1 AND [Site] IS NULL) OR ([Site] = @Original_Site)) AN" + + "D ((@IsNull_요청자 = 1 AND [요청자] IS NULL) OR ([요청자] = @Original_요청자)) AND ((@IsNull" + + "_수리완료일 = 1 AND [수리완료일] IS NULL) OR ([수리완료일] = @Original_수리완료일)) AND ((@IsNull_St" + + "atus = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_분" + + "류 = 1 AND [분류] IS NULL) OR ([분류] = @Original_분류)) AND ((@IsNull_Line = 1 AND [Li" + + "ne] IS NULL) OR ([Line] = @Original_Line)) AND ((@IsNull_Division = 1 AND [Divis" + + "ion] IS NULL) OR ([Division] = @Original_Division)) AND ((@IsNull_Team = 1 AND [" + + "Team] IS NULL) OR ([Team] = @Original_Team)) AND ((@IsNull_Process = 1 AND [Proc" + + "ess] IS NULL) OR ([Process] = @Original_Process)) AND ((@IsNull_Equipment = 1 AN" + + "D [Equipment] IS NULL) OR ([Equipment] = @Original_Equipment)) AND ((@IsNull_Mod" + + "el = 1 AND [Model] IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_BoardN" + + "ame = 1 AND [BoardName] IS NULL) OR ([BoardName] = @Original_BoardName)) AND ((@" + + "IsNull_BoardVender = 1 AND [BoardVender] IS NULL) OR ([BoardVender] = @Original_" + + "BoardVender)) AND ((@IsNull_SN = 1 AND [SN] IS NULL) OR ([SN] = @Original_SN)) A" + + "ND ((@IsNull_QTY = 1 AND [QTY] IS NULL) OR ([QTY] = @Original_QTY)) AND ((@IsNul" + + "l_NPrice = 1 AND [NPrice] IS NULL) OR ([NPrice] = @Original_NPrice)) AND ((@IsNu" + + "ll_OPrice = 1 AND [OPrice] IS NULL) OR ([OPrice] = @Original_OPrice)) AND ((@IsN" + + "ull_RepairCost = 1 AND [RepairCost] IS NULL) OR ([RepairCost] = @Original_Repair" + + "Cost)) AND ((@IsNull_CostReduction = 1 AND [CostReduction] IS NULL) OR ([CostRed" + + "uction] = @Original_CostReduction)) AND ((@IsNull_외주업체 = 1 AND [외주업체] IS NULL) O" + + "R ([외주업체] = @Original_외주업체)) AND ((@IsNull_RepairTime = 1 AND [RepairTime] IS NU" + + "LL) OR ([RepairTime] = @Original_RepairTime)) AND ((@IsNull_memo = 1 AND [memo] " + + "IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_import = 1 AND [import] IS " + + "NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdat" + + "e] = @Original_wdate) AND ((@IsNull_refdata = 1 AND [refdata] IS NULL) OR ([refd" + + "ata] = @Original_refdata)))"; + 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_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("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Site", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_요청자", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_요청자", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_수리완료일", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_수리완료일", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_분류", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_분류", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Line", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Division", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Equipment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Equipment", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BoardName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BoardName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BoardVender", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BoardVender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "NPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "OPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RepairCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RepairCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "RepairCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CostReduction", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostReduction", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostReduction", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CostReduction", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_외주업체", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_외주업체", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RepairTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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_refdata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_refdata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_JobReport_EBoard] ([gcode], [pdate], [uid], [Site], [요청자], [수리완료일], [Status], [분류], [Line], [Division], [Team], [Process], [Equipment], [Model], [BoardName], [BoardVender], [원인], [결과], [SN], [QTY], [NPrice], [OPrice], [RepairCost], [CostReduction], [외주업체], [RepairTime], [memo], [import], [wuid], [wdate], [원인2], [결과2], [refdata]) VALUES (@gcode, @pdate, @uid, @Site, @요청자, @수리완료일, @Status, @분류, @Line, @Division, @Team, @Process, @Equipment, @Model, @BoardName, @BoardVender, @원인, @결과, @SN, @QTY, @NPrice, @OPrice, @RepairCost, @CostReduction, @외주업체, @RepairTime, @memo, @import, @wuid, @wdate, @원인2, @결과2, @refdata); +SELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata FROM EETGW_JobReport_EBoard WHERE (idx = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@요청자", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@수리완료일", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@분류", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Equipment", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BoardName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BoardVender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@원인", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "원인", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@결과", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "결과", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "NPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "OPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RepairCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "RepairCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostReduction", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CostReduction", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@외주업체", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, 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("@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("@원인2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "원인2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@결과2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "결과2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@refdata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [EETGW_JobReport_EBoard] SET [gcode] = @gcode, [pdate] = @pdate, [uid] = @" + + "uid, [Site] = @Site, [요청자] = @요청자, [수리완료일] = @수리완료일, [Status] = @Status, [분류] = " + + "@분류, [Line] = @Line, [Division] = @Division, [Team] = @Team, [Process] = @Proces" + + "s, [Equipment] = @Equipment, [Model] = @Model, [BoardName] = @BoardName, [BoardV" + + "ender] = @BoardVender, [원인] = @원인, [결과] = @결과, [SN] = @SN, [QTY] = @QTY, [NPrice" + + "] = @NPrice, [OPrice] = @OPrice, [RepairCost] = @RepairCost, [CostReduction] = @" + + "CostReduction, [외주업체] = @외주업체, [RepairTime] = @RepairTime, [memo] = @memo, [impo" + + "rt] = @import, [wuid] = @wuid, [wdate] = @wdate, [원인2] = @원인2, [결과2] = @결과2, [re" + + "fdata] = @refdata WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode)" + + " AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AN" + + "D ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull" + + "_Site = 1 AND [Site] IS NULL) OR ([Site] = @Original_Site)) AND ((@IsNull_요청자 = " + + "1 AND [요청자] IS NULL) OR ([요청자] = @Original_요청자)) AND ((@IsNull_수리완료일 = 1 AND [수리" + + "완료일] IS NULL) OR ([수리완료일] = @Original_수리완료일)) AND ((@IsNull_Status = 1 AND [Stat" + + "us] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_분류 = 1 AND [분류] IS " + + "NULL) OR ([분류] = @Original_분류)) AND ((@IsNull_Line = 1 AND [Line] IS NULL) OR ([" + + "Line] = @Original_Line)) AND ((@IsNull_Division = 1 AND [Division] IS NULL) OR (" + + "[Division] = @Original_Division)) AND ((@IsNull_Team = 1 AND [Team] IS NULL) OR " + + "([Team] = @Original_Team)) AND ((@IsNull_Process = 1 AND [Process] IS NULL) OR (" + + "[Process] = @Original_Process)) AND ((@IsNull_Equipment = 1 AND [Equipment] IS N" + + "ULL) OR ([Equipment] = @Original_Equipment)) AND ((@IsNull_Model = 1 AND [Model]" + + " IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_BoardName = 1 AND [Board" + + "Name] IS NULL) OR ([BoardName] = @Original_BoardName)) AND ((@IsNull_BoardVender" + + " = 1 AND [BoardVender] IS NULL) OR ([BoardVender] = @Original_BoardVender)) AND " + + "((@IsNull_SN = 1 AND [SN] IS NULL) OR ([SN] = @Original_SN)) AND ((@IsNull_QTY =" + + " 1 AND [QTY] IS NULL) OR ([QTY] = @Original_QTY)) AND ((@IsNull_NPrice = 1 AND [" + + "NPrice] IS NULL) OR ([NPrice] = @Original_NPrice)) AND ((@IsNull_OPrice = 1 AND " + + "[OPrice] IS NULL) OR ([OPrice] = @Original_OPrice)) AND ((@IsNull_RepairCost = 1" + + " AND [RepairCost] IS NULL) OR ([RepairCost] = @Original_RepairCost)) AND ((@IsNu" + + "ll_CostReduction = 1 AND [CostReduction] IS NULL) OR ([CostReduction] = @Origina" + + "l_CostReduction)) AND ((@IsNull_외주업체 = 1 AND [외주업체] IS NULL) OR ([외주업체] = @Origi" + + "nal_외주업체)) AND ((@IsNull_RepairTime = 1 AND [RepairTime] IS NULL) OR ([RepairTim" + + "e] = @Original_RepairTime)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo" + + "] = @Original_memo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import]" + + " = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wda" + + "te) AND ((@IsNull_refdata = 1 AND [refdata] IS NULL) OR ([refdata] = @Original_r" + + "efdata)));\r\nSELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, D" + + "ivision, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QT" + + "Y, NPrice, OPrice, RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wu" + + "id, wdate, 원인2, 결과2, refdata FROM EETGW_JobReport_EBoard WHERE (idx = @idx)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@요청자", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@수리완료일", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@분류", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Equipment", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BoardName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BoardVender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@원인", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "원인", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@결과", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "결과", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "NPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "OPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RepairCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "RepairCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostReduction", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CostReduction", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@외주업체", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, 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("@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("@원인2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "원인2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@결과2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "결과2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@refdata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + 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("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Site", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Site", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_요청자", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_요청자", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "요청자", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_수리완료일", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_수리완료일", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "수리완료일", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_분류", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_분류", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "분류", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Line", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Line", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Division", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Team", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Equipment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Equipment", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Equipment", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BoardName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BoardName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BoardVender", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BoardVender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BoardVender", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SN", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QTY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QTY", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "NPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "OPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RepairCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RepairCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "RepairCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CostReduction", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostReduction", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostReduction", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CostReduction", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_외주업체", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_외주업체", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "외주업체", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RepairTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RepairTime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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_refdata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_refdata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refdata", 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", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::FPJ0000.Properties.Settings.Default.gwcs; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = @"SELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, + RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata +FROM EETGW_JobReport_EBoard +WHERE (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", "16.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(DSEboard.EETGW_JobReport_EBoardDataTable 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", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DSEboard.EETGW_JobReport_EBoardDataTable 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)); + } + DSEboard.EETGW_JobReport_EBoardDataTable dataTable = new DSEboard.EETGW_JobReport_EBoardDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DSEboard.EETGW_JobReport_EBoardDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DSEboard dataSet) { + return this.Adapter.Update(dataSet, "EETGW_JobReport_EBoard"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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_pdate, + string Original_uid, + string Original_Site, + string Original_요청자, + string Original_수리완료일, + string Original_Status, + string Original_분류, + string Original_Line, + string Original_Division, + string Original_Team, + string Original_Process, + string Original_Equipment, + string Original_Model, + string Original_BoardName, + string Original_BoardVender, + string Original_SN, + global::System.Nullable Original_QTY, + global::System.Nullable Original_NPrice, + global::System.Nullable Original_OPrice, + global::System.Nullable Original_RepairCost, + global::System.Nullable Original_CostReduction, + string Original_외주업체, + global::System.Nullable Original_RepairTime, + string Original_memo, + global::System.Nullable Original_import, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_refdata) { + 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_pdate == 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_pdate)); + } + if ((Original_uid == 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_uid)); + } + if ((Original_Site == 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_Site)); + } + if ((Original_요청자 == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_요청자)); + } + if ((Original_수리완료일 == null)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_수리완료일)); + } + if ((Original_Status == 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_Status)); + } + if ((Original_분류 == null)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_분류)); + } + if ((Original_Line == 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_Line)); + } + if ((Original_Division == null)) { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_Division)); + } + if ((Original_Team == null)) { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_Team)); + } + if ((Original_Process == null)) { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_Process)); + } + if ((Original_Equipment == null)) { + this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_Equipment)); + } + if ((Original_Model == null)) { + this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[27].Value = ((string)(Original_Model)); + } + if ((Original_BoardName == null)) { + this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[29].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[29].Value = ((string)(Original_BoardName)); + } + if ((Original_BoardVender == null)) { + this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[31].Value = ((string)(Original_BoardVender)); + } + if ((Original_SN == null)) { + this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[33].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[33].Value = ((string)(Original_SN)); + } + if ((Original_QTY.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[35].Value = ((int)(Original_QTY.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[35].Value = global::System.DBNull.Value; + } + if ((Original_NPrice.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[37].Value = ((decimal)(Original_NPrice.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[37].Value = global::System.DBNull.Value; + } + if ((Original_OPrice.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[39].Value = ((decimal)(Original_OPrice.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[39].Value = global::System.DBNull.Value; + } + if ((Original_RepairCost.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[41].Value = ((decimal)(Original_RepairCost.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[41].Value = global::System.DBNull.Value; + } + if ((Original_CostReduction.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[43].Value = ((decimal)(Original_CostReduction.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; + } + if ((Original_외주업체 == null)) { + this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[45].Value = ((string)(Original_외주업체)); + } + if ((Original_RepairTime.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[47].Value = ((double)(Original_RepairTime.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[47].Value = global::System.DBNull.Value; + } + if ((Original_memo == null)) { + this.Adapter.DeleteCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[49].Value = ((string)(Original_memo)); + } + if ((Original_import.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[51].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[51].Value = global::System.DBNull.Value; + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[52].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[53].Value = ((System.DateTime)(Original_wdate)); + if ((Original_refdata.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[55].Value = ((bool)(Original_refdata.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[55].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 pdate, + string uid, + string Site, + string 요청자, + string 수리완료일, + string Status, + string 분류, + string Line, + string Division, + string Team, + string Process, + string Equipment, + string Model, + string BoardName, + string BoardVender, + string 원인, + string 결과, + string SN, + global::System.Nullable QTY, + global::System.Nullable NPrice, + global::System.Nullable OPrice, + global::System.Nullable RepairCost, + global::System.Nullable CostReduction, + string 외주업체, + global::System.Nullable RepairTime, + string memo, + global::System.Nullable import, + string wuid, + System.DateTime wdate, + string 원인2, + string 결과2, + global::System.Nullable refdata) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((pdate == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate)); + } + if ((uid == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(uid)); + } + if ((Site == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Site)); + } + if ((요청자 == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(요청자)); + } + if ((수리완료일 == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(수리완료일)); + } + if ((Status == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Status)); + } + if ((분류 == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(분류)); + } + if ((Line == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Line)); + } + if ((Division == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Division)); + } + if ((Team == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Team)); + } + if ((Process == null)) { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Process)); + } + if ((Equipment == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Equipment)); + } + if ((Model == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(Model)); + } + if ((BoardName == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(BoardName)); + } + if ((BoardVender == null)) { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(BoardVender)); + } + if ((원인 == null)) { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = ((string)(원인)); + } + if ((결과 == null)) { + this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = ((string)(결과)); + } + if ((SN == null)) { + this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = ((string)(SN)); + } + if ((QTY.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[19].Value = ((int)(QTY.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((NPrice.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[20].Value = ((decimal)(NPrice.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((OPrice.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[21].Value = ((decimal)(OPrice.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((RepairCost.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[22].Value = ((decimal)(RepairCost.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((CostReduction.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[23].Value = ((decimal)(CostReduction.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((외주업체 == null)) { + this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[24].Value = ((string)(외주업체)); + } + if ((RepairTime.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[25].Value = ((double)(RepairTime.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((memo == null)) { + this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[26].Value = ((string)(memo)); + } + if ((import.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[27].Value = ((bool)(import.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value; + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.InsertCommand.Parameters[28].Value = ((string)(wuid)); + } + this.Adapter.InsertCommand.Parameters[29].Value = ((System.DateTime)(wdate)); + if ((원인2 == null)) { + this.Adapter.InsertCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[30].Value = ((string)(원인2)); + } + if ((결과2 == null)) { + this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[31].Value = ((string)(결과2)); + } + if ((refdata.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[32].Value = ((bool)(refdata.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[32].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 pdate, + string uid, + string Site, + string 요청자, + string 수리완료일, + string Status, + string 분류, + string Line, + string Division, + string Team, + string Process, + string Equipment, + string Model, + string BoardName, + string BoardVender, + string 원인, + string 결과, + string SN, + global::System.Nullable QTY, + global::System.Nullable NPrice, + global::System.Nullable OPrice, + global::System.Nullable RepairCost, + global::System.Nullable CostReduction, + string 외주업체, + global::System.Nullable RepairTime, + string memo, + global::System.Nullable import, + string wuid, + System.DateTime wdate, + string 원인2, + string 결과2, + global::System.Nullable refdata, + int Original_idx, + string Original_gcode, + string Original_pdate, + string Original_uid, + string Original_Site, + string Original_요청자, + string Original_수리완료일, + string Original_Status, + string Original_분류, + string Original_Line, + string Original_Division, + string Original_Team, + string Original_Process, + string Original_Equipment, + string Original_Model, + string Original_BoardName, + string Original_BoardVender, + string Original_SN, + global::System.Nullable Original_QTY, + global::System.Nullable Original_NPrice, + global::System.Nullable Original_OPrice, + global::System.Nullable Original_RepairCost, + global::System.Nullable Original_CostReduction, + string Original_외주업체, + global::System.Nullable Original_RepairTime, + string Original_memo, + global::System.Nullable Original_import, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_refdata, + int idx) { + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); + } + if ((pdate == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate)); + } + if ((uid == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(uid)); + } + if ((Site == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Site)); + } + if ((요청자 == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(요청자)); + } + if ((수리완료일 == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(수리완료일)); + } + if ((Status == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Status)); + } + if ((분류 == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(분류)); + } + if ((Line == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Line)); + } + if ((Division == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Division)); + } + if ((Team == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Team)); + } + if ((Process == null)) { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Process)); + } + if ((Equipment == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Equipment)); + } + if ((Model == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Model)); + } + if ((BoardName == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(BoardName)); + } + if ((BoardVender == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(BoardVender)); + } + if ((원인 == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(원인)); + } + if ((결과 == null)) { + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(결과)); + } + if ((SN == null)) { + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(SN)); + } + if ((QTY.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(QTY.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((NPrice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((decimal)(NPrice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((OPrice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(OPrice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((RepairCost.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((decimal)(RepairCost.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((CostReduction.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((decimal)(CostReduction.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((외주업체 == null)) { + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(외주업체)); + } + if ((RepairTime.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(RepairTime.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((memo == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(memo)); + } + if ((import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[27].Value = ((bool)(import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(wuid)); + } + this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(wdate)); + if ((원인2 == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(원인2)); + } + if ((결과2 == null)) { + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(결과2)); + } + if ((refdata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[32].Value = ((bool)(refdata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_idx)); + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_gcode)); + } + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_pdate)); + } + if ((Original_uid == null)) { + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_uid)); + } + if ((Original_Site == null)) { + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_Site)); + } + if ((Original_요청자 == null)) { + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_요청자)); + } + if ((Original_수리완료일 == null)) { + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_수리완료일)); + } + if ((Original_Status == null)) { + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_Status)); + } + if ((Original_분류 == null)) { + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_분류)); + } + if ((Original_Line == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_Line)); + } + if ((Original_Division == null)) { + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_Division)); + } + if ((Original_Team == null)) { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_Team)); + } + if ((Original_Process == null)) { + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_Process)); + } + if ((Original_Equipment == null)) { + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_Equipment)); + } + if ((Original_Model == null)) { + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_Model)); + } + if ((Original_BoardName == null)) { + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_BoardName)); + } + if ((Original_BoardVender == null)) { + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_BoardVender)); + } + if ((Original_SN == null)) { + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_SN)); + } + if ((Original_QTY.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_QTY.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; + } + if ((Original_NPrice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[70].Value = ((decimal)(Original_NPrice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; + } + if ((Original_OPrice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_OPrice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; + } + if ((Original_RepairCost.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[74].Value = ((decimal)(Original_RepairCost.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; + } + if ((Original_CostReduction.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[76].Value = ((decimal)(Original_CostReduction.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; + } + if ((Original_외주업체 == null)) { + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_외주업체)); + } + if ((Original_RepairTime.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[80].Value = ((double)(Original_RepairTime.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; + } + if ((Original_memo == null)) { + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_memo)); + } + if ((Original_import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[84].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value; + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[86].Value = ((System.DateTime)(Original_wdate)); + if ((Original_refdata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[88].Value = ((bool)(Original_refdata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[89].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", "16.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 pdate, + string uid, + string Site, + string 요청자, + string 수리완료일, + string Status, + string 분류, + string Line, + string Division, + string Team, + string Process, + string Equipment, + string Model, + string BoardName, + string BoardVender, + string 원인, + string 결과, + string SN, + global::System.Nullable QTY, + global::System.Nullable NPrice, + global::System.Nullable OPrice, + global::System.Nullable RepairCost, + global::System.Nullable CostReduction, + string 외주업체, + global::System.Nullable RepairTime, + string memo, + global::System.Nullable import, + string wuid, + System.DateTime wdate, + string 원인2, + string 결과2, + global::System.Nullable refdata, + int Original_idx, + string Original_gcode, + string Original_pdate, + string Original_uid, + string Original_Site, + string Original_요청자, + string Original_수리완료일, + string Original_Status, + string Original_분류, + string Original_Line, + string Original_Division, + string Original_Team, + string Original_Process, + string Original_Equipment, + string Original_Model, + string Original_BoardName, + string Original_BoardVender, + string Original_SN, + global::System.Nullable Original_QTY, + global::System.Nullable Original_NPrice, + global::System.Nullable Original_OPrice, + global::System.Nullable Original_RepairCost, + global::System.Nullable Original_CostReduction, + string Original_외주업체, + global::System.Nullable Original_RepairTime, + string Original_memo, + global::System.Nullable Original_import, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_refdata) { + return this.Update(gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata, Original_idx, Original_gcode, Original_pdate, Original_uid, Original_Site, Original_요청자, Original_수리완료일, Original_Status, Original_분류, Original_Line, Original_Division, Original_Team, Original_Process, Original_Equipment, Original_Model, Original_BoardName, Original_BoardVender, Original_SN, Original_QTY, Original_NPrice, Original_OPrice, Original_RepairCost, Original_CostReduction, Original_외주업체, Original_RepairTime, Original_memo, Original_import, Original_wuid, Original_wdate, Original_refdata, 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 EETGW_JobReport_EBoardTableAdapter _eETGW_JobReport_EBoardTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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 EETGW_JobReport_EBoardTableAdapter EETGW_JobReport_EBoardTableAdapter { + get { + return this._eETGW_JobReport_EBoardTableAdapter; + } + set { + this._eETGW_JobReport_EBoardTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._eETGW_JobReport_EBoardTableAdapter != null) + && (this._eETGW_JobReport_EBoardTableAdapter.Connection != null))) { + return this._eETGW_JobReport_EBoardTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._eETGW_JobReport_EBoardTableAdapter != 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", "16.0.0.0")] + private int UpdateUpdatedRows(DSEboard dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._eETGW_JobReport_EBoardTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.EETGW_JobReport_EBoard.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._eETGW_JobReport_EBoardTableAdapter.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", "16.0.0.0")] + private int UpdateInsertedRows(DSEboard dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._eETGW_JobReport_EBoardTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.EETGW_JobReport_EBoard.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._eETGW_JobReport_EBoardTableAdapter.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", "16.0.0.0")] + private int UpdateDeletedRows(DSEboard dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._eETGW_JobReport_EBoardTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.EETGW_JobReport_EBoard.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._eETGW_JobReport_EBoardTableAdapter.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", "16.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", "16.0.0.0")] + public virtual int UpdateAll(DSEboard dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._eETGW_JobReport_EBoardTableAdapter != null) + && (this.MatchTableAdapterConnection(this._eETGW_JobReport_EBoardTableAdapter.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._eETGW_JobReport_EBoardTableAdapter != null)) { + revertConnections.Add(this._eETGW_JobReport_EBoardTableAdapter, this._eETGW_JobReport_EBoardTableAdapter.Connection); + this._eETGW_JobReport_EBoardTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._eETGW_JobReport_EBoardTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._eETGW_JobReport_EBoardTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._eETGW_JobReport_EBoardTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._eETGW_JobReport_EBoardTableAdapter.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._eETGW_JobReport_EBoardTableAdapter != null)) { + this._eETGW_JobReport_EBoardTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._eETGW_JobReport_EBoardTableAdapter])); + this._eETGW_JobReport_EBoardTableAdapter.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", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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/FPJ0000/DSEboard.xsc b/SubProject/FPJ0000/DSEboard.xsc new file mode 100644 index 0000000..551fc56 --- /dev/null +++ b/SubProject/FPJ0000/DSEboard.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/SubProject/FPJ0000/DSEboard.xsd b/SubProject/FPJ0000/DSEboard.xsd new file mode 100644 index 0000000..6040c40 --- /dev/null +++ b/SubProject/FPJ0000/DSEboard.xsd @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + DELETE FROM [EETGW_JobReport_EBoard] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_Site = 1 AND [Site] IS NULL) OR ([Site] = @Original_Site)) AND ((@IsNull_요청자 = 1 AND [요청자] IS NULL) OR ([요청자] = @Original_요청자)) AND ((@IsNull_수리완료일 = 1 AND [수리완료일] IS NULL) OR ([수리완료일] = @Original_수리완료일)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_분류 = 1 AND [분류] IS NULL) OR ([분류] = @Original_분류)) AND ((@IsNull_Line = 1 AND [Line] IS NULL) OR ([Line] = @Original_Line)) AND ((@IsNull_Division = 1 AND [Division] IS NULL) OR ([Division] = @Original_Division)) AND ((@IsNull_Team = 1 AND [Team] IS NULL) OR ([Team] = @Original_Team)) AND ((@IsNull_Process = 1 AND [Process] IS NULL) OR ([Process] = @Original_Process)) AND ((@IsNull_Equipment = 1 AND [Equipment] IS NULL) OR ([Equipment] = @Original_Equipment)) AND ((@IsNull_Model = 1 AND [Model] IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_BoardName = 1 AND [BoardName] IS NULL) OR ([BoardName] = @Original_BoardName)) AND ((@IsNull_BoardVender = 1 AND [BoardVender] IS NULL) OR ([BoardVender] = @Original_BoardVender)) AND ((@IsNull_SN = 1 AND [SN] IS NULL) OR ([SN] = @Original_SN)) AND ((@IsNull_QTY = 1 AND [QTY] IS NULL) OR ([QTY] = @Original_QTY)) AND ((@IsNull_NPrice = 1 AND [NPrice] IS NULL) OR ([NPrice] = @Original_NPrice)) AND ((@IsNull_OPrice = 1 AND [OPrice] IS NULL) OR ([OPrice] = @Original_OPrice)) AND ((@IsNull_RepairCost = 1 AND [RepairCost] IS NULL) OR ([RepairCost] = @Original_RepairCost)) AND ((@IsNull_CostReduction = 1 AND [CostReduction] IS NULL) OR ([CostReduction] = @Original_CostReduction)) AND ((@IsNull_외주업체 = 1 AND [외주업체] IS NULL) OR ([외주업체] = @Original_외주업체)) AND ((@IsNull_RepairTime = 1 AND [RepairTime] IS NULL) OR ([RepairTime] = @Original_RepairTime)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_refdata = 1 AND [refdata] IS NULL) OR ([refdata] = @Original_refdata))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [EETGW_JobReport_EBoard] ([gcode], [pdate], [uid], [Site], [요청자], [수리완료일], [Status], [분류], [Line], [Division], [Team], [Process], [Equipment], [Model], [BoardName], [BoardVender], [원인], [결과], [SN], [QTY], [NPrice], [OPrice], [RepairCost], [CostReduction], [외주업체], [RepairTime], [memo], [import], [wuid], [wdate], [원인2], [결과2], [refdata]) VALUES (@gcode, @pdate, @uid, @Site, @요청자, @수리완료일, @Status, @분류, @Line, @Division, @Team, @Process, @Equipment, @Model, @BoardName, @BoardVender, @원인, @결과, @SN, @QTY, @NPrice, @OPrice, @RepairCost, @CostReduction, @외주업체, @RepairTime, @memo, @import, @wuid, @wdate, @원인2, @결과2, @refdata); +SELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata FROM EETGW_JobReport_EBoard WHERE (idx = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, + RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata +FROM EETGW_JobReport_EBoard +WHERE (gcode = @gcode) + + + + + + + + UPDATE [EETGW_JobReport_EBoard] SET [gcode] = @gcode, [pdate] = @pdate, [uid] = @uid, [Site] = @Site, [요청자] = @요청자, [수리완료일] = @수리완료일, [Status] = @Status, [분류] = @분류, [Line] = @Line, [Division] = @Division, [Team] = @Team, [Process] = @Process, [Equipment] = @Equipment, [Model] = @Model, [BoardName] = @BoardName, [BoardVender] = @BoardVender, [원인] = @원인, [결과] = @결과, [SN] = @SN, [QTY] = @QTY, [NPrice] = @NPrice, [OPrice] = @OPrice, [RepairCost] = @RepairCost, [CostReduction] = @CostReduction, [외주업체] = @외주업체, [RepairTime] = @RepairTime, [memo] = @memo, [import] = @import, [wuid] = @wuid, [wdate] = @wdate, [원인2] = @원인2, [결과2] = @결과2, [refdata] = @refdata WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_Site = 1 AND [Site] IS NULL) OR ([Site] = @Original_Site)) AND ((@IsNull_요청자 = 1 AND [요청자] IS NULL) OR ([요청자] = @Original_요청자)) AND ((@IsNull_수리완료일 = 1 AND [수리완료일] IS NULL) OR ([수리완료일] = @Original_수리완료일)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_분류 = 1 AND [분류] IS NULL) OR ([분류] = @Original_분류)) AND ((@IsNull_Line = 1 AND [Line] IS NULL) OR ([Line] = @Original_Line)) AND ((@IsNull_Division = 1 AND [Division] IS NULL) OR ([Division] = @Original_Division)) AND ((@IsNull_Team = 1 AND [Team] IS NULL) OR ([Team] = @Original_Team)) AND ((@IsNull_Process = 1 AND [Process] IS NULL) OR ([Process] = @Original_Process)) AND ((@IsNull_Equipment = 1 AND [Equipment] IS NULL) OR ([Equipment] = @Original_Equipment)) AND ((@IsNull_Model = 1 AND [Model] IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_BoardName = 1 AND [BoardName] IS NULL) OR ([BoardName] = @Original_BoardName)) AND ((@IsNull_BoardVender = 1 AND [BoardVender] IS NULL) OR ([BoardVender] = @Original_BoardVender)) AND ((@IsNull_SN = 1 AND [SN] IS NULL) OR ([SN] = @Original_SN)) AND ((@IsNull_QTY = 1 AND [QTY] IS NULL) OR ([QTY] = @Original_QTY)) AND ((@IsNull_NPrice = 1 AND [NPrice] IS NULL) OR ([NPrice] = @Original_NPrice)) AND ((@IsNull_OPrice = 1 AND [OPrice] IS NULL) OR ([OPrice] = @Original_OPrice)) AND ((@IsNull_RepairCost = 1 AND [RepairCost] IS NULL) OR ([RepairCost] = @Original_RepairCost)) AND ((@IsNull_CostReduction = 1 AND [CostReduction] IS NULL) OR ([CostReduction] = @Original_CostReduction)) AND ((@IsNull_외주업체 = 1 AND [외주업체] IS NULL) OR ([외주업체] = @Original_외주업체)) AND ((@IsNull_RepairTime = 1 AND [RepairTime] IS NULL) OR ([RepairTime] = @Original_RepairTime)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_refdata = 1 AND [refdata] IS NULL) OR ([refdata] = @Original_refdata))); +SELECT idx, gcode, pdate, uid, Site, 요청자, 수리완료일, Status, 분류, Line, Division, Team, Process, Equipment, Model, BoardName, BoardVender, 원인, 결과, SN, QTY, NPrice, OPrice, RepairCost, CostReduction, 외주업체, RepairTime, memo, import, wuid, wdate, 원인2, 결과2, refdata FROM EETGW_JobReport_EBoard WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SubProject/FPJ0000/DSEboard.xss b/SubProject/FPJ0000/DSEboard.xss new file mode 100644 index 0000000..d1e3b2c --- /dev/null +++ b/SubProject/FPJ0000/DSEboard.xss @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/SubProject/FPJ0000/EBoard/Report1.rdlc b/SubProject/FPJ0000/EBoard/Report1.rdlc new file mode 100644 index 0000000..55b2b12 --- /dev/null +++ b/SubProject/FPJ0000/EBoard/Report1.rdlc @@ -0,0 +1,1050 @@ + + + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 836fd008-d9eb-4092-a0c0-ba8bcda372fc + + + + + + DSEboard + /* Local Query */ + + + + idx + System.Int32 + + + gcode + System.String + + + pdate + System.String + + + uid + System.String + + + Site + System.String + + + 요청자 + System.String + + + 수리완료일 + System.String + + + Status + System.String + + + 분류 + System.String + + + Line + System.String + + + Division + System.String + + + Team + System.String + + + Process + System.String + + + Equipment + System.String + + + Model + System.String + + + BoardName + System.String + + + BoardVender + System.String + + + 원인 + System.String + + + 결과 + System.String + + + SN + System.String + + + QTY + System.Int32 + + + NPrice + System.Decimal + + + OPrice + System.Decimal + + + RepairCost + System.Decimal + + + CostReduction + System.Decimal + + + 외주업체 + System.String + + + RepairTime + System.Double + + + memo + System.String + + + import + System.Boolean + + + wuid + System.String + + + wdate + System.DateTime + + + 원인2 + System.String + + + 결과2 + System.String + + + + DSEboard + D:\Source\##### 완료아이템\(014) GroupWare\Source\SubProject\FPJ0000\DSEboard.xsd + EETGW_JobReport_EBoard + Fill + GetData + EETGW_JobReport_EBoardTableAdapter + + + + + + + + + + + + + + + true + true + + + + + uid + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 2.5cm + + + 2.5cm + + + 2.5cm + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!QTY.Value) + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!RepairCost.Value) + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + =Fields!분류.Value + + + + + =Fields!요청자.Value + + + + 0.6cm + + + true + true + + + + + =Fields!분류.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + true + true + + + + + cnt + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + true + true + + + + + Repair Cost + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + 0.6cm + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + =Fields!uid.Value + + + + + =Fields!uid.Value + + + + 2.5cm + + + true + true + + + + + =Fields!uid.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + DataSet1 + 0.89641cm + 1.00224cm + 1.8cm + 10cm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8pt + #5c5c5c + + + + + + + False + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + 8pt + #5c5c5c + + + + + + + False + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + 8pt + #5c5c5c + + + + + + + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + 8pt + #5c5c5c + + + + + + + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + + False + + NaN + NaN + NaN + + + + + + + NaN + Opposite + NaN + NaN + + + + + + + NaN + NaN + NaN + + + + + + + NaN + Opposite + NaN + NaN + + + Default + + + + + + TopLeft + + + + + Black + Black + + + + + + + + Black + Black + + + + + 차트 제목 + + TopLeft + + + fefgwerg + + + + Pacific + + + + + 사용 가능한 데이터 없음 + + + 3.51578cm + 1.00224cm + 12.59354cm + 14.56438cm + 1 + + + White + None + + + + 6.92708in +