diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index 76de144..a54c89b 100644 --- a/Project/Properties/AssemblyInfo.cs +++ b/Project/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 지정되도록 할 수 있습니다. // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("23.03.06.2350")] -[assembly: AssemblyFileVersion("23.03.06.2350")] +[assembly: AssemblyVersion("23.03.07.2300")] +[assembly: AssemblyFileVersion("23.03.07.2300")] diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 90ad0b2..c4143b6 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -62,7 +62,6 @@ this.sPR구매ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_project = new System.Windows.Forms.ToolStripMenuItem(); this.목록ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.구매진행현황ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.layoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mn_dailyhistory = new System.Windows.Forms.ToolStripMenuItem(); this.목록ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); @@ -132,6 +131,7 @@ this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator(); this.아이템비활성화하기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sPR설정ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem13 = 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(); @@ -377,7 +377,7 @@ // 일반구매ToolStripMenuItem // this.일반구매ToolStripMenuItem.Name = "일반구매ToolStripMenuItem"; - this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.일반구매ToolStripMenuItem.Size = new System.Drawing.Size(136, 24); this.일반구매ToolStripMenuItem.Text = "NR 구매"; this.일반구매ToolStripMenuItem.Click += new System.EventHandler(this.일반구매ToolStripMenuItem_Click); // @@ -385,7 +385,7 @@ // this.cR구매ToolStripMenuItem.ForeColor = System.Drawing.Color.Black; this.cR구매ToolStripMenuItem.Name = "cR구매ToolStripMenuItem"; - this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.cR구매ToolStripMenuItem.Size = new System.Drawing.Size(136, 24); this.cR구매ToolStripMenuItem.Text = "CR 구매"; this.cR구매ToolStripMenuItem.Click += new System.EventHandler(this.cR구매ToolStripMenuItem_Click); // @@ -393,7 +393,7 @@ // this.sPR구매ToolStripMenuItem.Enabled = false; this.sPR구매ToolStripMenuItem.Name = "sPR구매ToolStripMenuItem"; - this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.sPR구매ToolStripMenuItem.Size = new System.Drawing.Size(136, 24); this.sPR구매ToolStripMenuItem.Text = "SPR 구매"; this.sPR구매ToolStripMenuItem.Click += new System.EventHandler(this.sPR구매ToolStripMenuItem_Click); // @@ -401,7 +401,6 @@ // this.mn_project.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.목록ToolStripMenuItem, - this.구매진행현황ToolStripMenuItem, this.layoutToolStripMenuItem}); this.mn_project.Image = ((System.Drawing.Image)(resources.GetObject("mn_project.Image"))); this.mn_project.Name = "mn_project"; @@ -416,13 +415,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(180, 24); - this.구매진행현황ToolStripMenuItem.Text = "CR구매현황"; - this.구매진행현황ToolStripMenuItem.Click += new System.EventHandler(this.구매진행현황ToolStripMenuItem_Click); - // // layoutToolStripMenuItem // this.layoutToolStripMenuItem.Name = "layoutToolStripMenuItem"; @@ -839,6 +831,7 @@ this.toolStripMenuItem5, this.아이템비활성화하기ToolStripMenuItem, this.sPR설정ToolStripMenuItem, + this.toolStripMenuItem13, this.프로젝트스케쥴담당자사번업데이트ToolStripMenuItem}); this.btDev.ForeColor = System.Drawing.Color.Blue; this.btDev.Image = ((System.Drawing.Image)(resources.GetObject("btDev.Image"))); @@ -988,6 +981,13 @@ this.sPR설정ToolStripMenuItem.Text = "SPR 설정"; this.sPR설정ToolStripMenuItem.Click += new System.EventHandler(this.sPR설정ToolStripMenuItem_Click); // + // toolStripMenuItem13 + // + this.toolStripMenuItem13.Name = "toolStripMenuItem13"; + this.toolStripMenuItem13.Size = new System.Drawing.Size(302, 24); + this.toolStripMenuItem13.Text = "CR구매 품목 연결안된 데이터 연결"; + this.toolStripMenuItem13.Click += new System.EventHandler(this.toolStripMenuItem13_Click); + // // 프로젝트스케쥴담당자사번업데이트ToolStripMenuItem // this.프로젝트스케쥴담당자사번업데이트ToolStripMenuItem.Name = "프로젝트스케쥴담당자사번업데이트ToolStripMenuItem"; @@ -1077,12 +1077,14 @@ // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButton1.ForeColor = System.Drawing.Color.Red; this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Size = new System.Drawing.Size(26, 20); this.toolStripButton1.Text = "구매진행상황"; this.toolStripButton1.ToolTipText = "구매진행상황"; + this.toolStripButton1.Visible = false; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_2); // // toolStripButton2 @@ -1212,7 +1214,6 @@ private System.Windows.Forms.ToolStripStatusLabel lbSvr; private System.Windows.Forms.ToolStripMenuItem 비용절감ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 목록ToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem 구매진행현황ToolStripMenuItem; private System.Windows.Forms.ToolStripButton toolStripButton1; private System.Windows.Forms.ToolStripButton toolStripButton2; private System.Windows.Forms.ToolStripMenuItem 목록ToolStripMenuItem1; @@ -1251,6 +1252,7 @@ private System.Windows.Forms.ToolStripMenuItem 일반구매ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem cR구매ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem sPR구매ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem13; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index cc35b11..3f5bd19 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -11,1324 +11,1401 @@ 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 { } - } - - 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 - //{ - // var datapath = FCOMMON.DBM.getCodeSavlue("55", "01"); - // 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 = "PUCHASENR"; - if (!ShowForm(formkey)) - AddForm(formkey, new FEQ0000.fPurchaseNR(),"NR구매"); - } - void menu_crpurchase() - { - // FCOMMON.Util.MsgE("CR구매현황은 신규 개발 기능으로 아직 open 되지 않았습니다"); - string formkey = "PUCHASECR"; - if (!ShowForm(formkey)) - AddForm(formkey, new FEQ0000.fPurchaseCR(),"CR구매"); - } - void menu_sprpurchase() - { - FCOMMON.Util.MsgE("SPR구매현황은 신규 개발 기능으로 아직 open 되지 않았습니다"); - //string formkey = "PUCHASESPR"; - //if (!ShowForm(formkey)) - // AddForm(formkey, new FEQ0000.fPurchase(), "SPR구매"); - } - - private void nRPurchaseToolStripMenuItem_Click(object sender, EventArgs e) - { - - } - - 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.fUserGroupDev(); - 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; - } - - string formkey = "fUserAuth"; - if (!ShowForm(formkey)) - AddForm(formkey, new FCM0000.fUserAuth()); - - } - - 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) - { - 휴가요청(); - } - void 휴가요청() - { - 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) - { - //내버젼이 낮다 - if (Util.MsgQ("현재 구 버젼을 사용하고 있습니다.\n업데이트를 실행 할까요?") == DialogResult.OK) - UpdateRun(); - } - else - { - 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(); - } - - 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(); - } - - private void sPR설정ToolStripMenuItem_Click(object sender, EventArgs e) - { - var lines = Clipboard.GetText().Replace("\r", "").Split('\n'); - List items = new List(); - foreach (var lin in lines) - { - if (string.IsNullOrEmpty(lin)) continue; - if (lin.Length == 9) items.Add(lin.Trim()); - } - - var dlg = FCOMMON.Util.MsgQ($"{lines.Length} 건의 자료를 SPR로 설정할까요?"); - if (dlg != DialogResult.Yes) return; - - var cn = FCOMMON.DBM.getCn(); - cn.Open(); - var cmd = new System.Data.SqlClient.SqlCommand("", cn); - var cnt = 0; - foreach (var item in items) - { - var sql = $"update Items set Storage = 'SPR' where gcode = '{FCOMMON.info.Login.gcode}' and sid='{item}'"; - cmd.CommandText = sql; - cnt += cmd.ExecuteNonQuery(); - if (cnt % 25 == 0) - { - this.Text = $"{cnt}/{items.Count}"; - Application.DoEvents(); - } - } - cn.Close(); - FCOMMON.Util.MsgI($"{cnt}건의 자료가 변경 되었습니다"); - } - - private void toolStripButton3_Click(object sender, EventArgs e) - { - 휴가요청(); - } + 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 + //{ + // var datapath = FCOMMON.DBM.getCodeSavlue("55", "01"); + // 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 = "PUCHASENR"; + if (!ShowForm(formkey)) + AddForm(formkey, new FEQ0000.fPurchaseNR(), "NR구매"); + } + void menu_crpurchase() + { + // FCOMMON.Util.MsgE("CR구매현황은 신규 개발 기능으로 아직 open 되지 않았습니다"); + string formkey = "PUCHASECR"; + if (!ShowForm(formkey)) + AddForm(formkey, new FEQ0000.fPurchaseCR(), "CR구매"); + } + void menu_sprpurchase() + { + FCOMMON.Util.MsgE("SPR구매현황은 신규 개발 기능으로 아직 open 되지 않았습니다"); + //string formkey = "PUCHASESPR"; + //if (!ShowForm(formkey)) + // AddForm(formkey, new FEQ0000.fPurchase(), "SPR구매"); + } + + private void nRPurchaseToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + 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.fUserGroupDev(); + 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; + } + + string formkey = "fUserAuth"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fUserAuth()); + + } + + 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(); + } + + 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) + { + 휴가요청(); + } + void 휴가요청() + { + 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) + { + //내버젼이 낮다 + if (Util.MsgQ("현재 구 버젼을 사용하고 있습니다.\n업데이트를 실행 할까요?") == DialogResult.OK) + UpdateRun(); + } + else + { + 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(); + } + + 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(); + } + + private void sPR설정ToolStripMenuItem_Click(object sender, EventArgs e) + { + var lines = Clipboard.GetText().Replace("\r", "").Split('\n'); + List items = new List(); + foreach (var lin in lines) + { + if (string.IsNullOrEmpty(lin)) continue; + if (lin.Length == 9) items.Add(lin.Trim()); + } + + var dlg = FCOMMON.Util.MsgQ($"{lines.Length} 건의 자료를 SPR로 설정할까요?"); + if (dlg != DialogResult.Yes) return; + + var cn = FCOMMON.DBM.getCn(); + cn.Open(); + var cmd = new System.Data.SqlClient.SqlCommand("", cn); + var cnt = 0; + foreach (var item in items) + { + var sql = $"update Items set Storage = 'SPR' where gcode = '{FCOMMON.info.Login.gcode}' and sid='{item}'"; + cmd.CommandText = sql; + cnt += cmd.ExecuteNonQuery(); + if (cnt % 25 == 0) + { + this.Text = $"{cnt}/{items.Count}"; + Application.DoEvents(); + } + } + cn.Close(); + FCOMMON.Util.MsgI($"{cnt}건의 자료가 변경 되었습니다"); + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + 휴가요청(); + } private void statusToolStripMenuItem_Click(object sender, EventArgs e) { - } + } private void 프로젝트스케쥴담당자사번업데이트ToolStripMenuItem_Click(object sender, EventArgs e) { - var sql = "select idx,uidname,gcode from EETGW_ProjectsSchedule where isnull(uidname ,'') <> ''"; - var cn = FCOMMON.DBM.getCn(); - var cnU = FCOMMON.DBM.getCn(); - cn.Open(); - cnU.Open(); + var sql = "select idx,uidname,gcode from EETGW_ProjectsSchedule where isnull(uidname ,'') <> ''"; + 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 EETGW_ProjectsSchedule set uid=@uid where idx=@idx"; - var cmdupdate = new System.Data.SqlClient.SqlCommand(sqlU, cnU); - cmdupdate.Parameters.Add("uid", SqlDbType.VarChar); - cmdupdate.Parameters.Add("gcode", SqlDbType.VarChar); - cmdupdate.Parameters.Add("name", SqlDbType.VarChar); - cmdupdate.Parameters.Add("idx", SqlDbType.Int); - //cmdupdate.Parameters["supply"].Value = ""; - //cmdupdate.Parameters.Add("sidx", SqlDbType.Int); + //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); + var sqlU = "update EETGW_ProjectsSchedule set uid=@uid where idx=@idx"; + var cmdupdate = new System.Data.SqlClient.SqlCommand(sqlU, cnU); + cmdupdate.Parameters.Add("uid", SqlDbType.VarChar); + cmdupdate.Parameters.Add("gcode", SqlDbType.VarChar); + cmdupdate.Parameters.Add("name", SqlDbType.VarChar); + cmdupdate.Parameters.Add("idx", SqlDbType.Int); + //cmdupdate.Parameters["supply"].Value = ""; + //cmdupdate.Parameters.Add("sidx", SqlDbType.Int); - var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); - var dar = cmd.ExecuteReader(); + var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); + var dar = cmd.ExecuteReader(); - List idxlist = new List(); - while (dar.Read()) - { - //sid 가 잇다면 해당 sid 의 suuply를 찾아서 업데이트한다. - var sid = int.Parse(dar["idx"].ToString()); - var itemmodel = dar["uidname"].ToString().Trim(); - var itemname = dar["gcode"].ToString().Trim(); + List idxlist = new List(); + while (dar.Read()) + { + //sid 가 잇다면 해당 sid 의 suuply를 찾아서 업데이트한다. + var sid = int.Parse(dar["idx"].ToString()); + var itemmodel = dar["uidname"].ToString().Trim(); + var itemname = dar["gcode"].ToString().Trim(); - //해당uidname 을 프로젝트 정보에서 찾는다. - cmdupdate.CommandText = "select isnull(id,'') from vGroupUser where gcode = @gcode and [name] = @name"; - cmdupdate.Parameters["gcode"].Value = itemname; - cmdupdate.Parameters["name"].Value = itemmodel; - cmdupdate.Parameters["uid"].Value = string.Empty; - cmdupdate.Parameters["idx"].Value = -1; - var obj_uid = cmdupdate.ExecuteScalar(); - if (obj_uid == null) continue; - var str_uid = obj_uid.ToString(); - if (str_uid.isEmpty()) continue; + //해당uidname 을 프로젝트 정보에서 찾는다. + cmdupdate.CommandText = "select isnull(id,'') from vGroupUser where gcode = @gcode and [name] = @name"; + cmdupdate.Parameters["gcode"].Value = itemname; + cmdupdate.Parameters["name"].Value = itemmodel; + cmdupdate.Parameters["uid"].Value = string.Empty; + cmdupdate.Parameters["idx"].Value = -1; + var obj_uid = cmdupdate.ExecuteScalar(); + if (obj_uid == null) continue; + var str_uid = obj_uid.ToString(); + if (str_uid.isEmpty()) continue; - //데이터를 업데이트한다 - cmdupdate.CommandText = "update EETGW_ProjectsSchedule set uid=@uid where idx=@idx and gcode = @gcode"; - cmdupdate.Parameters["uid"].Value = str_uid; - cmdupdate.Parameters["idx"].Value = sid; - var cnt = cmdupdate.ExecuteNonQuery(); + //데이터를 업데이트한다 + cmdupdate.CommandText = "update EETGW_ProjectsSchedule set uid=@uid where idx=@idx and gcode = @gcode"; + cmdupdate.Parameters["uid"].Value = str_uid; + cmdupdate.Parameters["idx"].Value = sid; + var cnt = cmdupdate.ExecuteNonQuery(); if (cnt == 1) Console.WriteLine($"update {cnt} {itemmodel} -> {str_uid}"); - } + } - cmd.Dispose(); - dar.Close(); - dar.Dispose(); + cmd.Dispose(); + dar.Close(); + dar.Dispose(); - cn.Close(); - cn.Dispose(); - cnU.Close(); - cnU.Dispose(); + cn.Close(); + cn.Dispose(); + cnU.Close(); + cnU.Dispose(); - FCOMMON.Util.MsgI("complete"); - } + FCOMMON.Util.MsgI("complete"); + } private void 그룹정보ToolStripMenuItem_Click(object sender, EventArgs e) { - var f = new FCM0000.fUserGroup(); - f.ShowDialog(); - } + var f = new FCM0000.fUserGroup(); + f.ShowDialog(); + } private void 프로그램사용관련알림ToolStripMenuItem_Click(object sender, EventArgs e) { - var dlg = FCOMMON.Util.MsgQ("프로그램이 분리되었습니다.\n\n" + - "지금 다운로드 URL을 열까요?\n\n문의\n\n장비기술팀 : 진재훈\n자동화기술팀 : 정재희"); - if(dlg == DialogResult.Yes) + var dlg = FCOMMON.Util.MsgQ("프로그램이 분리되었습니다.\n\n" + + "지금 다운로드 URL을 열까요?\n\n문의\n\n장비기술팀 : 진재훈\n자동화기술팀 : 정재희"); + if (dlg == DialogResult.Yes) { - var url = "https://amkor-my.sharepoint.com/:u:/g/personal/chikyun_kim_amkor_co_kr/EX2HxdH5H9ZLqa8fyr0nD3QBQJxhdKfsfGZiJboAABBS5g?e=aaDVzZ"; - Util.RunExplorer(url); + var url = "https://amkor-my.sharepoint.com/:u:/g/personal/chikyun_kim_amkor_co_kr/EX2HxdH5H9ZLqa8fyr0nD3QBQJxhdKfsfGZiJboAABBS5g?e=aaDVzZ"; + Util.RunExplorer(url); - } + } } private void 일반구매ToolStripMenuItem_Click(object sender, EventArgs e) { - menu_nrpurchase(); - } + menu_nrpurchase(); + } private void cR구매ToolStripMenuItem_Click(object sender, EventArgs e) { - menu_crpurchase(); - } + menu_crpurchase(); + } private void sPR구매ToolStripMenuItem_Click(object sender, EventArgs e) { - menu_sprpurchase(); - } + menu_sprpurchase(); + } + + private void toolStripMenuItem13_Click(object sender, EventArgs e) + { + + var sql = $"select * from EETGW_PurchaseCR where gcode = '{FCOMMON.info.Login.gcode}' and isnull(pumidx,-1) = -1 and isnull(sid,'') <> ''"; + var cn = FCOMMON.DBM.getCn(); + var cnU = FCOMMON.DBM.getCn(); + var cn2 = FCOMMON.DBM.getCn(); + cn.Open(); + cnU.Open(); + cn2.Open(); + + //string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); + var sqlU = "update EETGW_PurchaseCR set pumidx=@pumidx where idx=@idx"; + var cmdupdate = new System.Data.SqlClient.SqlCommand(sqlU, cnU); + cmdupdate.Parameters.Add("pumidx", SqlDbType.Int); + cmdupdate.Parameters.Add("idx", SqlDbType.Int); + cmdupdate.Parameters.Add("gcode", SqlDbType.VarChar); + cmdupdate.Parameters.Add("sid", SqlDbType.VarChar); + + var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); + var dar = cmd.ExecuteReader(); + + List idxlist = new List(); + int cnt1 = 0; + int rec = 0; + while (dar.Read()) + { + rec += 1; + //sid 가 잇다면 해당 sid 의 suuply를 찾아서 업데이트한다. + cnt1 += 1; + var purchaseIdx = int.Parse(dar["idx"].ToString()); + var itemsid = dar["sid"].ToString().Trim(); + var itemgcode = dar["gcode"].ToString().Trim(); + + if(cnt1 % 50 == 0) Application.DoEvents(); + + //해당uidname 을 프로젝트 정보에서 찾는다. + cmdupdate.CommandText = $"select max(idx) from Items where gcode = '{itemgcode}' and [sid] = '{itemsid}' and isnull(disable,0) = 0"; + cmdupdate.Parameters.Clear(); + + + var obj_pumidx = cmdupdate.ExecuteScalar(); + if (obj_pumidx == null) continue; + var str_pumidx = obj_pumidx.ToString(); + if (str_pumidx.isEmpty()) + { + //자료가업으니 이것은 추가를 해야한다. + var sql2 = $"insert into Items(gcode,name,sid,model,unit,price,memo,wuid,wdate)" + + " values(@gcode,@name,@sid,@model,@unit,@price,@memo,@wuid,@wdate)"; + var cmd2 = new System.Data.SqlClient.SqlCommand(sql2, cn2); + cmd2.Parameters.Add("gcode", SqlDbType.VarChar).Value = dar["gcode"]; + cmd2.Parameters.Add("name", SqlDbType.VarChar).Value = dar["pumname"]; + cmd2.Parameters.Add("sid", SqlDbType.VarChar).Value = dar["sid"]; + cmd2.Parameters.Add("model", SqlDbType.VarChar).Value = dar["pumscale"]; + cmd2.Parameters.Add("unit", SqlDbType.VarChar).Value = dar["pumunit"]; + cmd2.Parameters.Add("price", SqlDbType.Decimal).Value = dar["pumprice"]; + cmd2.Parameters.Add("memo", SqlDbType.VarChar).Value = dar["bigo"]; + cmd2.Parameters.Add("wuid", SqlDbType.VarChar).Value = "dev"; + cmd2.Parameters.Add("wdate", SqlDbType.SmallDateTime).Value = DateTime.Now; + var cnt2 = cmd2.ExecuteNonQuery(); + } + else + { + //데이터를 업데이트한다 + cmdupdate.CommandText = $"update EETGW_PurchaseCR set pumidx={int.Parse(str_pumidx)} where idx={purchaseIdx}"; + var cnt = cmdupdate.ExecuteNonQuery(); + if (cnt == 1) Console.WriteLine($"[{rec}] update {cnt} {itemsid} -> {str_pumidx}"); + } + + + } + + + cmd.Dispose(); + dar.Close(); + dar.Dispose(); + + + cn.Close(); + cn.Dispose(); + cnU.Close(); + cnU.Dispose(); + cn2.Close(); + cn2.Dispose(); + + FCOMMON.Util.MsgI("complete"); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index c7111d6..15dee18 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -124,16 +124,16 @@ 124, 17 - 306, 17 + 221, 17 - 374, 17 + 289, 17 - 592, 17 + 494, 17 - 476, 17 + 378, 17 @@ -153,26 +153,6 @@ Mi4wAwEBAAAh+QQBAAAXACwAAAAAEAAQAAAIggAvCBwo0IJBCwQTFqwAAQEDhAoXTpgoYQDEhBYqTKDA kYKEBRclciRAoMEDCREuZtw40oKCCihVauxIIYEBmCkJruxYoWfMggYPsOyJU+WAABMqCJDgM+eFg0iV Aigg4WfBo0kFADAYwWnBABSkQjSIcYDYiAMtBHCwFW3ag24HBgQAOw== - - - - - R0lGODlhEAAQAIQAAHan1azQ4ldvj9vp9HSQruTr80lVa+vx9pu811SRuXifuj13uYyz2VFhe4Gt2UNL - XPL1+Orv+ufu9YOqxYyzzNHW3SkxQz5FVWag2T6CuZe3y5G0t+Do7+r0/77a9f///yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIrwA/CBxIsKDAAQESIkBAYYICBQQICCAgMMAACQMyaswo - oUKDih0SZMiwoKTJBQcEVDyAoEMHDy5hdnAg4eMHBBIQeNjJcyeDAjYRRNAQs+hMoAIpRNjQs6eDAgYE - TshpVCYAqAIV5GzKU0GBB1klMKjqEgMHsB8IiOW60+wFgQQgIGDgoC4AABgwADjw9oOAChAkSChAmIPh - AxUswBXAuEEDAwYePLhwwYJNg5gFBgQAOw== - - - - - R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 - /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF - Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY - gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi - SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG - CyQdKlaIsLHjggEBADs= @@ -365,10 +345,30 @@ oMEBBAgsfsjoAQGDCQsKJEhAAcKBChYQajyZkiWECwYMAHiAkAAAlCop4FRA9ABPDxgqABVqQIGEpxQG IMTQoCaEphICaFXAAaEABCmZZtUawECGi0gRHGigloFWCgzOYhRAt0OHASg1yD24cUAFDRcNMhwAWLBB D4UNMwz8ISAAOw== + + + + + R0lGODlhEAAQAIQAAHan1azQ4ldvj9vp9HSQruTr80lVa+vx9pu811SRuXifuj13uYyz2VFhe4Gt2UNL + XPL1+Orv+ufu9YOqxYyzzNHW3SkxQz5FVWag2T6CuZe3y5G0t+Do7+r0/77a9f///yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIrwA/CBxIsKDAAQESIkBAYYICBQQICCAgMMAACQMyaswo + oUKDih0SZMiwoKTJBQcEVDyAoEMHDy5hdnAg4eMHBBIQeNjJcyeDAjYRRNAQs+hMoAIpRNjQs6eDAgYE + TshpVCYAqAIV5GzKU0GBB1klMKjqEgMHsB8IiOW60+wFgQQgIGDgoC4AABgwADjw9oOAChAkSChAmIPh + AxUswBXAuEEDAwYePLhwwYJNg5gFBgQAOw== + + + + + R0lGODlhEAAQAIQfAHWSrbTY+6nU/I+74/r8/drj7FlxkUlVa9Xp/eLs9cvT2oWpxG+bwqPQ+57N++v1 + /lJgeabK7JnB5kNLXJG0z5nA1oyw0SkxQz5FVb7e/aC91tHl8qXB2n2gu////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIpAA/CBxIsKDBgwQ9KFzIsKHCDRUqUFhAsQOAiwAMQFBY + gYDHjyAJKNjogQIBChoQZAgQAEGCiQUOKFxAIEMEDhsQPEDAQEKDBzI9dKiZIYOFowwENPg5QeHQlRIi + SJAwYIADBwWaegCQIMAACQEEKK2KFYNCrgMihBXbwEHVBGY9GFCQIEGBu3jvKrhw1oBfCBAOHJgwAQOG + CyQdKlaIsLHjggEBADs= - 709, 17 + 611, 17 @@ -452,14 +452,14 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPY4CDmcasDEu1MxmW6ixgWKbTwrBYVx0svkqL h2GZViHDMu15QPFWhmXqUmBxDLBUZzVQwX84Xqzzg2GJpifDMs3rKOJLtZ4ADZWA6oKCpVo2IEmBtZb/ - /U7m/E+5XP8/92TF/3lzYj/UrM7/l3q54X/kubL/qtu8oIZo90F1QsEynQn8a8yPJV+p/1Z8q+d/yc2e - /4dm5vx/1Jn2/+qkzJ8gMRg22R16gmGJzjWoTihYqitYfKu7Dqao41D9/+ulEf/Ptwb/vV7o9blnWyHc + /U7m/E+5XP8/92TF/3lzYj/UrMj/l3q54X/kubL/qtu8oIZo90F1QsEynQn8a8yPJV+p/1Z8q+d/yc2e + /4dm5vx/1Jn2/+qkzJ8gMRg22R16gmGJzjWoTihYqitYfKu7Dqao41D9/+ulEf/PtAb8vV7o9blnWyHc gOJbXRdA6qE6EaD4ZvdcmKLKSx3LzheGHLyc7PbtYpDa/20VTnuLL3Z8BMkV3Ox5B9WCCmAuKLrZUwLi - v2iNEH9c5vn/SobOnyfZNmqFN3v1gbZ/LrrVcx6sAR0U3+kxLr7RdRzKZXhc7On5qNTjPxiXeHmAxICu + v2iNEH9c5vn/SobWnyfZNmqFN3v1gbZ/LrrVcx6sAR0U3+kxLr7RdRzKZXhc7On5qNTjPxiXeHmAxICu LAVa1AJWgA0U3+kWgzIZnlR4ZcEMeFLpnQkSq79fz5F7ayIfWAEh8KjCs+9Judd/EH5c7tULFSYeAP2/ - Ee6FUo8NUGHiwP/99RwvuqJOv+mJ+w/CLzsjT4HEoNLYwb8D/Zp/D/T2/T/Qe+b9gd7fQPo/MoaKnQGr - 2d+jAdUG1LhtIjtQcP77DfX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz - BQCbnKtZZW7zYgAAAABJRU5ErkJggg== + Ee6FUo8NUGHiwP/99RwvuqJOv+mJ+w/CLzsjT4HEoNLYwb8D/Zp/D/T2/T/Qe+bNgd7fQPo/MoaKnQGr + 2d+jAdUG1LhtIjtQcP6btfX/0DXhwiC1fw/0zAPpZfi7v7cXmyJiMEgv0Ol9tkDTlgMFVpGCQXr+Heiz + BQBt7qs8dhjk8gAAAABJRU5ErkJggg== diff --git a/SubProject/CMSControl/formSetting/fBase.xml b/SubProject/CMSControl/formSetting/fBase.xml new file mode 100644 index 0000000..1c127b4 --- /dev/null +++ b/SubProject/CMSControl/formSetting/fBase.xml @@ -0,0 +1,3 @@ + + + diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs index e1697dc..16b88dd 100644 --- a/SubProject/FCOMMON/DataBaseManager.cs +++ b/SubProject/FCOMMON/DataBaseManager.cs @@ -6,1392 +6,1486 @@ using System.Data.SqlClient; namespace FCOMMON { - public static partial class DBM - { - public static SqlConnection getCn() - { - string cs = FCOMMON.info.CS; - SqlConnection cn = new SqlConnection(); - cn.ConnectionString = cs; - return cn; - } - - public struct sItemInfo - { - public int idx; - public string sid; - public string model; - public string supply; - public string name; - public string unit; - public float scale; - public string price; - public int supplyidx; - public string project; - public int qty; - } - - public static byte[] getImagByteArray(System.Drawing.Image img) - { - if (img == null || img.Width < 1 || img.Height < 1) return null; - - //이미지가 640보다 크면 조정한다. - if (img.Width > 640) - { - var newrate = (640.0 / img.Width * 1.0); - var newheight = (int)(img.Height * newrate); //높이값 다시 계산 - var newimg = new System.Drawing.Bitmap(640, newheight); - var g = System.Drawing.Graphics.FromImage(newimg); - g.DrawImage(img, new System.Drawing.Rectangle(0, 0, 640, newheight)); - g.Dispose(); - img = (System.Drawing.Image)(newimg.Clone()); - - } - else if (img.Height > 480) - { - var newrate = (480.0 / img.Height * 1.0); - var newwidth = (int)(img.Width * newrate); //높이값 다시 계산 - var newimg = new System.Drawing.Bitmap(newwidth, 480); - var g = System.Drawing.Graphics.FromImage(newimg); - g.DrawImage(img, new System.Drawing.Rectangle(0, 0, newwidth, 480)); - g.Dispose(); - img = (System.Drawing.Image)(newimg.Clone()); - } - - - - System.IO.MemoryStream sm = new System.IO.MemoryStream(); - img.Save(sm, System.Drawing.Imaging.ImageFormat.Jpeg); - var buffer = sm.GetBuffer(); - sm.Dispose(); - return buffer; - } - public static Boolean setImageData(System.Drawing.Bitmap img, string table, string field, int idx) - { - return setImageData((System.Drawing.Image)img, table, field, idx); - } - public static Boolean setImageData(System.Drawing.Image img, string table, string field, int idx) - { - if (img == null || img.Width < 1 || img.Height < 1) return false; - - //이미지가 640보다 크면 조정한다. - if (img.Width > 640) - { - var newrate = (640.0 / img.Width * 1.0); - var newheight = (int)(img.Height * newrate); //높이값 다시 계산 - var newimg = new System.Drawing.Bitmap(640, newheight); - var g = System.Drawing.Graphics.FromImage(newimg); - g.DrawImage(img, new System.Drawing.Rectangle(0, 0, 640, newheight)); - g.Dispose(); - img = (System.Drawing.Image)(newimg.Clone()); - - } - else if (img.Height > 480) - { - var newrate = (480.0 / img.Height * 1.0); - var newwidth = (int)(img.Width * newrate); //높이값 다시 계산 - var newimg = new System.Drawing.Bitmap(newwidth, 480); - var g = System.Drawing.Graphics.FromImage(newimg); - g.DrawImage(img, new System.Drawing.Rectangle(0, 0, newwidth, 480)); - g.Dispose(); - img = (System.Drawing.Image)(newimg.Clone()); - } - - var cn = getCn(); - cn.Open(); - - Boolean retval = false; - string sql = "update " + table + " set " + field + " = @data" + " where idx = @idx"; - var cmd = new SqlCommand(sql, cn); - - System.IO.MemoryStream sm = new System.IO.MemoryStream(); - img.Save(sm, System.Drawing.Imaging.ImageFormat.Jpeg); - var buffer = sm.GetBuffer(); - sm.Dispose(); - - cmd.Parameters.Add(new SqlParameter("idx", idx)); - cmd.Parameters.Add(new SqlParameter("data", buffer)); - try - { - cmd.ExecuteNonQuery(); - retval = true; - } - catch - { - - } - - cn.Close(); - cn.Dispose(); - return retval; - } - - - /// - /// 지정쿼리를 실행합니다. - /// - /// - /// - public static int ExecuteNonQuery(string sql) - { - var cn = getCn(); - cn.Open(); - var cmd = new SqlCommand(sql, cn); - var retval = cmd.ExecuteNonQuery(); - cn.Close(); - cn.Dispose(); - return retval; - } - public static int ExecuteScalarI(string sql) - { - var cn = getCn(); - cn.Open(); - var cmd = new SqlCommand(sql, cn); - var retval = (int)(cmd.ExecuteScalar()); - cn.Close(); - cn.Dispose(); - return retval; - } - public static string ExecuteScalar(string sql) - { - var cn = getCn(); - cn.Open(); - var cmd = new SqlCommand(sql, cn); - var retval = cmd.ExecuteScalar().ToString(); - cn.Close(); - cn.Dispose(); - return retval; - } - public static System.Drawing.Image GetImageData(string table, string field, int idx) - { - var cn = getCn(); - cn.Open(); - - - string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); - var cmd = new SqlCommand(sql, cn); - var data = cmd.ExecuteScalar() as byte[]; - System.Drawing.Bitmap bmp = null; - if (data != null) - { - System.IO.MemoryStream ms = new System.IO.MemoryStream(data); - bmp = new System.Drawing.Bitmap(ms, true); - ms.Dispose(); - } - cn.Close(); - cn.Dispose(); - return bmp; - } - - public static string GetMaxVersion() - { - try - { - var sql = "select max(prgmVersion) from ProgramUser" + - " where prgmName = 'Amkor K4-EET GroupWare'"; - return ExecuteScalar(sql); - } - catch (Exception ex) - { - return string.Empty; - } - } - - public static bool AddMagamList(string mon) - { - var gcode = FCOMMON.info.Login.gcode; - - - //해당기간내의 마감 자료를 조회해서 넣는다. - var cn = getCn(); - cn.Open(); - - var retval = new List(); - string sql = "select count(*) from EETGW_Magam where gcode=@gcode and pdate = @pdate"; - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; - cmd.Parameters.Add("pdate", System.Data.SqlDbType.VarChar).Value = mon; - var datacnt = int.Parse(cmd.ExecuteScalar().ToString()); - if (datacnt == 0) - { - sql = "insert into EETGW_Magam(gcode,pdate,wdate,wuid) values(@gcode,@pdate,@wdate,@wuid)"; - cmd.CommandText = sql; - cmd.Parameters.Add("wdate", System.Data.SqlDbType.DateTime).Value = DateTime.Now; - cmd.Parameters.Add("wuid", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.no; - datacnt = cmd.ExecuteNonQuery(); - } - - cn.Close(); - cn.Dispose(); - return datacnt == 1; - - } - public static bool DelMagamList(string mon) - { - var gcode = FCOMMON.info.Login.gcode; - - //해당기간내의 마감 자료를 조회해서 넣는다. - var cn = getCn(); - cn.Open(); - - var retval = new List(); - string sql = "delete from EETGW_Magam where gcode=@gcode and pdate = @pdate"; - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; - cmd.Parameters.Add("pdate", System.Data.SqlDbType.VarChar).Value = mon; - var datacnt = int.Parse(cmd.ExecuteNonQuery().ToString()); - cn.Close(); - cn.Dispose(); - return datacnt == 1; - - } - public static List GetMagamList() - { - var gcode = FCOMMON.info.Login.gcode; - var sdate = DateTime.Now.AddMonths(-6).ToString("yyyy-MM"); - var edate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); - - //해당기간내의 마감 자료를 조회해서 넣는다. - var cn = getCn(); - cn.Open(); - - var retval = new List(); - - string sql = "select pdate" + - " from EETGW_Magam " + - " where gcode=@gcode and pdate between @sdate and @edate and isnull(pdate,'') <> ''"; - - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; - cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = sdate; - cmd.Parameters.Add("edate", System.Data.SqlDbType.VarChar).Value = edate; - - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Add(rdr[0].ToString()); - } - - cn.Close(); - cn.Dispose(); - return retval; - - } - - public static bool GetMagamStatus(DateTime mon) - { - return GetMagamStatus(mon.ToString("yyyy-MM")); - } - - /// - /// 머감상태를 확인합니다. - /// - /// yyyy-MM - /// - public static bool GetMagamStatus(string mon) - { - var gcode = FCOMMON.info.Login.gcode; - var sdate = mon;// DateTime.Now.AddMonths(-6).ToString("yyyy-MM"); - //var edate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); - - //해당기간내의 마감 자료를 조회해서 넣는다. - var cn = getCn(); - cn.Open(); - - var retval = new List(); - - string sql = "select count(*)" + - " from EETGW_Magam " + - " where gcode=@gcode and pdate = @sdate"; - - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; - cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = sdate; - - var cnt = int.Parse(cmd.ExecuteScalar().ToString()); - - - cn.Close(); - cn.Dispose(); - return cnt > 0; - - } - - public static sItemInfo getLastPurchaseInfo(int idx) - { - var cn = getCn(); - cn.Open(); - - var retval = new sItemInfo(); - retval.idx = -1; - - string sql = "select isnull(max(idx),-1) from Purchase where pumidx = " + idx.ToString(); - var cmd = new SqlCommand(sql, cn); - int maxidx = int.Parse(cmd.ExecuteScalar().ToString()); - if (maxidx == -1) return retval; - - cmd.CommandText = "select * from Purchase where idx = " + maxidx.ToString(); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.idx = (int)rdr["idx"]; - if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); - if (rdr["pumscale"] != DBNull.Value) retval.model = rdr["pumscale"].ToString(); - if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); - if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); - else retval.supplyidx = -1; - - if (rdr["pumname"] != DBNull.Value) retval.name = rdr["pumname"].ToString(); - if (rdr["pumunit"] != DBNull.Value) retval.unit = rdr["pumunit"].ToString(); - if (rdr["project"] != DBNull.Value) retval.project = rdr["project"].ToString(); - - if (rdr["pumprice"] != DBNull.Value) retval.price = rdr["pumprice"].ToString(); - else retval.price = "0"; - - if (rdr["pumqty"] != DBNull.Value) retval.qty = int.Parse(rdr["pumqty"].ToString()); - else retval.qty = 0; - - } - - cn.Close(); - cn.Dispose(); - return retval; - } - - public static sItemInfo getLastPurchaseCRInfo(int idx) - { - var cn = getCn(); - cn.Open(); - - var retval = new sItemInfo(); - retval.idx = -1; - - string sql = "select isnull(max(idx),-1) from EETGW_PurchaseCR where pumidx = " + idx.ToString(); - var cmd = new SqlCommand(sql, cn); - int maxidx = int.Parse(cmd.ExecuteScalar().ToString()); - if (maxidx == -1) return retval; - - cmd.CommandText = "select * from EETGW_PurchaseCR where idx = " + maxidx.ToString(); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.idx = (int)rdr["idx"]; - if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); - if (rdr["pumscale"] != DBNull.Value) retval.model = rdr["pumscale"].ToString(); - if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); - if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); - else retval.supplyidx = -1; - - if (rdr["pumname"] != DBNull.Value) retval.name = rdr["pumname"].ToString(); - if (rdr["pumunit"] != DBNull.Value) retval.unit = rdr["pumunit"].ToString(); - if (rdr["project"] != DBNull.Value) retval.project = rdr["project"].ToString(); - - if (rdr["pumprice"] != DBNull.Value) retval.price = rdr["pumprice"].ToString(); - else retval.price = "0"; - - if (rdr["pumqty"] != DBNull.Value) retval.qty = int.Parse(rdr["pumqty"].ToString()); - else retval.qty = 0; - - } - - cn.Close(); - cn.Dispose(); - return retval; - } - - - public static Dictionary GetUserHolidayJan(string gcode, string uid, string pdate) - { - var cn = getCn(); - cn.Open(); - - var retval = new Dictionary(); - var dt = DateTime.Parse(pdate); - var dtys = dt.Year.ToString("0000") + "-01-01"; - - string sql = "select isnull(cate,'--'), isnull(sum(termdr),0), isnull(sum(term),0), isnull(sum(termdr)-sum(term),0) , isnull(sum(drtime),0),isnull(sum(crtime),0), isnull(sum(drtime)-sum(crtime),0) as JanTime" + - " from Holyday " + - " where gcode=@gcode and uid = @uid and sdate between @sdate and @edate group by cate order by cate"; - - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; - cmd.Parameters.Add("uid", System.Data.SqlDbType.VarChar).Value = uid; - cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = dtys; - cmd.Parameters.Add("edate", System.Data.SqlDbType.VarChar).Value = pdate; - - - - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Add(rdr[0].ToString(), $"{rdr[1]}|{rdr[2]}|{rdr[3]}|{rdr[4]}|{rdr[5]}|{rdr[6]}"); - } - - cn.Close(); - cn.Dispose(); - return retval; - } - - /// - /// 서플라이정보를 찾습니다. 1개의데이터가 검색된 경우에만 사용 됩니다. - /// - /// - /// - /// - /// - /// - public static Boolean getFindSupply(string nameLike, out int idx, out string nameK, out string nameE) - { - idx = -1; - nameE = ""; - nameK = ""; - - var cn = getCn(); - cn.Open(); - - string sql = "select idx,name,name2 from Customs where (name like '%SEEMAX%' or name2 like '%{0}%')"; - sql = string.Format(sql, nameLike); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - - int cnt = 0; - while (rdr.Read()) - { - idx = (int)rdr["idx"]; - if (rdr["name"] != DBNull.Value) nameK = rdr["name"].ToString(); - if (rdr["name2"] != DBNull.Value) nameE = rdr["name2"].ToString(); - cnt += 1; - } - - cn.Close(); - cn.Dispose(); - return cnt == 1; - } - - /// - /// 프로젝트 주간내역을 추가합니다 - /// - /// - /// - /// - public static Boolean addProjectHistory(int ProjectIdx, string pdate, string Message, string rtf) - { - - var cn = getCn(); - cn.Open(); - - string sql = - "insert into ProjectsHistory(pidx,pdate,remark,remark2,wuid,wdate)" + - " values(@pidx,@pdate,@remark,@remark2,@wuid,@wdate)"; - - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add(new SqlParameter("pidx", ProjectIdx)); - cmd.Parameters.Add(new SqlParameter("pdate", pdate)); - cmd.Parameters.Add(new SqlParameter("remark", Message)); - cmd.Parameters.Add(new SqlParameter("remark2", rtf)); - cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); - cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); - var cnt = cmd.ExecuteNonQuery(); - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return cnt == 1; - } - - public static sItemInfo getItemInfo(int idx) - { - var cn = getCn(); - cn.Open(); - - var retval = new sItemInfo(); - retval.idx = -1; - - string sql = "select * from Items where gcode='" + FCOMMON.info.Login.gcode + "' and idx = " + idx.ToString(); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.idx = (int)rdr["idx"]; - if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); - if (rdr["model"] != DBNull.Value) retval.model = rdr["model"].ToString(); - if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); - if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); - - if (rdr["name"] != DBNull.Value) retval.name = rdr["name"].ToString(); - if (rdr["unit"] != DBNull.Value) retval.unit = rdr["unit"].ToString(); - if (rdr["scale"] != DBNull.Value) retval.scale = float.Parse(rdr["scale"].ToString()); - if (rdr["price"] != DBNull.Value) retval.price = rdr["price"].ToString(); - - } - - cn.Close(); - cn.Dispose(); - return retval; - } - public static int addItemInfo(sItemInfo info) - { - int retval = -1; - var cn = getCn(); - cn.Open(); - - string sql = "insert into Items" + - " ([gcode],[cate],[sid],[model],[supply],[supplyidx],[name],[unit],[scale],[price],[wuid],[wdate])" + - " values " + - " (@gcode,@cate,@sid,@model,@supply,@supplyidx,@name,@unit,@scale,@price,@wuid,@wdate)"; - - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add(new SqlParameter("@gcode", FCOMMON.info.Login.gcode)); - cmd.Parameters.Add(new SqlParameter("@cate", "etc")); - cmd.Parameters.Add(new SqlParameter("@sid", info.sid)); - cmd.Parameters.Add(new SqlParameter("@model", info.model)); - cmd.Parameters.Add(new SqlParameter("@supply", info.supply)); - cmd.Parameters.Add(new SqlParameter("@supplyidx", info.supplyidx)); - cmd.Parameters.Add(new SqlParameter("@name", info.name)); - cmd.Parameters.Add(new SqlParameter("@unit", info.unit)); - cmd.Parameters.Add(new SqlParameter("@scale", info.scale)); - cmd.Parameters.Add(new SqlParameter("@price", info.price)); - cmd.Parameters.Add(new SqlParameter("@wuid", FCOMMON.info.Login.no)); - cmd.Parameters.Add(new SqlParameter("@wdate", DateTime.Now)); - - var iCnt = cmd.ExecuteNonQuery(); - if (iCnt == 1) - { - cmd.CommandText = "select isnull(idx,-1) from Items where gcode=@gcode and [sid] = @sid"; - cmd.Parameters.Clear(); - cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); - cmd.Parameters.Add(new SqlParameter("sid", info.sid)); - retval = (int)cmd.ExecuteScalar(); - } - - cn.Close(); - cn.Dispose(); - return retval; - } - public static sItemInfo getItemInfo(string sid) - { - var cn = getCn(); - cn.Open(); - - var retval = new sItemInfo(); - retval.idx = -1; - - string sql = "select * from Items where [gcode] = '" + FCOMMON.info.Login.gcode + "' and [sid] = '" + sid + "'"; - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.idx = (int)rdr["idx"]; - if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); - if (rdr["model"] != DBNull.Value) retval.model = rdr["model"].ToString(); - if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); - if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); - - if (rdr["name"] != DBNull.Value) retval.name = rdr["name"].ToString(); - if (rdr["unit"] != DBNull.Value) retval.unit = rdr["unit"].ToString(); - if (rdr["scale"] != DBNull.Value) retval.scale = float.Parse(rdr["scale"].ToString()); - if (rdr["price"] != DBNull.Value) retval.price = rdr["price"].ToString(); - } - - cn.Close(); - cn.Dispose(); - return retval; - } - public static Dictionary getUserList(int baseLevel = 1) - { - string where = "isnull(level,0) >= " + baseLevel.ToString(); - return getTwoColumnList("vGroupUser", "id", "name", where, "name"); - - } - - /// - /// id,name,dispname,dept,email,level,tel,process,grade - /// - /// - /// - public static System.Data.DataTable getUserTable(int baseLevel = 1) - { - var cn = getCn(); - cn.Open(); - - var retval = new sItemInfo(); - retval.idx = -1; - - string sql = "select [id],[name],([name] +'(' +[id] +')') as dispName,isnull([dept],'') as dept,isnull(grade,'') as grade," + - $" [email],[level],[tel], isnull(processs, '') as process,isnull(indate, '') as indate, isnull(outdate, '') as outdate " + - $" from vGroupUser " + - $" where gcode='{FCOMMON.info.Login.gcode}' and [id] <> 'dev' and isnull(outdate,'') = '' and useUserState = 1 " + - $" order by[name]"; - - var cmd = new SqlCommand(sql, cn); - var da = new SqlDataAdapter(sql, cn); - var ds = new System.Data.DataSet(); - da.Fill(ds); - cn.Close(); - cn.Dispose(); - if (ds.Tables.Count > 0) return ds.Tables[0]; - else return null; - } - - private static Dictionary MakeDataTable(List list) - { - var retval = new Dictionary(); - foreach (var item in list) - retval.Add(item, item); - return retval; - } - private static System.Data.DataTable MakeDataTable(Dictionary list) - { - System.Data.DataTable dt = new System.Data.DataTable(); - dt.Columns.Add("Key"); - dt.Columns.Add("Value"); - dt.Columns.Add("KeyValue"); - - foreach (var item in list) - { - dt.Rows.Add(new string[] { item.Key, item.Value, string.Format("[{0}] {1}", item.Key, item.Value) }); - } - dt.AcceptChanges(); - return dt; - } - - public static Dictionary getProjectList(string StateCode = "") - { - string where = "status = '{0}'"; - if (StateCode != "") where = string.Format(where, StateCode); - else where = string.Empty; - - return getTwoColumnList("Projects", "idx", "name", where, "status,name"); - } - public static System.Data.DataTable getProjectData(string StateCode = "") - { - var list = getProjectList(StateCode); - return MakeDataTable(list); - } - public static Dictionary getCodeList(string GroupCode = "99") - { - string where = "Grp = '{0}'"; - where = string.Format(where, GroupCode); - return getTwoColumnList("Common", "code", "memo", where, "code"); - } - public static string getCodeSavlue(string GroupCode, string code) - { - var cn = getCn(); - cn.Open(); - var sql = "select isnull(SValue,'')" + - " from Common" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and code = '{1}'"; - - sql = string.Format(sql, GroupCode, code); - var cmd = new SqlCommand(sql, cn); - var data = cmd.ExecuteScalar(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return data.ToString(); - } - - public struct sCodeData - { - public string code; - public string title; - public string svalue; - public string grp; - } - public static sCodeData getCodeBySvalue(string GroupCode, string svalue) - { - var retval = new sCodeData(); - retval.code = string.Empty; - retval.title = string.Empty; - retval.svalue = string.Empty; - retval.grp = string.Empty; - - var cn = getCn(); - cn.Open(); - var sql = "select isnull(code,''),isnull(memo,'')" + - " from Common" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and svalue = '{1}'"; - - sql = string.Format(sql, GroupCode, svalue); - var cmd = new SqlCommand(sql, cn); - var da = cmd.ExecuteReader(); - while (da.Read()) - { - retval.code = da[0].ToString(); - retval.title = da[1].ToString(); - } - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - retval.grp = GroupCode; - retval.svalue = svalue; - return retval; - } - public static sCodeData getCodeByMemo(string GroupCode, string memo) - { - var retval = new sCodeData(); - retval.code = string.Empty; - retval.title = string.Empty; - retval.svalue = string.Empty; - retval.grp = string.Empty; - - - var cn = getCn(); - cn.Open(); - var sql = "select isnull(code,''),isnull(memo,'')" + - " from Common" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and memo = '{1}'"; - - sql = string.Format(sql, GroupCode, memo); - var cmd = new SqlCommand(sql, cn); - var da = cmd.ExecuteReader(); - while (da.Read()) - { - retval.code = da[0].ToString(); - retval.title = da[1].ToString(); - } - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - retval.grp = GroupCode; - retval.svalue = memo; - return retval; - } - - public static Boolean InsertLog(string cate, string remark, string pdate = "") - { - if (String.IsNullOrEmpty(pdate)) pdate = DateTime.Now.ToShortDateString(); - - try - { - var cn = getCn(); - cn.Open(); - var sql = "insert into EETGW_Log(gcode,pdate,cate,remark,wuid,wdate)" + - " values(@gcode,@pdate,@cate,@remark,@wuid,@wdate)"; - - //sql = string.Format(sql, info.Login.gcode, memo); - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); - cmd.Parameters.Add(new SqlParameter("pdate", pdate)); - cmd.Parameters.Add(new SqlParameter("cate", cate)); - cmd.Parameters.Add(new SqlParameter("remark", remark)); - cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); - cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); - var da = cmd.ExecuteNonQuery(); - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return da > 0; - } - - catch { } - return false; - } - - - public static Boolean insertCommonCode(string GroupCode, string code, string memo, string svalue = "") - { - - var cn = getCn(); - cn.Open(); - var sql = "insert into common(gcode,grp,code,svalue,memo,wuid,wdate)" + - " values(@gcode,@grp,@code,@svalue,@memo,@wuid,@wdate)"; - - sql = string.Format(sql, GroupCode, memo); - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); - cmd.Parameters.Add(new SqlParameter("grp", GroupCode)); - cmd.Parameters.Add(new SqlParameter("code", code)); - cmd.Parameters.Add(new SqlParameter("memo", memo)); - cmd.Parameters.Add(new SqlParameter("svalue", svalue)); - cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); - cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); - var da = cmd.ExecuteNonQuery(); - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return da > 0; - } - - public static sCodeData getCodeByCode(string GroupCode, string code) - { - var retval = new sCodeData(); - retval.code = string.Empty; - retval.title = string.Empty; - retval.svalue = string.Empty; - retval.grp = string.Empty; - - var cn = getCn(); - cn.Open(); - var sql = "select isnull(code,''),isnull(memo,'')" + - " from Common" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and code = '{1}'"; - - sql = string.Format(sql, GroupCode, code); - var cmd = new SqlCommand(sql, cn); - var da = cmd.ExecuteReader(); - while (da.Read()) - { - retval.code = da[0].ToString(); - retval.title = da[1].ToString(); - } - - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - retval.grp = GroupCode; - retval.svalue = code; - return retval; - } - - /// - /// 지정된 프로젝트의 마지막 업무일지 데이터를 반환함 - /// - /// - /// - public static System.Data.DataTable getLastJobReportData(string uid, int projectIdx) - { - var cn = getCn(); - cn.Open(); - var sql = "select top 1 * from JobReport" + - " where gcode ='" + FCOMMON.info.Login.gcode + "' and isnull(pidx,-1)=" + projectIdx.ToString() + - " and uid ='" + uid + "'" + - " order by pdate desc, idx desc"; - var da = new SqlDataAdapter(sql, cn); - var ds = new System.Data.DataSet(); - da.Fill(ds); - cn.Close(); - if (ds.Tables.Count > 0) return ds.Tables[0]; - else return null; - } - public static System.Data.DataTable getLastJobReportDatabyProjectName(string uid, string prjName) - { - var cn = getCn(); - cn.Open(); - var sql = "select top 1 * from JobReport" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull(projectName,'') like '" + prjName + "'" + - " and uid ='" + uid + "'" + - " order by pdate desc, idx desc"; - var da = new SqlDataAdapter(sql, cn); - var ds = new System.Data.DataSet(); - da.Fill(ds); - cn.Close(); - if (ds.Tables.Count > 0) return ds.Tables[0]; - else return null; - } - public static System.Data.DataTable getLastJobReportData(string uid, string type) - { - var cn = getCn(); - cn.Open(); - var sql = "select top 1 * from JobReport" + - " where gcode = '" + FCOMMON.info.Login.gcode + "' and isnull([type],'')='" + type + "'" + - " and uid ='" + uid + "'" + - " order by pdate desc, idx desc"; - var da = new SqlDataAdapter(sql, cn); - var ds = new System.Data.DataSet(); - da.Fill(ds); - cn.Close(); - if (ds.Tables.Count > 0) return ds.Tables[0]; - else return null; - } - - public static System.Data.DataTable getProcessList() - { - - System.Data.DataTable retval = new System.Data.DataTable(); - retval.Columns.Add("Code"); - retval.Columns.Add("Value"); - - var cn = getCn(); - cn.Open(); - var sql = "select isnull(processs,'') as process" + - " from Users" + - " where processs is not null and gcode='{0}'" + - " group by processs" + - " order by process"; - - sql = string.Format(sql, FCOMMON.info.Login.gcode); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - var cnt = 0; - while (rdr.Read()) - { - retval.Rows.Add(new string[] { cnt.ToString(), rdr[0].ToString() }); - cnt += 1; - } - rdr.Close(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - - - - public static System.Data.DataTable getUserProjectList(string userName) - { - - System.Data.DataTable retval = new System.Data.DataTable(); - retval.Columns.Add("Code"); - retval.Columns.Add("Value"); - retval.Columns.Add("NameOnly"); - - var cn = getCn(); - cn.Open(); - var sql = "select idx, '[' + cast(idx as varchar) + '] ' + isnull(name,''),isnull(name,'') from Projects" + - " where gcode='{0}'" + - " and (isnull(userManager,'') like '%{1}%'" + - " or isnull(userMain,'') like '%{1}%'" + - " or isnull(usersub,'') like '%{1}%')" + - " and status not in ('보류', '취소', '완료(보고)')" + - " order by status desc,pdate desc,name"; - //" order by pdate desc,name"; - sql = string.Format(sql, FCOMMON.info.Login.gcode, userName); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Rows.Add(new string[] { - rdr[0].ToString(), - rdr[1].ToString(), - rdr[2].ToString() - }); - } - rdr.Close(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - - - public static System.Data.DataTable getCodeTable(string GroupCode = "99", string sort = "memo") - { - - System.Data.DataTable retval = new System.Data.DataTable(); - retval.Columns.Add("Code"); - retval.Columns.Add("Value"); - retval.Columns.Add("SValue"); - - var cn = getCn(); - cn.Open(); - var sql = "select isnull(code,''),isnull(memo ,''),isnull(svalue,'')" + - " from common" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and grp = '" + GroupCode + "'" + - " and isnull(code,'') <> ''" + - " order by "; - - var sortidx = 0; - var sortlist = sort.Split(','); - foreach(var sortstr in sortlist) + public static partial class DBM + { + public static SqlConnection getCn() + { + string cs = FCOMMON.info.CS; + SqlConnection cn = new SqlConnection(); + cn.ConnectionString = cs; + return cn; + } + + public struct sItemInfo + { + public int idx; + public string sid; + public string model; + public string supply; + public string name; + public string unit; + public float scale; + public string price; + public int supplyidx; + public string project; + public int qty; + } + + public static byte[] getImagByteArray(System.Drawing.Image img) + { + if (img == null || img.Width < 1 || img.Height < 1) return null; + + //이미지가 640보다 크면 조정한다. + if (img.Width > 640) { - if (string.IsNullOrEmpty(sortstr)) continue; - if (sortidx > 0) sql += ","; - sql += "isnull(" + sortstr + ",'')"; - sortidx += 1; - } + var newrate = (640.0 / img.Width * 1.0); + var newheight = (int)(img.Height * newrate); //높이값 다시 계산 + var newimg = new System.Drawing.Bitmap(640, newheight); + var g = System.Drawing.Graphics.FromImage(newimg); + g.DrawImage(img, new System.Drawing.Rectangle(0, 0, 640, newheight)); + g.Dispose(); + img = (System.Drawing.Image)(newimg.Clone()); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Rows.Add(new string[] { rdr[0].ToString(), rdr[1].ToString(), rdr[2].ToString() }); - } - rdr.Close(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - public static Dictionary getTwoColumnList(string table, string col1, string col2, string where = "", string order = "") - { - Dictionary retval = new Dictionary(); - var cn = getCn(); - cn.Open(); - var sql = "select isnull({1},''),isnull({2},'')" + - " from {0} " + - " where gcode = '" + FCOMMON.info.Login.gcode + "' "; - if (where != "") sql += " and " + where; - if (order != "") sql += " order by " + order; - sql = string.Format(sql, table, col1, col2); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Add(rdr[0].ToString(), rdr[1].ToString()); - } - rdr.Close(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - public static List getPlaceList(string gcode) - { - var retval = new List(); - var cn = getCn(); - cn.Open(); - var sql = "select isnull(place,'')" + - " from Inventory " + - " where gcode = '{0}'" + - " order by place"; - sql = string.Format(sql, gcode); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Add(rdr[0].ToString()); - } - rdr.Close(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - public static Dictionary getGroupTable(string GroupColumn, string table, string where = "", Boolean desc = false) - { - var list = getGroupList(GroupColumn, table, where, desc); - return MakeDataTable(list); - } - - /// - /// 데이터중 첫번째 자료를 반환 합니다. - /// - /// - /// - /// - /// - /// - public static String getFirstValue(string column, string table, string where = "", string order = "") - { - string retval = string.Empty; - var cn = getCn(); - cn.Open(); - var sql = "select {0} " + - " from {1} " + - " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' "; - - if (where != "") sql += " and " + where; - if (order != "") sql += " order by " + order; - - sql = string.Format(sql, "[" + column + "]", table); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - if (rdr[0] != null) retval = rdr[0].ToString(); - } - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } + } + else if (img.Height > 480) + { + var newrate = (480.0 / img.Height * 1.0); + var newwidth = (int)(img.Width * newrate); //높이값 다시 계산 + var newimg = new System.Drawing.Bitmap(newwidth, 480); + var g = System.Drawing.Graphics.FromImage(newimg); + g.DrawImage(img, new System.Drawing.Rectangle(0, 0, newwidth, 480)); + g.Dispose(); + img = (System.Drawing.Image)(newimg.Clone()); + } - /// - /// 지정된 사용자/월의 전체 근무시간 초과시간을 반환함 - /// - /// 사용자번호 - /// 지정월(2019-05) - /// 근무시간 - /// 최대근무시간(근무일수*8) - /// 초과근무시간 - public static void getWorkTime(string uid, string yymm, out float work, out int total, out float ot) - { - work = 0; - total = 0; - ot = 0; - string retval = string.Empty; - var cn = getCn(); - try - { + System.IO.MemoryStream sm = new System.IO.MemoryStream(); + img.Save(sm, System.Drawing.Imaging.ImageFormat.Jpeg); + var buffer = sm.GetBuffer(); + sm.Dispose(); + return buffer; + } + public static Boolean setImageData(System.Drawing.Bitmap img, string table, string field, int idx) + { + return setImageData((System.Drawing.Image)img, table, field, idx); + } + public static Boolean setImageData(System.Drawing.Image img, string table, string field, int idx) + { + if (img == null || img.Width < 1 || img.Height < 1) return false; - cn.Open(); - var sql = "select isnull(sum(hrs),0) as hrs,isnull(sum(ot),0) as ot,dbo.getWorkDayCount('{1}') as workday" + - " from JobReport" + - " where gcode='" + FCOMMON.info.Login.gcode + "' and uid = '{0}' and substring(pdate,1,7) = '{1}'"; + //이미지가 640보다 크면 조정한다. + if (img.Width > 640) + { + var newrate = (640.0 / img.Width * 1.0); + var newheight = (int)(img.Height * newrate); //높이값 다시 계산 + var newimg = new System.Drawing.Bitmap(640, newheight); + var g = System.Drawing.Graphics.FromImage(newimg); + g.DrawImage(img, new System.Drawing.Rectangle(0, 0, 640, newheight)); + g.Dispose(); + img = (System.Drawing.Image)(newimg.Clone()); - sql = string.Format(sql, uid, yymm); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - work = float.Parse(rdr[0].ToString()); - ot = float.Parse(rdr[1].ToString()); - total = int.Parse(rdr[2].ToString()) * 8; - } - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - } - catch - { - work = 0; - total = 0; - ot = 0; - } - finally - { - if (cn != null) cn.Dispose(); - } - } + } + else if (img.Height > 480) + { + var newrate = (480.0 / img.Height * 1.0); + var newwidth = (int)(img.Width * newrate); //높이값 다시 계산 + var newimg = new System.Drawing.Bitmap(newwidth, 480); + var g = System.Drawing.Graphics.FromImage(newimg); + g.DrawImage(img, new System.Drawing.Rectangle(0, 0, newwidth, 480)); + g.Dispose(); + img = (System.Drawing.Image)(newimg.Clone()); + } + + var cn = getCn(); + cn.Open(); + + Boolean retval = false; + string sql = "update " + table + " set " + field + " = @data" + " where idx = @idx"; + var cmd = new SqlCommand(sql, cn); + + System.IO.MemoryStream sm = new System.IO.MemoryStream(); + img.Save(sm, System.Drawing.Imaging.ImageFormat.Jpeg); + var buffer = sm.GetBuffer(); + sm.Dispose(); + + cmd.Parameters.Add(new SqlParameter("idx", idx)); + cmd.Parameters.Add(new SqlParameter("data", buffer)); + try + { + cmd.ExecuteNonQuery(); + retval = true; + } + catch + { + + } + + cn.Close(); + cn.Dispose(); + return retval; + } - public static int addItem(string pumname, string sid, string model, decimal price, string supply, int supplyidx = -1, byte[] pic = null) - { + public class buyinfo + { + public int Request { get; set; } + public int PR { get; set; } + public int PO { get; set; } + public int Received { get; set; } + public int Cancled { get; set; } + public int Total_Request { get; set; } + public int Total_Buy { get; set; } + public int Total_Remain { get; set; } + } - var cn = getCn(); - cn.Open(); + public static buyinfo GetPartBuyInfo(int project, string sid = null) + { + var sql = + " select " + + " isnull(sum(case when[state] = 'PR' then 0 when[state] = 'PO' then 0 when[state] = 'Received' then 0 when[state] = 'Cancled' then 0 else pumqty end),0) as Request," + + " isnull(sum(case when[state] = 'PR' then pumqty else 0 end),0) as PR," + + " isnull(sum(case when[state] = 'PO' then pumqty else 0 end),0) as PO," + + " isnull(sum(case when[state] = 'Received' then inqty else 0 end),0) as Received," + + " isnull(sum(case when[state] = 'Cancled' then pumqty else 0 end),0) as Cancled," + + " isnull(sum(pumqty),0) as Total_Request," + + " isnull(sum(inqty),0) as Total_Buy," + + " isnull(sum(pumqty) - sum(inqty),0) as Total_Remain" + + " from EETGW_PurchaseCR" + + " where gcode = @gcode" + + " and projectidx = @project" + + (sid == null ? string.Empty : " and sid = @sid") + + " and isnull(isdel,0) = 0"; + var cn = getCn(); + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode; + cmd.Parameters.Add("project", System.Data.SqlDbType.Int).Value = project; + if (sid != null) + cmd.Parameters.Add("sid", System.Data.SqlDbType.VarChar).Value = sid; + cn.Open(); - int retval = -1; - var cmd2 = new SqlCommand("", cn); + var rdr = cmd.ExecuteReader(); + var retval = new buyinfo(); + while (rdr.Read()) + { + var o_request = rdr["Request"]; + var o_pr = rdr["PR"]; + var o_po = rdr["PO"]; + var o_received = rdr["Received"]; + var o_cancled = rdr["Cancled"]; - cmd2.CommandText = string.Format("select count(*) from Items " + - " where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''")); - var cnt = int.Parse(cmd2.ExecuteScalar().ToString()); - if (cnt == 0) - { - DateTime wdate = DateTime.Now; + var o_totalrequest = rdr["Total_Request"]; + var o_totalbuy = rdr["Total_Buy"]; + var o_totalremain = rdr["Total_Remain"]; - if (pic == null) - { - cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,wuid,wdate)" + - "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@wuid,@wdate)"; - } - else - { - cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,image,wuid,wdate)" + - "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@image,@wuid,@wdate)"; - } + if (o_request != null) retval.Request = int.Parse(o_request.ToString()); + if (o_pr != null) retval.PR = int.Parse(o_pr.ToString()); + if (o_po != null) retval.PO = int.Parse(o_po.ToString()); + if (o_received != null) retval.Received = int.Parse(o_received.ToString()); + if (o_cancled != null) retval.Cancled = int.Parse(o_cancled.ToString()); + if (o_totalrequest != null) retval.Total_Request = int.Parse(o_totalrequest.ToString()); + if (o_totalbuy != null) retval.Total_Buy = int.Parse(o_totalbuy.ToString()); + if (o_totalremain != null) retval.Total_Remain = int.Parse(o_totalremain.ToString()); + } + rdr.Close(); + cn.Dispose(); + return retval; + } - cmd2.Parameters.Clear(); - cmd2.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); - cmd2.Parameters.Add(new SqlParameter("cate", "--")); - cmd2.Parameters.Add(new SqlParameter("name", pumname.Trim())); - cmd2.Parameters.Add(new SqlParameter("sid", sid.Trim())); - cmd2.Parameters.Add(new SqlParameter("model", model.Trim())); - cmd2.Parameters.Add(new SqlParameter("scale", 1.0)); - cmd2.Parameters.Add(new SqlParameter("unit", "EA")); - cmd2.Parameters.Add(new SqlParameter("supply", supply)); - if (pic != null) cmd2.Parameters.Add(new SqlParameter("image", pic)); - cmd2.Parameters.Add(new SqlParameter("supplyidx", supplyidx)); - cmd2.Parameters.Add(new SqlParameter("price", price)); - cmd2.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); - cmd2.Parameters.Add(new SqlParameter("wdate", wdate)); - retval += cmd2.ExecuteNonQuery(); + public static float GetProjectBuyInfo(int project) + { + var sql = + " select isnull(((sum((case when isnull(pumqty,0) = isnull(inqty,0) then 1 else 0 end))*1.0) / count(*))*100,0)" + + " from EETGW_PurchaseCR" + + " where gcode = @gcode" + + " and projectidx = @project" + + " and isnull(isdel,0) = 0" + + " and isnull([state],'') <> 'Cancled'"; - //추가된 데이터를 찾아서 다시 검색한다. - //if (retval == 0) - //{ - // cmd2.CommandText = "select idx from Items where gcode=@gcode and name = @name and sid = @sid and model = @model and wuid = @wuid and wdate = @wdate"; - // retval = int.Parse(cmd2.ExecuteScalar().ToString()); - //} - //else retval = -1; - } + var cn = getCn(); + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode; + cmd.Parameters.Add("project", System.Data.SqlDbType.Int).Value = project; + cn.Open(); - //{ - cmd2.CommandText = string.Format("select min(idx) from Items where gcode='" + FCOMMON.info.Login.gcode + "' and ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''")); - var itemdata = cmd2.ExecuteScalar(); - if (itemdata == DBNull.Value || itemdata == null) - { - retval = -1; - } - else - { - var strItem = itemdata.ToString(); - if (strItem == "") retval = -1; - else retval = int.Parse(strItem); - } - - //} - cmd2.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - - public static Boolean UpdateItemSID(int itemIdx, string sid) - { - var cn = getCn(); - cn.Open(); - - int retval = 0; - var cmd2 = new SqlCommand("", cn); - - cmd2.CommandText = string.Format("update Items set sid=@sid where idx=@idx"); - - cmd2.Parameters.Clear(); - cmd2.Parameters.Add(new SqlParameter("idx", itemIdx)); - cmd2.Parameters.Add(new SqlParameter("sid", sid)); - retval = cmd2.ExecuteNonQuery(); - cmd2.Dispose(); - cn.Close(); - cn.Dispose(); - return retval != 0; - } - - public static List getGroupList(string GroupColumn, string table, string where = "", Boolean desc = false, Boolean useColumncover = true) - { - List retval = new List(); - var cn = getCn(); - cn.Open(); - var sql = "select {0} " + - " from {1} " + - " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' "; - - if (table.ToUpper() == "USERS") - sql = "select {0} " + - " from {1} " + - " where isnull({0},'') != '' "; + var rdr = cmd.ExecuteScalar(); + float retval = float.Parse(rdr.ToString()); + cn.Dispose(); + return retval; + } - if (where != "") sql += " and " + where; - sql += " group by {0} " + - " order by {0} "; - if (desc) sql += " desc"; - - if (useColumncover) - sql = string.Format(sql, "[" + GroupColumn + "]", table); - else - sql = string.Format(sql, GroupColumn, table); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - retval.Add(rdr[0].ToString()); - } - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return retval; - } - - public static String getPathKJ(string dept) - { - var cn = getCn(); - cn.Open(); - var sql = "select max(isnull(path_kj,'')) " + - " from UserGroup " + - " where dept = '" + dept + "'"; - - sql = string.Format(sql); - var cmd = new SqlCommand(sql, cn); - var rdr = cmd.ExecuteScalar(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - if (rdr == null) return string.Empty; - else return rdr.ToString(); - } - public static Boolean setPathKJ(string dept, string path) - { - var cn = getCn(); - cn.Open(); - var sql = "update UserGroup set path_kj=@path" + - " where dept = @dept"; - - sql = string.Format(sql); - var cmd = new SqlCommand(sql, cn); - cmd.Parameters.Add(new SqlParameter("path", path)); - cmd.Parameters.Add(new SqlParameter("dept", dept)); - var rdr = cmd.ExecuteNonQuery(); - cmd.Dispose(); - cn.Close(); - cn.Dispose(); - return rdr > 0; - } - - public static List getDateList(string table, string where = "", Boolean desc = false) - { - return getGroupList("pdate", table, where, desc); - } - - public static int UpdateItemIndexbySID() - { - int retval = 0; - var cn1 = getCn(); - cn1.Open(); - - var cn2 = getCn(); - cn2.Open(); - - var sql = "select idx, " + - " isnull(pumname,'') as pumname, " + - " isnull([sid],'') as [sid], " + - " isnull(pumscale,'') as pummodel, " + - " isnull(pumunit,'EA') as pumunit, " + - " isnull(pumprice,0) as pumprice, " + - " isnull(supply,'') as supply, " + - " isnull(supplyidx,-1) as supplyidx" + - " from purchase " + - " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull(sid,'') <> '' and " + - " isnull(sid,'') <> '신규'" + - " and isnull(pumidx,-1) = -1 " + - " and len(sid) = 9" + - " and isnull(pumname,'') <> ''"; - - var cmd2 = new SqlCommand("", cn2); - var cmd = new SqlCommand(sql, cn1); - var rdr = cmd.ExecuteReader(); - while (rdr.Read()) - { - var pumname = rdr["pumname"].ToString(); - var pummodel = rdr["pummodel"].ToString(); - var pumunit = rdr["pumunit"].ToString(); - var pumprice = decimal.Parse(rdr["pumprice"].ToString()); - var supply = rdr["supply"].ToString(); - var supplyidx = int.Parse(rdr["supplyidx"].ToString()); - - var sid = rdr["sid"].ToString(); - var idx = int.Parse(rdr["idx"].ToString()); - - //아이템정보에서 이 sid 가 1개 존재한다면 그것에 연결한다. - var sql2 = "select isnull(idx,-1) from Items where gcode='" + FCOMMON.info.Login.gcode + "' and [sid] = '" + sid + "'"; - cmd2.CommandText = sql2; - - var itemdata = cmd2.ExecuteScalar(); - if (itemdata != null && itemdata.ToString() != "-1") - { - cmd2.CommandText = "update purchase set pumidx = " + itemdata.ToString() + - " where gcode='" + FCOMMON.info.Login.gcode + "' and idx=" + idx.ToString(); - retval += cmd2.ExecuteNonQuery(); - } - else - { - cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,wuid,wdate)" + - "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@wuid,@wdate)"; - cmd2.Parameters.Clear(); - cmd2.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); - cmd2.Parameters.Add(new SqlParameter("cate", "--")); - cmd2.Parameters.Add(new SqlParameter("name", pumname)); - cmd2.Parameters.Add(new SqlParameter("sid", sid)); - cmd2.Parameters.Add(new SqlParameter("model", pummodel)); - cmd2.Parameters.Add(new SqlParameter("scale", 1.0)); - cmd2.Parameters.Add(new SqlParameter("unit", pumunit)); - cmd2.Parameters.Add(new SqlParameter("supply", supply)); - cmd2.Parameters.Add(new SqlParameter("supplyidx", supplyidx)); - cmd2.Parameters.Add(new SqlParameter("price", pumprice)); - cmd2.Parameters.Add(new SqlParameter("wuid", "dev")); - cmd2.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); - retval += cmd2.ExecuteNonQuery(); - } + /// + /// 지정쿼리를 실행합니다. + /// + /// + /// + public static int ExecuteNonQuery(string sql) + { + var cn = getCn(); + cn.Open(); + var cmd = new SqlCommand(sql, cn); + var retval = cmd.ExecuteNonQuery(); + cn.Close(); + cn.Dispose(); + return retval; + } + public static int ExecuteScalarI(string sql) + { + var cn = getCn(); + cn.Open(); + var cmd = new SqlCommand(sql, cn); + var retval = (int)(cmd.ExecuteScalar()); + cn.Close(); + cn.Dispose(); + return retval; + } + public static string ExecuteScalar(string sql) + { + var cn = getCn(); + cn.Open(); + var cmd = new SqlCommand(sql, cn); + var retval = cmd.ExecuteScalar().ToString(); + cn.Close(); + cn.Dispose(); + return retval; + } + public static System.Drawing.Image GetImageData(string table, string field, int idx) + { + var cn = getCn(); + cn.Open(); - } - cmd2.Dispose(); - cmd.Dispose(); - cn1.Close(); - cn1.Dispose(); + string sql = "select " + field + " from " + table + " where idx = " + idx.ToString(); + var cmd = new SqlCommand(sql, cn); + var data = cmd.ExecuteScalar() as byte[]; + System.Drawing.Bitmap bmp = null; + if (data != null) + { + System.IO.MemoryStream ms = new System.IO.MemoryStream(data); + bmp = new System.Drawing.Bitmap(ms, true); + ms.Dispose(); + } + cn.Close(); + cn.Dispose(); + return bmp; + } - cn2.Close(); - cn2.Dispose(); - return retval; - } - } + public static string GetMaxVersion() + { + try + { + var sql = "select max(prgmVersion) from ProgramUser" + + " where prgmName = 'Amkor K4-EET GroupWare'"; + return ExecuteScalar(sql); + } + catch (Exception ex) + { + return string.Empty; + } + } + + public static bool AddMagamList(string mon) + { + var gcode = FCOMMON.info.Login.gcode; + + + //해당기간내의 마감 자료를 조회해서 넣는다. + var cn = getCn(); + cn.Open(); + + var retval = new List(); + string sql = "select count(*) from EETGW_Magam where gcode=@gcode and pdate = @pdate"; + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; + cmd.Parameters.Add("pdate", System.Data.SqlDbType.VarChar).Value = mon; + var datacnt = int.Parse(cmd.ExecuteScalar().ToString()); + if (datacnt == 0) + { + sql = "insert into EETGW_Magam(gcode,pdate,wdate,wuid) values(@gcode,@pdate,@wdate,@wuid)"; + cmd.CommandText = sql; + cmd.Parameters.Add("wdate", System.Data.SqlDbType.DateTime).Value = DateTime.Now; + cmd.Parameters.Add("wuid", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.no; + datacnt = cmd.ExecuteNonQuery(); + } + + cn.Close(); + cn.Dispose(); + return datacnt == 1; + + } + public static bool DelMagamList(string mon) + { + var gcode = FCOMMON.info.Login.gcode; + + //해당기간내의 마감 자료를 조회해서 넣는다. + var cn = getCn(); + cn.Open(); + + var retval = new List(); + string sql = "delete from EETGW_Magam where gcode=@gcode and pdate = @pdate"; + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; + cmd.Parameters.Add("pdate", System.Data.SqlDbType.VarChar).Value = mon; + var datacnt = int.Parse(cmd.ExecuteNonQuery().ToString()); + cn.Close(); + cn.Dispose(); + return datacnt == 1; + + } + public static List GetMagamList() + { + var gcode = FCOMMON.info.Login.gcode; + var sdate = DateTime.Now.AddMonths(-6).ToString("yyyy-MM"); + var edate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); + + //해당기간내의 마감 자료를 조회해서 넣는다. + var cn = getCn(); + cn.Open(); + + var retval = new List(); + + string sql = "select pdate" + + " from EETGW_Magam " + + " where gcode=@gcode and pdate between @sdate and @edate and isnull(pdate,'') <> ''"; + + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; + cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = sdate; + cmd.Parameters.Add("edate", System.Data.SqlDbType.VarChar).Value = edate; + + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString()); + } + + cn.Close(); + cn.Dispose(); + return retval; + + } + + public static bool GetMagamStatus(DateTime mon) + { + return GetMagamStatus(mon.ToString("yyyy-MM")); + } + + /// + /// 머감상태를 확인합니다. + /// + /// yyyy-MM + /// + public static bool GetMagamStatus(string mon) + { + var gcode = FCOMMON.info.Login.gcode; + var sdate = mon;// DateTime.Now.AddMonths(-6).ToString("yyyy-MM"); + //var edate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); + + //해당기간내의 마감 자료를 조회해서 넣는다. + var cn = getCn(); + cn.Open(); + + var retval = new List(); + + string sql = "select count(*)" + + " from EETGW_Magam " + + " where gcode=@gcode and pdate = @sdate"; + + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; + cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = sdate; + + var cnt = int.Parse(cmd.ExecuteScalar().ToString()); + + + cn.Close(); + cn.Dispose(); + return cnt > 0; + + } + + public static sItemInfo getLastPurchaseInfo(int idx) + { + var cn = getCn(); + cn.Open(); + + var retval = new sItemInfo(); + retval.idx = -1; + + string sql = "select isnull(max(idx),-1) from Purchase where pumidx = " + idx.ToString(); + var cmd = new SqlCommand(sql, cn); + int maxidx = int.Parse(cmd.ExecuteScalar().ToString()); + if (maxidx == -1) return retval; + + cmd.CommandText = "select * from Purchase where idx = " + maxidx.ToString(); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.idx = (int)rdr["idx"]; + if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); + if (rdr["pumscale"] != DBNull.Value) retval.model = rdr["pumscale"].ToString(); + if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); + if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); + else retval.supplyidx = -1; + + if (rdr["pumname"] != DBNull.Value) retval.name = rdr["pumname"].ToString(); + if (rdr["pumunit"] != DBNull.Value) retval.unit = rdr["pumunit"].ToString(); + if (rdr["project"] != DBNull.Value) retval.project = rdr["project"].ToString(); + + if (rdr["pumprice"] != DBNull.Value) retval.price = rdr["pumprice"].ToString(); + else retval.price = "0"; + + if (rdr["pumqty"] != DBNull.Value) retval.qty = int.Parse(rdr["pumqty"].ToString()); + else retval.qty = 0; + + } + + cn.Close(); + cn.Dispose(); + return retval; + } + + public static sItemInfo getLastPurchaseCRInfo(int idx) + { + var cn = getCn(); + cn.Open(); + + var retval = new sItemInfo(); + retval.idx = -1; + + string sql = "select isnull(max(idx),-1) from EETGW_PurchaseCR where pumidx = " + idx.ToString(); + var cmd = new SqlCommand(sql, cn); + int maxidx = int.Parse(cmd.ExecuteScalar().ToString()); + if (maxidx == -1) return retval; + + cmd.CommandText = "select * from EETGW_PurchaseCR where idx = " + maxidx.ToString(); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.idx = (int)rdr["idx"]; + if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); + if (rdr["pumscale"] != DBNull.Value) retval.model = rdr["pumscale"].ToString(); + if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); + if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); + else retval.supplyidx = -1; + + if (rdr["pumname"] != DBNull.Value) retval.name = rdr["pumname"].ToString(); + if (rdr["pumunit"] != DBNull.Value) retval.unit = rdr["pumunit"].ToString(); + if (rdr["project"] != DBNull.Value) retval.project = rdr["project"].ToString(); + + if (rdr["pumprice"] != DBNull.Value) retval.price = rdr["pumprice"].ToString(); + else retval.price = "0"; + + if (rdr["pumqty"] != DBNull.Value) retval.qty = int.Parse(rdr["pumqty"].ToString()); + else retval.qty = 0; + + } + + cn.Close(); + cn.Dispose(); + return retval; + } + + + public static Dictionary GetUserHolidayJan(string gcode, string uid, string pdate) + { + var cn = getCn(); + cn.Open(); + + var retval = new Dictionary(); + var dt = DateTime.Parse(pdate); + var dtys = dt.Year.ToString("0000") + "-01-01"; + + string sql = "select isnull(cate,'--'), isnull(sum(termdr),0), isnull(sum(term),0), isnull(sum(termdr)-sum(term),0) , isnull(sum(drtime),0),isnull(sum(crtime),0), isnull(sum(drtime)-sum(crtime),0) as JanTime" + + " from Holyday " + + " where gcode=@gcode and uid = @uid and sdate between @sdate and @edate group by cate order by cate"; + + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode; + cmd.Parameters.Add("uid", System.Data.SqlDbType.VarChar).Value = uid; + cmd.Parameters.Add("sdate", System.Data.SqlDbType.VarChar).Value = dtys; + cmd.Parameters.Add("edate", System.Data.SqlDbType.VarChar).Value = pdate; + + + + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString(), $"{rdr[1]}|{rdr[2]}|{rdr[3]}|{rdr[4]}|{rdr[5]}|{rdr[6]}"); + } + + cn.Close(); + cn.Dispose(); + return retval; + } + + /// + /// 서플라이정보를 찾습니다. 1개의데이터가 검색된 경우에만 사용 됩니다. + /// + /// + /// + /// + /// + /// + public static Boolean getFindSupply(string nameLike, out int idx, out string nameK, out string nameE) + { + idx = -1; + nameE = ""; + nameK = ""; + + var cn = getCn(); + cn.Open(); + + string sql = "select idx,name,name2 from Customs where (name like '%SEEMAX%' or name2 like '%{0}%')"; + sql = string.Format(sql, nameLike); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + + int cnt = 0; + while (rdr.Read()) + { + idx = (int)rdr["idx"]; + if (rdr["name"] != DBNull.Value) nameK = rdr["name"].ToString(); + if (rdr["name2"] != DBNull.Value) nameE = rdr["name2"].ToString(); + cnt += 1; + } + + cn.Close(); + cn.Dispose(); + return cnt == 1; + } + + /// + /// 프로젝트 주간내역을 추가합니다 + /// + /// + /// + /// + public static Boolean addProjectHistory(int ProjectIdx, string pdate, string Message, string rtf) + { + + var cn = getCn(); + cn.Open(); + + string sql = + "insert into ProjectsHistory(pidx,pdate,remark,remark2,wuid,wdate)" + + " values(@pidx,@pdate,@remark,@remark2,@wuid,@wdate)"; + + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add(new SqlParameter("pidx", ProjectIdx)); + cmd.Parameters.Add(new SqlParameter("pdate", pdate)); + cmd.Parameters.Add(new SqlParameter("remark", Message)); + cmd.Parameters.Add(new SqlParameter("remark2", rtf)); + cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); + cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); + var cnt = cmd.ExecuteNonQuery(); + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return cnt == 1; + } + + public static sItemInfo getItemInfo(int idx) + { + var cn = getCn(); + cn.Open(); + + var retval = new sItemInfo(); + retval.idx = -1; + + string sql = "select * from Items where gcode='" + FCOMMON.info.Login.gcode + "' and idx = " + idx.ToString(); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.idx = (int)rdr["idx"]; + if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); + if (rdr["model"] != DBNull.Value) retval.model = rdr["model"].ToString(); + if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); + if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); + + if (rdr["name"] != DBNull.Value) retval.name = rdr["name"].ToString(); + if (rdr["unit"] != DBNull.Value) retval.unit = rdr["unit"].ToString(); + if (rdr["scale"] != DBNull.Value) retval.scale = float.Parse(rdr["scale"].ToString()); + if (rdr["price"] != DBNull.Value) retval.price = rdr["price"].ToString(); + + } + + cn.Close(); + cn.Dispose(); + return retval; + } + public static int addItemInfo(sItemInfo info) + { + int retval = -1; + var cn = getCn(); + cn.Open(); + + string sql = "insert into Items" + + " ([gcode],[cate],[sid],[model],[supply],[supplyidx],[name],[unit],[scale],[price],[wuid],[wdate])" + + " values " + + " (@gcode,@cate,@sid,@model,@supply,@supplyidx,@name,@unit,@scale,@price,@wuid,@wdate)"; + + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add(new SqlParameter("@gcode", FCOMMON.info.Login.gcode)); + cmd.Parameters.Add(new SqlParameter("@cate", "etc")); + cmd.Parameters.Add(new SqlParameter("@sid", info.sid)); + cmd.Parameters.Add(new SqlParameter("@model", info.model)); + cmd.Parameters.Add(new SqlParameter("@supply", info.supply)); + cmd.Parameters.Add(new SqlParameter("@supplyidx", info.supplyidx)); + cmd.Parameters.Add(new SqlParameter("@name", info.name)); + cmd.Parameters.Add(new SqlParameter("@unit", info.unit)); + cmd.Parameters.Add(new SqlParameter("@scale", info.scale)); + cmd.Parameters.Add(new SqlParameter("@price", info.price)); + cmd.Parameters.Add(new SqlParameter("@wuid", FCOMMON.info.Login.no)); + cmd.Parameters.Add(new SqlParameter("@wdate", DateTime.Now)); + + var iCnt = cmd.ExecuteNonQuery(); + if (iCnt == 1) + { + cmd.CommandText = "select isnull(idx,-1) from Items where gcode=@gcode and [sid] = @sid"; + cmd.Parameters.Clear(); + cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); + cmd.Parameters.Add(new SqlParameter("sid", info.sid)); + retval = (int)cmd.ExecuteScalar(); + } + + cn.Close(); + cn.Dispose(); + return retval; + } + public static sItemInfo getItemInfo(string sid) + { + var cn = getCn(); + cn.Open(); + + var retval = new sItemInfo(); + retval.idx = -1; + + string sql = "select * from Items where [gcode] = '" + FCOMMON.info.Login.gcode + "' and [sid] = '" + sid + "'"; + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.idx = (int)rdr["idx"]; + if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString(); + if (rdr["model"] != DBNull.Value) retval.model = rdr["model"].ToString(); + if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString(); + if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString()); + + if (rdr["name"] != DBNull.Value) retval.name = rdr["name"].ToString(); + if (rdr["unit"] != DBNull.Value) retval.unit = rdr["unit"].ToString(); + if (rdr["scale"] != DBNull.Value) retval.scale = float.Parse(rdr["scale"].ToString()); + if (rdr["price"] != DBNull.Value) retval.price = rdr["price"].ToString(); + } + + cn.Close(); + cn.Dispose(); + return retval; + } + public static Dictionary getUserList(int baseLevel = 1) + { + string where = "isnull(level,0) >= " + baseLevel.ToString(); + return getTwoColumnList("vGroupUser", "id", "name", where, "name"); + + } + + /// + /// id,name,dispname,dept,email,level,tel,process,grade + /// + /// + /// + public static System.Data.DataTable getUserTable(int baseLevel = 1) + { + var cn = getCn(); + cn.Open(); + + var retval = new sItemInfo(); + retval.idx = -1; + + string sql = "select [id],[name],([name] +'(' +[id] +')') as dispName,isnull([dept],'') as dept,isnull(grade,'') as grade," + + $" [email],[level],[tel], isnull(processs, '') as process,isnull(indate, '') as indate, isnull(outdate, '') as outdate " + + $" from vGroupUser " + + $" where gcode='{FCOMMON.info.Login.gcode}' and [id] <> 'dev' and isnull(outdate,'') = '' and useUserState = 1 " + + $" order by[name]"; + + var cmd = new SqlCommand(sql, cn); + var da = new SqlDataAdapter(sql, cn); + var ds = new System.Data.DataSet(); + da.Fill(ds); + cn.Close(); + cn.Dispose(); + if (ds.Tables.Count > 0) return ds.Tables[0]; + else return null; + } + + private static Dictionary MakeDataTable(List list) + { + var retval = new Dictionary(); + foreach (var item in list) + retval.Add(item, item); + return retval; + } + private static System.Data.DataTable MakeDataTable(Dictionary list) + { + System.Data.DataTable dt = new System.Data.DataTable(); + dt.Columns.Add("Key"); + dt.Columns.Add("Value"); + dt.Columns.Add("KeyValue"); + + foreach (var item in list) + { + dt.Rows.Add(new string[] { item.Key, item.Value, string.Format("[{0}] {1}", item.Key, item.Value) }); + } + dt.AcceptChanges(); + return dt; + } + + public static Dictionary getProjectList(string StateCode = "") + { + string where = "status = '{0}'"; + if (StateCode != "") where = string.Format(where, StateCode); + else where = string.Empty; + + return getTwoColumnList("Projects", "idx", "name", where, "status,name"); + } + public static System.Data.DataTable getProjectData(string StateCode = "") + { + var list = getProjectList(StateCode); + return MakeDataTable(list); + } + public static Dictionary getCodeList(string GroupCode = "99") + { + string where = "Grp = '{0}'"; + where = string.Format(where, GroupCode); + return getTwoColumnList("Common", "code", "memo", where, "code"); + } + public static string getCodeSavlue(string GroupCode, string code) + { + var cn = getCn(); + cn.Open(); + var sql = "select isnull(SValue,'')" + + " from Common" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and code = '{1}'"; + + sql = string.Format(sql, GroupCode, code); + var cmd = new SqlCommand(sql, cn); + var data = cmd.ExecuteScalar(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return data.ToString(); + } + + public struct sCodeData + { + public string code; + public string title; + public string svalue; + public string grp; + } + public static sCodeData getCodeBySvalue(string GroupCode, string svalue) + { + var retval = new sCodeData(); + retval.code = string.Empty; + retval.title = string.Empty; + retval.svalue = string.Empty; + retval.grp = string.Empty; + + var cn = getCn(); + cn.Open(); + var sql = "select isnull(code,''),isnull(memo,'')" + + " from Common" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and svalue = '{1}'"; + + sql = string.Format(sql, GroupCode, svalue); + var cmd = new SqlCommand(sql, cn); + var da = cmd.ExecuteReader(); + while (da.Read()) + { + retval.code = da[0].ToString(); + retval.title = da[1].ToString(); + } + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + retval.grp = GroupCode; + retval.svalue = svalue; + return retval; + } + public static sCodeData getCodeByMemo(string GroupCode, string memo) + { + var retval = new sCodeData(); + retval.code = string.Empty; + retval.title = string.Empty; + retval.svalue = string.Empty; + retval.grp = string.Empty; + + + var cn = getCn(); + cn.Open(); + var sql = "select isnull(code,''),isnull(memo,'')" + + " from Common" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and memo = '{1}'"; + + sql = string.Format(sql, GroupCode, memo); + var cmd = new SqlCommand(sql, cn); + var da = cmd.ExecuteReader(); + while (da.Read()) + { + retval.code = da[0].ToString(); + retval.title = da[1].ToString(); + } + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + retval.grp = GroupCode; + retval.svalue = memo; + return retval; + } + + public static Boolean InsertLog(string cate, string remark, string pdate = "") + { + if (String.IsNullOrEmpty(pdate)) pdate = DateTime.Now.ToShortDateString(); + + try + { + var cn = getCn(); + cn.Open(); + var sql = "insert into EETGW_Log(gcode,pdate,cate,remark,wuid,wdate)" + + " values(@gcode,@pdate,@cate,@remark,@wuid,@wdate)"; + + //sql = string.Format(sql, info.Login.gcode, memo); + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); + cmd.Parameters.Add(new SqlParameter("pdate", pdate)); + cmd.Parameters.Add(new SqlParameter("cate", cate)); + cmd.Parameters.Add(new SqlParameter("remark", remark)); + cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); + cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); + var da = cmd.ExecuteNonQuery(); + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return da > 0; + } + + catch { } + return false; + } + + + public static Boolean insertCommonCode(string GroupCode, string code, string memo, string svalue = "") + { + + var cn = getCn(); + cn.Open(); + var sql = "insert into common(gcode,grp,code,svalue,memo,wuid,wdate)" + + " values(@gcode,@grp,@code,@svalue,@memo,@wuid,@wdate)"; + + sql = string.Format(sql, GroupCode, memo); + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); + cmd.Parameters.Add(new SqlParameter("grp", GroupCode)); + cmd.Parameters.Add(new SqlParameter("code", code)); + cmd.Parameters.Add(new SqlParameter("memo", memo)); + cmd.Parameters.Add(new SqlParameter("svalue", svalue)); + cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); + cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); + var da = cmd.ExecuteNonQuery(); + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return da > 0; + } + + public static sCodeData getCodeByCode(string GroupCode, string code) + { + var retval = new sCodeData(); + retval.code = string.Empty; + retval.title = string.Empty; + retval.svalue = string.Empty; + retval.grp = string.Empty; + + var cn = getCn(); + cn.Open(); + var sql = "select isnull(code,''),isnull(memo,'')" + + " from Common" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and Grp = '{0}' and code = '{1}'"; + + sql = string.Format(sql, GroupCode, code); + var cmd = new SqlCommand(sql, cn); + var da = cmd.ExecuteReader(); + while (da.Read()) + { + retval.code = da[0].ToString(); + retval.title = da[1].ToString(); + } + + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + retval.grp = GroupCode; + retval.svalue = code; + return retval; + } + + /// + /// 지정된 프로젝트의 마지막 업무일지 데이터를 반환함 + /// + /// + /// + public static System.Data.DataTable getLastJobReportData(string uid, int projectIdx) + { + var cn = getCn(); + cn.Open(); + var sql = "select top 1 * from JobReport" + + " where gcode ='" + FCOMMON.info.Login.gcode + "' and isnull(pidx,-1)=" + projectIdx.ToString() + + " and uid ='" + uid + "'" + + " order by pdate desc, idx desc"; + var da = new SqlDataAdapter(sql, cn); + var ds = new System.Data.DataSet(); + da.Fill(ds); + cn.Close(); + if (ds.Tables.Count > 0) return ds.Tables[0]; + else return null; + } + public static System.Data.DataTable getLastJobReportDatabyProjectName(string uid, string prjName) + { + var cn = getCn(); + cn.Open(); + var sql = "select top 1 * from JobReport" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull(projectName,'') like '" + prjName + "'" + + " and uid ='" + uid + "'" + + " order by pdate desc, idx desc"; + var da = new SqlDataAdapter(sql, cn); + var ds = new System.Data.DataSet(); + da.Fill(ds); + cn.Close(); + if (ds.Tables.Count > 0) return ds.Tables[0]; + else return null; + } + public static System.Data.DataTable getLastJobReportData(string uid, string type) + { + var cn = getCn(); + cn.Open(); + var sql = "select top 1 * from JobReport" + + " where gcode = '" + FCOMMON.info.Login.gcode + "' and isnull([type],'')='" + type + "'" + + " and uid ='" + uid + "'" + + " order by pdate desc, idx desc"; + var da = new SqlDataAdapter(sql, cn); + var ds = new System.Data.DataSet(); + da.Fill(ds); + cn.Close(); + if (ds.Tables.Count > 0) return ds.Tables[0]; + else return null; + } + + public static System.Data.DataTable getProcessList() + { + + System.Data.DataTable retval = new System.Data.DataTable(); + retval.Columns.Add("Code"); + retval.Columns.Add("Value"); + + var cn = getCn(); + cn.Open(); + var sql = "select isnull(processs,'') as process" + + " from Users" + + " where processs is not null and gcode='{0}'" + + " group by processs" + + " order by process"; + + sql = string.Format(sql, FCOMMON.info.Login.gcode); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + var cnt = 0; + while (rdr.Read()) + { + retval.Rows.Add(new string[] { cnt.ToString(), rdr[0].ToString() }); + cnt += 1; + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + + + + public static System.Data.DataTable getUserProjectList(string userName) + { + + System.Data.DataTable retval = new System.Data.DataTable(); + retval.Columns.Add("Code"); + retval.Columns.Add("Value"); + retval.Columns.Add("NameOnly"); + + var cn = getCn(); + cn.Open(); + var sql = "select idx, '[' + cast(idx as varchar) + '] ' + isnull(name,''),isnull(name,'') from Projects" + + " where gcode='{0}'" + + " and (isnull(userManager,'') like '%{1}%'" + + " or isnull(userMain,'') like '%{1}%'" + + " or isnull(usersub,'') like '%{1}%')" + + " and status not in ('보류', '취소', '완료(보고)')" + + " order by status desc,pdate desc,name"; + //" order by pdate desc,name"; + sql = string.Format(sql, FCOMMON.info.Login.gcode, userName); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Rows.Add(new string[] { + rdr[0].ToString(), + rdr[1].ToString(), + rdr[2].ToString() + }); + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + + + public static System.Data.DataTable getCodeTable(string GroupCode = "99", string sort = "memo") + { + + System.Data.DataTable retval = new System.Data.DataTable(); + retval.Columns.Add("Code"); + retval.Columns.Add("Value"); + retval.Columns.Add("SValue"); + + var cn = getCn(); + cn.Open(); + var sql = "select isnull(code,''),isnull(memo ,''),isnull(svalue,'')" + + " from common" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and grp = '" + GroupCode + "'" + + " and isnull(code,'') <> ''" + + " order by "; + + var sortidx = 0; + var sortlist = sort.Split(','); + foreach (var sortstr in sortlist) + { + if (string.IsNullOrEmpty(sortstr)) continue; + if (sortidx > 0) sql += ","; + sql += "isnull(" + sortstr + ",'')"; + sortidx += 1; + } + + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Rows.Add(new string[] { rdr[0].ToString(), rdr[1].ToString(), rdr[2].ToString() }); + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + public static Dictionary getTwoColumnList(string table, string col1, string col2, string where = "", string order = "") + { + Dictionary retval = new Dictionary(); + var cn = getCn(); + cn.Open(); + var sql = "select isnull({1},''),isnull({2},'')" + + " from {0} " + + " where gcode = '" + FCOMMON.info.Login.gcode + "' "; + if (where != "") sql += " and " + where; + if (order != "") sql += " order by " + order; + sql = string.Format(sql, table, col1, col2); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString(), rdr[1].ToString()); + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + public static List getPlaceList(string gcode) + { + var retval = new List(); + var cn = getCn(); + cn.Open(); + var sql = "select isnull(place,'')" + + " from Inventory " + + " where gcode = '{0}'" + + " order by place"; + sql = string.Format(sql, gcode); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString()); + } + rdr.Close(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + public static Dictionary getGroupTable(string GroupColumn, string table, string where = "", Boolean desc = false) + { + var list = getGroupList(GroupColumn, table, where, desc); + return MakeDataTable(list); + } + + /// + /// 데이터중 첫번째 자료를 반환 합니다. + /// + /// + /// + /// + /// + /// + public static String getFirstValue(string column, string table, string where = "", string order = "") + { + string retval = string.Empty; + var cn = getCn(); + cn.Open(); + var sql = "select {0} " + + " from {1} " + + " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' "; + + if (where != "") sql += " and " + where; + if (order != "") sql += " order by " + order; + + sql = string.Format(sql, "[" + column + "]", table); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + if (rdr[0] != null) retval = rdr[0].ToString(); + } + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + + + /// + /// 지정된 사용자/월의 전체 근무시간 초과시간을 반환함 + /// + /// 사용자번호 + /// 지정월(2019-05) + /// 근무시간 + /// 최대근무시간(근무일수*8) + /// 초과근무시간 + public static void getWorkTime(string uid, string yymm, out float work, out int total, out float ot) + { + work = 0; + total = 0; + ot = 0; + string retval = string.Empty; + var cn = getCn(); + + try + { + + cn.Open(); + var sql = "select isnull(sum(hrs),0) as hrs,isnull(sum(ot),0) as ot,dbo.getWorkDayCount('{1}') as workday" + + " from JobReport" + + " where gcode='" + FCOMMON.info.Login.gcode + "' and uid = '{0}' and substring(pdate,1,7) = '{1}'"; + + sql = string.Format(sql, uid, yymm); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + work = float.Parse(rdr[0].ToString()); + ot = float.Parse(rdr[1].ToString()); + total = int.Parse(rdr[2].ToString()) * 8; + } + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + } + catch + { + work = 0; + total = 0; + ot = 0; + } + finally + { + if (cn != null) cn.Dispose(); + } + } + + public static string GetcurrentUserNoName() + { + var currentusername = $"[{FCOMMON.info.Login.no}] {FCOMMON.info.Login.nameK}"; + return currentusername; + } + + public static int addItem(string pumname, string sid, string model, decimal price, string supply, int supplyidx = -1, byte[] pic = null) + { + + var cn = getCn(); + cn.Open(); + + int retval = -1; + var cmd2 = new SqlCommand("", cn); + + cmd2.CommandText = string.Format("select count(*) from Items " + + " where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''")); + var cnt = int.Parse(cmd2.ExecuteScalar().ToString()); + if (cnt == 0) + { + DateTime wdate = DateTime.Now; + + if (pic == null) + { + cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,wuid,wdate)" + + "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@wuid,@wdate)"; + } + else + { + cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,image,wuid,wdate)" + + "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@image,@wuid,@wdate)"; + } + + cmd2.Parameters.Clear(); + cmd2.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); + cmd2.Parameters.Add(new SqlParameter("cate", "--")); + cmd2.Parameters.Add(new SqlParameter("name", pumname.Trim())); + cmd2.Parameters.Add(new SqlParameter("sid", sid.Trim())); + cmd2.Parameters.Add(new SqlParameter("model", model.Trim())); + cmd2.Parameters.Add(new SqlParameter("scale", 1.0)); + cmd2.Parameters.Add(new SqlParameter("unit", "EA")); + cmd2.Parameters.Add(new SqlParameter("supply", supply)); + if (pic != null) cmd2.Parameters.Add(new SqlParameter("image", pic)); + cmd2.Parameters.Add(new SqlParameter("supplyidx", supplyidx)); + cmd2.Parameters.Add(new SqlParameter("price", price)); + cmd2.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); + cmd2.Parameters.Add(new SqlParameter("wdate", wdate)); + retval += cmd2.ExecuteNonQuery(); + + //추가된 데이터를 찾아서 다시 검색한다. + //if (retval == 0) + //{ + // cmd2.CommandText = "select idx from Items where gcode=@gcode and name = @name and sid = @sid and model = @model and wuid = @wuid and wdate = @wdate"; + // retval = int.Parse(cmd2.ExecuteScalar().ToString()); + //} + //else retval = -1; + } + + //{ + cmd2.CommandText = string.Format("select min(idx) from Items where gcode='" + FCOMMON.info.Login.gcode + "' and ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''")); + var itemdata = cmd2.ExecuteScalar(); + if (itemdata == DBNull.Value || itemdata == null) + { + retval = -1; + } + else + { + var strItem = itemdata.ToString(); + if (strItem == "") retval = -1; + else retval = int.Parse(strItem); + } + + //} + cmd2.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + + public static Boolean UpdateItemSID(int itemIdx, string sid) + { + var cn = getCn(); + cn.Open(); + + int retval = 0; + var cmd2 = new SqlCommand("", cn); + + cmd2.CommandText = string.Format("update Items set sid=@sid where idx=@idx"); + + cmd2.Parameters.Clear(); + cmd2.Parameters.Add(new SqlParameter("idx", itemIdx)); + cmd2.Parameters.Add(new SqlParameter("sid", sid)); + retval = cmd2.ExecuteNonQuery(); + cmd2.Dispose(); + cn.Close(); + cn.Dispose(); + return retval != 0; + } + + public static List getGroupList(string GroupColumn, string table, string where = "", Boolean desc = false, Boolean useColumncover = true) + { + List retval = new List(); + var cn = getCn(); + cn.Open(); + var sql = "select {0} " + + " from {1} " + + " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' "; + + if (table.ToUpper() == "USERS") + sql = "select {0} " + + " from {1} " + + " where isnull({0},'') != '' "; + + + if (where != "") sql += " and " + where; + + sql += " group by {0} " + + " order by {0} "; + if (desc) sql += " desc"; + + if (useColumncover) + sql = string.Format(sql, "[" + GroupColumn + "]", table); + else + sql = string.Format(sql, GroupColumn, table); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + retval.Add(rdr[0].ToString()); + } + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } + + public static String getPathKJ(string dept) + { + var cn = getCn(); + cn.Open(); + var sql = "select max(isnull(path_kj,'')) " + + " from UserGroup " + + " where dept = '" + dept + "'"; + + sql = string.Format(sql); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteScalar(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + if (rdr == null) return string.Empty; + else return rdr.ToString(); + } + public static Boolean setPathKJ(string dept, string path) + { + var cn = getCn(); + cn.Open(); + var sql = "update UserGroup set path_kj=@path" + + " where dept = @dept"; + + sql = string.Format(sql); + var cmd = new SqlCommand(sql, cn); + cmd.Parameters.Add(new SqlParameter("path", path)); + cmd.Parameters.Add(new SqlParameter("dept", dept)); + var rdr = cmd.ExecuteNonQuery(); + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return rdr > 0; + } + + public static List getDateList(string table, string where = "", Boolean desc = false) + { + return getGroupList("pdate", table, where, desc); + } + + public static int UpdateItemIndexbySID() + { + int retval = 0; + var cn1 = getCn(); + cn1.Open(); + + var cn2 = getCn(); + cn2.Open(); + + var sql = "select idx, " + + " isnull(pumname,'') as pumname, " + + " isnull([sid],'') as [sid], " + + " isnull(pumscale,'') as pummodel, " + + " isnull(pumunit,'EA') as pumunit, " + + " isnull(pumprice,0) as pumprice, " + + " isnull(supply,'') as supply, " + + " isnull(supplyidx,-1) as supplyidx" + + " from purchase " + + " where gcode='" + FCOMMON.info.Login.gcode + "' and isnull(sid,'') <> '' and " + + " isnull(sid,'') <> '신규'" + + " and isnull(pumidx,-1) = -1 " + + " and len(sid) = 9" + + " and isnull(pumname,'') <> ''"; + + var cmd2 = new SqlCommand("", cn2); + var cmd = new SqlCommand(sql, cn1); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + var pumname = rdr["pumname"].ToString(); + var pummodel = rdr["pummodel"].ToString(); + var pumunit = rdr["pumunit"].ToString(); + var pumprice = decimal.Parse(rdr["pumprice"].ToString()); + var supply = rdr["supply"].ToString(); + var supplyidx = int.Parse(rdr["supplyidx"].ToString()); + + var sid = rdr["sid"].ToString(); + var idx = int.Parse(rdr["idx"].ToString()); + + //아이템정보에서 이 sid 가 1개 존재한다면 그것에 연결한다. + var sql2 = "select isnull(idx,-1) from Items where gcode='" + FCOMMON.info.Login.gcode + "' and [sid] = '" + sid + "'"; + cmd2.CommandText = sql2; + + var itemdata = cmd2.ExecuteScalar(); + if (itemdata != null && itemdata.ToString() != "-1") + { + cmd2.CommandText = "update purchase set pumidx = " + itemdata.ToString() + + " where gcode='" + FCOMMON.info.Login.gcode + "' and idx=" + idx.ToString(); + retval += cmd2.ExecuteNonQuery(); + } + else + { + cmd2.CommandText = "insert into items(gcode,cate,name,sid,model,scale,unit,supply,supplyidx,price,wuid,wdate)" + + "values(@gcode,@cate,@name,@sid,@model,@scale,@unit,@supply,@supplyidx,@price,@wuid,@wdate)"; + cmd2.Parameters.Clear(); + cmd2.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); + cmd2.Parameters.Add(new SqlParameter("cate", "--")); + cmd2.Parameters.Add(new SqlParameter("name", pumname)); + cmd2.Parameters.Add(new SqlParameter("sid", sid)); + cmd2.Parameters.Add(new SqlParameter("model", pummodel)); + cmd2.Parameters.Add(new SqlParameter("scale", 1.0)); + cmd2.Parameters.Add(new SqlParameter("unit", pumunit)); + cmd2.Parameters.Add(new SqlParameter("supply", supply)); + cmd2.Parameters.Add(new SqlParameter("supplyidx", supplyidx)); + cmd2.Parameters.Add(new SqlParameter("price", pumprice)); + cmd2.Parameters.Add(new SqlParameter("wuid", "dev")); + cmd2.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); + retval += cmd2.ExecuteNonQuery(); + } + + + } + cmd2.Dispose(); + cmd.Dispose(); + cn1.Close(); + cn1.Dispose(); + + cn2.Close(); + cn2.Dispose(); + return retval; + } + } } diff --git a/SubProject/FEQ0000/DSPrj.Designer.cs b/SubProject/FEQ0000/DSPrj.Designer.cs new file mode 100644 index 0000000..309fb4e --- /dev/null +++ b/SubProject/FEQ0000/DSPrj.Designer.cs @@ -0,0 +1,7193 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace FEQ0000 { + + + /// + ///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("DSPrj")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DSPrj : global::System.Data.DataSet { + + private ProjectsDataTable tableProjects; + + 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 DSPrj() { + 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 DSPrj(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["Projects"] != null)) { + base.Tables.Add(new ProjectsDataTable(ds.Tables["Projects"])); + } + 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 ProjectsDataTable Projects { + get { + return this.tableProjects; + } + } + + [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() { + DSPrj cln = ((DSPrj)(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["Projects"] != null)) { + base.Tables.Add(new ProjectsDataTable(ds.Tables["Projects"])); + } + 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.tableProjects = ((ProjectsDataTable)(base.Tables["Projects"])); + if ((initTable == true)) { + if ((this.tableProjects != null)) { + this.tableProjects.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.DataSetName = "DSPrj"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DSPrj.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableProjects = new ProjectsDataTable(); + base.Tables.Add(this.tableProjects); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeProjects() { + 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) { + DSPrj ds = new DSPrj(); + 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 ProjectsRowChangeEventHandler(object sender, ProjectsRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ProjectsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidx; + + private global::System.Data.DataColumn columnpidx; + + private global::System.Data.DataColumn columngcode; + + private global::System.Data.DataColumn columnisdel; + + private global::System.Data.DataColumn columncategory; + + private global::System.Data.DataColumn columnstatus; + + private global::System.Data.DataColumn columnasset; + + private global::System.Data.DataColumn columnlevel; + + private global::System.Data.DataColumn columnrev; + + private global::System.Data.DataColumn columnprocess; + + private global::System.Data.DataColumn columnpart; + + private global::System.Data.DataColumn columnpdate; + + private global::System.Data.DataColumn columnname; + + private global::System.Data.DataColumn columnuserManager; + + private global::System.Data.DataColumn columnusermain; + + private global::System.Data.DataColumn columnusersub; + + private global::System.Data.DataColumn columnuserhw2; + + private global::System.Data.DataColumn columnreqstaff; + + private global::System.Data.DataColumn columncosto; + + private global::System.Data.DataColumn columncostn; + + private global::System.Data.DataColumn columncnt; + + private global::System.Data.DataColumn columnremark_req; + + private global::System.Data.DataColumn columnremark_ans; + + private global::System.Data.DataColumn columnsdate; + + private global::System.Data.DataColumn columnddate; + + private global::System.Data.DataColumn columnedate; + + private global::System.Data.DataColumn columnodate; + + private global::System.Data.DataColumn columnbdate; + + private global::System.Data.DataColumn columnqdate; + + private global::System.Data.DataColumn columncdate; + + private global::System.Data.DataColumn columnprogress; + + private global::System.Data.DataColumn columnmemo; + + private global::System.Data.DataColumn columnwuid; + + private global::System.Data.DataColumn columnwdate; + + private global::System.Data.DataColumn columnorderno; + + private global::System.Data.DataColumn columncrdue; + + private global::System.Data.DataColumn columnimport; + + private global::System.Data.DataColumn columnpath; + + private global::System.Data.DataColumn columnuserprocess; + + private global::System.Data.DataColumn columnCMP_Background; + + private global::System.Data.DataColumn columnCMP_Description; + + private global::System.Data.DataColumn columnCMP_Before; + + private global::System.Data.DataColumn columnCMP_After; + + private global::System.Data.DataColumn columnCMP_After2; + + private global::System.Data.DataColumn columnbCost; + + private global::System.Data.DataColumn columnbFanOut; + + private global::System.Data.DataColumn columndiv; + + private global::System.Data.DataColumn columnmodel; + + private global::System.Data.DataColumn columnserial; + + private global::System.Data.DataColumn columnEB_Site; + + private global::System.Data.DataColumn columnEB_Line; + + private global::System.Data.DataColumn columnEB_Team; + + private global::System.Data.DataColumn columnEB_Model; + + private global::System.Data.DataColumn columnEB_OutSourceName; + + private global::System.Data.DataColumn columnEB_RepairTime; + + private global::System.Data.DataColumn columnEB_ConstNew; + + private global::System.Data.DataColumn columnEB_BoardName; + + private global::System.Data.DataColumn columnbAlert; + + private global::System.Data.DataColumn columnchampionid; + + private global::System.Data.DataColumn columndesignid; + + private global::System.Data.DataColumn columnassemblyid; + + private global::System.Data.DataColumn columnepanelid; + + private global::System.Data.DataColumn columnsoftwareid; + + private global::System.Data.DataColumn columnuserAssembly; + + private global::System.Data.DataColumn columnReqLine; + + private global::System.Data.DataColumn columnReqSite; + + private global::System.Data.DataColumn columnReqPackage; + + private global::System.Data.DataColumn columnReqPlant; + + private global::System.Data.DataColumn columnpno; + + private global::System.Data.DataColumn columnkdate; + + private global::System.Data.DataColumn columnjasmin; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ProjectsDataTable() { + this.TableName = "Projects"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ProjectsDataTable(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 ProjectsDataTable(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 pidxColumn { + get { + return this.columnpidx; + } + } + + [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 isdelColumn { + get { + return this.columnisdel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn categoryColumn { + get { + return this.columncategory; + } + } + + [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 assetColumn { + get { + return this.columnasset; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn levelColumn { + get { + return this.columnlevel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn revColumn { + get { + return this.columnrev; + } + } + + [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 partColumn { + get { + return this.columnpart; + } + } + + [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 nameColumn { + get { + return this.columnname; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn userManagerColumn { + get { + return this.columnuserManager; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn usermainColumn { + get { + return this.columnusermain; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn usersubColumn { + get { + return this.columnusersub; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn userhw2Column { + get { + return this.columnuserhw2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn reqstaffColumn { + get { + return this.columnreqstaff; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn costoColumn { + get { + return this.columncosto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn costnColumn { + get { + return this.columncostn; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn cntColumn { + get { + return this.columncnt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn remark_reqColumn { + get { + return this.columnremark_req; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn remark_ansColumn { + get { + return this.columnremark_ans; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn sdateColumn { + get { + return this.columnsdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ddateColumn { + get { + return this.columnddate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn edateColumn { + get { + return this.columnedate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn odateColumn { + get { + return this.columnodate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn bdateColumn { + get { + return this.columnbdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn qdateColumn { + get { + return this.columnqdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn cdateColumn { + get { + return this.columncdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn progressColumn { + get { + return this.columnprogress; + } + } + + [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 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 ordernoColumn { + get { + return this.columnorderno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn crdueColumn { + get { + return this.columncrdue; + } + } + + [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 pathColumn { + get { + return this.columnpath; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn userprocessColumn { + get { + return this.columnuserprocess; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CMP_BackgroundColumn { + get { + return this.columnCMP_Background; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CMP_DescriptionColumn { + get { + return this.columnCMP_Description; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CMP_BeforeColumn { + get { + return this.columnCMP_Before; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CMP_AfterColumn { + get { + return this.columnCMP_After; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CMP_After2Column { + get { + return this.columnCMP_After2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn bCostColumn { + get { + return this.columnbCost; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn bFanOutColumn { + get { + return this.columnbFanOut; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn divColumn { + get { + return this.columndiv; + } + } + + [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 serialColumn { + get { + return this.columnserial; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_SiteColumn { + get { + return this.columnEB_Site; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_LineColumn { + get { + return this.columnEB_Line; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_TeamColumn { + get { + return this.columnEB_Team; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_ModelColumn { + get { + return this.columnEB_Model; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_OutSourceNameColumn { + get { + return this.columnEB_OutSourceName; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_RepairTimeColumn { + get { + return this.columnEB_RepairTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_ConstNewColumn { + get { + return this.columnEB_ConstNew; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EB_BoardNameColumn { + get { + return this.columnEB_BoardName; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn bAlertColumn { + get { + return this.columnbAlert; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn championidColumn { + get { + return this.columnchampionid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn designidColumn { + get { + return this.columndesignid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn assemblyidColumn { + get { + return this.columnassemblyid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epanelidColumn { + get { + return this.columnepanelid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn softwareidColumn { + get { + return this.columnsoftwareid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn userAssemblyColumn { + get { + return this.columnuserAssembly; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReqLineColumn { + get { + return this.columnReqLine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReqSiteColumn { + get { + return this.columnReqSite; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReqPackageColumn { + get { + return this.columnReqPackage; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReqPlantColumn { + get { + return this.columnReqPlant; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn pnoColumn { + get { + return this.columnpno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn kdateColumn { + get { + return this.columnkdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn jasminColumn { + get { + return this.columnjasmin; + } + } + + [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 ProjectsRow this[int index] { + get { + return ((ProjectsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ProjectsRowChangeEventHandler ProjectsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ProjectsRowChangeEventHandler ProjectsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ProjectsRowChangeEventHandler ProjectsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ProjectsRowChangeEventHandler ProjectsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddProjectsRow(ProjectsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ProjectsRow AddProjectsRow( + int pidx, + string gcode, + bool isdel, + string category, + string status, + string asset, + int level, + int rev, + string process, + string part, + string pdate, + string name, + string userManager, + string usermain, + string usersub, + string userhw2, + string reqstaff, + double costo, + double costn, + int cnt, + string remark_req, + string remark_ans, + string sdate, + string ddate, + string edate, + string odate, + string bdate, + string qdate, + string cdate, + int progress, + string memo, + string wuid, + System.DateTime wdate, + string orderno, + string crdue, + bool import, + string path, + string userprocess, + string CMP_Background, + string CMP_Description, + string CMP_Before, + string CMP_After, + string CMP_After2, + bool bCost, + bool bFanOut, + string div, + string model, + string serial, + string EB_Site, + string EB_Line, + string EB_Team, + string EB_Model, + string EB_OutSourceName, + double EB_RepairTime, + double EB_ConstNew, + string EB_BoardName, + bool bAlert, + string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string userAssembly, + string ReqLine, + string ReqSite, + string ReqPackage, + string ReqPlant, + int pno, + string kdate, + int jasmin) { + ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + pidx, + gcode, + isdel, + category, + status, + asset, + level, + rev, + process, + part, + pdate, + name, + userManager, + usermain, + usersub, + userhw2, + reqstaff, + costo, + costn, + cnt, + remark_req, + remark_ans, + sdate, + ddate, + edate, + odate, + bdate, + qdate, + cdate, + progress, + memo, + wuid, + wdate, + orderno, + crdue, + import, + path, + userprocess, + CMP_Background, + CMP_Description, + CMP_Before, + CMP_After, + CMP_After2, + bCost, + bFanOut, + div, + model, + serial, + EB_Site, + EB_Line, + EB_Team, + EB_Model, + EB_OutSourceName, + EB_RepairTime, + EB_ConstNew, + EB_BoardName, + bAlert, + championid, + designid, + assemblyid, + epanelid, + softwareid, + userAssembly, + ReqLine, + ReqSite, + ReqPackage, + ReqPlant, + pno, + kdate, + jasmin}; + rowProjectsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowProjectsRow); + return rowProjectsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ProjectsRow FindByidx(int idx) { + return ((ProjectsRow)(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() { + ProjectsDataTable cln = ((ProjectsDataTable)(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 ProjectsDataTable(); + } + + [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.columnpidx = base.Columns["pidx"]; + this.columngcode = base.Columns["gcode"]; + this.columnisdel = base.Columns["isdel"]; + this.columncategory = base.Columns["category"]; + this.columnstatus = base.Columns["status"]; + this.columnasset = base.Columns["asset"]; + this.columnlevel = base.Columns["level"]; + this.columnrev = base.Columns["rev"]; + this.columnprocess = base.Columns["process"]; + this.columnpart = base.Columns["part"]; + this.columnpdate = base.Columns["pdate"]; + this.columnname = base.Columns["name"]; + this.columnuserManager = base.Columns["userManager"]; + this.columnusermain = base.Columns["usermain"]; + this.columnusersub = base.Columns["usersub"]; + this.columnuserhw2 = base.Columns["userhw2"]; + this.columnreqstaff = base.Columns["reqstaff"]; + this.columncosto = base.Columns["costo"]; + this.columncostn = base.Columns["costn"]; + this.columncnt = base.Columns["cnt"]; + this.columnremark_req = base.Columns["remark_req"]; + this.columnremark_ans = base.Columns["remark_ans"]; + this.columnsdate = base.Columns["sdate"]; + this.columnddate = base.Columns["ddate"]; + this.columnedate = base.Columns["edate"]; + this.columnodate = base.Columns["odate"]; + this.columnbdate = base.Columns["bdate"]; + this.columnqdate = base.Columns["qdate"]; + this.columncdate = base.Columns["cdate"]; + this.columnprogress = base.Columns["progress"]; + this.columnmemo = base.Columns["memo"]; + this.columnwuid = base.Columns["wuid"]; + this.columnwdate = base.Columns["wdate"]; + this.columnorderno = base.Columns["orderno"]; + this.columncrdue = base.Columns["crdue"]; + this.columnimport = base.Columns["import"]; + this.columnpath = base.Columns["path"]; + this.columnuserprocess = base.Columns["userprocess"]; + this.columnCMP_Background = base.Columns["CMP_Background"]; + this.columnCMP_Description = base.Columns["CMP_Description"]; + this.columnCMP_Before = base.Columns["CMP_Before"]; + this.columnCMP_After = base.Columns["CMP_After"]; + this.columnCMP_After2 = base.Columns["CMP_After2"]; + this.columnbCost = base.Columns["bCost"]; + this.columnbFanOut = base.Columns["bFanOut"]; + this.columndiv = base.Columns["div"]; + this.columnmodel = base.Columns["model"]; + this.columnserial = base.Columns["serial"]; + this.columnEB_Site = base.Columns["EB_Site"]; + this.columnEB_Line = base.Columns["EB_Line"]; + this.columnEB_Team = base.Columns["EB_Team"]; + this.columnEB_Model = base.Columns["EB_Model"]; + this.columnEB_OutSourceName = base.Columns["EB_OutSourceName"]; + this.columnEB_RepairTime = base.Columns["EB_RepairTime"]; + this.columnEB_ConstNew = base.Columns["EB_ConstNew"]; + this.columnEB_BoardName = base.Columns["EB_BoardName"]; + this.columnbAlert = base.Columns["bAlert"]; + this.columnchampionid = base.Columns["championid"]; + this.columndesignid = base.Columns["designid"]; + this.columnassemblyid = base.Columns["assemblyid"]; + this.columnepanelid = base.Columns["epanelid"]; + this.columnsoftwareid = base.Columns["softwareid"]; + this.columnuserAssembly = base.Columns["userAssembly"]; + this.columnReqLine = base.Columns["ReqLine"]; + this.columnReqSite = base.Columns["ReqSite"]; + this.columnReqPackage = base.Columns["ReqPackage"]; + this.columnReqPlant = base.Columns["ReqPlant"]; + this.columnpno = base.Columns["pno"]; + this.columnkdate = base.Columns["kdate"]; + this.columnjasmin = base.Columns["jasmin"]; + } + + [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.columnpidx = new global::System.Data.DataColumn("pidx", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpidx); + this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngcode); + this.columnisdel = new global::System.Data.DataColumn("isdel", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisdel); + this.columncategory = new global::System.Data.DataColumn("category", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncategory); + this.columnstatus = new global::System.Data.DataColumn("status", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnstatus); + this.columnasset = new global::System.Data.DataColumn("asset", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnasset); + this.columnlevel = new global::System.Data.DataColumn("level", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlevel); + this.columnrev = new global::System.Data.DataColumn("rev", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrev); + this.columnprocess = new global::System.Data.DataColumn("process", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnprocess); + this.columnpart = new global::System.Data.DataColumn("part", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpart); + this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpdate); + this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname); + this.columnuserManager = new global::System.Data.DataColumn("userManager", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuserManager); + this.columnusermain = new global::System.Data.DataColumn("usermain", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnusermain); + this.columnusersub = new global::System.Data.DataColumn("usersub", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnusersub); + this.columnuserhw2 = new global::System.Data.DataColumn("userhw2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuserhw2); + this.columnreqstaff = new global::System.Data.DataColumn("reqstaff", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnreqstaff); + this.columncosto = new global::System.Data.DataColumn("costo", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncosto); + this.columncostn = new global::System.Data.DataColumn("costn", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncostn); + this.columncnt = new global::System.Data.DataColumn("cnt", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncnt); + this.columnremark_req = new global::System.Data.DataColumn("remark_req", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnremark_req); + this.columnremark_ans = new global::System.Data.DataColumn("remark_ans", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnremark_ans); + this.columnsdate = new global::System.Data.DataColumn("sdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsdate); + this.columnddate = new global::System.Data.DataColumn("ddate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnddate); + this.columnedate = new global::System.Data.DataColumn("edate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnedate); + this.columnodate = new global::System.Data.DataColumn("odate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnodate); + this.columnbdate = new global::System.Data.DataColumn("bdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbdate); + this.columnqdate = new global::System.Data.DataColumn("qdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnqdate); + this.columncdate = new global::System.Data.DataColumn("cdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncdate); + this.columnprogress = new global::System.Data.DataColumn("progress", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnprogress); + this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmemo); + 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.columnorderno = new global::System.Data.DataColumn("orderno", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnorderno); + this.columncrdue = new global::System.Data.DataColumn("crdue", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncrdue); + this.columnimport = new global::System.Data.DataColumn("import", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnimport); + this.columnpath = new global::System.Data.DataColumn("path", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpath); + this.columnuserprocess = new global::System.Data.DataColumn("userprocess", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuserprocess); + this.columnCMP_Background = new global::System.Data.DataColumn("CMP_Background", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCMP_Background); + this.columnCMP_Description = new global::System.Data.DataColumn("CMP_Description", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCMP_Description); + this.columnCMP_Before = new global::System.Data.DataColumn("CMP_Before", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCMP_Before); + this.columnCMP_After = new global::System.Data.DataColumn("CMP_After", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCMP_After); + this.columnCMP_After2 = new global::System.Data.DataColumn("CMP_After2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCMP_After2); + this.columnbCost = new global::System.Data.DataColumn("bCost", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbCost); + this.columnbFanOut = new global::System.Data.DataColumn("bFanOut", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbFanOut); + this.columndiv = new global::System.Data.DataColumn("div", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndiv); + this.columnmodel = new global::System.Data.DataColumn("model", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmodel); + this.columnserial = new global::System.Data.DataColumn("serial", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnserial); + this.columnEB_Site = new global::System.Data.DataColumn("EB_Site", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_Site); + this.columnEB_Line = new global::System.Data.DataColumn("EB_Line", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_Line); + this.columnEB_Team = new global::System.Data.DataColumn("EB_Team", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_Team); + this.columnEB_Model = new global::System.Data.DataColumn("EB_Model", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_Model); + this.columnEB_OutSourceName = new global::System.Data.DataColumn("EB_OutSourceName", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_OutSourceName); + this.columnEB_RepairTime = new global::System.Data.DataColumn("EB_RepairTime", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_RepairTime); + this.columnEB_ConstNew = new global::System.Data.DataColumn("EB_ConstNew", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_ConstNew); + this.columnEB_BoardName = new global::System.Data.DataColumn("EB_BoardName", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEB_BoardName); + this.columnbAlert = new global::System.Data.DataColumn("bAlert", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnbAlert); + this.columnchampionid = new global::System.Data.DataColumn("championid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnchampionid); + this.columndesignid = new global::System.Data.DataColumn("designid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndesignid); + this.columnassemblyid = new global::System.Data.DataColumn("assemblyid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnassemblyid); + this.columnepanelid = new global::System.Data.DataColumn("epanelid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepanelid); + this.columnsoftwareid = new global::System.Data.DataColumn("softwareid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsoftwareid); + this.columnuserAssembly = new global::System.Data.DataColumn("userAssembly", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuserAssembly); + this.columnReqLine = new global::System.Data.DataColumn("ReqLine", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReqLine); + this.columnReqSite = new global::System.Data.DataColumn("ReqSite", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReqSite); + this.columnReqPackage = new global::System.Data.DataColumn("ReqPackage", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReqPackage); + this.columnReqPlant = new global::System.Data.DataColumn("ReqPlant", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReqPlant); + this.columnpno = new global::System.Data.DataColumn("pno", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpno); + this.columnkdate = new global::System.Data.DataColumn("kdate", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnkdate); + this.columnjasmin = new global::System.Data.DataColumn("jasmin", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnjasmin); + 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.columncategory.MaxLength = 50; + this.columnstatus.MaxLength = 50; + this.columnasset.MaxLength = 100; + this.columnprocess.MaxLength = 50; + this.columnpart.MaxLength = 50; + this.columnpdate.MaxLength = 10; + this.columnname.MaxLength = 255; + this.columnuserManager.MaxLength = 50; + this.columnusermain.MaxLength = 50; + this.columnusersub.MaxLength = 50; + this.columnuserhw2.MaxLength = 50; + this.columnreqstaff.MaxLength = 50; + this.columnremark_req.MaxLength = 2147483647; + this.columnremark_ans.MaxLength = 2147483647; + this.columnsdate.MaxLength = 50; + this.columnddate.MaxLength = 50; + this.columnedate.MaxLength = 50; + this.columnodate.MaxLength = 50; + this.columnbdate.MaxLength = 50; + this.columnqdate.MaxLength = 50; + this.columncdate.MaxLength = 50; + this.columnmemo.MaxLength = 255; + this.columnwuid.AllowDBNull = false; + this.columnwuid.MaxLength = 20; + this.columnwdate.AllowDBNull = false; + this.columnorderno.MaxLength = 50; + this.columncrdue.MaxLength = 10; + this.columnpath.MaxLength = 300; + this.columnuserprocess.MaxLength = 100; + this.columnCMP_Background.MaxLength = 2147483647; + this.columnCMP_Description.MaxLength = 2147483647; + this.columnCMP_Before.MaxLength = 2147483647; + this.columnCMP_After.MaxLength = 2147483647; + this.columnCMP_After2.MaxLength = 2147483647; + this.columndiv.MaxLength = 2; + this.columnmodel.MaxLength = 50; + this.columnserial.MaxLength = 50; + this.columnEB_Site.MaxLength = 20; + this.columnEB_Line.MaxLength = 10; + this.columnEB_Team.MaxLength = 10; + this.columnEB_Model.MaxLength = 100; + this.columnEB_OutSourceName.MaxLength = 100; + this.columnEB_BoardName.MaxLength = 255; + this.columnchampionid.MaxLength = 20; + this.columndesignid.MaxLength = 20; + this.columnassemblyid.MaxLength = 20; + this.columnepanelid.MaxLength = 20; + this.columnsoftwareid.MaxLength = 20; + this.columnuserAssembly.MaxLength = 50; + this.columnReqLine.MaxLength = 50; + this.columnReqSite.MaxLength = 50; + this.columnReqPackage.MaxLength = 50; + this.columnReqPlant.MaxLength = 50; + this.columnkdate.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ProjectsRow NewProjectsRow() { + return ((ProjectsRow)(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 ProjectsRow(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(ProjectsRow); + } + + [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.ProjectsRowChanged != null)) { + this.ProjectsRowChanged(this, new ProjectsRowChangeEvent(((ProjectsRow)(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.ProjectsRowChanging != null)) { + this.ProjectsRowChanging(this, new ProjectsRowChangeEvent(((ProjectsRow)(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.ProjectsRowDeleted != null)) { + this.ProjectsRowDeleted(this, new ProjectsRowChangeEvent(((ProjectsRow)(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.ProjectsRowDeleting != null)) { + this.ProjectsRowDeleting(this, new ProjectsRowChangeEvent(((ProjectsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveProjectsRow(ProjectsRow 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(); + DSPrj ds = new DSPrj(); + 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 = "ProjectsDataTable"; + 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 ProjectsRow : global::System.Data.DataRow { + + private ProjectsDataTable tableProjects; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ProjectsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableProjects = ((ProjectsDataTable)(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.tableProjects.idxColumn])); + } + set { + this[this.tableProjects.idxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int pidx { + get { + try { + return ((int)(this[this.tableProjects.pidxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'pidx\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.pidxColumn] = 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.tableProjects.gcodeColumn])); + } + set { + this[this.tableProjects.gcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isdel { + get { + try { + return ((bool)(this[this.tableProjects.isdelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'isdel\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.isdelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string category { + get { + if (this.IscategoryNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.categoryColumn])); + } + } + set { + this[this.tableProjects.categoryColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string status { + get { + if (this.IsstatusNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.statusColumn])); + } + } + set { + this[this.tableProjects.statusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string asset { + get { + if (this.IsassetNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.assetColumn])); + } + } + set { + this[this.tableProjects.assetColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int level { + get { + try { + return ((int)(this[this.tableProjects.levelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'level\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.levelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int rev { + get { + try { + return ((int)(this[this.tableProjects.revColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'rev\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.revColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string process { + get { + if (this.IsprocessNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.processColumn])); + } + } + set { + this[this.tableProjects.processColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string part { + get { + try { + return ((string)(this[this.tableProjects.partColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'part\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.partColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string pdate { + get { + if (this.IspdateNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.pdateColumn])); + } + } + set { + this[this.tableProjects.pdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name { + get { + if (this.IsnameNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.nameColumn])); + } + } + set { + this[this.tableProjects.nameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string userManager { + get { + try { + return ((string)(this[this.tableProjects.userManagerColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'userManager\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.userManagerColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string usermain { + get { + if (this.IsusermainNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.usermainColumn])); + } + } + set { + this[this.tableProjects.usermainColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string usersub { + get { + if (this.IsusersubNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.usersubColumn])); + } + } + set { + this[this.tableProjects.usersubColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string userhw2 { + get { + if (this.Isuserhw2Null()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.userhw2Column])); + } + } + set { + this[this.tableProjects.userhw2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string reqstaff { + get { + if (this.IsreqstaffNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.reqstaffColumn])); + } + } + set { + this[this.tableProjects.reqstaffColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double costo { + get { + try { + return ((double)(this[this.tableProjects.costoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'costo\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.costoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double costn { + get { + try { + return ((double)(this[this.tableProjects.costnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'costn\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.costnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int cnt { + get { + try { + return ((int)(this[this.tableProjects.cntColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'cnt\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.cntColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string remark_req { + get { + try { + return ((string)(this[this.tableProjects.remark_reqColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'remark_req\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.remark_reqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string remark_ans { + get { + try { + return ((string)(this[this.tableProjects.remark_ansColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'remark_ans\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.remark_ansColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string sdate { + get { + try { + return ((string)(this[this.tableProjects.sdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.sdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ddate { + get { + try { + return ((string)(this[this.tableProjects.ddateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'ddate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.ddateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string edate { + get { + try { + return ((string)(this[this.tableProjects.edateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'edate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.edateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string odate { + get { + try { + return ((string)(this[this.tableProjects.odateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'odate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.odateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string bdate { + get { + try { + return ((string)(this[this.tableProjects.bdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'bdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.bdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string qdate { + get { + try { + return ((string)(this[this.tableProjects.qdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'qdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.qdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string cdate { + get { + try { + return ((string)(this[this.tableProjects.cdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'cdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.cdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int progress { + get { + try { + return ((int)(this[this.tableProjects.progressColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'progress\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.progressColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string memo { + get { + if (this.IsmemoNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.memoColumn])); + } + } + set { + this[this.tableProjects.memoColumn] = 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.tableProjects.wuidColumn])); + } + set { + this[this.tableProjects.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.tableProjects.wdateColumn])); + } + set { + this[this.tableProjects.wdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string orderno { + get { + if (this.IsordernoNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.ordernoColumn])); + } + } + set { + this[this.tableProjects.ordernoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string crdue { + get { + try { + return ((string)(this[this.tableProjects.crdueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'crdue\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.crdueColumn] = 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.tableProjects.importColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'import\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.importColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string path { + get { + try { + return ((string)(this[this.tableProjects.pathColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'path\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.pathColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string userprocess { + get { + if (this.IsuserprocessNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.userprocessColumn])); + } + } + set { + this[this.tableProjects.userprocessColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CMP_Background { + get { + try { + return ((string)(this[this.tableProjects.CMP_BackgroundColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'CMP_Background\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.CMP_BackgroundColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CMP_Description { + get { + try { + return ((string)(this[this.tableProjects.CMP_DescriptionColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'CMP_Description\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.CMP_DescriptionColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CMP_Before { + get { + try { + return ((string)(this[this.tableProjects.CMP_BeforeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'CMP_Before\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.CMP_BeforeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CMP_After { + get { + try { + return ((string)(this[this.tableProjects.CMP_AfterColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'CMP_After\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.CMP_AfterColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CMP_After2 { + get { + try { + return ((string)(this[this.tableProjects.CMP_After2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'CMP_After2\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.CMP_After2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool bCost { + get { + try { + return ((bool)(this[this.tableProjects.bCostColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'bCost\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.bCostColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool bFanOut { + get { + try { + return ((bool)(this[this.tableProjects.bFanOutColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'bFanOut\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.bFanOutColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string div { + get { + try { + return ((string)(this[this.tableProjects.divColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'div\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.divColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string model { + get { + if (this.IsmodelNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.modelColumn])); + } + } + set { + this[this.tableProjects.modelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string serial { + get { + if (this.IsserialNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.serialColumn])); + } + } + set { + this[this.tableProjects.serialColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_Site { + get { + try { + return ((string)(this[this.tableProjects.EB_SiteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_Site\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_SiteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_Line { + get { + try { + return ((string)(this[this.tableProjects.EB_LineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_Line\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_LineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_Team { + get { + try { + return ((string)(this[this.tableProjects.EB_TeamColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_Team\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_TeamColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_Model { + get { + try { + return ((string)(this[this.tableProjects.EB_ModelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_Model\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_ModelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_OutSourceName { + get { + try { + return ((string)(this[this.tableProjects.EB_OutSourceNameColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_OutSourceName\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_OutSourceNameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double EB_RepairTime { + get { + try { + return ((double)(this[this.tableProjects.EB_RepairTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_RepairTime\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_RepairTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double EB_ConstNew { + get { + try { + return ((double)(this[this.tableProjects.EB_ConstNewColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_ConstNew\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_ConstNewColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string EB_BoardName { + get { + try { + return ((string)(this[this.tableProjects.EB_BoardNameColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'EB_BoardName\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.EB_BoardNameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool bAlert { + get { + try { + return ((bool)(this[this.tableProjects.bAlertColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'bAlert\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.bAlertColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string championid { + get { + if (this.IschampionidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.championidColumn])); + } + } + set { + this[this.tableProjects.championidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string designid { + get { + if (this.IsdesignidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.designidColumn])); + } + } + set { + this[this.tableProjects.designidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string assemblyid { + get { + if (this.IsassemblyidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.assemblyidColumn])); + } + } + set { + this[this.tableProjects.assemblyidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string epanelid { + get { + if (this.IsepanelidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.epanelidColumn])); + } + } + set { + this[this.tableProjects.epanelidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string softwareid { + get { + try { + return ((string)(this[this.tableProjects.softwareidColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'softwareid\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.softwareidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string userAssembly { + get { + try { + return ((string)(this[this.tableProjects.userAssemblyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'userAssembly\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.userAssemblyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ReqLine { + get { + try { + return ((string)(this[this.tableProjects.ReqLineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'ReqLine\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.ReqLineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ReqSite { + get { + try { + return ((string)(this[this.tableProjects.ReqSiteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'ReqSite\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.ReqSiteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ReqPackage { + get { + try { + return ((string)(this[this.tableProjects.ReqPackageColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'ReqPackage\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.ReqPackageColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ReqPlant { + get { + try { + return ((string)(this[this.tableProjects.ReqPlantColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'ReqPlant\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.ReqPlantColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int pno { + get { + try { + return ((int)(this[this.tableProjects.pnoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'pno\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.pnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string kdate { + get { + try { + return ((string)(this[this.tableProjects.kdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'kdate\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.kdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int jasmin { + get { + try { + return ((int)(this[this.tableProjects.jasminColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'jasmin\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.jasminColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspidxNull() { + return this.IsNull(this.tableProjects.pidxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpidxNull() { + this[this.tableProjects.pidxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsisdelNull() { + return this.IsNull(this.tableProjects.isdelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetisdelNull() { + this[this.tableProjects.isdelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscategoryNull() { + return this.IsNull(this.tableProjects.categoryColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcategoryNull() { + this[this.tableProjects.categoryColumn] = 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.tableProjects.statusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetstatusNull() { + this[this.tableProjects.statusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsassetNull() { + return this.IsNull(this.tableProjects.assetColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetassetNull() { + this[this.tableProjects.assetColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IslevelNull() { + return this.IsNull(this.tableProjects.levelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetlevelNull() { + this[this.tableProjects.levelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsrevNull() { + return this.IsNull(this.tableProjects.revColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetrevNull() { + this[this.tableProjects.revColumn] = 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.tableProjects.processColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetprocessNull() { + this[this.tableProjects.processColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspartNull() { + return this.IsNull(this.tableProjects.partColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpartNull() { + this[this.tableProjects.partColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspdateNull() { + return this.IsNull(this.tableProjects.pdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpdateNull() { + this[this.tableProjects.pdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsnameNull() { + return this.IsNull(this.tableProjects.nameColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetnameNull() { + this[this.tableProjects.nameColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsuserManagerNull() { + return this.IsNull(this.tableProjects.userManagerColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetuserManagerNull() { + this[this.tableProjects.userManagerColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsusermainNull() { + return this.IsNull(this.tableProjects.usermainColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetusermainNull() { + this[this.tableProjects.usermainColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsusersubNull() { + return this.IsNull(this.tableProjects.usersubColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetusersubNull() { + this[this.tableProjects.usersubColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isuserhw2Null() { + return this.IsNull(this.tableProjects.userhw2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setuserhw2Null() { + this[this.tableProjects.userhw2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsreqstaffNull() { + return this.IsNull(this.tableProjects.reqstaffColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetreqstaffNull() { + this[this.tableProjects.reqstaffColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscostoNull() { + return this.IsNull(this.tableProjects.costoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcostoNull() { + this[this.tableProjects.costoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscostnNull() { + return this.IsNull(this.tableProjects.costnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcostnNull() { + this[this.tableProjects.costnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscntNull() { + return this.IsNull(this.tableProjects.cntColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcntNull() { + this[this.tableProjects.cntColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isremark_reqNull() { + return this.IsNull(this.tableProjects.remark_reqColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setremark_reqNull() { + this[this.tableProjects.remark_reqColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isremark_ansNull() { + return this.IsNull(this.tableProjects.remark_ansColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setremark_ansNull() { + this[this.tableProjects.remark_ansColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IssdateNull() { + return this.IsNull(this.tableProjects.sdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetsdateNull() { + this[this.tableProjects.sdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsddateNull() { + return this.IsNull(this.tableProjects.ddateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetddateNull() { + this[this.tableProjects.ddateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsedateNull() { + return this.IsNull(this.tableProjects.edateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetedateNull() { + this[this.tableProjects.edateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsodateNull() { + return this.IsNull(this.tableProjects.odateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetodateNull() { + this[this.tableProjects.odateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsbdateNull() { + return this.IsNull(this.tableProjects.bdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetbdateNull() { + this[this.tableProjects.bdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsqdateNull() { + return this.IsNull(this.tableProjects.qdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetqdateNull() { + this[this.tableProjects.qdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscdateNull() { + return this.IsNull(this.tableProjects.cdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcdateNull() { + this[this.tableProjects.cdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsprogressNull() { + return this.IsNull(this.tableProjects.progressColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetprogressNull() { + this[this.tableProjects.progressColumn] = 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.tableProjects.memoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetmemoNull() { + this[this.tableProjects.memoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsordernoNull() { + return this.IsNull(this.tableProjects.ordernoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetordernoNull() { + this[this.tableProjects.ordernoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IscrdueNull() { + return this.IsNull(this.tableProjects.crdueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetcrdueNull() { + this[this.tableProjects.crdueColumn] = 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.tableProjects.importColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetimportNull() { + this[this.tableProjects.importColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspathNull() { + return this.IsNull(this.tableProjects.pathColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpathNull() { + this[this.tableProjects.pathColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsuserprocessNull() { + return this.IsNull(this.tableProjects.userprocessColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetuserprocessNull() { + this[this.tableProjects.userprocessColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCMP_BackgroundNull() { + return this.IsNull(this.tableProjects.CMP_BackgroundColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCMP_BackgroundNull() { + this[this.tableProjects.CMP_BackgroundColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCMP_DescriptionNull() { + return this.IsNull(this.tableProjects.CMP_DescriptionColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCMP_DescriptionNull() { + this[this.tableProjects.CMP_DescriptionColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCMP_BeforeNull() { + return this.IsNull(this.tableProjects.CMP_BeforeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCMP_BeforeNull() { + this[this.tableProjects.CMP_BeforeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCMP_AfterNull() { + return this.IsNull(this.tableProjects.CMP_AfterColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCMP_AfterNull() { + this[this.tableProjects.CMP_AfterColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCMP_After2Null() { + return this.IsNull(this.tableProjects.CMP_After2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCMP_After2Null() { + this[this.tableProjects.CMP_After2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsbCostNull() { + return this.IsNull(this.tableProjects.bCostColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetbCostNull() { + this[this.tableProjects.bCostColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsbFanOutNull() { + return this.IsNull(this.tableProjects.bFanOutColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetbFanOutNull() { + this[this.tableProjects.bFanOutColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsdivNull() { + return this.IsNull(this.tableProjects.divColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetdivNull() { + this[this.tableProjects.divColumn] = 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.tableProjects.modelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetmodelNull() { + this[this.tableProjects.modelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsserialNull() { + return this.IsNull(this.tableProjects.serialColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetserialNull() { + this[this.tableProjects.serialColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_SiteNull() { + return this.IsNull(this.tableProjects.EB_SiteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_SiteNull() { + this[this.tableProjects.EB_SiteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_LineNull() { + return this.IsNull(this.tableProjects.EB_LineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_LineNull() { + this[this.tableProjects.EB_LineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_TeamNull() { + return this.IsNull(this.tableProjects.EB_TeamColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_TeamNull() { + this[this.tableProjects.EB_TeamColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_ModelNull() { + return this.IsNull(this.tableProjects.EB_ModelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_ModelNull() { + this[this.tableProjects.EB_ModelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_OutSourceNameNull() { + return this.IsNull(this.tableProjects.EB_OutSourceNameColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_OutSourceNameNull() { + this[this.tableProjects.EB_OutSourceNameColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_RepairTimeNull() { + return this.IsNull(this.tableProjects.EB_RepairTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_RepairTimeNull() { + this[this.tableProjects.EB_RepairTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_ConstNewNull() { + return this.IsNull(this.tableProjects.EB_ConstNewColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_ConstNewNull() { + this[this.tableProjects.EB_ConstNewColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEB_BoardNameNull() { + return this.IsNull(this.tableProjects.EB_BoardNameColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEB_BoardNameNull() { + this[this.tableProjects.EB_BoardNameColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsbAlertNull() { + return this.IsNull(this.tableProjects.bAlertColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetbAlertNull() { + this[this.tableProjects.bAlertColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IschampionidNull() { + return this.IsNull(this.tableProjects.championidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetchampionidNull() { + this[this.tableProjects.championidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsdesignidNull() { + return this.IsNull(this.tableProjects.designidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetdesignidNull() { + this[this.tableProjects.designidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsassemblyidNull() { + return this.IsNull(this.tableProjects.assemblyidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetassemblyidNull() { + this[this.tableProjects.assemblyidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepanelidNull() { + return this.IsNull(this.tableProjects.epanelidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepanelidNull() { + this[this.tableProjects.epanelidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IssoftwareidNull() { + return this.IsNull(this.tableProjects.softwareidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetsoftwareidNull() { + this[this.tableProjects.softwareidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsuserAssemblyNull() { + return this.IsNull(this.tableProjects.userAssemblyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetuserAssemblyNull() { + this[this.tableProjects.userAssemblyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReqLineNull() { + return this.IsNull(this.tableProjects.ReqLineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReqLineNull() { + this[this.tableProjects.ReqLineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReqSiteNull() { + return this.IsNull(this.tableProjects.ReqSiteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReqSiteNull() { + this[this.tableProjects.ReqSiteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReqPackageNull() { + return this.IsNull(this.tableProjects.ReqPackageColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReqPackageNull() { + this[this.tableProjects.ReqPackageColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReqPlantNull() { + return this.IsNull(this.tableProjects.ReqPlantColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReqPlantNull() { + this[this.tableProjects.ReqPlantColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IspnoNull() { + return this.IsNull(this.tableProjects.pnoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetpnoNull() { + this[this.tableProjects.pnoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IskdateNull() { + return this.IsNull(this.tableProjects.kdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetkdateNull() { + this[this.tableProjects.kdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsjasminNull() { + return this.IsNull(this.tableProjects.jasminColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetjasminNull() { + this[this.tableProjects.jasminColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class ProjectsRowChangeEvent : global::System.EventArgs { + + private ProjectsRow 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 ProjectsRowChangeEvent(ProjectsRow 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 ProjectsRow 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 FEQ0000.DSPrjTableAdapters { + + + /// + ///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 ProjectsTableAdapter : 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 ProjectsTableAdapter() { + 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 = "Projects"; + tableMapping.ColumnMappings.Add("idx", "idx"); + tableMapping.ColumnMappings.Add("pidx", "pidx"); + tableMapping.ColumnMappings.Add("gcode", "gcode"); + tableMapping.ColumnMappings.Add("isdel", "isdel"); + tableMapping.ColumnMappings.Add("category", "category"); + tableMapping.ColumnMappings.Add("status", "status"); + tableMapping.ColumnMappings.Add("asset", "asset"); + tableMapping.ColumnMappings.Add("level", "level"); + tableMapping.ColumnMappings.Add("rev", "rev"); + tableMapping.ColumnMappings.Add("process", "process"); + tableMapping.ColumnMappings.Add("part", "part"); + tableMapping.ColumnMappings.Add("pdate", "pdate"); + tableMapping.ColumnMappings.Add("name", "name"); + tableMapping.ColumnMappings.Add("userManager", "userManager"); + tableMapping.ColumnMappings.Add("usermain", "usermain"); + tableMapping.ColumnMappings.Add("usersub", "usersub"); + tableMapping.ColumnMappings.Add("userhw2", "userhw2"); + tableMapping.ColumnMappings.Add("reqstaff", "reqstaff"); + tableMapping.ColumnMappings.Add("costo", "costo"); + tableMapping.ColumnMappings.Add("costn", "costn"); + tableMapping.ColumnMappings.Add("cnt", "cnt"); + tableMapping.ColumnMappings.Add("remark_req", "remark_req"); + tableMapping.ColumnMappings.Add("remark_ans", "remark_ans"); + tableMapping.ColumnMappings.Add("sdate", "sdate"); + tableMapping.ColumnMappings.Add("ddate", "ddate"); + tableMapping.ColumnMappings.Add("edate", "edate"); + tableMapping.ColumnMappings.Add("odate", "odate"); + tableMapping.ColumnMappings.Add("bdate", "bdate"); + tableMapping.ColumnMappings.Add("qdate", "qdate"); + tableMapping.ColumnMappings.Add("cdate", "cdate"); + tableMapping.ColumnMappings.Add("progress", "progress"); + tableMapping.ColumnMappings.Add("memo", "memo"); + tableMapping.ColumnMappings.Add("wuid", "wuid"); + tableMapping.ColumnMappings.Add("wdate", "wdate"); + tableMapping.ColumnMappings.Add("orderno", "orderno"); + tableMapping.ColumnMappings.Add("crdue", "crdue"); + tableMapping.ColumnMappings.Add("import", "import"); + tableMapping.ColumnMappings.Add("path", "path"); + tableMapping.ColumnMappings.Add("userprocess", "userprocess"); + tableMapping.ColumnMappings.Add("CMP_Background", "CMP_Background"); + tableMapping.ColumnMappings.Add("CMP_Description", "CMP_Description"); + tableMapping.ColumnMappings.Add("CMP_Before", "CMP_Before"); + tableMapping.ColumnMappings.Add("CMP_After", "CMP_After"); + tableMapping.ColumnMappings.Add("CMP_After2", "CMP_After2"); + tableMapping.ColumnMappings.Add("bCost", "bCost"); + tableMapping.ColumnMappings.Add("bFanOut", "bFanOut"); + tableMapping.ColumnMappings.Add("div", "div"); + tableMapping.ColumnMappings.Add("model", "model"); + tableMapping.ColumnMappings.Add("serial", "serial"); + tableMapping.ColumnMappings.Add("EB_Site", "EB_Site"); + tableMapping.ColumnMappings.Add("EB_Line", "EB_Line"); + tableMapping.ColumnMappings.Add("EB_Team", "EB_Team"); + tableMapping.ColumnMappings.Add("EB_Model", "EB_Model"); + tableMapping.ColumnMappings.Add("EB_OutSourceName", "EB_OutSourceName"); + tableMapping.ColumnMappings.Add("EB_RepairTime", "EB_RepairTime"); + tableMapping.ColumnMappings.Add("EB_ConstNew", "EB_ConstNew"); + tableMapping.ColumnMappings.Add("EB_BoardName", "EB_BoardName"); + tableMapping.ColumnMappings.Add("bAlert", "bAlert"); + tableMapping.ColumnMappings.Add("championid", "championid"); + tableMapping.ColumnMappings.Add("designid", "designid"); + tableMapping.ColumnMappings.Add("assemblyid", "assemblyid"); + tableMapping.ColumnMappings.Add("epanelid", "epanelid"); + tableMapping.ColumnMappings.Add("softwareid", "softwareid"); + tableMapping.ColumnMappings.Add("userAssembly", "userAssembly"); + tableMapping.ColumnMappings.Add("ReqLine", "ReqLine"); + tableMapping.ColumnMappings.Add("ReqSite", "ReqSite"); + tableMapping.ColumnMappings.Add("ReqPackage", "ReqPackage"); + tableMapping.ColumnMappings.Add("ReqPlant", "ReqPlant"); + tableMapping.ColumnMappings.Add("pno", "pno"); + tableMapping.ColumnMappings.Add("kdate", "kdate"); + tableMapping.ColumnMappings.Add("jasmin", "jasmin"); + 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 [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_pidx = 1 AND " + + "[pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode) AN" + + "D ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND (" + + "(@IsNull_category = 1 AND [category] IS NULL) OR ([category] = @Original_categor" + + "y)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_stat" + + "us)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)" + + ") AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) A" + + "ND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNul" + + "l_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@" + + "IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_" + + "pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_nam" + + "e = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_userManage" + + "r = 1 AND [userManager] IS NULL) OR ([userManager] = @Original_userManager)) AND" + + " ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_userm" + + "ain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original" + + "_usersub)) AND ((@IsNull_userhw2 = 1 AND [userhw2] IS NULL) OR ([userhw2] = @Ori" + + "ginal_userhw2)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff" + + "] = @Original_reqstaff)) AND ((@IsNull_costo = 1 AND [costo] IS NULL) OR ([costo" + + "] = @Original_costo)) AND ((@IsNull_costn = 1 AND [costn] IS NULL) OR ([costn] =" + + " @Original_costn)) AND ((@IsNull_cnt = 1 AND [cnt] IS NULL) OR ([cnt] = @Origina" + + "l_cnt)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sda" + + "te)) AND ((@IsNull_ddate = 1 AND [ddate] IS NULL) OR ([ddate] = @Original_ddate)" + + ") AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) A" + + "ND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND " + + "((@IsNull_bdate = 1 AND [bdate] IS NULL) OR ([bdate] = @Original_bdate)) AND ((@" + + "IsNull_qdate = 1 AND [qdate] IS NULL) OR ([qdate] = @Original_qdate)) AND ((@IsN" + + "ull_cdate = 1 AND [cdate] IS NULL) OR ([cdate] = @Original_cdate)) AND ((@IsNull" + + "_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND " + + "((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid]" + + " = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_orderno = 1 AND" + + " [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_crdue = 1 " + + "AND [crdue] IS NULL) OR ([crdue] = @Original_crdue)) AND ((@IsNull_import = 1 AN" + + "D [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_path = 1 AND" + + " [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_userprocess = 1 AND" + + " [userprocess] IS NULL) OR ([userprocess] = @Original_userprocess)) AND ((@IsNul" + + "l_bCost = 1 AND [bCost] IS NULL) OR ([bCost] = @Original_bCost)) AND ((@IsNull_b" + + "FanOut = 1 AND [bFanOut] IS NULL) OR ([bFanOut] = @Original_bFanOut)) AND ((@IsN" + + "ull_div = 1 AND [div] IS NULL) OR ([div] = @Original_div)) AND ((@IsNull_model =" + + " 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_serial = 1" + + " AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_EB_Site =" + + " 1 AND [EB_Site] IS NULL) OR ([EB_Site] = @Original_EB_Site)) AND ((@IsNull_EB_L" + + "ine = 1 AND [EB_Line] IS NULL) OR ([EB_Line] = @Original_EB_Line)) AND ((@IsNull" + + "_EB_Team = 1 AND [EB_Team] IS NULL) OR ([EB_Team] = @Original_EB_Team)) AND ((@I" + + "sNull_EB_Model = 1 AND [EB_Model] IS NULL) OR ([EB_Model] = @Original_EB_Model))" + + " AND ((@IsNull_EB_OutSourceName = 1 AND [EB_OutSourceName] IS NULL) OR ([EB_OutS" + + "ourceName] = @Original_EB_OutSourceName)) AND ((@IsNull_EB_RepairTime = 1 AND [E" + + "B_RepairTime] IS NULL) OR ([EB_RepairTime] = @Original_EB_RepairTime)) AND ((@Is" + + "Null_EB_ConstNew = 1 AND [EB_ConstNew] IS NULL) OR ([EB_ConstNew] = @Original_EB" + + "_ConstNew)) AND ((@IsNull_EB_BoardName = 1 AND [EB_BoardName] IS NULL) OR ([EB_B" + + "oardName] = @Original_EB_BoardName)) AND ((@IsNull_bAlert = 1 AND [bAlert] IS NU" + + "LL) OR ([bAlert] = @Original_bAlert)) AND ((@IsNull_championid = 1 AND [champion" + + "id] IS NULL) OR ([championid] = @Original_championid)) AND ((@IsNull_designid = " + + "1 AND [designid] IS NULL) OR ([designid] = @Original_designid)) AND ((@IsNull_as" + + "semblyid = 1 AND [assemblyid] IS NULL) OR ([assemblyid] = @Original_assemblyid))" + + " AND ((@IsNull_epanelid = 1 AND [epanelid] IS NULL) OR ([epanelid] = @Original_e" + + "panelid)) AND ((@IsNull_softwareid = 1 AND [softwareid] IS NULL) OR ([softwareid" + + "] = @Original_softwareid)) AND ((@IsNull_userAssembly = 1 AND [userAssembly] IS " + + "NULL) OR ([userAssembly] = @Original_userAssembly)) AND ((@IsNull_ReqLine = 1 AN" + + "D [ReqLine] IS NULL) OR ([ReqLine] = @Original_ReqLine)) AND ((@IsNull_ReqSite =" + + " 1 AND [ReqSite] IS NULL) OR ([ReqSite] = @Original_ReqSite)) AND ((@IsNull_ReqP" + + "ackage = 1 AND [ReqPackage] IS NULL) OR ([ReqPackage] = @Original_ReqPackage)) A" + + "ND ((@IsNull_ReqPlant = 1 AND [ReqPlant] IS NULL) OR ([ReqPlant] = @Original_Req" + + "Plant)) AND ((@IsNull_pno = 1 AND [pno] IS NULL) OR ([pno] = @Original_pno)) AND" + + " ((@IsNull_kdate = 1 AND [kdate] IS NULL) OR ([kdate] = @Original_kdate)) AND ((" + + "@IsNull_jasmin = 1 AND [jasmin] IS NULL) OR ([jasmin] = @Original_jasmin)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isdel", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_category", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", 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_asset", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_asset", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", 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_part", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", 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_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usermain", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usersub", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userhw2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userhw2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costn", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ddate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ddate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_odate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", 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.NVarChar, 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("@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_orderno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_orderno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_crdue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_crdue", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", 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("@IsNull_path", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userprocess", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userprocess", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bCost", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bFanOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bFanOut", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_div", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_div", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", 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_serial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Site", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Line", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_OutSourceName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_OutSourceName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_RepairTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_ConstNew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_ConstNew", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_BoardName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_BoardName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bAlert", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bAlert", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_championid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_championid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_designid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_designid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_assemblyid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_assemblyid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_epanelid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_epanelid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_softwareid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_softwareid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userAssembly", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userAssembly", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqLine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqLine", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqSite", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqSite", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqPackage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqPackage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqPlant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqPlant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", 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 [Projects] ([pidx], [gcode], [isdel], [category], [status], [asset], " + + "[level], [rev], [process], [part], [pdate], [name], [userManager], [usermain], [" + + "usersub], [userhw2], [reqstaff], [costo], [costn], [cnt], [remark_req], [remark_" + + "ans], [sdate], [ddate], [edate], [odate], [bdate], [qdate], [cdate], [progress]," + + " [memo], [wuid], [wdate], [orderno], [crdue], [import], [path], [userprocess], [" + + "CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [CMP_After2], [bC" + + "ost], [bFanOut], [div], [model], [serial], [EB_Site], [EB_Line], [EB_Team], [EB_" + + "Model], [EB_OutSourceName], [EB_RepairTime], [EB_ConstNew], [EB_BoardName], [bAl" + + "ert], [championid], [designid], [assemblyid], [epanelid], [softwareid], [userAss" + + "embly], [ReqLine], [ReqSite], [ReqPackage], [ReqPlant], [pno], [kdate], [jasmin]" + + ") VALUES (@pidx, @gcode, @isdel, @category, @status, @asset, @level, @rev, @proc" + + "ess, @part, @pdate, @name, @userManager, @usermain, @usersub, @userhw2, @reqstaf" + + "f, @costo, @costn, @cnt, @remark_req, @remark_ans, @sdate, @ddate, @edate, @odat" + + "e, @bdate, @qdate, @cdate, @progress, @memo, @wuid, @wdate, @orderno, @crdue, @i" + + "mport, @path, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP" + + "_After, @CMP_After2, @bCost, @bFanOut, @div, @model, @serial, @EB_Site, @EB_Line" + + ", @EB_Team, @EB_Model, @EB_OutSourceName, @EB_RepairTime, @EB_ConstNew, @EB_Boar" + + "dName, @bAlert, @championid, @designid, @assemblyid, @epanelid, @softwareid, @us" + + "erAssembly, @ReqLine, @ReqSite, @ReqPackage, @ReqPlant, @pno, @kdate, @jasmin);\r" + + "\nSELECT idx, pidx, gcode, isdel, category, status, asset, level, rev, process, p" + + "art, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, cost" + + "n, cnt, remark_req, remark_ans, sdate, ddate, edate, odate, bdate, qdate, cdate," + + " progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Bac" + + "kground, CMP_Description, CMP_Before, CMP_After, CMP_After2, bCost, bFanOut, div" + + ", model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_Repai" + + "rTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, epan" + + "elid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kda" + + "te, jasmin FROM Projects WHERE (idx = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.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("@isdel", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", 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("@asset", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", 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("@part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", 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("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userhw2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costn", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark_req", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark_req", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark_ans", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark_ans", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ddate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 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("@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("@orderno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@crdue", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", 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("@path", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userprocess", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Background", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Background", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Description", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Before", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Before", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_After", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_After", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_After2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_After2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bCost", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bFanOut", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@div", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", 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("@serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_OutSourceName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_ConstNew", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_BoardName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bAlert", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@championid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@designid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@assemblyid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epanelid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@softwareid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userAssembly", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqLine", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqSite", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqPackage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqPlant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", 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 [Projects] SET [pidx] = @pidx, [gcode] = @gcode, [isdel] = @isdel, [catego" + + "ry] = @category, [status] = @status, [asset] = @asset, [level] = @level, [rev] =" + + " @rev, [process] = @process, [part] = @part, [pdate] = @pdate, [name] = @name, [" + + "userManager] = @userManager, [usermain] = @usermain, [usersub] = @usersub, [user" + + "hw2] = @userhw2, [reqstaff] = @reqstaff, [costo] = @costo, [costn] = @costn, [cn" + + "t] = @cnt, [remark_req] = @remark_req, [remark_ans] = @remark_ans, [sdate] = @sd" + + "ate, [ddate] = @ddate, [edate] = @edate, [odate] = @odate, [bdate] = @bdate, [qd" + + "ate] = @qdate, [cdate] = @cdate, [progress] = @progress, [memo] = @memo, [wuid] " + + "= @wuid, [wdate] = @wdate, [orderno] = @orderno, [crdue] = @crdue, [import] = @i" + + "mport, [path] = @path, [userprocess] = @userprocess, [CMP_Background] = @CMP_Bac" + + "kground, [CMP_Description] = @CMP_Description, [CMP_Before] = @CMP_Before, [CMP_" + + "After] = @CMP_After, [CMP_After2] = @CMP_After2, [bCost] = @bCost, [bFanOut] = @" + + "bFanOut, [div] = @div, [model] = @model, [serial] = @serial, [EB_Site] = @EB_Sit" + + "e, [EB_Line] = @EB_Line, [EB_Team] = @EB_Team, [EB_Model] = @EB_Model, [EB_OutSo" + + "urceName] = @EB_OutSourceName, [EB_RepairTime] = @EB_RepairTime, [EB_ConstNew] =" + + " @EB_ConstNew, [EB_BoardName] = @EB_BoardName, [bAlert] = @bAlert, [championid] " + + "= @championid, [designid] = @designid, [assemblyid] = @assemblyid, [epanelid] = " + + "@epanelid, [softwareid] = @softwareid, [userAssembly] = @userAssembly, [ReqLine]" + + " = @ReqLine, [ReqSite] = @ReqSite, [ReqPackage] = @ReqPackage, [ReqPlant] = @Req" + + "Plant, [pno] = @pno, [kdate] = @kdate, [jasmin] = @jasmin WHERE (([idx] = @Origi" + + "nal_idx) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)" + + ") AND ([gcode] = @Original_gcode) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) O" + + "R ([isdel] = @Original_isdel)) AND ((@IsNull_category = 1 AND [category] IS NULL" + + ") OR ([category] = @Original_category)) AND ((@IsNull_status = 1 AND [status] IS" + + " NULL) OR ([status] = @Original_status)) AND ((@IsNull_asset = 1 AND [asset] IS " + + "NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_level = 1 AND [level] IS NUL" + + "L) OR ([level] = @Original_level)) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR (" + + "[rev] = @Original_rev)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([pr" + + "ocess] = @Original_process)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([par" + + "t] = @Original_part)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] =" + + " @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Orig" + + "inal_name)) AND ((@IsNull_userManager = 1 AND [userManager] IS NULL) OR ([userMa" + + "nager] = @Original_userManager)) AND ((@IsNull_usermain = 1 AND [usermain] IS NU" + + "LL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub" + + "] IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_userhw2 = 1 AND [us" + + "erhw2] IS NULL) OR ([userhw2] = @Original_userhw2)) AND ((@IsNull_reqstaff = 1 A" + + "ND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_costo" + + " = 1 AND [costo] IS NULL) OR ([costo] = @Original_costo)) AND ((@IsNull_costn = " + + "1 AND [costn] IS NULL) OR ([costn] = @Original_costn)) AND ((@IsNull_cnt = 1 AND" + + " [cnt] IS NULL) OR ([cnt] = @Original_cnt)) AND ((@IsNull_sdate = 1 AND [sdate] " + + "IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_ddate = 1 AND [ddate] IS " + + "NULL) OR ([ddate] = @Original_ddate)) AND ((@IsNull_edate = 1 AND [edate] IS NUL" + + "L) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) " + + "OR ([odate] = @Original_odate)) AND ((@IsNull_bdate = 1 AND [bdate] IS NULL) OR " + + "([bdate] = @Original_bdate)) AND ((@IsNull_qdate = 1 AND [qdate] IS NULL) OR ([q" + + "date] = @Original_qdate)) AND ((@IsNull_cdate = 1 AND [cdate] IS NULL) OR ([cdat" + + "e] = @Original_cdate)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([p" + + "rogress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([" + + "memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_" + + "wdate) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Origina" + + "l_orderno)) AND ((@IsNull_crdue = 1 AND [crdue] IS NULL) OR ([crdue] = @Original" + + "_crdue)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original" + + "_import)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path" + + ")) AND ((@IsNull_userprocess = 1 AND [userprocess] IS NULL) OR ([userprocess] = " + + "@Original_userprocess)) AND ((@IsNull_bCost = 1 AND [bCost] IS NULL) OR ([bCost]" + + " = @Original_bCost)) AND ((@IsNull_bFanOut = 1 AND [bFanOut] IS NULL) OR ([bFanO" + + "ut] = @Original_bFanOut)) AND ((@IsNull_div = 1 AND [div] IS NULL) OR ([div] = @" + + "Original_div)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Origi" + + "nal_model)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Origi" + + "nal_serial)) AND ((@IsNull_EB_Site = 1 AND [EB_Site] IS NULL) OR ([EB_Site] = @O" + + "riginal_EB_Site)) AND ((@IsNull_EB_Line = 1 AND [EB_Line] IS NULL) OR ([EB_Line]" + + " = @Original_EB_Line)) AND ((@IsNull_EB_Team = 1 AND [EB_Team] IS NULL) OR ([EB_" + + "Team] = @Original_EB_Team)) AND ((@IsNull_EB_Model = 1 AND [EB_Model] IS NULL) O" + + "R ([EB_Model] = @Original_EB_Model)) AND ((@IsNull_EB_OutSourceName = 1 AND [EB_" + + "OutSourceName] IS NULL) OR ([EB_OutSourceName] = @Original_EB_OutSourceName)) AN" + + "D ((@IsNull_EB_RepairTime = 1 AND [EB_RepairTime] IS NULL) OR ([EB_RepairTime] =" + + " @Original_EB_RepairTime)) AND ((@IsNull_EB_ConstNew = 1 AND [EB_ConstNew] IS NU" + + "LL) OR ([EB_ConstNew] = @Original_EB_ConstNew)) AND ((@IsNull_EB_BoardName = 1 A" + + "ND [EB_BoardName] IS NULL) OR ([EB_BoardName] = @Original_EB_BoardName)) AND ((@" + + "IsNull_bAlert = 1 AND [bAlert] IS NULL) OR ([bAlert] = @Original_bAlert)) AND ((" + + "@IsNull_championid = 1 AND [championid] IS NULL) OR ([championid] = @Original_ch" + + "ampionid)) AND ((@IsNull_designid = 1 AND [designid] IS NULL) OR ([designid] = @" + + "Original_designid)) AND ((@IsNull_assemblyid = 1 AND [assemblyid] IS NULL) OR ([" + + "assemblyid] = @Original_assemblyid)) AND ((@IsNull_epanelid = 1 AND [epanelid] I" + + "S NULL) OR ([epanelid] = @Original_epanelid)) AND ((@IsNull_softwareid = 1 AND [" + + "softwareid] IS NULL) OR ([softwareid] = @Original_softwareid)) AND ((@IsNull_use" + + "rAssembly = 1 AND [userAssembly] IS NULL) OR ([userAssembly] = @Original_userAss" + + "embly)) AND ((@IsNull_ReqLine = 1 AND [ReqLine] IS NULL) OR ([ReqLine] = @Origin" + + "al_ReqLine)) AND ((@IsNull_ReqSite = 1 AND [ReqSite] IS NULL) OR ([ReqSite] = @O" + + "riginal_ReqSite)) AND ((@IsNull_ReqPackage = 1 AND [ReqPackage] IS NULL) OR ([Re" + + "qPackage] = @Original_ReqPackage)) AND ((@IsNull_ReqPlant = 1 AND [ReqPlant] IS " + + "NULL) OR ([ReqPlant] = @Original_ReqPlant)) AND ((@IsNull_pno = 1 AND [pno] IS N" + + "ULL) OR ([pno] = @Original_pno)) AND ((@IsNull_kdate = 1 AND [kdate] IS NULL) OR" + + " ([kdate] = @Original_kdate)) AND ((@IsNull_jasmin = 1 AND [jasmin] IS NULL) OR " + + "([jasmin] = @Original_jasmin)));\r\nSELECT idx, pidx, gcode, isdel, category, stat" + + "us, asset, level, rev, process, part, pdate, name, userManager, usermain, usersu" + + "b, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, ddate, e" + + "date, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, i" + + "mport, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After" + + ", CMP_After2, bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_" + + "Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, champ" + + "ionid, designid, assemblyid, epanelid, softwareid, userAssembly, ReqLine, ReqSit" + + "e, ReqPackage, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx = @idx)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", 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("@asset", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", 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("@part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", 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("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userhw2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costn", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark_req", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark_req", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark_ans", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark_ans", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ddate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 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("@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("@orderno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@crdue", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", 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("@path", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userprocess", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Background", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Background", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Description", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_Before", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_Before", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_After", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_After", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CMP_After2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CMP_After2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bCost", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bFanOut", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@div", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", 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("@serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_OutSourceName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_ConstNew", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EB_BoardName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bAlert", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@championid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@designid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@assemblyid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epanelid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@softwareid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userAssembly", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqLine", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqSite", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqPackage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReqPlant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isdel", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_category", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", 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_asset", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_asset", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "asset", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", 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_part", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", 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_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usermain", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usersub", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userhw2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userhw2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userhw2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costn", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cnt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cnt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ddate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ddate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ddate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_odate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", 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.NVarChar, 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("@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_orderno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_orderno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_crdue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_crdue", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "crdue", 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("@IsNull_path", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userprocess", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userprocess", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userprocess", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bCost", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bFanOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bFanOut", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bFanOut", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_div", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_div", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "div", 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_serial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Site", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Site", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Site", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Line", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Line", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Line", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Team", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_Model", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_Model", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_OutSourceName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_OutSourceName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_OutSourceName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_RepairTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_RepairTime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_RepairTime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_ConstNew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_ConstNew", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_ConstNew", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EB_BoardName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EB_BoardName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EB_BoardName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bAlert", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bAlert", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bAlert", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_championid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_championid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_designid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_designid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_assemblyid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_assemblyid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_epanelid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_epanelid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_softwareid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_softwareid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userAssembly", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userAssembly", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userAssembly", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqLine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqLine", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqLine", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqSite", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqSite", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqSite", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqPackage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqPackage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPackage", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReqPlant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReqPlant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReqPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", 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::FEQ0000.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, pidx, gcode, isdel, category, status, asset, level, rev, process, part, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, + ddate, edate, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, CMP_After2, + bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, + epanelid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin +FROM Projects +WHERE (idx = @idx)"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[0].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")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DSPrj.ProjectsDataTable dataTable, int idx) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DSPrj.ProjectsDataTable GetData(int idx) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); + DSPrj.ProjectsDataTable dataTable = new DSPrj.ProjectsDataTable(); + 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(DSPrj.ProjectsDataTable 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(DSPrj dataSet) { + return this.Adapter.Update(dataSet, "Projects"); + } + + [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, + global::System.Nullable Original_pidx, + string Original_gcode, + global::System.Nullable Original_isdel, + string Original_category, + string Original_status, + string Original_asset, + global::System.Nullable Original_level, + global::System.Nullable Original_rev, + string Original_process, + string Original_part, + string Original_pdate, + string Original_name, + string Original_userManager, + string Original_usermain, + string Original_usersub, + string Original_userhw2, + string Original_reqstaff, + global::System.Nullable Original_costo, + global::System.Nullable Original_costn, + global::System.Nullable Original_cnt, + string Original_sdate, + string Original_ddate, + string Original_edate, + string Original_odate, + string Original_bdate, + string Original_qdate, + string Original_cdate, + global::System.Nullable Original_progress, + string Original_memo, + string Original_wuid, + System.DateTime Original_wdate, + string Original_orderno, + string Original_crdue, + global::System.Nullable Original_import, + string Original_path, + string Original_userprocess, + global::System.Nullable Original_bCost, + global::System.Nullable Original_bFanOut, + string Original_div, + string Original_model, + string Original_serial, + string Original_EB_Site, + string Original_EB_Line, + string Original_EB_Team, + string Original_EB_Model, + string Original_EB_OutSourceName, + global::System.Nullable Original_EB_RepairTime, + global::System.Nullable Original_EB_ConstNew, + string Original_EB_BoardName, + global::System.Nullable Original_bAlert, + string Original_championid, + string Original_designid, + string Original_assemblyid, + string Original_epanelid, + string Original_softwareid, + string Original_userAssembly, + string Original_ReqLine, + string Original_ReqSite, + string Original_ReqPackage, + string Original_ReqPlant, + global::System.Nullable Original_pno, + string Original_kdate, + global::System.Nullable Original_jasmin) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); + if ((Original_pidx.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_pidx.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_gcode)); + } + if ((Original_isdel.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_isdel.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Original_category == 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_category)); + } + if ((Original_status == 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_status)); + } + if ((Original_asset == 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_asset)); + } + if ((Original_level.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_level.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_rev.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_rev.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_process == 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_process)); + } + if ((Original_part == 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_part)); + } + if ((Original_pdate == 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_pdate)); + } + if ((Original_name == 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_name)); + } + if ((Original_userManager == 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_userManager)); + } + if ((Original_usermain == 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_usermain)); + } + if ((Original_usersub == 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_usersub)); + } + if ((Original_userhw2 == 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_userhw2)); + } + if ((Original_reqstaff == 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_reqstaff)); + } + if ((Original_costo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[35].Value = ((double)(Original_costo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[35].Value = global::System.DBNull.Value; + } + if ((Original_costn.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[37].Value = ((double)(Original_costn.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[37].Value = global::System.DBNull.Value; + } + if ((Original_cnt.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[39].Value = ((int)(Original_cnt.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[39].Value = global::System.DBNull.Value; + } + if ((Original_sdate == null)) { + this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[41].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[41].Value = ((string)(Original_sdate)); + } + if ((Original_ddate == null)) { + this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[43].Value = ((string)(Original_ddate)); + } + if ((Original_edate == 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_edate)); + } + if ((Original_odate == null)) { + this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[47].Value = ((string)(Original_odate)); + } + if ((Original_bdate == 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_bdate)); + } + if ((Original_qdate == null)) { + this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[51].Value = ((string)(Original_qdate)); + } + if ((Original_cdate == null)) { + this.Adapter.DeleteCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[53].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[53].Value = ((string)(Original_cdate)); + } + if ((Original_progress.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[55].Value = ((int)(Original_progress.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[55].Value = global::System.DBNull.Value; + } + if ((Original_memo == null)) { + this.Adapter.DeleteCommand.Parameters[56].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[57].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[57].Value = ((string)(Original_memo)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[58].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[59].Value = ((System.DateTime)(Original_wdate)); + if ((Original_orderno == null)) { + this.Adapter.DeleteCommand.Parameters[60].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[61].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[61].Value = ((string)(Original_orderno)); + } + if ((Original_crdue == null)) { + this.Adapter.DeleteCommand.Parameters[62].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[63].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[63].Value = ((string)(Original_crdue)); + } + if ((Original_import.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[65].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[64].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[65].Value = global::System.DBNull.Value; + } + if ((Original_path == null)) { + this.Adapter.DeleteCommand.Parameters[66].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[67].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[67].Value = ((string)(Original_path)); + } + if ((Original_userprocess == null)) { + this.Adapter.DeleteCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[69].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[69].Value = ((string)(Original_userprocess)); + } + if ((Original_bCost.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[71].Value = ((bool)(Original_bCost.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[71].Value = global::System.DBNull.Value; + } + if ((Original_bFanOut.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[73].Value = ((bool)(Original_bFanOut.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[72].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[73].Value = global::System.DBNull.Value; + } + if ((Original_div == null)) { + this.Adapter.DeleteCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[75].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[75].Value = ((string)(Original_div)); + } + if ((Original_model == null)) { + this.Adapter.DeleteCommand.Parameters[76].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[77].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[76].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[77].Value = ((string)(Original_model)); + } + if ((Original_serial == null)) { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[79].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[79].Value = ((string)(Original_serial)); + } + if ((Original_EB_Site == null)) { + this.Adapter.DeleteCommand.Parameters[80].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[81].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[80].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[81].Value = ((string)(Original_EB_Site)); + } + if ((Original_EB_Line == null)) { + this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[83].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[83].Value = ((string)(Original_EB_Line)); + } + if ((Original_EB_Team == null)) { + this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[85].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[85].Value = ((string)(Original_EB_Team)); + } + if ((Original_EB_Model == null)) { + this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[87].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[87].Value = ((string)(Original_EB_Model)); + } + if ((Original_EB_OutSourceName == null)) { + this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[89].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[89].Value = ((string)(Original_EB_OutSourceName)); + } + if ((Original_EB_RepairTime.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[91].Value = ((double)(Original_EB_RepairTime.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[91].Value = global::System.DBNull.Value; + } + if ((Original_EB_ConstNew.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[93].Value = ((double)(Original_EB_ConstNew.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[93].Value = global::System.DBNull.Value; + } + if ((Original_EB_BoardName == null)) { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[95].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[95].Value = ((string)(Original_EB_BoardName)); + } + if ((Original_bAlert.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[97].Value = ((bool)(Original_bAlert.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[97].Value = global::System.DBNull.Value; + } + if ((Original_championid == null)) { + this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[99].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[98].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[99].Value = ((string)(Original_championid)); + } + if ((Original_designid == null)) { + this.Adapter.DeleteCommand.Parameters[100].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[101].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[100].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[101].Value = ((string)(Original_designid)); + } + if ((Original_assemblyid == null)) { + this.Adapter.DeleteCommand.Parameters[102].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[103].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[102].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[103].Value = ((string)(Original_assemblyid)); + } + if ((Original_epanelid == null)) { + this.Adapter.DeleteCommand.Parameters[104].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[105].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[104].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[105].Value = ((string)(Original_epanelid)); + } + if ((Original_softwareid == null)) { + this.Adapter.DeleteCommand.Parameters[106].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[107].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[106].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[107].Value = ((string)(Original_softwareid)); + } + if ((Original_userAssembly == null)) { + this.Adapter.DeleteCommand.Parameters[108].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[109].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[108].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[109].Value = ((string)(Original_userAssembly)); + } + if ((Original_ReqLine == null)) { + this.Adapter.DeleteCommand.Parameters[110].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[111].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[110].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[111].Value = ((string)(Original_ReqLine)); + } + if ((Original_ReqSite == null)) { + this.Adapter.DeleteCommand.Parameters[112].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[113].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[112].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[113].Value = ((string)(Original_ReqSite)); + } + if ((Original_ReqPackage == null)) { + this.Adapter.DeleteCommand.Parameters[114].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[115].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[114].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[115].Value = ((string)(Original_ReqPackage)); + } + if ((Original_ReqPlant == null)) { + this.Adapter.DeleteCommand.Parameters[116].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[117].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[116].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[117].Value = ((string)(Original_ReqPlant)); + } + if ((Original_pno.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[118].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[119].Value = ((int)(Original_pno.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[118].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[119].Value = global::System.DBNull.Value; + } + if ((Original_kdate == null)) { + this.Adapter.DeleteCommand.Parameters[120].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[121].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[120].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[121].Value = ((string)(Original_kdate)); + } + if ((Original_jasmin.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[122].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[123].Value = ((int)(Original_jasmin.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[122].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[123].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( + global::System.Nullable pidx, + string gcode, + global::System.Nullable isdel, + string category, + string status, + string asset, + global::System.Nullable level, + global::System.Nullable rev, + string process, + string part, + string pdate, + string name, + string userManager, + string usermain, + string usersub, + string userhw2, + string reqstaff, + global::System.Nullable costo, + global::System.Nullable costn, + global::System.Nullable cnt, + string remark_req, + string remark_ans, + string sdate, + string ddate, + string edate, + string odate, + string bdate, + string qdate, + string cdate, + global::System.Nullable progress, + string memo, + string wuid, + System.DateTime wdate, + string orderno, + string crdue, + global::System.Nullable import, + string path, + string userprocess, + string CMP_Background, + string CMP_Description, + string CMP_Before, + string CMP_After, + string CMP_After2, + global::System.Nullable bCost, + global::System.Nullable bFanOut, + string div, + string model, + string serial, + string EB_Site, + string EB_Line, + string EB_Team, + string EB_Model, + string EB_OutSourceName, + global::System.Nullable EB_RepairTime, + global::System.Nullable EB_ConstNew, + string EB_BoardName, + global::System.Nullable bAlert, + string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string userAssembly, + string ReqLine, + string ReqSite, + string ReqPackage, + string ReqPlant, + global::System.Nullable pno, + string kdate, + global::System.Nullable jasmin) { + if ((pidx.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(pidx.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(gcode)); + } + if ((isdel.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(isdel.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((category == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(category)); + } + if ((status == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(status)); + } + if ((asset == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(asset)); + } + if ((level.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((int)(level.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((rev.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(rev.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((process == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(process)); + } + if ((part == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(part)); + } + if ((pdate == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(pdate)); + } + if ((name == null)) { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(name)); + } + if ((userManager == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(userManager)); + } + if ((usermain == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(usermain)); + } + if ((usersub == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(usersub)); + } + if ((userhw2 == null)) { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(userhw2)); + } + if ((reqstaff == null)) { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = ((string)(reqstaff)); + } + if ((costo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[17].Value = ((double)(costo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((costn.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[18].Value = ((double)(costn.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((cnt.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[19].Value = ((int)(cnt.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((remark_req == null)) { + this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[20].Value = ((string)(remark_req)); + } + if ((remark_ans == null)) { + this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[21].Value = ((string)(remark_ans)); + } + if ((sdate == null)) { + this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[22].Value = ((string)(sdate)); + } + if ((ddate == null)) { + this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[23].Value = ((string)(ddate)); + } + if ((edate == null)) { + this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[24].Value = ((string)(edate)); + } + if ((odate == null)) { + this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[25].Value = ((string)(odate)); + } + if ((bdate == null)) { + this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[26].Value = ((string)(bdate)); + } + if ((qdate == null)) { + this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[27].Value = ((string)(qdate)); + } + if ((cdate == null)) { + this.Adapter.InsertCommand.Parameters[28].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[28].Value = ((string)(cdate)); + } + if ((progress.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[29].Value = ((int)(progress.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[29].Value = global::System.DBNull.Value; + } + if ((memo == null)) { + this.Adapter.InsertCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[30].Value = ((string)(memo)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.InsertCommand.Parameters[31].Value = ((string)(wuid)); + } + this.Adapter.InsertCommand.Parameters[32].Value = ((System.DateTime)(wdate)); + if ((orderno == null)) { + this.Adapter.InsertCommand.Parameters[33].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[33].Value = ((string)(orderno)); + } + if ((crdue == null)) { + this.Adapter.InsertCommand.Parameters[34].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[34].Value = ((string)(crdue)); + } + if ((import.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[35].Value = ((bool)(import.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[35].Value = global::System.DBNull.Value; + } + if ((path == null)) { + this.Adapter.InsertCommand.Parameters[36].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[36].Value = ((string)(path)); + } + if ((userprocess == null)) { + this.Adapter.InsertCommand.Parameters[37].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[37].Value = ((string)(userprocess)); + } + if ((CMP_Background == null)) { + this.Adapter.InsertCommand.Parameters[38].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[38].Value = ((string)(CMP_Background)); + } + if ((CMP_Description == null)) { + this.Adapter.InsertCommand.Parameters[39].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[39].Value = ((string)(CMP_Description)); + } + if ((CMP_Before == null)) { + this.Adapter.InsertCommand.Parameters[40].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[40].Value = ((string)(CMP_Before)); + } + if ((CMP_After == null)) { + this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[41].Value = ((string)(CMP_After)); + } + if ((CMP_After2 == null)) { + this.Adapter.InsertCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[42].Value = ((string)(CMP_After2)); + } + if ((bCost.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[43].Value = ((bool)(bCost.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[43].Value = global::System.DBNull.Value; + } + if ((bFanOut.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[44].Value = ((bool)(bFanOut.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[44].Value = global::System.DBNull.Value; + } + if ((div == null)) { + this.Adapter.InsertCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[45].Value = ((string)(div)); + } + if ((model == null)) { + this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[46].Value = ((string)(model)); + } + if ((serial == null)) { + this.Adapter.InsertCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[47].Value = ((string)(serial)); + } + if ((EB_Site == null)) { + this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[48].Value = ((string)(EB_Site)); + } + if ((EB_Line == null)) { + this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(EB_Line)); + } + if ((EB_Team == null)) { + this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(EB_Team)); + } + if ((EB_Model == null)) { + this.Adapter.InsertCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[51].Value = ((string)(EB_Model)); + } + if ((EB_OutSourceName == null)) { + this.Adapter.InsertCommand.Parameters[52].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[52].Value = ((string)(EB_OutSourceName)); + } + if ((EB_RepairTime.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[53].Value = ((double)(EB_RepairTime.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[53].Value = global::System.DBNull.Value; + } + if ((EB_ConstNew.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[54].Value = ((double)(EB_ConstNew.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[54].Value = global::System.DBNull.Value; + } + if ((EB_BoardName == null)) { + this.Adapter.InsertCommand.Parameters[55].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[55].Value = ((string)(EB_BoardName)); + } + if ((bAlert.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[56].Value = ((bool)(bAlert.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[56].Value = global::System.DBNull.Value; + } + if ((championid == null)) { + this.Adapter.InsertCommand.Parameters[57].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[57].Value = ((string)(championid)); + } + if ((designid == null)) { + this.Adapter.InsertCommand.Parameters[58].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[58].Value = ((string)(designid)); + } + if ((assemblyid == null)) { + this.Adapter.InsertCommand.Parameters[59].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[59].Value = ((string)(assemblyid)); + } + if ((epanelid == null)) { + this.Adapter.InsertCommand.Parameters[60].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[60].Value = ((string)(epanelid)); + } + if ((softwareid == null)) { + this.Adapter.InsertCommand.Parameters[61].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[61].Value = ((string)(softwareid)); + } + if ((userAssembly == null)) { + this.Adapter.InsertCommand.Parameters[62].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[62].Value = ((string)(userAssembly)); + } + if ((ReqLine == null)) { + this.Adapter.InsertCommand.Parameters[63].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[63].Value = ((string)(ReqLine)); + } + if ((ReqSite == null)) { + this.Adapter.InsertCommand.Parameters[64].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[64].Value = ((string)(ReqSite)); + } + if ((ReqPackage == null)) { + this.Adapter.InsertCommand.Parameters[65].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[65].Value = ((string)(ReqPackage)); + } + if ((ReqPlant == null)) { + this.Adapter.InsertCommand.Parameters[66].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[66].Value = ((string)(ReqPlant)); + } + if ((pno.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[67].Value = ((int)(pno.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[67].Value = global::System.DBNull.Value; + } + if ((kdate == null)) { + this.Adapter.InsertCommand.Parameters[68].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[68].Value = ((string)(kdate)); + } + if ((jasmin.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[69].Value = ((int)(jasmin.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[69].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( + global::System.Nullable pidx, + string gcode, + global::System.Nullable isdel, + string category, + string status, + string asset, + global::System.Nullable level, + global::System.Nullable rev, + string process, + string part, + string pdate, + string name, + string userManager, + string usermain, + string usersub, + string userhw2, + string reqstaff, + global::System.Nullable costo, + global::System.Nullable costn, + global::System.Nullable cnt, + string remark_req, + string remark_ans, + string sdate, + string ddate, + string edate, + string odate, + string bdate, + string qdate, + string cdate, + global::System.Nullable progress, + string memo, + string wuid, + System.DateTime wdate, + string orderno, + string crdue, + global::System.Nullable import, + string path, + string userprocess, + string CMP_Background, + string CMP_Description, + string CMP_Before, + string CMP_After, + string CMP_After2, + global::System.Nullable bCost, + global::System.Nullable bFanOut, + string div, + string model, + string serial, + string EB_Site, + string EB_Line, + string EB_Team, + string EB_Model, + string EB_OutSourceName, + global::System.Nullable EB_RepairTime, + global::System.Nullable EB_ConstNew, + string EB_BoardName, + global::System.Nullable bAlert, + string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string userAssembly, + string ReqLine, + string ReqSite, + string ReqPackage, + string ReqPlant, + global::System.Nullable pno, + string kdate, + global::System.Nullable jasmin, + int Original_idx, + global::System.Nullable Original_pidx, + string Original_gcode, + global::System.Nullable Original_isdel, + string Original_category, + string Original_status, + string Original_asset, + global::System.Nullable Original_level, + global::System.Nullable Original_rev, + string Original_process, + string Original_part, + string Original_pdate, + string Original_name, + string Original_userManager, + string Original_usermain, + string Original_usersub, + string Original_userhw2, + string Original_reqstaff, + global::System.Nullable Original_costo, + global::System.Nullable Original_costn, + global::System.Nullable Original_cnt, + string Original_sdate, + string Original_ddate, + string Original_edate, + string Original_odate, + string Original_bdate, + string Original_qdate, + string Original_cdate, + global::System.Nullable Original_progress, + string Original_memo, + string Original_wuid, + System.DateTime Original_wdate, + string Original_orderno, + string Original_crdue, + global::System.Nullable Original_import, + string Original_path, + string Original_userprocess, + global::System.Nullable Original_bCost, + global::System.Nullable Original_bFanOut, + string Original_div, + string Original_model, + string Original_serial, + string Original_EB_Site, + string Original_EB_Line, + string Original_EB_Team, + string Original_EB_Model, + string Original_EB_OutSourceName, + global::System.Nullable Original_EB_RepairTime, + global::System.Nullable Original_EB_ConstNew, + string Original_EB_BoardName, + global::System.Nullable Original_bAlert, + string Original_championid, + string Original_designid, + string Original_assemblyid, + string Original_epanelid, + string Original_softwareid, + string Original_userAssembly, + string Original_ReqLine, + string Original_ReqSite, + string Original_ReqPackage, + string Original_ReqPlant, + global::System.Nullable Original_pno, + string Original_kdate, + global::System.Nullable Original_jasmin, + int idx) { + if ((pidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(pidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((gcode == null)) { + throw new global::System.ArgumentNullException("gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(gcode)); + } + if ((isdel.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(isdel.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((category == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(category)); + } + if ((status == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(status)); + } + if ((asset == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(asset)); + } + if ((level.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(level.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((rev.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(rev.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((process == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(process)); + } + if ((part == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(part)); + } + if ((pdate == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(pdate)); + } + if ((name == null)) { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(name)); + } + if ((userManager == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(userManager)); + } + if ((usermain == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(usermain)); + } + if ((usersub == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(usersub)); + } + if ((userhw2 == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(userhw2)); + } + if ((reqstaff == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(reqstaff)); + } + if ((costo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((double)(costo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((costn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(costn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((cnt.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(cnt.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((remark_req == null)) { + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(remark_req)); + } + if ((remark_ans == null)) { + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(remark_ans)); + } + if ((sdate == null)) { + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(sdate)); + } + if ((ddate == null)) { + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(ddate)); + } + if ((edate == null)) { + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(edate)); + } + if ((odate == null)) { + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(odate)); + } + if ((bdate == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(bdate)); + } + if ((qdate == null)) { + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(qdate)); + } + if ((cdate == null)) { + this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(cdate)); + } + if ((progress.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(progress.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; + } + if ((memo == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(memo)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(wuid)); + } + this.Adapter.UpdateCommand.Parameters[32].Value = ((System.DateTime)(wdate)); + if ((orderno == null)) { + this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(orderno)); + } + if ((crdue == null)) { + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(crdue)); + } + if ((import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; + } + if ((path == null)) { + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(path)); + } + if ((userprocess == null)) { + this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(userprocess)); + } + if ((CMP_Background == null)) { + this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(CMP_Background)); + } + if ((CMP_Description == null)) { + this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(CMP_Description)); + } + if ((CMP_Before == null)) { + this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(CMP_Before)); + } + if ((CMP_After == null)) { + this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(CMP_After)); + } + if ((CMP_After2 == null)) { + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(CMP_After2)); + } + if ((bCost.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[43].Value = ((bool)(bCost.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; + } + if ((bFanOut.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[44].Value = ((bool)(bFanOut.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; + } + if ((div == null)) { + this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(div)); + } + if ((model == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(model)); + } + if ((serial == null)) { + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(serial)); + } + if ((EB_Site == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(EB_Site)); + } + if ((EB_Line == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(EB_Line)); + } + if ((EB_Team == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(EB_Team)); + } + if ((EB_Model == null)) { + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(EB_Model)); + } + if ((EB_OutSourceName == null)) { + this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(EB_OutSourceName)); + } + if ((EB_RepairTime.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[53].Value = ((double)(EB_RepairTime.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + if ((EB_ConstNew.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[54].Value = ((double)(EB_ConstNew.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; + } + if ((EB_BoardName == null)) { + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(EB_BoardName)); + } + if ((bAlert.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[56].Value = ((bool)(bAlert.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; + } + if ((championid == null)) { + this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(championid)); + } + if ((designid == null)) { + this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(designid)); + } + if ((assemblyid == null)) { + this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(assemblyid)); + } + if ((epanelid == null)) { + this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(epanelid)); + } + if ((softwareid == null)) { + this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(softwareid)); + } + if ((userAssembly == null)) { + this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(userAssembly)); + } + if ((ReqLine == null)) { + this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(ReqLine)); + } + if ((ReqSite == null)) { + this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(ReqSite)); + } + if ((ReqPackage == null)) { + this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(ReqPackage)); + } + if ((ReqPlant == null)) { + this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(ReqPlant)); + } + if ((pno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[67].Value = ((int)(pno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + } + if ((kdate == null)) { + this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(kdate)); + } + if ((jasmin.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[69].Value = ((int)(jasmin.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_idx)); + if ((Original_pidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(Original_pidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[73].Value = ((string)(Original_gcode)); + } + if ((Original_isdel.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((bool)(Original_isdel.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + } + if ((Original_category == null)) { + this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[77].Value = ((string)(Original_category)); + } + if ((Original_status == null)) { + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[79].Value = ((string)(Original_status)); + } + if ((Original_asset == null)) { + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[81].Value = ((string)(Original_asset)); + } + if ((Original_level.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((int)(Original_level.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; + } + if ((Original_rev.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((int)(Original_rev.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; + } + if ((Original_process == null)) { + this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[87].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[87].Value = ((string)(Original_process)); + } + if ((Original_part == null)) { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_part)); + } + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[91].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((string)(Original_pdate)); + } + if ((Original_name == null)) { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((string)(Original_name)); + } + if ((Original_userManager == null)) { + this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[95].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[95].Value = ((string)(Original_userManager)); + } + if ((Original_usermain == null)) { + this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[97].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[97].Value = ((string)(Original_usermain)); + } + if ((Original_usersub == null)) { + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[99].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[99].Value = ((string)(Original_usersub)); + } + if ((Original_userhw2 == null)) { + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[101].Value = ((string)(Original_userhw2)); + } + if ((Original_reqstaff == null)) { + this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[103].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_reqstaff)); + } + if ((Original_costo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[105].Value = ((double)(Original_costo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value; + } + if ((Original_costn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[107].Value = ((double)(Original_costn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[107].Value = global::System.DBNull.Value; + } + if ((Original_cnt.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[109].Value = ((int)(Original_cnt.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value; + } + if ((Original_sdate == null)) { + this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[111].Value = ((string)(Original_sdate)); + } + if ((Original_ddate == null)) { + this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_ddate)); + } + if ((Original_edate == null)) { + this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[115].Value = ((string)(Original_edate)); + } + if ((Original_odate == null)) { + this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[117].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[117].Value = ((string)(Original_odate)); + } + if ((Original_bdate == null)) { + this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[119].Value = ((string)(Original_bdate)); + } + if ((Original_qdate == null)) { + this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[121].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[121].Value = ((string)(Original_qdate)); + } + if ((Original_cdate == null)) { + this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[123].Value = ((string)(Original_cdate)); + } + if ((Original_progress.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[125].Value = ((int)(Original_progress.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[125].Value = global::System.DBNull.Value; + } + if ((Original_memo == null)) { + this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[127].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[127].Value = ((string)(Original_memo)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[129].Value = ((System.DateTime)(Original_wdate)); + if ((Original_orderno == null)) { + this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[131].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[131].Value = ((string)(Original_orderno)); + } + if ((Original_crdue == null)) { + this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[133].Value = ((string)(Original_crdue)); + } + if ((Original_import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[135].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[135].Value = global::System.DBNull.Value; + } + if ((Original_path == null)) { + this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[137].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[137].Value = ((string)(Original_path)); + } + if ((Original_userprocess == null)) { + this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[139].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[139].Value = ((string)(Original_userprocess)); + } + if ((Original_bCost.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[141].Value = ((bool)(Original_bCost.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[141].Value = global::System.DBNull.Value; + } + if ((Original_bFanOut.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[143].Value = ((bool)(Original_bFanOut.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[143].Value = global::System.DBNull.Value; + } + if ((Original_div == null)) { + this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[145].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[145].Value = ((string)(Original_div)); + } + if ((Original_model == null)) { + this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[147].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[147].Value = ((string)(Original_model)); + } + if ((Original_serial == null)) { + this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[149].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[149].Value = ((string)(Original_serial)); + } + if ((Original_EB_Site == null)) { + this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[151].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[151].Value = ((string)(Original_EB_Site)); + } + if ((Original_EB_Line == null)) { + this.Adapter.UpdateCommand.Parameters[152].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[153].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[152].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[153].Value = ((string)(Original_EB_Line)); + } + if ((Original_EB_Team == null)) { + this.Adapter.UpdateCommand.Parameters[154].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[155].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[154].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[155].Value = ((string)(Original_EB_Team)); + } + if ((Original_EB_Model == null)) { + this.Adapter.UpdateCommand.Parameters[156].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[157].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[156].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[157].Value = ((string)(Original_EB_Model)); + } + if ((Original_EB_OutSourceName == null)) { + this.Adapter.UpdateCommand.Parameters[158].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[159].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[158].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[159].Value = ((string)(Original_EB_OutSourceName)); + } + if ((Original_EB_RepairTime.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[160].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[161].Value = ((double)(Original_EB_RepairTime.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[160].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[161].Value = global::System.DBNull.Value; + } + if ((Original_EB_ConstNew.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[162].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[163].Value = ((double)(Original_EB_ConstNew.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[162].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[163].Value = global::System.DBNull.Value; + } + if ((Original_EB_BoardName == null)) { + this.Adapter.UpdateCommand.Parameters[164].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[165].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[164].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[165].Value = ((string)(Original_EB_BoardName)); + } + if ((Original_bAlert.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[166].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[167].Value = ((bool)(Original_bAlert.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[166].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[167].Value = global::System.DBNull.Value; + } + if ((Original_championid == null)) { + this.Adapter.UpdateCommand.Parameters[168].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[169].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[168].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[169].Value = ((string)(Original_championid)); + } + if ((Original_designid == null)) { + this.Adapter.UpdateCommand.Parameters[170].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[171].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[170].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[171].Value = ((string)(Original_designid)); + } + if ((Original_assemblyid == null)) { + this.Adapter.UpdateCommand.Parameters[172].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[173].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[172].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[173].Value = ((string)(Original_assemblyid)); + } + if ((Original_epanelid == null)) { + this.Adapter.UpdateCommand.Parameters[174].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[175].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[174].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[175].Value = ((string)(Original_epanelid)); + } + if ((Original_softwareid == null)) { + this.Adapter.UpdateCommand.Parameters[176].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[177].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[176].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[177].Value = ((string)(Original_softwareid)); + } + if ((Original_userAssembly == null)) { + this.Adapter.UpdateCommand.Parameters[178].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[179].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[178].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[179].Value = ((string)(Original_userAssembly)); + } + if ((Original_ReqLine == null)) { + this.Adapter.UpdateCommand.Parameters[180].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[181].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[180].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[181].Value = ((string)(Original_ReqLine)); + } + if ((Original_ReqSite == null)) { + this.Adapter.UpdateCommand.Parameters[182].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[183].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[182].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[183].Value = ((string)(Original_ReqSite)); + } + if ((Original_ReqPackage == null)) { + this.Adapter.UpdateCommand.Parameters[184].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[185].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[184].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[185].Value = ((string)(Original_ReqPackage)); + } + if ((Original_ReqPlant == null)) { + this.Adapter.UpdateCommand.Parameters[186].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[187].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[186].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[187].Value = ((string)(Original_ReqPlant)); + } + if ((Original_pno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[188].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[189].Value = ((int)(Original_pno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[188].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[189].Value = global::System.DBNull.Value; + } + if ((Original_kdate == null)) { + this.Adapter.UpdateCommand.Parameters[190].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[191].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[190].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[191].Value = ((string)(Original_kdate)); + } + if ((Original_jasmin.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[192].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[193].Value = ((int)(Original_jasmin.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[192].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[193].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[194].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( + global::System.Nullable pidx, + string gcode, + global::System.Nullable isdel, + string category, + string status, + string asset, + global::System.Nullable level, + global::System.Nullable rev, + string process, + string part, + string pdate, + string name, + string userManager, + string usermain, + string usersub, + string userhw2, + string reqstaff, + global::System.Nullable costo, + global::System.Nullable costn, + global::System.Nullable cnt, + string remark_req, + string remark_ans, + string sdate, + string ddate, + string edate, + string odate, + string bdate, + string qdate, + string cdate, + global::System.Nullable progress, + string memo, + string wuid, + System.DateTime wdate, + string orderno, + string crdue, + global::System.Nullable import, + string path, + string userprocess, + string CMP_Background, + string CMP_Description, + string CMP_Before, + string CMP_After, + string CMP_After2, + global::System.Nullable bCost, + global::System.Nullable bFanOut, + string div, + string model, + string serial, + string EB_Site, + string EB_Line, + string EB_Team, + string EB_Model, + string EB_OutSourceName, + global::System.Nullable EB_RepairTime, + global::System.Nullable EB_ConstNew, + string EB_BoardName, + global::System.Nullable bAlert, + string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string userAssembly, + string ReqLine, + string ReqSite, + string ReqPackage, + string ReqPlant, + global::System.Nullable pno, + string kdate, + global::System.Nullable jasmin, + int Original_idx, + global::System.Nullable Original_pidx, + string Original_gcode, + global::System.Nullable Original_isdel, + string Original_category, + string Original_status, + string Original_asset, + global::System.Nullable Original_level, + global::System.Nullable Original_rev, + string Original_process, + string Original_part, + string Original_pdate, + string Original_name, + string Original_userManager, + string Original_usermain, + string Original_usersub, + string Original_userhw2, + string Original_reqstaff, + global::System.Nullable Original_costo, + global::System.Nullable Original_costn, + global::System.Nullable Original_cnt, + string Original_sdate, + string Original_ddate, + string Original_edate, + string Original_odate, + string Original_bdate, + string Original_qdate, + string Original_cdate, + global::System.Nullable Original_progress, + string Original_memo, + string Original_wuid, + System.DateTime Original_wdate, + string Original_orderno, + string Original_crdue, + global::System.Nullable Original_import, + string Original_path, + string Original_userprocess, + global::System.Nullable Original_bCost, + global::System.Nullable Original_bFanOut, + string Original_div, + string Original_model, + string Original_serial, + string Original_EB_Site, + string Original_EB_Line, + string Original_EB_Team, + string Original_EB_Model, + string Original_EB_OutSourceName, + global::System.Nullable Original_EB_RepairTime, + global::System.Nullable Original_EB_ConstNew, + string Original_EB_BoardName, + global::System.Nullable Original_bAlert, + string Original_championid, + string Original_designid, + string Original_assemblyid, + string Original_epanelid, + string Original_softwareid, + string Original_userAssembly, + string Original_ReqLine, + string Original_ReqSite, + string Original_ReqPackage, + string Original_ReqPlant, + global::System.Nullable Original_pno, + string Original_kdate, + global::System.Nullable Original_jasmin) { + return this.Update(pidx, gcode, isdel, category, status, asset, level, rev, process, part, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, ddate, edate, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, CMP_After2, bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, epanelid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin, Original_idx, Original_pidx, Original_gcode, Original_isdel, Original_category, Original_status, Original_asset, Original_level, Original_rev, Original_process, Original_part, Original_pdate, Original_name, Original_userManager, Original_usermain, Original_usersub, Original_userhw2, Original_reqstaff, Original_costo, Original_costn, Original_cnt, Original_sdate, Original_ddate, Original_edate, Original_odate, Original_bdate, Original_qdate, Original_cdate, Original_progress, Original_memo, Original_wuid, Original_wdate, Original_orderno, Original_crdue, Original_import, Original_path, Original_userprocess, Original_bCost, Original_bFanOut, Original_div, Original_model, Original_serial, Original_EB_Site, Original_EB_Line, Original_EB_Team, Original_EB_Model, Original_EB_OutSourceName, Original_EB_RepairTime, Original_EB_ConstNew, Original_EB_BoardName, Original_bAlert, Original_championid, Original_designid, Original_assemblyid, Original_epanelid, Original_softwareid, Original_userAssembly, Original_ReqLine, Original_ReqSite, Original_ReqPackage, Original_ReqPlant, Original_pno, Original_kdate, Original_jasmin, 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 ProjectsTableAdapter _projectsTableAdapter; + + 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 ProjectsTableAdapter ProjectsTableAdapter { + get { + return this._projectsTableAdapter; + } + set { + this._projectsTableAdapter = 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._projectsTableAdapter != null) + && (this._projectsTableAdapter.Connection != null))) { + return this._projectsTableAdapter.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._projectsTableAdapter != 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(DSPrj dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._projectsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._projectsTableAdapter.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(DSPrj dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._projectsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._projectsTableAdapter.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(DSPrj dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._projectsTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._projectsTableAdapter.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(DSPrj dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._projectsTableAdapter != null) + && (this.MatchTableAdapterConnection(this._projectsTableAdapter.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._projectsTableAdapter != null)) { + revertConnections.Add(this._projectsTableAdapter, this._projectsTableAdapter.Connection); + this._projectsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._projectsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._projectsTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._projectsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._projectsTableAdapter.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._projectsTableAdapter != null)) { + this._projectsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._projectsTableAdapter])); + this._projectsTableAdapter.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/FEQ0000/DSPrj.xsc b/SubProject/FEQ0000/DSPrj.xsc new file mode 100644 index 0000000..551fc56 --- /dev/null +++ b/SubProject/FEQ0000/DSPrj.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/SubProject/FEQ0000/DSPrj.xsd b/SubProject/FEQ0000/DSPrj.xsd new file mode 100644 index 0000000..6da096d --- /dev/null +++ b/SubProject/FEQ0000/DSPrj.xsd @@ -0,0 +1,925 @@ + + + + + + + + + + + + + + + DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_category = 1 AND [category] IS NULL) OR ([category] = @Original_category)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_userManager = 1 AND [userManager] IS NULL) OR ([userManager] = @Original_userManager)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_userhw2 = 1 AND [userhw2] IS NULL) OR ([userhw2] = @Original_userhw2)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_costo = 1 AND [costo] IS NULL) OR ([costo] = @Original_costo)) AND ((@IsNull_costn = 1 AND [costn] IS NULL) OR ([costn] = @Original_costn)) AND ((@IsNull_cnt = 1 AND [cnt] IS NULL) OR ([cnt] = @Original_cnt)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_ddate = 1 AND [ddate] IS NULL) OR ([ddate] = @Original_ddate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_bdate = 1 AND [bdate] IS NULL) OR ([bdate] = @Original_bdate)) AND ((@IsNull_qdate = 1 AND [qdate] IS NULL) OR ([qdate] = @Original_qdate)) AND ((@IsNull_cdate = 1 AND [cdate] IS NULL) OR ([cdate] = @Original_cdate)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_crdue = 1 AND [crdue] IS NULL) OR ([crdue] = @Original_crdue)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_userprocess = 1 AND [userprocess] IS NULL) OR ([userprocess] = @Original_userprocess)) AND ((@IsNull_bCost = 1 AND [bCost] IS NULL) OR ([bCost] = @Original_bCost)) AND ((@IsNull_bFanOut = 1 AND [bFanOut] IS NULL) OR ([bFanOut] = @Original_bFanOut)) AND ((@IsNull_div = 1 AND [div] IS NULL) OR ([div] = @Original_div)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_EB_Site = 1 AND [EB_Site] IS NULL) OR ([EB_Site] = @Original_EB_Site)) AND ((@IsNull_EB_Line = 1 AND [EB_Line] IS NULL) OR ([EB_Line] = @Original_EB_Line)) AND ((@IsNull_EB_Team = 1 AND [EB_Team] IS NULL) OR ([EB_Team] = @Original_EB_Team)) AND ((@IsNull_EB_Model = 1 AND [EB_Model] IS NULL) OR ([EB_Model] = @Original_EB_Model)) AND ((@IsNull_EB_OutSourceName = 1 AND [EB_OutSourceName] IS NULL) OR ([EB_OutSourceName] = @Original_EB_OutSourceName)) AND ((@IsNull_EB_RepairTime = 1 AND [EB_RepairTime] IS NULL) OR ([EB_RepairTime] = @Original_EB_RepairTime)) AND ((@IsNull_EB_ConstNew = 1 AND [EB_ConstNew] IS NULL) OR ([EB_ConstNew] = @Original_EB_ConstNew)) AND ((@IsNull_EB_BoardName = 1 AND [EB_BoardName] IS NULL) OR ([EB_BoardName] = @Original_EB_BoardName)) AND ((@IsNull_bAlert = 1 AND [bAlert] IS NULL) OR ([bAlert] = @Original_bAlert)) AND ((@IsNull_championid = 1 AND [championid] IS NULL) OR ([championid] = @Original_championid)) AND ((@IsNull_designid = 1 AND [designid] IS NULL) OR ([designid] = @Original_designid)) AND ((@IsNull_assemblyid = 1 AND [assemblyid] IS NULL) OR ([assemblyid] = @Original_assemblyid)) AND ((@IsNull_epanelid = 1 AND [epanelid] IS NULL) OR ([epanelid] = @Original_epanelid)) AND ((@IsNull_softwareid = 1 AND [softwareid] IS NULL) OR ([softwareid] = @Original_softwareid)) AND ((@IsNull_userAssembly = 1 AND [userAssembly] IS NULL) OR ([userAssembly] = @Original_userAssembly)) AND ((@IsNull_ReqLine = 1 AND [ReqLine] IS NULL) OR ([ReqLine] = @Original_ReqLine)) AND ((@IsNull_ReqSite = 1 AND [ReqSite] IS NULL) OR ([ReqSite] = @Original_ReqSite)) AND ((@IsNull_ReqPackage = 1 AND [ReqPackage] IS NULL) OR ([ReqPackage] = @Original_ReqPackage)) AND ((@IsNull_ReqPlant = 1 AND [ReqPlant] IS NULL) OR ([ReqPlant] = @Original_ReqPlant)) AND ((@IsNull_pno = 1 AND [pno] IS NULL) OR ([pno] = @Original_pno)) AND ((@IsNull_kdate = 1 AND [kdate] IS NULL) OR ([kdate] = @Original_kdate)) AND ((@IsNull_jasmin = 1 AND [jasmin] IS NULL) OR ([jasmin] = @Original_jasmin))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [Projects] ([pidx], [gcode], [isdel], [category], [status], [asset], [level], [rev], [process], [part], [pdate], [name], [userManager], [usermain], [usersub], [userhw2], [reqstaff], [costo], [costn], [cnt], [remark_req], [remark_ans], [sdate], [ddate], [edate], [odate], [bdate], [qdate], [cdate], [progress], [memo], [wuid], [wdate], [orderno], [crdue], [import], [path], [userprocess], [CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [CMP_After2], [bCost], [bFanOut], [div], [model], [serial], [EB_Site], [EB_Line], [EB_Team], [EB_Model], [EB_OutSourceName], [EB_RepairTime], [EB_ConstNew], [EB_BoardName], [bAlert], [championid], [designid], [assemblyid], [epanelid], [softwareid], [userAssembly], [ReqLine], [ReqSite], [ReqPackage], [ReqPlant], [pno], [kdate], [jasmin]) VALUES (@pidx, @gcode, @isdel, @category, @status, @asset, @level, @rev, @process, @part, @pdate, @name, @userManager, @usermain, @usersub, @userhw2, @reqstaff, @costo, @costn, @cnt, @remark_req, @remark_ans, @sdate, @ddate, @edate, @odate, @bdate, @qdate, @cdate, @progress, @memo, @wuid, @wdate, @orderno, @crdue, @import, @path, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @CMP_After2, @bCost, @bFanOut, @div, @model, @serial, @EB_Site, @EB_Line, @EB_Team, @EB_Model, @EB_OutSourceName, @EB_RepairTime, @EB_ConstNew, @EB_BoardName, @bAlert, @championid, @designid, @assemblyid, @epanelid, @softwareid, @userAssembly, @ReqLine, @ReqSite, @ReqPackage, @ReqPlant, @pno, @kdate, @jasmin); +SELECT idx, pidx, gcode, isdel, category, status, asset, level, rev, process, part, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, ddate, edate, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, CMP_After2, bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, epanelid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT idx, pidx, gcode, isdel, category, status, asset, level, rev, process, part, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, + ddate, edate, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, CMP_After2, + bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, + epanelid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin +FROM Projects +WHERE (idx = @idx) + + + + + + + + UPDATE [Projects] SET [pidx] = @pidx, [gcode] = @gcode, [isdel] = @isdel, [category] = @category, [status] = @status, [asset] = @asset, [level] = @level, [rev] = @rev, [process] = @process, [part] = @part, [pdate] = @pdate, [name] = @name, [userManager] = @userManager, [usermain] = @usermain, [usersub] = @usersub, [userhw2] = @userhw2, [reqstaff] = @reqstaff, [costo] = @costo, [costn] = @costn, [cnt] = @cnt, [remark_req] = @remark_req, [remark_ans] = @remark_ans, [sdate] = @sdate, [ddate] = @ddate, [edate] = @edate, [odate] = @odate, [bdate] = @bdate, [qdate] = @qdate, [cdate] = @cdate, [progress] = @progress, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [orderno] = @orderno, [crdue] = @crdue, [import] = @import, [path] = @path, [userprocess] = @userprocess, [CMP_Background] = @CMP_Background, [CMP_Description] = @CMP_Description, [CMP_Before] = @CMP_Before, [CMP_After] = @CMP_After, [CMP_After2] = @CMP_After2, [bCost] = @bCost, [bFanOut] = @bFanOut, [div] = @div, [model] = @model, [serial] = @serial, [EB_Site] = @EB_Site, [EB_Line] = @EB_Line, [EB_Team] = @EB_Team, [EB_Model] = @EB_Model, [EB_OutSourceName] = @EB_OutSourceName, [EB_RepairTime] = @EB_RepairTime, [EB_ConstNew] = @EB_ConstNew, [EB_BoardName] = @EB_BoardName, [bAlert] = @bAlert, [championid] = @championid, [designid] = @designid, [assemblyid] = @assemblyid, [epanelid] = @epanelid, [softwareid] = @softwareid, [userAssembly] = @userAssembly, [ReqLine] = @ReqLine, [ReqSite] = @ReqSite, [ReqPackage] = @ReqPackage, [ReqPlant] = @ReqPlant, [pno] = @pno, [kdate] = @kdate, [jasmin] = @jasmin WHERE (([idx] = @Original_idx) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_category = 1 AND [category] IS NULL) OR ([category] = @Original_category)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_userManager = 1 AND [userManager] IS NULL) OR ([userManager] = @Original_userManager)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_userhw2 = 1 AND [userhw2] IS NULL) OR ([userhw2] = @Original_userhw2)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_costo = 1 AND [costo] IS NULL) OR ([costo] = @Original_costo)) AND ((@IsNull_costn = 1 AND [costn] IS NULL) OR ([costn] = @Original_costn)) AND ((@IsNull_cnt = 1 AND [cnt] IS NULL) OR ([cnt] = @Original_cnt)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_ddate = 1 AND [ddate] IS NULL) OR ([ddate] = @Original_ddate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_bdate = 1 AND [bdate] IS NULL) OR ([bdate] = @Original_bdate)) AND ((@IsNull_qdate = 1 AND [qdate] IS NULL) OR ([qdate] = @Original_qdate)) AND ((@IsNull_cdate = 1 AND [cdate] IS NULL) OR ([cdate] = @Original_cdate)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ((@IsNull_crdue = 1 AND [crdue] IS NULL) OR ([crdue] = @Original_crdue)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_userprocess = 1 AND [userprocess] IS NULL) OR ([userprocess] = @Original_userprocess)) AND ((@IsNull_bCost = 1 AND [bCost] IS NULL) OR ([bCost] = @Original_bCost)) AND ((@IsNull_bFanOut = 1 AND [bFanOut] IS NULL) OR ([bFanOut] = @Original_bFanOut)) AND ((@IsNull_div = 1 AND [div] IS NULL) OR ([div] = @Original_div)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_EB_Site = 1 AND [EB_Site] IS NULL) OR ([EB_Site] = @Original_EB_Site)) AND ((@IsNull_EB_Line = 1 AND [EB_Line] IS NULL) OR ([EB_Line] = @Original_EB_Line)) AND ((@IsNull_EB_Team = 1 AND [EB_Team] IS NULL) OR ([EB_Team] = @Original_EB_Team)) AND ((@IsNull_EB_Model = 1 AND [EB_Model] IS NULL) OR ([EB_Model] = @Original_EB_Model)) AND ((@IsNull_EB_OutSourceName = 1 AND [EB_OutSourceName] IS NULL) OR ([EB_OutSourceName] = @Original_EB_OutSourceName)) AND ((@IsNull_EB_RepairTime = 1 AND [EB_RepairTime] IS NULL) OR ([EB_RepairTime] = @Original_EB_RepairTime)) AND ((@IsNull_EB_ConstNew = 1 AND [EB_ConstNew] IS NULL) OR ([EB_ConstNew] = @Original_EB_ConstNew)) AND ((@IsNull_EB_BoardName = 1 AND [EB_BoardName] IS NULL) OR ([EB_BoardName] = @Original_EB_BoardName)) AND ((@IsNull_bAlert = 1 AND [bAlert] IS NULL) OR ([bAlert] = @Original_bAlert)) AND ((@IsNull_championid = 1 AND [championid] IS NULL) OR ([championid] = @Original_championid)) AND ((@IsNull_designid = 1 AND [designid] IS NULL) OR ([designid] = @Original_designid)) AND ((@IsNull_assemblyid = 1 AND [assemblyid] IS NULL) OR ([assemblyid] = @Original_assemblyid)) AND ((@IsNull_epanelid = 1 AND [epanelid] IS NULL) OR ([epanelid] = @Original_epanelid)) AND ((@IsNull_softwareid = 1 AND [softwareid] IS NULL) OR ([softwareid] = @Original_softwareid)) AND ((@IsNull_userAssembly = 1 AND [userAssembly] IS NULL) OR ([userAssembly] = @Original_userAssembly)) AND ((@IsNull_ReqLine = 1 AND [ReqLine] IS NULL) OR ([ReqLine] = @Original_ReqLine)) AND ((@IsNull_ReqSite = 1 AND [ReqSite] IS NULL) OR ([ReqSite] = @Original_ReqSite)) AND ((@IsNull_ReqPackage = 1 AND [ReqPackage] IS NULL) OR ([ReqPackage] = @Original_ReqPackage)) AND ((@IsNull_ReqPlant = 1 AND [ReqPlant] IS NULL) OR ([ReqPlant] = @Original_ReqPlant)) AND ((@IsNull_pno = 1 AND [pno] IS NULL) OR ([pno] = @Original_pno)) AND ((@IsNull_kdate = 1 AND [kdate] IS NULL) OR ([kdate] = @Original_kdate)) AND ((@IsNull_jasmin = 1 AND [jasmin] IS NULL) OR ([jasmin] = @Original_jasmin))); +SELECT idx, pidx, gcode, isdel, category, status, asset, level, rev, process, part, pdate, name, userManager, usermain, usersub, userhw2, reqstaff, costo, costn, cnt, remark_req, remark_ans, sdate, ddate, edate, odate, bdate, qdate, cdate, progress, memo, wuid, wdate, orderno, crdue, import, path, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, CMP_After2, bCost, bFanOut, div, model, serial, EB_Site, EB_Line, EB_Team, EB_Model, EB_OutSourceName, EB_RepairTime, EB_ConstNew, EB_BoardName, bAlert, championid, designid, assemblyid, epanelid, softwareid, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SubProject/FEQ0000/DSPrj.xss b/SubProject/FEQ0000/DSPrj.xss new file mode 100644 index 0000000..9020aa6 --- /dev/null +++ b/SubProject/FEQ0000/DSPrj.xss @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index 9d47fc1..b63e7ed 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -130,6 +130,11 @@ True True + + True + True + DSPrj.xsd + True True @@ -173,12 +178,24 @@ - + Form - + fPurchaseCR.cs + + Form + + + fPurchaseNR_Ipgo.cs + + + Form + + + fPurchaseCR_Ipgo.cs + Form @@ -197,10 +214,10 @@ fMailForm.cs - + Form - + fPurchaseCR_Add.cs @@ -245,11 +262,17 @@ fPurchaseNR.cs - + Form - - rPurchase.cs + + rPurchaseCR.cs + + + Form + + + rPurchaseNR.cs @@ -279,9 +302,18 @@ True - + + + + fPurchaseCR.cs + + fPurchaseNR_Ipgo.cs + + + fPurchaseCR_Ipgo.cs + fPurchaseNRList.cs @@ -291,7 +323,7 @@ fMailForm.cs - + fPurchaseCR_Add.cs @@ -318,8 +350,11 @@ - - rPurchase.cs + + rPurchaseCR.cs + + + rPurchaseNR.cs @@ -341,6 +376,17 @@ dsEQ.xsd + + DSPrj.xsd + + + Designer + MSDataSetGenerator + DSPrj.Designer.cs + + + DSPrj.xsd + dsPurchase.xsd @@ -410,9 +456,7 @@ PreserveNewest - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + \ No newline at end of file diff --git a/SubProject/FEQ0000/Purchase/rPurchase.Designer.cs b/SubProject/FEQ0000/Purchase/rPurchaseNR.Designer.cs similarity index 89% rename from SubProject/FEQ0000/Purchase/rPurchase.Designer.cs rename to SubProject/FEQ0000/Purchase/rPurchaseNR.Designer.cs index 564ec11..35474b8 100644 --- a/SubProject/FEQ0000/Purchase/rPurchase.Designer.cs +++ b/SubProject/FEQ0000/Purchase/rPurchaseNR.Designer.cs @@ -1,6 +1,6 @@ namespace FEQ0000.Purchase { - partial class rPurchase + partial class rPurchaseNR { /// /// Required designer variable. @@ -28,9 +28,8 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rPurchase)); + Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rPurchaseNR)); this.rpv1 = new Microsoft.Reporting.WinForms.ReportViewer(); this.dsPurchase = new FEQ0000.dsPurchase(); this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); @@ -40,9 +39,9 @@ this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.dtED = new System.Windows.Forms.ToolStripTextBox(); - this.btSearch = new System.Windows.Forms.ToolStripButton(); this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); this.cmbReport = new System.Windows.Forms.ToolStripComboBox(); + this.btSearch = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); @@ -50,13 +49,16 @@ // rpv1 // this.rpv1.Dock = System.Windows.Forms.DockStyle.Fill; - reportDataSource2.Name = "DataSet1"; - this.rpv1.LocalReport.DataSources.Add(reportDataSource2); + reportDataSource1.Name = "DataSet1"; + reportDataSource1.Value = null; + this.rpv1.LocalReport.DataSources.Add(reportDataSource1); this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_Purchase.rdlc"; this.rpv1.Location = new System.Drawing.Point(0, 25); this.rpv1.Name = "rpv1"; + this.rpv1.ServerReport.BearerToken = null; this.rpv1.Size = new System.Drawing.Size(723, 492); this.rpv1.TabIndex = 0; + this.rpv1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.FullPage; // // dsPurchase // @@ -93,6 +95,7 @@ // dtSD // this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.dtSD.Font = new System.Drawing.Font("맑은 고딕", 9F); this.dtSD.Name = "dtSD"; this.dtSD.Size = new System.Drawing.Size(100, 25); this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -112,19 +115,11 @@ // dtED // this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.dtED.Font = new System.Drawing.Font("맑은 고딕", 9F); this.dtED.Name = "dtED"; this.dtED.Size = new System.Drawing.Size(100, 25); this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; // - // btSearch - // - this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); - this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btSearch.Name = "btSearch"; - this.btSearch.Size = new System.Drawing.Size(81, 22); - this.btSearch.Text = "Refresh(&R)"; - this.btSearch.Click += new System.EventHandler(this.btSearch_Click); - // // toolStripLabel3 // this.toolStripLabel3.Name = "toolStripLabel3"; @@ -141,15 +136,25 @@ this.cmbReport.Name = "cmbReport"; this.cmbReport.Size = new System.Drawing.Size(121, 25); // - // rPurchase + // btSearch + // + this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); + this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btSearch.Name = "btSearch"; + this.btSearch.Size = new System.Drawing.Size(81, 22); + this.btSearch.Text = "Refresh(&R)"; + this.btSearch.Click += new System.EventHandler(this.btSearch_Click); + // + // rPurchaseNR // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(723, 517); this.Controls.Add(this.rpv1); this.Controls.Add(this.toolStrip1); - this.Name = "rPurchase"; - this.Text = "Purchase (Summary)"; + this.Name = "rPurchaseNR"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "NR 구매 집계표"; this.Load += new System.EventHandler(this.rPurchase_Load); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); this.toolStrip1.ResumeLayout(false); diff --git a/SubProject/FEQ0000/Purchase/rPurchase.cs b/SubProject/FEQ0000/Purchase/rPurchaseNR.cs similarity index 62% rename from SubProject/FEQ0000/Purchase/rPurchase.cs rename to SubProject/FEQ0000/Purchase/rPurchaseNR.cs index 380bda7..ae0ab09 100644 --- a/SubProject/FEQ0000/Purchase/rPurchase.cs +++ b/SubProject/FEQ0000/Purchase/rPurchaseNR.cs @@ -9,9 +9,9 @@ using System.Windows.Forms; namespace FEQ0000.Purchase { - public partial class rPurchase : Form + public partial class rPurchaseNR : Form { - public rPurchase() + public rPurchaseNR() { InitializeComponent(); Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; @@ -24,11 +24,11 @@ namespace FEQ0000.Purchase this.dtED.Text = DateTime.Now.Year.ToString("0000") + "-12-31"; this.rpv1.PageCountMode = Microsoft.Reporting.WinForms.PageCountMode.Actual; - this.rpv1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth; - + this.rpv1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.FullPage; + //this.rpv1.DisplayMode = Microsoft.Reporting.WinForms.DisplayMode.PrintLayout; this.cmbReport.SelectedIndex = 0; - refreshData(); + //refreshData(); } private void btSearch_Click(object sender, EventArgs e) @@ -37,7 +37,7 @@ namespace FEQ0000.Purchase } void refreshData() { - this.ta.FillDate(this.dsPurchase.Purchase, dtSD.Text, dtED.Text,FCOMMON.info.Login.gcode); + this.ta.FillByDateExceptCR(this.dsPurchase.Purchase, dtSD.Text, dtED.Text,FCOMMON.info.Login.gcode); //Set DataSource Microsoft.Reporting.WinForms.ReportDataSource DsEQ = new Microsoft.Reporting.WinForms.ReportDataSource(); @@ -53,14 +53,31 @@ namespace FEQ0000.Purchase this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_PurchasePrc.rdlc"; break; case 2: //프로젝트 - 월 + //비고를 짤라서 처리해야한다. + foreach(dsPurchase.PurchaseRow dr in dsPurchase.Purchase) + { + if (dr.IsbigoNull()) dr.bigo = string.Empty; + else + { + dr.bigo = dr.bigo.Split('/')[0].Trim(); + } + if(dr.projectidx == -1) + { + dr.state = "비 프로젝트"; + } + else + { + dr.state = "프로젝트"; + } + if (dr.bigo.isEmpty()) dr.bigo = "(없음)"; + } + dsPurchase.Purchase.AcceptChanges(); this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_PurchasePrj.rdlc"; break; } this.rpv1.LocalReport.DataSources.Clear(); this.rpv1.LocalReport.DataSources.Add(DsEQ); this.rpv1.RefreshReport(); - - } } } diff --git a/SubProject/FEQ0000/Purchase/rPurchase.resx b/SubProject/FEQ0000/Purchase/rPurchaseNR.resx similarity index 100% rename from SubProject/FEQ0000/Purchase/rPurchase.resx rename to SubProject/FEQ0000/Purchase/rPurchaseNR.resx diff --git a/SubProject/FEQ0000/PurchaseCR/Rpt_PurchaseCR.rdlc b/SubProject/FEQ0000/PurchaseCR/Rpt_PurchaseCR.rdlc new file mode 100644 index 0000000..aab842f --- /dev/null +++ b/SubProject/FEQ0000/PurchaseCR/Rpt_PurchaseCR.rdlc @@ -0,0 +1,799 @@ + + + + + + + + + + + + true + true + + + + + User + + + + + + + Textbox10 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + 2 + + + + + + + + + + + + 1.78563cm + + + 1.99729cm + + + 2.57938cm + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt1 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox8 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox6 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox20 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox9 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + = left(Fields!pdate.Value,4) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + = left(Fields!pdate.Value,4) + + + + + + + pdate1 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =mid(Fields!pdate.Value,6,2) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + =mid(Fields!pdate.Value,6,2) + + + + + + + pdate + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 0.6cm + + + true + true + + + + + S.Total + + + + + + + Textbox18 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + 1.2cm + + + true + true + + + + + Total + + + + + + + Textbox12 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + =Fields!request.Value + + + + + =Fields!request.Value + + + + 2.5cm + + + true + true + + + + + =Fields!request.Value + + + + + + + request + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 2.5cm + + + true + true + + + + + 합계 + + + + + + + Textbox5 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + Before + + + + DataSet1 + 2.4cm + 8.8623cm + + + + + + 0.94488in + + + + + + + Textbox10 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + 2 + + + + + + + + + + + + 1.78563cm + + + 1.99729cm + + + 2.57938cm + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt1 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox8 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox6 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox20 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox9 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + = left(Fields!pdate.Value,4) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + = left(Fields!pdate.Value,4) + + + + + + + pdate1 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =mid(Fields!pdate.Value,6,2) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + =mid(Fields!pdate.Value,6,2) + + + + + + + pdate + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 0.6cm + + + true + true + + + + + S.Total + + + + + + + Textbox18 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + 1.2cm + + + true + true + + + + + Total + + + + + + + Textbox12 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + =Fields!process.Value + + + + + =Fields!request.Value + + + + 3.77cm + + + true + true + + + + + =Fields!process.Value + + + + + + + process + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 3.77cm + + + true + true + + + + + 합계 + + + + + + + Textbox5 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + Before + + + + DataSet1 + 2.4cm + 10.1323cm + + + + + + 2.125in + + + + + + + Textbox1 + + + Khaki + Middle + 2pt + 2pt + 2pt + 2pt + + + 2 + + + + + + true + true + + + + + 항목 + + + + + + + Textbox10 + + + Khaki + Middle + 2pt + 2pt + 2pt + 2pt + + + 2 + + + + + + + + + + + + + 1.78563cm + + + 1.99729cm + + + 2.57938cm + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt1 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox8 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt2 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt3 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + pumamt4 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox6 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox20 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!pumamt.Value) + + + + + + + Textbox9 + + + Silver + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + = left(Fields!pdate.Value,4) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + = left(Fields!pdate.Value,4) + + + + + + + pdate1 + + + Khaki + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =mid(Fields!pdate.Value,6,2) + + + + + =Fields!pdate.Value + + + + 0.6cm + + + true + true + + + + + =mid(Fields!pdate.Value,6,2) + + + + + + + pdate + + + Khaki + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 0.6cm + + + true + true + + + + + 소계 + + + + + + + Textbox18 + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + 1.2cm + + + true + true + + + + + 총계 + + + + + + + Textbox12 + + + Khaki + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + =Fields!state.Value + + + + + =Fields!state.Value + + + + 2.5cm + + + true + true + + + + + =Fields!state.Value + + + + + + + state + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =iif(Fields!projectidx.Value= -1,Fields!bigo.Value, Fields!project.Value) + + + + + =Sum(Fields!pumamt.Value) + Descending + + + + 8.5725cm + + + true + true + + + + + =iif(Fields!projectidx.Value= -1,Fields!bigo.Value, Fields!project.Value) + + + + + + + project + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + 8.5725cm + + + true + true + + + + + 소계 + + + + + + + Textbox11 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + Before + + + + + + 11.0725cm + + + true + true + + + + + 총계 + + + + + + + Textbox4 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + Before + + + + DataSet1 + 3cm + 17.4348cm + + + + + + + + + + + =Fields!state.Value + + + + + + =Fields!state.Value + + + + + + + + + + + + + + + + + + + =Sum(Fields!pumamt.Value) + + + + true + true + + + + 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 + + + + + + + + TopLeft + + + + + Black + Black + + + + + 구분 + + TopLeft + + + Pacific + + + + + 사용 가능한 데이터 없음 + + + DataSet1 + 3.22474cm + 17.4cm + 17.4cm + 1 + + + White + None + + + + + + + + + =iif(Fields!projectidx.Value= -1,Fields!bigo.Value, Fields!project.Value) + + + + =Fields!state.Value + Equal + + 프로젝트 + + + + + + + + + + + + + + + + + + + + + =Sum(Fields!pumamt.Value) + + + + true + true + + + + 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 + + + + + + + + TopLeft + + + + + Black + Black + + + + + 프로젝트 + + TopLeft + + + Pacific + + + + + 사용 가능한 데이터 없음 + + + DataSet1 + 20.92537cm + 17.4cm + 17.4cm + 2 + + + White + None + + + + 56.44933cm +