diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index 0db2b53..f9ddd5f 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.08.16.0830")] -[assembly: AssemblyFileVersion("23.08.16.0830")] +[assembly: AssemblyVersion("23.08.17.0900")] +[assembly: AssemblyFileVersion("23.08.17.0900")] diff --git a/SubProject/FEQ0000/Purchase/fPurchaseNR.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchaseNR.Designer.cs index 9edefde..5349bb3 100644 --- a/SubProject/FEQ0000/Purchase/fPurchaseNR.Designer.cs +++ b/SubProject/FEQ0000/Purchase/fPurchaseNR.Designer.cs @@ -30,38 +30,40 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseNR)); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType4 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType5 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType37 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType38 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType16 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType39 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType17 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType40 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType41 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType42 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType18 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType43 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType44 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType6 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); @@ -139,8 +141,9 @@ this.btViewDel = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -816,10 +819,35 @@ this.fpSpread1.Name = "fpSpread1"; this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { this.fpSpread1_Sheet1}); - this.fpSpread1.Size = new System.Drawing.Size(1284, 607); + this.fpSpread1.Size = new System.Drawing.Size(1284, 584); this.fpSpread1.StatusBarVisible = true; this.fpSpread1.TabIndex = 4; this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff); + this.fpSpread1.SetViewportLeftColumn(0, 0, 5); + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label1.Location = new System.Drawing.Point(0, 644); + this.label1.Name = "label1"; + this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.label1.Size = new System.Drawing.Size(1284, 23); + this.label1.TabIndex = 6; + this.label1.Text = "--"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label2.Location = new System.Drawing.Point(0, 621); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.label2.Size = new System.Drawing.Size(1284, 23); + this.label2.TabIndex = 7; + this.label2.Text = "--"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // fpSpread1_Sheet1 // @@ -827,7 +855,7 @@ this.fpSpread1_Sheet1.SheetName = "Sheet1"; // Formulas and custom names must be loaded with R1C1 reference style this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; - this.fpSpread1_Sheet1.ColumnCount = 34; + this.fpSpread1_Sheet1.ColumnCount = 36; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.fpSpread1_Sheet1.AutoGenerateColumns = false; @@ -850,33 +878,35 @@ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "장비\r\n제조사"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "제조\r\n공정"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "장비\r\n모델"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "단위"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "단가($)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단가"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "합계금액"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "공급업체"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "프로젝트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "입고예정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "입고일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "입고수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "PO#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "삭제됨"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "수량\r\n(요청)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "수량\r\n(구매)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "단위"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단가($)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "단가"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "합계금액"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "공급업체"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "프로젝트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "비고\r\n(요청자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "입고예정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "입고일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "입고수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "PO#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 34).Value = "비고\r\n(담당자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "삭제됨"; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType4; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "요청\r\n검사"; this.fpSpread1_Sheet1.Columns.Get(0).Width = 31F; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType5; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "구매\r\n검사"; this.fpSpread1_Sheet1.Columns.Get(1).Width = 35F; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType23; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Label = "등록일"; @@ -885,7 +915,7 @@ this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType24; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "state"; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).Label = "상태"; @@ -893,37 +923,37 @@ this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType25; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).Label = "Storage"; this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType26; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "process"; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).Label = "공정"; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType27; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "requestName"; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(6).Label = "요청"; this.fpSpread1_Sheet1.Columns.Get(6).Tag = "requestName"; this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType28; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "costcenter"; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).Label = "Cost Center"; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType29; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "linecode"; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).Label = "LineCode"; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType30; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "sc"; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Label = "SC#"; @@ -931,7 +961,7 @@ this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(10).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType31; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "orderno"; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).Label = "SCR/CF"; @@ -939,204 +969,205 @@ this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).Visible = false; this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType32; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "receiveName"; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(11).Label = "수령"; this.fpSpread1_Sheet1.Columns.Get(11).Tag = "receiveName"; this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(12).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType33; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Label = "SID#"; this.fpSpread1_Sheet1.Columns.Get(12).Tag = "sid"; this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType34; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumname"; this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(13).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(13).Tag = "pumname"; this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(14).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType1.DecimalPlaces = 0; - numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType1.MaximumValue = 2147483647D; - numberCellType1.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType1; + numberCellType10.DecimalPlaces = 0; + numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType10.MaximumValue = 2147483647D; + numberCellType10.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType10; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumidx"; this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(14).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType13; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType35; this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(15).Label = "규격"; this.fpSpread1_Sheet1.Columns.Get(15).Tag = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(15).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType36; this.fpSpread1_Sheet1.Columns.Get(16).DataField = "dept"; this.fpSpread1_Sheet1.Columns.Get(16).Label = "장비\r\n제조사"; this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType36; this.fpSpread1_Sheet1.Columns.Get(17).DataField = "manuproc"; this.fpSpread1_Sheet1.Columns.Get(17).Label = "제조\r\n공정"; this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType36; this.fpSpread1_Sheet1.Columns.Get(18).DataField = "asset"; this.fpSpread1_Sheet1.Columns.Get(18).Label = "장비\r\n모델"; this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F; - numberCellType2.DecimalPlaces = 0; - numberCellType2.NegativeRed = true; - numberCellType2.NullDisplay = "--"; - numberCellType2.Separator = ","; - numberCellType2.ShowSeparator = true; - numberCellType2.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType2; + numberCellType11.DecimalPlaces = 0; + numberCellType11.NegativeRed = true; + numberCellType11.NullDisplay = "--"; + numberCellType11.Separator = ","; + numberCellType11.ShowSeparator = true; + numberCellType11.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType11; this.fpSpread1_Sheet1.Columns.Get(19).DataField = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Label = "수량"; + this.fpSpread1_Sheet1.Columns.Get(19).Label = "수량\r\n(요청)"; this.fpSpread1_Sheet1.Columns.Get(19).Tag = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType15; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "pumunit"; + numberCellType12.DecimalPlaces = 0; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType12; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "pumqtyReq"; this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Label = "단위"; - this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F; - numberCellType3.DecimalPlaces = 2; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "pumpriceD"; - this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(21).Label = "단가($)"; - this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - numberCellType4.DecimalPlaces = 0; - numberCellType4.MaximumValue = 9999999999999.99D; - numberCellType4.MinimumValue = -9999999999999.99D; - numberCellType4.NegativeRed = true; - numberCellType4.NullDisplay = "--"; - numberCellType4.Separator = ","; - numberCellType4.ShowSeparator = true; - numberCellType4.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType4; - this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumprice"; + this.fpSpread1_Sheet1.Columns.Get(20).Label = "수량\r\n(구매)"; + this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Width = 55F; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType37; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Label = "단위"; + this.fpSpread1_Sheet1.Columns.Get(21).Width = 51F; + numberCellType13.DecimalPlaces = 2; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType13; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumpriceD"; this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(22).Label = "단가"; - this.fpSpread1_Sheet1.Columns.Get(22).Tag = "pumprice"; - this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F; - numberCellType5.DecimalPlaces = 0; - numberCellType5.MaximumValue = 9999999999999.99D; - numberCellType5.MinimumValue = -9999999999999.99D; - numberCellType5.NegativeRed = true; - numberCellType5.NullDisplay = "--"; - numberCellType5.Separator = ","; - numberCellType5.ShowSeparator = true; - numberCellType5.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType5; - this.fpSpread1_Sheet1.Columns.Get(23).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(22).Label = "단가($)"; + this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + numberCellType14.DecimalPlaces = 0; + numberCellType14.MaximumValue = 9999999999999.99D; + numberCellType14.MinimumValue = -9999999999999.99D; + numberCellType14.NegativeRed = true; + numberCellType14.NullDisplay = "--"; + numberCellType14.Separator = ","; + numberCellType14.ShowSeparator = true; + numberCellType14.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType14; + this.fpSpread1_Sheet1.Columns.Get(23).DataField = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(23).Label = "합계금액"; - this.fpSpread1_Sheet1.Columns.Get(23).Tag = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(23).Label = "단가"; + this.fpSpread1_Sheet1.Columns.Get(23).Tag = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(24).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType16; - this.fpSpread1_Sheet1.Columns.Get(24).DataField = "supply"; - this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(24).Label = "공급업체"; - this.fpSpread1_Sheet1.Columns.Get(24).Tag = "supply"; + numberCellType15.DecimalPlaces = 0; + numberCellType15.MaximumValue = 9999999999999.99D; + numberCellType15.MinimumValue = -9999999999999.99D; + numberCellType15.NegativeRed = true; + numberCellType15.NullDisplay = "--"; + numberCellType15.Separator = ","; + numberCellType15.ShowSeparator = true; + numberCellType15.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType15; + this.fpSpread1_Sheet1.Columns.Get(24).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(24).Label = "합계금액"; + this.fpSpread1_Sheet1.Columns.Get(24).Tag = "pumamt"; this.fpSpread1_Sheet1.Columns.Get(24).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(25).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType6.DecimalPlaces = 0; - numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType6.MaximumValue = 2147483647D; - numberCellType6.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType6; - this.fpSpread1_Sheet1.Columns.Get(25).DataField = "supplyidx"; - this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(25).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(25).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(25).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType38; + this.fpSpread1_Sheet1.Columns.Get(25).DataField = "supply"; + this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(25).Label = "공급업체"; + this.fpSpread1_Sheet1.Columns.Get(25).Tag = "supply"; this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(26).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17; - this.fpSpread1_Sheet1.Columns.Get(26).DataField = "project"; - this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(26).Label = "프로젝트"; + this.fpSpread1_Sheet1.Columns.Get(26).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType16.DecimalPlaces = 0; + numberCellType16.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType16.MaximumValue = 2147483647D; + numberCellType16.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(26).CellType = numberCellType16; + this.fpSpread1_Sheet1.Columns.Get(26).DataField = "supplyidx"; + this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(26).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(26).Visible = false; this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(27).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType7.DecimalPlaces = 0; - numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType7.MaximumValue = 2147483647D; - numberCellType7.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(27).CellType = numberCellType7; - this.fpSpread1_Sheet1.Columns.Get(27).DataField = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(27).Label = "*"; - this.fpSpread1_Sheet1.Columns.Get(27).Tag = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(27).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(27).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType39; + this.fpSpread1_Sheet1.Columns.Get(27).DataField = "project"; + this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(27).Label = "프로젝트"; this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(28).CellType = textCellType18; - this.fpSpread1_Sheet1.Columns.Get(28).DataField = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(28).Label = "비고"; - this.fpSpread1_Sheet1.Columns.Get(28).Tag = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType17.DecimalPlaces = 0; + numberCellType17.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType17.MaximumValue = 2147483647D; + numberCellType17.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType17; + this.fpSpread1_Sheet1.Columns.Get(28).DataField = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(28).Label = "*"; + this.fpSpread1_Sheet1.Columns.Get(28).Tag = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(28).Visible = false; this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19; - this.fpSpread1_Sheet1.Columns.Get(29).DataField = "edate"; - this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(29).Label = "입고예정"; + this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType40; + this.fpSpread1_Sheet1.Columns.Get(29).DataField = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(29).Label = "비고\r\n(요청자)"; + this.fpSpread1_Sheet1.Columns.Get(29).Tag = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(29).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType20; - this.fpSpread1_Sheet1.Columns.Get(30).DataField = "indate"; + this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType41; + this.fpSpread1_Sheet1.Columns.Get(30).DataField = "edate"; this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(30).Label = "입고일"; - this.fpSpread1_Sheet1.Columns.Get(30).Tag = "indate"; + this.fpSpread1_Sheet1.Columns.Get(30).Label = "입고예정"; this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F; - numberCellType8.DecimalPlaces = 0; - numberCellType8.NegativeRed = true; - numberCellType8.ShowSeparator = true; - this.fpSpread1_Sheet1.Columns.Get(31).CellType = numberCellType8; - this.fpSpread1_Sheet1.Columns.Get(31).DataField = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType42; + this.fpSpread1_Sheet1.Columns.Get(31).DataField = "indate"; this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(31).Label = "입고수량"; - this.fpSpread1_Sheet1.Columns.Get(31).Tag = "inqty"; - this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(31).Label = "입고일"; + this.fpSpread1_Sheet1.Columns.Get(31).Tag = "indate"; this.fpSpread1_Sheet1.Columns.Get(31).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType21; - this.fpSpread1_Sheet1.Columns.Get(32).DataField = "po"; + numberCellType18.DecimalPlaces = 0; + numberCellType18.NegativeRed = true; + numberCellType18.ShowSeparator = true; + this.fpSpread1_Sheet1.Columns.Get(32).CellType = numberCellType18; + this.fpSpread1_Sheet1.Columns.Get(32).DataField = "inqty"; this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(32).Label = "PO#"; - this.fpSpread1_Sheet1.Columns.Get(32).Tag = "po"; + this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고수량"; + this.fpSpread1_Sheet1.Columns.Get(32).Tag = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(32).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(33).CellType = checkBoxCellType3; - this.fpSpread1_Sheet1.Columns.Get(33).DataField = "isdel"; - this.fpSpread1_Sheet1.Columns.Get(33).Label = "삭제됨"; - this.fpSpread1_Sheet1.Columns.Get(33).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType43; + this.fpSpread1_Sheet1.Columns.Get(33).DataField = "po"; + this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(33).Label = "PO#"; + this.fpSpread1_Sheet1.Columns.Get(33).Tag = "po"; this.fpSpread1_Sheet1.Columns.Get(33).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(34).CellType = textCellType44; + this.fpSpread1_Sheet1.Columns.Get(34).DataField = "chkremark"; + this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(34).Label = "비고\r\n(담당자)"; + this.fpSpread1_Sheet1.Columns.Get(34).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(35).CellType = checkBoxCellType6; + this.fpSpread1_Sheet1.Columns.Get(35).DataField = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(35).Label = "삭제됨"; + this.fpSpread1_Sheet1.Columns.Get(35).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(35).Width = 51F; this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoSizeColumns = false; this.fpSpread1_Sheet1.DataSource = this.bs; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // - // label1 - // - this.label1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.label1.Location = new System.Drawing.Point(0, 644); - this.label1.Name = "label1"; - this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); - this.label1.Size = new System.Drawing.Size(1284, 23); - this.label1.TabIndex = 6; - this.label1.Text = "--"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // fPurchaseNR // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1284, 693); this.Controls.Add(this.fpSpread1); + this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.bn); @@ -1239,6 +1270,7 @@ private System.Windows.Forms.ToolStripButton toolStripButton4; private System.Windows.Forms.ToolStripMenuItem 입고ToolStripMenuItem; private System.Windows.Forms.ToolStripButton toolStripButton5; + private System.Windows.Forms.Label label2; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; } } diff --git a/SubProject/FEQ0000/Purchase/fPurchaseNR.cs b/SubProject/FEQ0000/Purchase/fPurchaseNR.cs index 013e06e..703c9d5 100644 --- a/SubProject/FEQ0000/Purchase/fPurchaseNR.cs +++ b/SubProject/FEQ0000/Purchase/fPurchaseNR.cs @@ -963,6 +963,13 @@ namespace FEQ0000 this.label1.Text = $"비고:{dr.bigo.Replace("\r", "").Replace("\n", "")}"; else this.label1.Text = $"프로젝트:{dr.project},비고:{dr.bigo.Replace("\r", "").Replace("\n", "")}"; + + if (dr.IschkremarkNull() == false && dr.chkremark.Length > 0) + { + this.label2.Text = $"구매담당비고:{dr.chkremark}"; + this.label2.Visible = true; + } + else this.label2.Visible = false; } private void toolStripButton4_Click(object sender, EventArgs e) diff --git a/SubProject/FEQ0000/Purchase/fPurchaseNR.resx b/SubProject/FEQ0000/Purchase/fPurchaseNR.resx index d9e0191..db0c95b 100644 --- a/SubProject/FEQ0000/Purchase/fPurchaseNR.resx +++ b/SubProject/FEQ0000/Purchase/fPurchaseNR.resx @@ -136,7 +136,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + vQAADr0BR/uQrQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA @@ -147,7 +147,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + vQAADr0BR/uQrQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC @@ -156,7 +156,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + vQAADr0BR/uQrQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f oAc0QjgAAAAASUVORK5CYII= @@ -165,7 +165,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + vQAADr0BR/uQrQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG @@ -176,7 +176,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC + vQAADr0BR/uQrQAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++ Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ /5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA @@ -211,7 +211,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vgAADr4B6kKxwAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC + vQAADr0BR/uQrQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG @@ -279,6 +279,35 @@ pPXwne/C6mdp8McSRFzeZapS+wjkJRfymh5gT64ekcwWTlD+lz9zOBxaIMAzsgE+rQreDgWeJiTBEx1L fJLTRwnaZpAqNGFnisLBYJ7+IqS9SSApOf15fKLDx82HW1QOL7EXnohoYlemmopJazfvSJFLGSwyPLT+ brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX + EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl + 7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR + BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT + Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz + tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV + iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i + DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA + AAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== @@ -318,35 +347,6 @@ oQIAAAJCCriYcSOGDCgzBAiQYSTGDQM4AjBAEwGCCRRIftypoKcDBwcS5MQIYIBRBQ0aPCBAwIKDoR4A cFiZdKmFAgUOQAWwIKnSpgUkSOgA1UCCqmAlVKgAoWyCBQsSOLhwoAMECBfK2tw7oa9fqBYDL2yIMCAA Ow== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX - EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl - 7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR - BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT - Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz - tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV - iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i - DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA - AAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 - Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== diff --git a/SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs index bfe043c..c1a3976 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs @@ -54,6 +54,8 @@ System.Windows.Forms.Label label11; System.Windows.Forms.Label label12; System.Windows.Forms.Label label13; + System.Windows.Forms.Label label14; + System.Windows.Forms.Label label15; this.tbSC = new System.Windows.Forms.TextBox(); this.tbSID = new System.Windows.Forms.TextBox(); this.tbPumName = new System.Windows.Forms.TextBox(); @@ -74,7 +76,6 @@ this.cmbRequest = new System.Windows.Forms.ComboBox(); this.cmbReceive = new System.Windows.Forms.ComboBox(); this.tbPumIDX = new System.Windows.Forms.TextBox(); - this.tbPumStock = new System.Windows.Forms.TextBox(); this.dtInDate = new System.Windows.Forms.DateTimePicker(); this.chkInDate = new System.Windows.Forms.CheckBox(); this.dtExpDate = new System.Windows.Forms.DateTimePicker(); @@ -90,6 +91,10 @@ this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.btEQModel = new System.Windows.Forms.Button(); + this.btEQManu = new System.Windows.Forms.Button(); + this.btManuProc = new System.Windows.Forms.Button(); + this.btProcess = new System.Windows.Forms.Button(); this.tbLineCode = new System.Windows.Forms.TextBox(); this.tbCostCenter = new System.Windows.Forms.TextBox(); this.tbInQty = new System.Windows.Forms.TextBox(); @@ -104,10 +109,8 @@ this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components); this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); this.timer1 = new System.Windows.Forms.Timer(this.components); - this.btProcess = new System.Windows.Forms.Button(); - this.btManuProc = new System.Windows.Forms.Button(); - this.btEQManu = new System.Windows.Forms.Button(); - this.btEQModel = new System.Windows.Forms.Button(); + this.tbBigoChk = new System.Windows.Forms.TextBox(); + this.tbpumqtyReq = new System.Windows.Forms.TextBox(); processLabel = new System.Windows.Forms.Label(); receiveLabel = new System.Windows.Forms.Label(); scLabel = new System.Windows.Forms.Label(); @@ -132,6 +135,8 @@ label11 = new System.Windows.Forms.Label(); label12 = new System.Windows.Forms.Label(); label13 = new System.Windows.Forms.Label(); + label14 = new System.Windows.Forms.Label(); + label15 = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); @@ -146,7 +151,7 @@ processLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); processLabel.Name = "processLabel"; processLabel.Size = new System.Drawing.Size(39, 20); - processLabel.TabIndex = 6; + processLabel.TabIndex = 8; processLabel.Text = "공정"; processLabel.Click += new System.EventHandler(this.processLabel_Click); // @@ -167,23 +172,23 @@ scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); scLabel.Name = "scLabel"; scLabel.Size = new System.Drawing.Size(27, 20); - scLabel.TabIndex = 8; + scLabel.TabIndex = 10; scLabel.Text = "SC"; // // sidLabel // sidLabel.AutoSize = true; - sidLabel.Location = new System.Drawing.Point(54, 252); + sidLabel.Location = new System.Drawing.Point(54, 271); sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); sidLabel.Name = "sidLabel"; sidLabel.Size = new System.Drawing.Size(32, 20); - sidLabel.TabIndex = 19; + sidLabel.TabIndex = 25; sidLabel.Text = "SID"; // // pumscaleLabel // pumscaleLabel.AutoSize = true; - pumscaleLabel.Location = new System.Drawing.Point(11, 124); + pumscaleLabel.Location = new System.Drawing.Point(11, 112); pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumscaleLabel.Name = "pumscaleLabel"; pumscaleLabel.Size = new System.Drawing.Size(75, 20); @@ -193,31 +198,31 @@ // pumqtyLabel // pumqtyLabel.AutoSize = true; - pumqtyLabel.Location = new System.Drawing.Point(47, 154); + pumqtyLabel.Location = new System.Drawing.Point(17, 144); pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumqtyLabel.Name = "pumqtyLabel"; - pumqtyLabel.Size = new System.Drawing.Size(39, 20); + pumqtyLabel.Size = new System.Drawing.Size(69, 20); pumqtyLabel.TabIndex = 12; - pumqtyLabel.Text = "수량"; + pumqtyLabel.Text = "요청수량"; // // pumpriceLabel // pumpriceLabel.AutoSize = true; - pumpriceLabel.Location = new System.Drawing.Point(280, 154); + pumpriceLabel.Location = new System.Drawing.Point(47, 176); pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumpriceLabel.Name = "pumpriceLabel"; pumpriceLabel.Size = new System.Drawing.Size(39, 20); - pumpriceLabel.TabIndex = 15; + pumpriceLabel.TabIndex = 16; pumpriceLabel.Text = "단가"; // // pumamtLabel // pumamtLabel.AutoSize = true; - pumamtLabel.Location = new System.Drawing.Point(47, 220); + pumamtLabel.Location = new System.Drawing.Point(47, 237); pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumamtLabel.Name = "pumamtLabel"; pumamtLabel.Size = new System.Drawing.Size(39, 20); - pumamtLabel.TabIndex = 17; + pumamtLabel.TabIndex = 21; pumamtLabel.Text = "합계"; // // assetLabel @@ -227,7 +232,7 @@ assetLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); assetLabel.Name = "assetLabel"; assetLabel.Size = new System.Drawing.Size(69, 20); - assetLabel.TabIndex = 18; + assetLabel.TabIndex = 20; assetLabel.Text = "장비모델"; // // poLabel @@ -237,24 +242,24 @@ poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); poLabel.Name = "poLabel"; poLabel.Size = new System.Drawing.Size(30, 20); - poLabel.TabIndex = 10; + poLabel.TabIndex = 12; poLabel.Text = "PO"; // // deptLabel // deptLabel.AutoSize = true; - deptLabel.Location = new System.Drawing.Point(47, 355); + deptLabel.Location = new System.Drawing.Point(4, 368); deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); deptLabel.Name = "deptLabel"; - deptLabel.Size = new System.Drawing.Size(39, 20); - deptLabel.TabIndex = 27; - deptLabel.Text = "비고"; + deptLabel.Size = new System.Drawing.Size(84, 20); + deptLabel.TabIndex = 34; + deptLabel.Text = "요청자비고"; this.toolTip1.SetToolTip(deptLabel, resources.GetString("deptLabel.ToolTip")); // // label1 // label1.AutoSize = true; - label1.Location = new System.Drawing.Point(32, 32); + label1.Location = new System.Drawing.Point(32, 21); label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label1.Name = "label1"; label1.Size = new System.Drawing.Size(54, 20); @@ -268,7 +273,7 @@ label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label2.Name = "label2"; label2.Size = new System.Drawing.Size(84, 20); - label2.TabIndex = 16; + label2.TabIndex = 18; label2.Text = "장비제조사"; // // label4 @@ -278,7 +283,7 @@ label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label4.Name = "label4"; label4.Size = new System.Drawing.Size(69, 20); - label4.TabIndex = 14; + label4.TabIndex = 16; label4.Text = "제조공정"; // // label5 @@ -288,13 +293,13 @@ label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label5.Name = "label5"; label5.Size = new System.Drawing.Size(59, 20); - label5.TabIndex = 12; + label5.TabIndex = 14; label5.Text = "SCR/CF"; // // label3 // label3.AutoSize = true; - label3.Location = new System.Drawing.Point(47, 63); + label3.Location = new System.Drawing.Point(47, 52); label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label3.Name = "label3"; label3.Size = new System.Drawing.Size(39, 20); @@ -304,7 +309,7 @@ // label6 // label6.AutoSize = true; - label6.Location = new System.Drawing.Point(280, 62); + label6.Location = new System.Drawing.Point(280, 51); label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label6.Name = "label6"; label6.Size = new System.Drawing.Size(39, 20); @@ -320,18 +325,18 @@ label7.Name = "label7"; label7.Padding = new System.Windows.Forms.Padding(5); label7.Size = new System.Drawing.Size(910, 103); - label7.TabIndex = 17; + label7.TabIndex = 1; label7.Text = resources.GetString("label7.Text"); // // label8 // label8.AutoSize = true; label8.ForeColor = System.Drawing.Color.Blue; - label8.Location = new System.Drawing.Point(29, 187); + label8.Location = new System.Drawing.Point(29, 206); label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label8.Name = "label8"; label8.Size = new System.Drawing.Size(57, 20); - label8.TabIndex = 35; + label8.TabIndex = 18; label8.Text = "단가($)"; // // label9 @@ -339,21 +344,21 @@ label9.AutoSize = true; label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); label9.ForeColor = System.Drawing.Color.Blue; - label9.Location = new System.Drawing.Point(285, 191); + label9.Location = new System.Drawing.Point(285, 210); label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label9.Name = "label9"; label9.Size = new System.Drawing.Size(163, 15); - label9.TabIndex = 37; + label9.TabIndex = 20; label9.Text = "해외물품은 좌측 단가를 입력"; // // label10 // label10.AutoSize = true; - label10.Location = new System.Drawing.Point(287, 220); + label10.Location = new System.Drawing.Point(287, 237); label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label10.Name = "label10"; label10.Size = new System.Drawing.Size(75, 20); - label10.TabIndex = 38; + label10.TabIndex = 23; label10.Text = "STORAGE"; // // label11 @@ -363,7 +368,7 @@ label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label11.Name = "label11"; label11.Size = new System.Drawing.Size(69, 20); - label11.TabIndex = 37; + label11.TabIndex = 6; label11.Text = "입고수량"; // // label12 @@ -373,7 +378,7 @@ label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label12.Name = "label12"; label12.Size = new System.Drawing.Size(78, 20); - label12.TabIndex = 41; + label12.TabIndex = 24; label12.Text = "Line Code"; // // label13 @@ -383,7 +388,7 @@ label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label13.Name = "label13"; label13.Size = new System.Drawing.Size(89, 20); - label13.TabIndex = 39; + label13.TabIndex = 22; label13.Text = "Cost Center"; // // tbSC @@ -392,24 +397,24 @@ this.tbSC.Margin = new System.Windows.Forms.Padding(4); this.tbSC.Name = "tbSC"; this.tbSC.Size = new System.Drawing.Size(286, 27); - this.tbSC.TabIndex = 9; + this.tbSC.TabIndex = 11; this.tbSC.TextChanged += new System.EventHandler(this.tbSC_TextChanged); // // tbSID // this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.tbSID.Location = new System.Drawing.Point(93, 249); + this.tbSID.Location = new System.Drawing.Point(93, 264); this.tbSID.Margin = new System.Windows.Forms.Padding(4); this.tbSID.Name = "tbSID"; this.tbSID.Size = new System.Drawing.Size(179, 34); - this.tbSID.TabIndex = 20; + this.tbSID.TabIndex = 26; // // tbPumName // this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbPumName.Location = new System.Drawing.Point(93, 91); + this.tbPumName.Location = new System.Drawing.Point(93, 79); this.tbPumName.Margin = new System.Windows.Forms.Padding(4); this.tbPumName.Name = "tbPumName"; this.tbPumName.Size = new System.Drawing.Size(311, 27); @@ -421,7 +426,7 @@ // this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha; - this.tbPumModel.Location = new System.Drawing.Point(93, 121); + this.tbPumModel.Location = new System.Drawing.Point(93, 109); this.tbPumModel.Margin = new System.Windows.Forms.Padding(4); this.tbPumModel.Name = "tbPumModel"; this.tbPumModel.Size = new System.Drawing.Size(311, 27); @@ -430,7 +435,7 @@ // tbPumUnit // this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); - this.tbPumUnit.Location = new System.Drawing.Point(410, 121); + this.tbPumUnit.Location = new System.Drawing.Point(410, 109); this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4); this.tbPumUnit.Name = "tbPumUnit"; this.tbPumUnit.Size = new System.Drawing.Size(64, 27); @@ -442,52 +447,52 @@ // tbPumQty // this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.tbPumQty.Location = new System.Drawing.Point(94, 150); + this.tbPumQty.Location = new System.Drawing.Point(93, 140); this.tbPumQty.Margin = new System.Windows.Forms.Padding(4); this.tbPumQty.Name = "tbPumQty"; - this.tbPumQty.Size = new System.Drawing.Size(111, 27); + this.tbPumQty.Size = new System.Drawing.Size(135, 27); this.tbPumQty.TabIndex = 13; this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); // // tbPumPrice // - this.tbPumPrice.Location = new System.Drawing.Point(326, 150); + this.tbPumPrice.Location = new System.Drawing.Point(93, 172); this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4); this.tbPumPrice.Name = "tbPumPrice"; - this.tbPumPrice.Size = new System.Drawing.Size(148, 27); - this.tbPumPrice.TabIndex = 16; + this.tbPumPrice.Size = new System.Drawing.Size(178, 27); + this.tbPumPrice.TabIndex = 17; this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); // // tbPumAmt // - this.tbPumAmt.Location = new System.Drawing.Point(93, 217); + this.tbPumAmt.Location = new System.Drawing.Point(93, 234); this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4); this.tbPumAmt.Name = "tbPumAmt"; this.tbPumAmt.ReadOnly = true; this.tbPumAmt.Size = new System.Drawing.Size(179, 27); - this.tbPumAmt.TabIndex = 18; + this.tbPumAmt.TabIndex = 22; this.tbPumAmt.TabStop = false; this.tbPumAmt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // tbSupply // this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbSupply.Location = new System.Drawing.Point(93, 288); + this.tbSupply.Location = new System.Drawing.Point(93, 302); this.tbSupply.Margin = new System.Windows.Forms.Padding(4); this.tbSupply.Name = "tbSupply"; this.tbSupply.Size = new System.Drawing.Size(311, 27); - this.tbSupply.TabIndex = 22; + this.tbSupply.TabIndex = 29; // // tbSupplyIndex // - this.tbSupplyIndex.Location = new System.Drawing.Point(411, 288); + this.tbSupplyIndex.Location = new System.Drawing.Point(411, 302); this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4); this.tbSupplyIndex.Name = "tbSupplyIndex"; this.tbSupplyIndex.ReadOnly = true; this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27); - this.tbSupplyIndex.TabIndex = 23; + this.tbSupplyIndex.TabIndex = 30; this.tbSupplyIndex.TabStop = false; this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbSupplyIndex, "Database ID"); @@ -496,21 +501,21 @@ // this.tbProject.BackColor = System.Drawing.SystemColors.Window; this.tbProject.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbProject.Location = new System.Drawing.Point(93, 320); + this.tbProject.Location = new System.Drawing.Point(93, 332); this.tbProject.Margin = new System.Windows.Forms.Padding(4); this.tbProject.Name = "tbProject"; this.tbProject.Size = new System.Drawing.Size(311, 27); - this.tbProject.TabIndex = 25; + this.tbProject.TabIndex = 32; this.toolTip1.SetToolTip(this.tbProject, "관련 프로젝트에서 선택하여 입력, 가공 파트 및 명확히 프로젝트에 한정되어 구매되는 것들"); // // tbProjectIndex // - this.tbProjectIndex.Location = new System.Drawing.Point(410, 320); + this.tbProjectIndex.Location = new System.Drawing.Point(410, 332); this.tbProjectIndex.Margin = new System.Windows.Forms.Padding(4); this.tbProjectIndex.Name = "tbProjectIndex"; this.tbProjectIndex.ReadOnly = true; this.tbProjectIndex.Size = new System.Drawing.Size(64, 27); - this.tbProjectIndex.TabIndex = 26; + this.tbProjectIndex.TabIndex = 33; this.tbProjectIndex.TabStop = false; this.tbProjectIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbProjectIndex, "Database ID"); @@ -521,24 +526,24 @@ this.tbPO.Margin = new System.Windows.Forms.Padding(4); this.tbPO.Name = "tbPO"; this.tbPO.Size = new System.Drawing.Size(286, 27); - this.tbPO.TabIndex = 11; + this.tbPO.TabIndex = 13; // // tbBigo // this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbBigo.Location = new System.Drawing.Point(93, 355); + this.tbBigo.Location = new System.Drawing.Point(93, 364); this.tbBigo.Margin = new System.Windows.Forms.Padding(4); this.tbBigo.MaxLength = 500; this.tbBigo.Multiline = true; this.tbBigo.Name = "tbBigo"; - this.tbBigo.Size = new System.Drawing.Size(381, 186); - this.tbBigo.TabIndex = 28; + this.tbBigo.Size = new System.Drawing.Size(381, 91); + this.tbBigo.TabIndex = 35; this.tbBigo.TabStop = false; this.toolTip1.SetToolTip(this.tbBigo, resources.GetString("tbBigo.ToolTip")); // // dtPdate // - this.dtPdate.Location = new System.Drawing.Point(93, 29); + this.dtPdate.Location = new System.Drawing.Point(93, 18); this.dtPdate.Margin = new System.Windows.Forms.Padding(4); this.dtPdate.Name = "dtPdate"; this.dtPdate.Size = new System.Drawing.Size(381, 27); @@ -550,7 +555,7 @@ this.btSave.Margin = new System.Windows.Forms.Padding(4); this.btSave.Name = "btSave"; this.btSave.Size = new System.Drawing.Size(490, 43); - this.btSave.TabIndex = 1; + this.btSave.TabIndex = 2; this.btSave.Text = "저장(&S)"; this.btSave.UseVisualStyleBackColor = true; this.btSave.Click += new System.EventHandler(this.button1_Click); @@ -559,7 +564,7 @@ // this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.cmbState.FormattingEnabled = true; - this.cmbState.Location = new System.Drawing.Point(327, 59); + this.cmbState.Location = new System.Drawing.Point(327, 48); this.cmbState.Margin = new System.Windows.Forms.Padding(4); this.cmbState.Name = "cmbState"; this.cmbState.Size = new System.Drawing.Size(148, 28); @@ -573,7 +578,7 @@ this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbRequest.FormattingEnabled = true; this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.cmbRequest.Location = new System.Drawing.Point(93, 59); + this.cmbRequest.Location = new System.Drawing.Point(93, 48); this.cmbRequest.Margin = new System.Windows.Forms.Padding(4); this.cmbRequest.Name = "cmbRequest"; this.cmbRequest.Size = new System.Drawing.Size(179, 28); @@ -594,7 +599,7 @@ // // tbPumIDX // - this.tbPumIDX.Location = new System.Drawing.Point(410, 91); + this.tbPumIDX.Location = new System.Drawing.Point(410, 79); this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4); this.tbPumIDX.Name = "tbPumIDX"; this.tbPumIDX.ReadOnly = true; @@ -604,18 +609,6 @@ this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID"); // - // tbPumStock - // - this.tbPumStock.Location = new System.Drawing.Point(208, 150); - this.tbPumStock.Margin = new System.Windows.Forms.Padding(4); - this.tbPumStock.Name = "tbPumStock"; - this.tbPumStock.ReadOnly = true; - this.tbPumStock.Size = new System.Drawing.Size(64, 27); - this.tbPumStock.TabIndex = 14; - this.tbPumStock.TabStop = false; - this.tbPumStock.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.toolTip1.SetToolTip(this.tbPumStock, "재고량"); - // // dtInDate // this.dtInDate.Location = new System.Drawing.Point(104, 58); @@ -673,6 +666,10 @@ // // groupBox1 // + this.groupBox1.Controls.Add(this.tbpumqtyReq); + this.groupBox1.Controls.Add(label15); + this.groupBox1.Controls.Add(this.tbBigoChk); + this.groupBox1.Controls.Add(label14); this.groupBox1.Controls.Add(this.chk2); this.groupBox1.Controls.Add(this.chk1); this.groupBox1.Controls.Add(this.btSIDChk); @@ -687,7 +684,6 @@ this.groupBox1.Controls.Add(label6); this.groupBox1.Controls.Add(label3); this.groupBox1.Controls.Add(this.dtPdate); - this.groupBox1.Controls.Add(this.tbPumStock); this.groupBox1.Controls.Add(this.tbPumAmt); this.groupBox1.Controls.Add(this.tbBigo); this.groupBox1.Controls.Add(deptLabel); @@ -724,10 +720,10 @@ // this.chk2.AutoSize = true; this.chk2.Enabled = false; - this.chk2.Location = new System.Drawing.Point(201, 548); + this.chk2.Location = new System.Drawing.Point(201, 552); this.chk2.Name = "chk2"; this.chk2.Size = new System.Drawing.Size(133, 24); - this.chk2.TabIndex = 42; + this.chk2.TabIndex = 39; this.chk2.Text = "구매담당자확인"; this.chk2.UseVisualStyleBackColor = true; // @@ -735,20 +731,20 @@ // this.chk1.AutoSize = true; this.chk1.Enabled = false; - this.chk1.Location = new System.Drawing.Point(94, 548); + this.chk1.Location = new System.Drawing.Point(94, 552); this.chk1.Name = "chk1"; this.chk1.Size = new System.Drawing.Size(103, 24); - this.chk1.TabIndex = 41; + this.chk1.TabIndex = 38; this.chk1.Text = "요청자확인"; this.chk1.UseVisualStyleBackColor = true; // // btSIDChk // this.btSIDChk.BackColor = System.Drawing.Color.Gray; - this.btSIDChk.Location = new System.Drawing.Point(279, 249); + this.btSIDChk.Location = new System.Drawing.Point(279, 264); this.btSIDChk.Name = "btSIDChk"; this.btSIDChk.Size = new System.Drawing.Size(196, 34); - this.btSIDChk.TabIndex = 40; + this.btSIDChk.TabIndex = 27; this.btSIDChk.Text = "SID 검사(SPR/NR)"; this.btSIDChk.UseVisualStyleBackColor = false; this.btSIDChk.Click += new System.EventHandler(this.btSIDChk_Click); @@ -756,29 +752,29 @@ // tbStorage // this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.tbStorage.Location = new System.Drawing.Point(370, 217); + this.tbStorage.Location = new System.Drawing.Point(370, 234); this.tbStorage.Margin = new System.Windows.Forms.Padding(4); this.tbStorage.Name = "tbStorage"; this.tbStorage.Size = new System.Drawing.Size(104, 27); - this.tbStorage.TabIndex = 39; + this.tbStorage.TabIndex = 24; // // tbPumPriceD // this.tbPumPriceD.ForeColor = System.Drawing.Color.Blue; - this.tbPumPriceD.Location = new System.Drawing.Point(94, 184); + this.tbPumPriceD.Location = new System.Drawing.Point(94, 203); this.tbPumPriceD.Margin = new System.Windows.Forms.Padding(4); this.tbPumPriceD.Name = "tbPumPriceD"; this.tbPumPriceD.Size = new System.Drawing.Size(178, 27); - this.tbPumPriceD.TabIndex = 36; + this.tbPumPriceD.TabIndex = 19; this.tbPumPriceD.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.tbPumPriceD.TextChanged += new System.EventHandler(this.tbDolloerPrice_TextChanged); // // button3 // - this.button3.Location = new System.Drawing.Point(6, 320); + this.button3.Location = new System.Drawing.Point(6, 332); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(80, 27); - this.button3.TabIndex = 34; + this.button3.TabIndex = 31; this.button3.Text = "프로젝트"; this.toolTip1.SetToolTip(this.button3, "관련 프로젝트에서 선택하여 입력, 가공 파트 및 명확히 프로젝트에 한정되어 구매되는 것들"); this.button3.UseVisualStyleBackColor = true; @@ -786,20 +782,20 @@ // // button2 // - this.button2.Location = new System.Drawing.Point(6, 288); + this.button2.Location = new System.Drawing.Point(6, 302); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(80, 27); - this.button2.TabIndex = 33; + this.button2.TabIndex = 28; this.button2.Text = "공급처"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click_1); // // button1 // - this.button1.Location = new System.Drawing.Point(6, 91); + this.button1.Location = new System.Drawing.Point(6, 79); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(80, 27); - this.button1.TabIndex = 32; + this.button1.TabIndex = 6; this.button1.Text = "품명"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click_1); @@ -843,17 +839,62 @@ this.groupBox2.Name = "groupBox2"; this.groupBox2.Padding = new System.Windows.Forms.Padding(4); this.groupBox2.Size = new System.Drawing.Size(409, 581); - this.groupBox2.TabIndex = 2; + this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "추가정보"; // + // btEQModel + // + this.btEQModel.Location = new System.Drawing.Point(104, 353); + this.btEQModel.Name = "btEQModel"; + this.btEQModel.Size = new System.Drawing.Size(286, 28); + this.btEQModel.TabIndex = 21; + this.btEQModel.Tag = "07"; + this.btEQModel.Text = "공용코드 07"; + this.btEQModel.UseVisualStyleBackColor = true; + this.btEQModel.Click += new System.EventHandler(this.button8_Click_1); + // + // btEQManu + // + this.btEQManu.Location = new System.Drawing.Point(104, 319); + this.btEQManu.Name = "btEQManu"; + this.btEQManu.Size = new System.Drawing.Size(286, 28); + this.btEQManu.TabIndex = 19; + this.btEQManu.Tag = "06"; + this.btEQManu.Text = "공용코드 06"; + this.btEQManu.UseVisualStyleBackColor = true; + this.btEQManu.Click += new System.EventHandler(this.btProcess_Click); + // + // btManuProc + // + this.btManuProc.Location = new System.Drawing.Point(104, 286); + this.btManuProc.Name = "btManuProc"; + this.btManuProc.Size = new System.Drawing.Size(286, 28); + this.btManuProc.TabIndex = 17; + this.btManuProc.Tag = "08"; + this.btManuProc.Text = "공용코드 08"; + this.btManuProc.UseVisualStyleBackColor = true; + this.btManuProc.Click += new System.EventHandler(this.btProcess_Click); + // + // btProcess + // + this.btProcess.Location = new System.Drawing.Point(104, 158); + this.btProcess.Name = "btProcess"; + this.btProcess.Size = new System.Drawing.Size(286, 28); + this.btProcess.TabIndex = 9; + this.btProcess.Tag = "09"; + this.btProcess.Text = "공용코드 09"; + this.toolTip1.SetToolTip(this.btProcess, "공용코드(09)"); + this.btProcess.UseVisualStyleBackColor = true; + this.btProcess.Click += new System.EventHandler(this.btProcess_Click); + // // tbLineCode // this.tbLineCode.Location = new System.Drawing.Point(104, 418); this.tbLineCode.Margin = new System.Windows.Forms.Padding(4); this.tbLineCode.Name = "tbLineCode"; this.tbLineCode.Size = new System.Drawing.Size(286, 27); - this.tbLineCode.TabIndex = 42; + this.tbLineCode.TabIndex = 25; // // tbCostCenter // @@ -861,7 +902,7 @@ this.tbCostCenter.Margin = new System.Windows.Forms.Padding(4); this.tbCostCenter.Name = "tbCostCenter"; this.tbCostCenter.Size = new System.Drawing.Size(286, 27); - this.tbCostCenter.TabIndex = 40; + this.tbCostCenter.TabIndex = 23; // // tbInQty // @@ -869,7 +910,7 @@ this.tbInQty.Margin = new System.Windows.Forms.Padding(4); this.tbInQty.Name = "tbInQty"; this.tbInQty.Size = new System.Drawing.Size(286, 27); - this.tbInQty.TabIndex = 38; + this.tbInQty.TabIndex = 7; this.tbInQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // button7 @@ -877,7 +918,7 @@ this.button7.Location = new System.Drawing.Point(4, 547); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(93, 27); - this.button7.TabIndex = 36; + this.button7.TabIndex = 29; this.button7.Text = "견적서폴더"; this.button7.UseVisualStyleBackColor = true; this.button7.Click += new System.EventHandler(this.button7_Click); @@ -887,7 +928,7 @@ this.button6.Location = new System.Drawing.Point(4, 515); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(93, 27); - this.button6.TabIndex = 35; + this.button6.TabIndex = 28; this.button6.Text = "그림선택"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new System.EventHandler(this.button6_Click); @@ -897,7 +938,7 @@ this.button5.Location = new System.Drawing.Point(4, 483); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(93, 27); - this.button5.TabIndex = 34; + this.button5.TabIndex = 27; this.button5.Text = "촬영"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); @@ -907,7 +948,7 @@ this.button4.Location = new System.Drawing.Point(4, 451); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(93, 27); - this.button4.TabIndex = 33; + this.button4.TabIndex = 26; this.button4.Text = "붙여넣기"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); @@ -919,7 +960,7 @@ this.tbOrderNo.Margin = new System.Windows.Forms.Padding(4); this.tbOrderNo.Name = "tbOrderNo"; this.tbOrderNo.Size = new System.Drawing.Size(286, 27); - this.tbOrderNo.TabIndex = 13; + this.tbOrderNo.TabIndex = 15; // // pictureBox1 // @@ -951,50 +992,48 @@ this.timer1.Interval = 250; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // - // btProcess + // tbBigoChk // - this.btProcess.Location = new System.Drawing.Point(104, 158); - this.btProcess.Name = "btProcess"; - this.btProcess.Size = new System.Drawing.Size(286, 28); - this.btProcess.TabIndex = 43; - this.btProcess.Tag = "09"; - this.btProcess.Text = "공용코드 09"; - this.toolTip1.SetToolTip(this.btProcess, "공용코드(09)"); - this.btProcess.UseVisualStyleBackColor = true; - this.btProcess.Click += new System.EventHandler(this.btProcess_Click); + this.tbBigoChk.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.tbBigoChk.Location = new System.Drawing.Point(93, 457); + this.tbBigoChk.Margin = new System.Windows.Forms.Padding(4); + this.tbBigoChk.MaxLength = 500; + this.tbBigoChk.Multiline = true; + this.tbBigoChk.Name = "tbBigoChk"; + this.tbBigoChk.Size = new System.Drawing.Size(381, 91); + this.tbBigoChk.TabIndex = 37; + this.tbBigoChk.TabStop = false; + this.toolTip1.SetToolTip(this.tbBigoChk, resources.GetString("tbBigoChk.ToolTip")); // - // btManuProc + // label14 // - this.btManuProc.Location = new System.Drawing.Point(104, 286); - this.btManuProc.Name = "btManuProc"; - this.btManuProc.Size = new System.Drawing.Size(286, 28); - this.btManuProc.TabIndex = 44; - this.btManuProc.Tag = "08"; - this.btManuProc.Text = "공용코드 08"; - this.btManuProc.UseVisualStyleBackColor = true; - this.btManuProc.Click += new System.EventHandler(this.btProcess_Click); + label14.AutoSize = true; + label14.Location = new System.Drawing.Point(4, 461); + label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label14.Name = "label14"; + label14.Size = new System.Drawing.Size(84, 20); + label14.TabIndex = 36; + label14.Text = "담당자비고"; + this.toolTip1.SetToolTip(label14, resources.GetString("label14.ToolTip")); // - // btEQManu + // tbpumqtyReq // - this.btEQManu.Location = new System.Drawing.Point(104, 319); - this.btEQManu.Name = "btEQManu"; - this.btEQManu.Size = new System.Drawing.Size(286, 28); - this.btEQManu.TabIndex = 45; - this.btEQManu.Tag = "06"; - this.btEQManu.Text = "공용코드 06"; - this.btEQManu.UseVisualStyleBackColor = true; - this.btEQManu.Click += new System.EventHandler(this.btProcess_Click); + this.tbpumqtyReq.Location = new System.Drawing.Point(339, 140); + this.tbpumqtyReq.Margin = new System.Windows.Forms.Padding(4); + this.tbpumqtyReq.Name = "tbpumqtyReq"; + this.tbpumqtyReq.Size = new System.Drawing.Size(135, 27); + this.tbpumqtyReq.TabIndex = 15; + this.tbpumqtyReq.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // - // btEQModel + // label15 // - this.btEQModel.Location = new System.Drawing.Point(104, 353); - this.btEQModel.Name = "btEQModel"; - this.btEQModel.Size = new System.Drawing.Size(286, 28); - this.btEQModel.TabIndex = 46; - this.btEQModel.Tag = "07"; - this.btEQModel.Text = "공용코드 07"; - this.btEQModel.UseVisualStyleBackColor = true; - this.btEQModel.Click += new System.EventHandler(this.button8_Click_1); + label15.AutoSize = true; + label15.Location = new System.Drawing.Point(237, 144); + label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label15.Name = "label15"; + label15.Size = new System.Drawing.Size(94, 20); + label15.TabIndex = 14; + label15.Text = "실 구매 수량"; // // fPurchase_Add // @@ -1047,7 +1086,6 @@ private System.Windows.Forms.ComboBox cmbState; private System.Windows.Forms.ComboBox cmbRequest; private System.Windows.Forms.ComboBox cmbReceive; - private System.Windows.Forms.TextBox tbPumStock; private System.Windows.Forms.TextBox tbPumIDX; private System.Windows.Forms.DateTimePicker dtInDate; private System.Windows.Forms.CheckBox chkInDate; @@ -1082,5 +1120,7 @@ private System.Windows.Forms.Button btManuProc; private System.Windows.Forms.Button btEQManu; private System.Windows.Forms.Button btEQModel; + private System.Windows.Forms.TextBox tbBigoChk; + private System.Windows.Forms.TextBox tbpumqtyReq; } } \ No newline at end of file diff --git a/SubProject/FEQ0000/Purchase/fPurchase_Add.cs b/SubProject/FEQ0000/Purchase/fPurchase_Add.cs index 2fbefe2..6117202 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase_Add.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase_Add.cs @@ -1,4 +1,5 @@ -using FCM0000.Mail; +using FarPoint.Excel.EntityClassLibrary.DrawingEx; +using FCM0000.Mail; using FCOMMON; using FEQ0000.Purchase; using System; @@ -28,7 +29,7 @@ namespace FEQ0000 Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS; - + bsManu = new BindingSource(); bsModel = new BindingSource(); @@ -163,7 +164,9 @@ namespace FEQ0000 tbPumModel.Text = dr.pumscale; tbPumQty.Text = dr.pumqty.ToString(); - tbPumStock.Text = "--"; + if (dr.IspumqtyReqNull()) tbpumqtyReq.Text = "0"; //230817 + else tbpumqtyReq.Text = dr.pumqtyReq.ToString(); + if (dr.IspumidxNull()) tbPumIDX.Text = "-1"; else tbPumIDX.Text = dr.pumidx.ToString(); tbPumPrice.Text = dr.pumprice.ToString(); @@ -197,6 +200,9 @@ namespace FEQ0000 tbPO.Text = dr.po; tbOrderNo.Text = dr.orderno; tbBigo.Text = dr.bigo; + if (dr.IschkremarkNull()) tbBigoChk.Text = string.Empty; + else tbBigoChk.Text = dr.chkremark; + dtInDate.Text = dr.indate; dtExpDate.Text = dr.edate; if (dr.IsinqtyNull() == false) @@ -232,6 +238,13 @@ namespace FEQ0000 groupBox1.Enabled = false; groupBox2.Enabled = false; } + tbBigoChk.Enabled = false; + tbpumqtyReq.Enabled = false; + } + else + { + tbBigoChk.Enabled = true; + tbpumqtyReq.Enabled = true; } if (advInput == false) @@ -503,11 +516,23 @@ namespace FEQ0000 } if (tbPumQty.Text == "") { - FCOMMON.Util.MsgE("수량을 입력하세요."); + FCOMMON.Util.MsgE("수량(요청)을 입력하세요."); tbPumQty.Focus(); return false; } + if (tbBigoChk.Enabled && ( cmbState.Text == "PO" || cmbState.Text == "PR")) + { + var qtycnv = int.TryParse(tbpumqtyReq.Text, out int qtyreq); + if(qtycnv ==false || qtyreq < 1) + { + FCOMMON.Util.MsgE("수량(실 구매)을 입력하세요."); + tbpumqtyReq.Focus(); + return false; + } + } + + if (advInput == true) { @@ -680,10 +705,17 @@ namespace FEQ0000 } } - if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0"; - if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0"; - dr.pumqty = int.Parse(tbPumQty.Text); - dr.pumprice = decimal.Parse(tbPumPrice.Text); + if (int.TryParse(tbPumQty.Text, out int vqty) == false) + tbPumQty.Text = "0"; + if (int.TryParse(tbpumqtyReq.Text, out int vqtyreq) == false) + tbpumqtyReq.Text = "0"; + if (decimal.TryParse(tbPumPrice.Text, out decimal vpumprice) == false) + tbPumPrice.Text = "0"; + + dr.pumqty = vqty;// int.Parse(tbPumQty.Text); + dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text); + dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text); + if (decimal.TryParse(tbPumPriceD.Text, out decimal priced)) { @@ -745,6 +777,7 @@ namespace FEQ0000 dr.po = tbPO.Text; dr.orderno = tbOrderNo.Text; dr.bigo = tbBigo.Text; + dr.chkremark = tbBigoChk.Text; if (chkInDate.Checked) dr.inqty = int.Parse(tbInQty.Text.Replace(",", "")); @@ -1154,7 +1187,7 @@ namespace FEQ0000 } string filter = "svalue='" + btEQManu.Text.Replace("'", "''") + "'"; - + var bt = sender as Button; var guun = bt.Tag.ToString(); var f = new FCM0000.fCode(guun, filter); diff --git a/SubProject/FEQ0000/Purchase/fPurchase_Add.resx b/SubProject/FEQ0000/Purchase/fPurchase_Add.resx index 1e7a148..f2fb274 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase_Add.resx +++ b/SubProject/FEQ0000/Purchase/fPurchase_Add.resx @@ -213,6 +213,26 @@ * 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등) * 공정 정비 파트 / 상세한 사유 작성 (본인 담당의 주, 보조 공정에서 사용되는 것들. Feeder wheel, O/H, 장비 교체 파트 등) * 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) +* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) + + + False + + + * 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등) +* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등) +* 공정 정비 파트 / 상세한 사유 작성 (본인 담당의 주, 보조 공정에서 사용되는 것들. Feeder wheel, O/H, 장비 교체 파트 등) +* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) +* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) + + + False + + + * 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등) +* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등) +* 공정 정비 파트 / 상세한 사유 작성 (본인 담당의 주, 보조 공정에서 사용되는 것들. Feeder wheel, O/H, 장비 교체 파트 등) +* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) * 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs index 800955d..3743d6e 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs @@ -30,38 +30,40 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR)); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType4 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType5 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType16 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType37 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType38 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType17 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType39 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType40 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType6 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType18 = new FarPoint.Win.Spread.CellType.NumberCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter(); @@ -143,6 +145,7 @@ this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.label1 = new System.Windows.Forms.Label(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); + this.label2 = new System.Windows.Forms.Label(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); @@ -852,9 +855,22 @@ this.fpSpread1.Name = "fpSpread1"; this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { this.fpSpread1_Sheet1}); - this.fpSpread1.Size = new System.Drawing.Size(1226, 592); + this.fpSpread1.Size = new System.Drawing.Size(1226, 569); this.fpSpread1.StatusBarVisible = true; this.fpSpread1.TabIndex = 7; + this.fpSpread1.SetViewportLeftColumn(0, 0, 5); + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label2.Location = new System.Drawing.Point(0, 606); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.label2.Size = new System.Drawing.Size(1226, 23); + this.label2.TabIndex = 8; + this.label2.Text = "--"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // fpSpread1_Sheet1 // @@ -862,7 +878,7 @@ this.fpSpread1_Sheet1.SheetName = "Sheet1"; // Formulas and custom names must be loaded with R1C1 reference style this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; - this.fpSpread1_Sheet1.ColumnCount = 32; + this.fpSpread1_Sheet1.ColumnCount = 34; this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1; @@ -887,59 +903,62 @@ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "SC#"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).RowSpan = 2; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "SCR/CF"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).ColumnSpan = 10; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).ColumnSpan = 11; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "품목정보"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "*"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "규격"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "단위"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단가($)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "단가"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "합계금액"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "공급업체"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "프로젝트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "*"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).ColumnSpan = 5; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "입고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "입고일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "입고수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "PO#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단위"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "단가($)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "단가"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "합계금액"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "공급업체"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "프로젝트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "*"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "비고\r\n(요청자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).ColumnSpan = 5; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "입고"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "입고일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "입고수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "비고"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "삭제됨"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "PO#"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "IDX"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "비고\r\n(담당자)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "삭제됨"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "IDX"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "품명"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "*"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "SID#"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "모델"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "단위"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "단가($)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "단가"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "금액"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "공급"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 24).Value = "예정일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 25).Value = "수령인"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 26).Value = "입고일"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 27).Value = "수량"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 28).Value = "비고"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "수량\r\n(요청)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "수량\r\n(구매)\r\n"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "단위"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "단가($)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "단가"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "금액"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "공급"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 25).Value = "예정일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 26).Value = "수령인"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 27).Value = "입고일"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 28).Value = "수량"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 29).Value = "비고"; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 29F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 35F; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType4; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1"; this.fpSpread1_Sheet1.Columns.Get(0).Width = 33F; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType5; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2"; this.fpSpread1_Sheet1.Columns.Get(1).Width = 37F; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType21; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate"; @@ -947,209 +966,218 @@ this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType22; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "state"; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).Tag = "state"; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType23; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType24; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "requestName"; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(5).Tag = "requestName"; this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType25; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "costcenter"; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "linecode"; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType27; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sc"; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).Tag = "sc"; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType28; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "orderno"; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Tag = "crcf"; this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType29; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumname"; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(10).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(10).Tag = "pumname"; this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(11).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType10.DecimalPlaces = 0; - numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType10.MaximumValue = 2147483647D; - numberCellType10.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType10; + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType1; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumidx"; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumidx"; this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType30; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType10; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Label = "SID#"; this.fpSpread1_Sheet1.Columns.Get(12).Tag = "sid"; this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType31; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(13).Label = "모델"; this.fpSpread1_Sheet1.Columns.Get(13).Tag = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F; - numberCellType11.DecimalPlaces = 0; - numberCellType11.NegativeRed = true; - numberCellType11.NullDisplay = "--"; - numberCellType11.Separator = ","; - numberCellType11.ShowSeparator = true; - numberCellType11.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType11; + numberCellType2.DecimalPlaces = 0; + numberCellType2.NegativeRed = true; + numberCellType2.NullDisplay = "--"; + numberCellType2.Separator = ","; + numberCellType2.ShowSeparator = true; + numberCellType2.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량"; + this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량\r\n(요청)"; this.fpSpread1_Sheet1.Columns.Get(14).Tag = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType32; - this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumunit"; + numberCellType3.DecimalPlaces = 0; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType3; + this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqtyReq"; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).Label = "단위"; - this.fpSpread1_Sheet1.Columns.Get(15).Tag = "pumunit"; - this.fpSpread1_Sheet1.Columns.Get(15).Width = 51F; - numberCellType12.DecimalPlaces = 2; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType12; - this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumpriceD"; - this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가($)"; - this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumpriceD"; - this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - numberCellType13.DecimalPlaces = 0; - numberCellType13.MaximumValue = 9999999999999.99D; - numberCellType13.MinimumValue = -9999999999999.99D; - numberCellType13.NegativeRed = true; - numberCellType13.NullDisplay = "--"; - numberCellType13.Separator = ","; - numberCellType13.ShowSeparator = true; - numberCellType13.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType13; - this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice"; + this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량\r\n(구매)\r\n"; + this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위"; + this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumunit"; + this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F; + numberCellType4.DecimalPlaces = 2; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType4; + this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumpriceD"; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가"; - this.fpSpread1_Sheet1.Columns.Get(17).Tag = "pumprice"; - this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F; - numberCellType14.DecimalPlaces = 0; - numberCellType14.MaximumValue = 9999999999999.99D; - numberCellType14.MinimumValue = -9999999999999.99D; - numberCellType14.NegativeRed = true; - numberCellType14.NullDisplay = "--"; - numberCellType14.Separator = ","; - numberCellType14.ShowSeparator = true; - numberCellType14.ShrinkToFit = true; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType14; - this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가($)"; + this.fpSpread1_Sheet1.Columns.Get(17).Tag = "pumpriceD"; + this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + numberCellType5.DecimalPlaces = 0; + numberCellType5.MaximumValue = 9999999999999.99D; + numberCellType5.MinimumValue = -9999999999999.99D; + numberCellType5.NegativeRed = true; + numberCellType5.NullDisplay = "--"; + numberCellType5.Separator = ","; + numberCellType5.ShowSeparator = true; + numberCellType5.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType5; + this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; - this.fpSpread1_Sheet1.Columns.Get(18).Label = "금액"; - this.fpSpread1_Sheet1.Columns.Get(18).Tag = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(18).Label = "단가"; + this.fpSpread1_Sheet1.Columns.Get(18).Tag = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType33; - this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply"; - this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급"; - this.fpSpread1_Sheet1.Columns.Get(19).Tag = "supply"; + numberCellType6.DecimalPlaces = 0; + numberCellType6.MaximumValue = 9999999999999.99D; + numberCellType6.MinimumValue = -9999999999999.99D; + numberCellType6.NegativeRed = true; + numberCellType6.NullDisplay = "--"; + numberCellType6.Separator = ","; + numberCellType6.ShowSeparator = true; + numberCellType6.ShrinkToFit = true; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType6; + this.fpSpread1_Sheet1.Columns.Get(19).DataField = "pumamt"; + this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; + this.fpSpread1_Sheet1.Columns.Get(19).Label = "금액"; + this.fpSpread1_Sheet1.Columns.Get(19).Tag = "pumamt"; this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType15.DecimalPlaces = 0; - numberCellType15.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType15.MaximumValue = 2147483647D; - numberCellType15.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType15; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx"; - this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(20).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType13; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supply"; + this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(20).Label = "공급"; + this.fpSpread1_Sheet1.Columns.Get(20).Tag = "supply"; this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(21).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType34; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project"; - this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(21).Tag = "project"; + this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType7.DecimalPlaces = 0; + numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType7.MaximumValue = 2147483647D; + numberCellType7.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType7; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "supplyidx"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Visible = false; this.fpSpread1_Sheet1.Columns.Get(21).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType16.DecimalPlaces = 0; - numberCellType16.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType16.MaximumValue = 2147483647D; - numberCellType16.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType16; - this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(22).Tag = "projectidx"; - this.fpSpread1_Sheet1.Columns.Get(22).Visible = false; + this.fpSpread1_Sheet1.Columns.Get(22).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "project"; + this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(22).Tag = "project"; this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType35; - this.fpSpread1_Sheet1.Columns.Get(23).DataField = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(23).Tag = "bigo"; - this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(23).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType8.DecimalPlaces = 0; + numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType8.MaximumValue = 2147483647D; + numberCellType8.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType8; + this.fpSpread1_Sheet1.Columns.Get(23).DataField = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(23).Tag = "projectidx"; + this.fpSpread1_Sheet1.Columns.Get(23).Visible = false; this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType36; - this.fpSpread1_Sheet1.Columns.Get(24).DataField = "edate"; - this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(24).Label = "예정일"; - this.fpSpread1_Sheet1.Columns.Get(24).Tag = "edate"; - this.fpSpread1_Sheet1.Columns.Get(24).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType37; - this.fpSpread1_Sheet1.Columns.Get(25).DataField = "receiveName"; - this.fpSpread1_Sheet1.Columns.Get(25).Label = "수령인"; - this.fpSpread1_Sheet1.Columns.Get(25).Tag = "receiveName"; - this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType38; - this.fpSpread1_Sheet1.Columns.Get(26).DataField = "indate"; - this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(26).Label = "입고일"; - this.fpSpread1_Sheet1.Columns.Get(26).Tag = "indate"; - this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F; - numberCellType17.DecimalPlaces = 0; - numberCellType17.NegativeRed = true; - numberCellType17.ShowSeparator = true; - this.fpSpread1_Sheet1.Columns.Get(27).CellType = numberCellType17; - this.fpSpread1_Sheet1.Columns.Get(27).DataField = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(24).DataField = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(24).Tag = "bigo"; + this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType16; + this.fpSpread1_Sheet1.Columns.Get(25).DataField = "edate"; + this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(25).Label = "예정일"; + this.fpSpread1_Sheet1.Columns.Get(25).Tag = "edate"; + this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17; + this.fpSpread1_Sheet1.Columns.Get(26).DataField = "receiveName"; + this.fpSpread1_Sheet1.Columns.Get(26).Label = "수령인"; + this.fpSpread1_Sheet1.Columns.Get(26).Tag = "receiveName"; + this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType18; + this.fpSpread1_Sheet1.Columns.Get(27).DataField = "indate"; this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(27).Label = "수량"; - this.fpSpread1_Sheet1.Columns.Get(27).Tag = "inqty"; - this.fpSpread1_Sheet1.Columns.Get(27).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(27).Label = "입고일"; + this.fpSpread1_Sheet1.Columns.Get(27).Tag = "indate"; this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(28).CellType = textCellType39; - this.fpSpread1_Sheet1.Columns.Get(28).DataField = "inremark"; - this.fpSpread1_Sheet1.Columns.Get(28).Label = "비고"; - this.fpSpread1_Sheet1.Columns.Get(28).Tag = "inremark"; - this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType40; - this.fpSpread1_Sheet1.Columns.Get(29).DataField = "po"; - this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(29).Tag = "po"; - this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(30).CellType = checkBoxCellType6; - this.fpSpread1_Sheet1.Columns.Get(30).DataField = "isdel"; - this.fpSpread1_Sheet1.Columns.Get(30).Tag = "isdel"; + numberCellType9.DecimalPlaces = 0; + numberCellType9.NegativeRed = true; + numberCellType9.ShowSeparator = true; + this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType9; + this.fpSpread1_Sheet1.Columns.Get(28).DataField = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(28).Label = "수량"; + this.fpSpread1_Sheet1.Columns.Get(28).Tag = "inqty"; + this.fpSpread1_Sheet1.Columns.Get(28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(29).DataField = "inremark"; + this.fpSpread1_Sheet1.Columns.Get(29).Label = "비고"; + this.fpSpread1_Sheet1.Columns.Get(29).Tag = "inremark"; + this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType20; + this.fpSpread1_Sheet1.Columns.Get(30).DataField = "po"; + this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(30).Tag = "po"; this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F; - this.fpSpread1_Sheet1.Columns.Get(31).CellType = numberCellType18; - this.fpSpread1_Sheet1.Columns.Get(31).DataField = "idx"; - this.fpSpread1_Sheet1.Columns.Get(31).Tag = "idx"; + this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType21; + this.fpSpread1_Sheet1.Columns.Get(31).DataField = "chkremark"; + this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(32).CellType = checkBoxCellType3; + this.fpSpread1_Sheet1.Columns.Get(32).DataField = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(32).Tag = "isdel"; + this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F; + this.fpSpread1_Sheet1.Columns.Get(33).CellType = numberCellType10; + this.fpSpread1_Sheet1.Columns.Get(33).DataField = "idx"; + this.fpSpread1_Sheet1.Columns.Get(33).Tag = "idx"; this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoSizeColumns = false; this.fpSpread1_Sheet1.DataSource = this.bs; @@ -1163,6 +1191,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1226, 678); this.Controls.Add(this.fpSpread1); + this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.bn); @@ -1268,6 +1297,7 @@ private System.Windows.Forms.ToolStripDropDownButton toolStripButton5; private System.Windows.Forms.ToolStripMenuItem 선택해제ToolStripMenuItem; private System.Windows.Forms.ToolStripButton toolStripButton6; + private System.Windows.Forms.Label label2; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; } } diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs index 0449fb6..5184251 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.cs @@ -895,6 +895,13 @@ namespace FEQ0000 this.label1.Text = $"비고:{dr.bigo.Replace("\r", "").Replace("\n", "")}"; else this.label1.Text = $"프로젝트:{dr.project},비고:{dr.bigo.Replace("\r", "").Replace("\n", "")}"; + + if (dr.IschkremarkNull() == false && dr.chkremark.Length > 0) + { + this.label2.Text = $"구매담당비고:{dr.chkremark}"; + this.label2.Visible = true; + } + else this.label2.Visible = false; } private void toolStripButton4_Click(object sender, EventArgs e) diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx index bc1b751..02b759b 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR.resx @@ -136,7 +136,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + vgAADr4B6kKxwAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA @@ -147,7 +147,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + vgAADr4B6kKxwAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC @@ -156,7 +156,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + vgAADr4B6kKxwAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f oAc0QjgAAAAASUVORK5CYII= @@ -165,7 +165,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + vgAADr4B6kKxwAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG @@ -176,7 +176,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC + vgAADr4B6kKxwAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++ Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ /5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA @@ -211,7 +211,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vwAADr8BOAVTJAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC + vgAADr4B6kKxwAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.Designer.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.Designer.cs index 0933efe..dd1a268 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.Designer.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.Designer.cs @@ -50,6 +50,8 @@ System.Windows.Forms.Label label4; System.Windows.Forms.Label label7; System.Windows.Forms.Label label11; + System.Windows.Forms.Label label12; + System.Windows.Forms.Label label13; this.tbSC = new System.Windows.Forms.TextBox(); this.tbSID = new System.Windows.Forms.TextBox(); this.tbPumName = new System.Windows.Forms.TextBox(); @@ -70,7 +72,6 @@ this.cmbRequest = new System.Windows.Forms.ComboBox(); this.cmbReceive = new System.Windows.Forms.ComboBox(); this.tbPumIDX = new System.Windows.Forms.TextBox(); - this.tbPumStock = new System.Windows.Forms.TextBox(); this.dtInDate = new System.Windows.Forms.DateTimePicker(); this.chkInDate = new System.Windows.Forms.CheckBox(); this.dtExpDate = new System.Windows.Forms.DateTimePicker(); @@ -78,25 +79,27 @@ this.btSaveAdd = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btSIDChk = new System.Windows.Forms.Button(); + this.tbLineCode = new System.Windows.Forms.TextBox(); this.tbStorage = new System.Windows.Forms.TextBox(); + this.tbCostCenter = new System.Windows.Forms.TextBox(); this.tbPumPriceD = new System.Windows.Forms.TextBox(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.button7 = new System.Windows.Forms.Button(); - this.tbLineCode = new System.Windows.Forms.TextBox(); - this.tbCostCenter = new System.Windows.Forms.TextBox(); this.tbInRemar = new System.Windows.Forms.TextBox(); this.tbInQty = new System.Windows.Forms.TextBox(); this.tbOrderNo = new System.Windows.Forms.TextBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.dsPurchase = new FEQ0000.dsPurchase(); - this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.chk2 = new System.Windows.Forms.CheckBox(); this.chk1 = new System.Windows.Forms.CheckBox(); + this.dsPurchase = new FEQ0000.dsPurchase(); + this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); + this.tbBigoChk = new System.Windows.Forms.TextBox(); + this.tbpumqtyReq = new System.Windows.Forms.TextBox(); receiveLabel = new System.Windows.Forms.Label(); scLabel = new System.Windows.Forms.Label(); sidLabel = new System.Windows.Forms.Label(); @@ -117,6 +120,8 @@ label4 = new System.Windows.Forms.Label(); label7 = new System.Windows.Forms.Label(); label11 = new System.Windows.Forms.Label(); + label12 = new System.Windows.Forms.Label(); + label13 = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); @@ -130,7 +135,7 @@ receiveLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); receiveLabel.Name = "receiveLabel"; receiveLabel.Size = new System.Drawing.Size(54, 20); - receiveLabel.TabIndex = 4; + receiveLabel.TabIndex = 8; receiveLabel.Text = "수령인"; // // scLabel @@ -140,23 +145,23 @@ scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); scLabel.Name = "scLabel"; scLabel.Size = new System.Drawing.Size(27, 20); - scLabel.TabIndex = 8; + scLabel.TabIndex = 2; scLabel.Text = "SC"; // // sidLabel // sidLabel.AutoSize = true; - sidLabel.Location = new System.Drawing.Point(54, 245); + sidLabel.Location = new System.Drawing.Point(54, 274); sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); sidLabel.Name = "sidLabel"; sidLabel.Size = new System.Drawing.Size(32, 20); - sidLabel.TabIndex = 19; + sidLabel.TabIndex = 24; sidLabel.Text = "SID"; // // pumscaleLabel // pumscaleLabel.AutoSize = true; - pumscaleLabel.Location = new System.Drawing.Point(10, 121); + pumscaleLabel.Location = new System.Drawing.Point(10, 120); pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumscaleLabel.Name = "pumscaleLabel"; pumscaleLabel.Size = new System.Drawing.Size(75, 20); @@ -166,31 +171,31 @@ // pumqtyLabel // pumqtyLabel.AutoSize = true; - pumqtyLabel.Location = new System.Drawing.Point(47, 151); + pumqtyLabel.Location = new System.Drawing.Point(16, 152); pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumqtyLabel.Name = "pumqtyLabel"; - pumqtyLabel.Size = new System.Drawing.Size(39, 20); + pumqtyLabel.Size = new System.Drawing.Size(69, 20); pumqtyLabel.TabIndex = 12; - pumqtyLabel.Text = "수량"; + pumqtyLabel.Text = "요청수량"; // // pumpriceLabel // pumpriceLabel.AutoSize = true; - pumpriceLabel.Location = new System.Drawing.Point(280, 151); + pumpriceLabel.Location = new System.Drawing.Point(47, 182); pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumpriceLabel.Name = "pumpriceLabel"; pumpriceLabel.Size = new System.Drawing.Size(39, 20); - pumpriceLabel.TabIndex = 15; + pumpriceLabel.TabIndex = 16; pumpriceLabel.Text = "단가"; // // pumamtLabel // pumamtLabel.AutoSize = true; - pumamtLabel.Location = new System.Drawing.Point(47, 209); + pumamtLabel.Location = new System.Drawing.Point(47, 241); pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); pumamtLabel.Name = "pumamtLabel"; pumamtLabel.Size = new System.Drawing.Size(39, 20); - pumamtLabel.TabIndex = 17; + pumamtLabel.TabIndex = 20; pumamtLabel.Text = "합계"; // // poLabel @@ -200,18 +205,18 @@ poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); poLabel.Name = "poLabel"; poLabel.Size = new System.Drawing.Size(30, 20); - poLabel.TabIndex = 10; + poLabel.TabIndex = 4; poLabel.Text = "PO"; // // deptLabel // deptLabel.AutoSize = true; - deptLabel.Location = new System.Drawing.Point(14, 438); + deptLabel.Location = new System.Drawing.Point(14, 452); deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); deptLabel.Name = "deptLabel"; - deptLabel.Size = new System.Drawing.Size(39, 20); - deptLabel.TabIndex = 27; - deptLabel.Text = "비고"; + deptLabel.Size = new System.Drawing.Size(89, 20); + deptLabel.TabIndex = 3; + deptLabel.Text = "요청자 비고"; this.toolTip1.SetToolTip(deptLabel, resources.GetString("deptLabel.ToolTip")); // // label1 @@ -231,13 +236,13 @@ label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label5.Name = "label5"; label5.Size = new System.Drawing.Size(59, 20); - label5.TabIndex = 12; + label5.TabIndex = 6; label5.Text = "SCR/CF"; // // label3 // label3.AutoSize = true; - label3.Location = new System.Drawing.Point(46, 62); + label3.Location = new System.Drawing.Point(46, 61); label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label3.Name = "label3"; label3.Size = new System.Drawing.Size(39, 20); @@ -247,7 +252,7 @@ // label6 // label6.AutoSize = true; - label6.Location = new System.Drawing.Point(280, 62); + label6.Location = new System.Drawing.Point(280, 61); label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label6.Name = "label6"; label6.Size = new System.Drawing.Size(39, 20); @@ -258,11 +263,11 @@ // label8.AutoSize = true; label8.ForeColor = System.Drawing.Color.Blue; - label8.Location = new System.Drawing.Point(29, 179); + label8.Location = new System.Drawing.Point(29, 211); label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label8.Name = "label8"; label8.Size = new System.Drawing.Size(57, 20); - label8.TabIndex = 35; + label8.TabIndex = 18; label8.Text = "단가($)"; // // label9 @@ -270,7 +275,7 @@ label9.AutoSize = true; label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); label9.ForeColor = System.Drawing.Color.Blue; - label9.Location = new System.Drawing.Point(285, 183); + label9.Location = new System.Drawing.Point(277, 215); label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label9.Name = "label9"; label9.Size = new System.Drawing.Size(163, 15); @@ -280,11 +285,11 @@ // label10 // label10.AutoSize = true; - label10.Location = new System.Drawing.Point(287, 209); + label10.Location = new System.Drawing.Point(287, 241); label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label10.Name = "label10"; label10.Size = new System.Drawing.Size(75, 20); - label10.TabIndex = 38; + label10.TabIndex = 22; label10.Text = "STORAGE"; // // label2 @@ -294,7 +299,7 @@ label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label2.Name = "label2"; label2.Size = new System.Drawing.Size(69, 20); - label2.TabIndex = 14; + label2.TabIndex = 12; label2.Text = "입고수량"; // // label4 @@ -304,27 +309,27 @@ label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label4.Name = "label4"; label4.Size = new System.Drawing.Size(79, 20); - label4.TabIndex = 16; + label4.TabIndex = 14; label4.Text = "비고(입고)"; // // label7 // label7.AutoSize = true; - label7.Location = new System.Drawing.Point(9, 388); + label7.Location = new System.Drawing.Point(9, 398); label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label7.Name = "label7"; label7.Size = new System.Drawing.Size(78, 20); - label7.TabIndex = 20; + label7.TabIndex = 35; label7.Text = "Line Code"; // // label11 // label11.AutoSize = true; - label11.Location = new System.Drawing.Point(-2, 357); + label11.Location = new System.Drawing.Point(-2, 370); label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label11.Name = "label11"; label11.Size = new System.Drawing.Size(89, 20); - label11.TabIndex = 18; + label11.TabIndex = 33; label11.Text = "Cost Center"; // // tbSC @@ -333,17 +338,17 @@ this.tbSC.Margin = new System.Windows.Forms.Padding(4); this.tbSC.Name = "tbSC"; this.tbSC.Size = new System.Drawing.Size(286, 27); - this.tbSC.TabIndex = 9; + this.tbSC.TabIndex = 3; // // tbSID // this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 15F); - this.tbSID.Location = new System.Drawing.Point(93, 242); + this.tbSID.Location = new System.Drawing.Point(93, 268); this.tbSID.Margin = new System.Windows.Forms.Padding(4); this.tbSID.Name = "tbSID"; this.tbSID.Size = new System.Drawing.Size(179, 34); - this.tbSID.TabIndex = 20; + this.tbSID.TabIndex = 25; // // tbPumName // @@ -361,7 +366,7 @@ // this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha; - this.tbPumModel.Location = new System.Drawing.Point(93, 118); + this.tbPumModel.Location = new System.Drawing.Point(93, 117); this.tbPumModel.Margin = new System.Windows.Forms.Padding(4); this.tbPumModel.Name = "tbPumModel"; this.tbPumModel.Size = new System.Drawing.Size(311, 27); @@ -370,10 +375,10 @@ // tbPumUnit // this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); - this.tbPumUnit.Location = new System.Drawing.Point(410, 118); + this.tbPumUnit.Location = new System.Drawing.Point(406, 117); this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4); this.tbPumUnit.Name = "tbPumUnit"; - this.tbPumUnit.Size = new System.Drawing.Size(64, 27); + this.tbPumUnit.Size = new System.Drawing.Size(68, 27); this.tbPumUnit.TabIndex = 11; this.tbPumUnit.TabStop = false; this.tbPumUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -382,52 +387,52 @@ // tbPumQty // this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.tbPumQty.Location = new System.Drawing.Point(94, 147); + this.tbPumQty.Location = new System.Drawing.Point(94, 148); this.tbPumQty.Margin = new System.Windows.Forms.Padding(4); this.tbPumQty.Name = "tbPumQty"; - this.tbPumQty.Size = new System.Drawing.Size(111, 27); + this.tbPumQty.Size = new System.Drawing.Size(133, 27); this.tbPumQty.TabIndex = 13; this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); // // tbPumPrice // - this.tbPumPrice.Location = new System.Drawing.Point(326, 147); + this.tbPumPrice.Location = new System.Drawing.Point(94, 178); this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4); this.tbPumPrice.Name = "tbPumPrice"; - this.tbPumPrice.Size = new System.Drawing.Size(148, 27); - this.tbPumPrice.TabIndex = 16; + this.tbPumPrice.Size = new System.Drawing.Size(178, 27); + this.tbPumPrice.TabIndex = 17; this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); // // tbPumAmt // - this.tbPumAmt.Location = new System.Drawing.Point(93, 206); + this.tbPumAmt.Location = new System.Drawing.Point(93, 238); this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4); this.tbPumAmt.Name = "tbPumAmt"; this.tbPumAmt.ReadOnly = true; this.tbPumAmt.Size = new System.Drawing.Size(179, 27); - this.tbPumAmt.TabIndex = 18; + this.tbPumAmt.TabIndex = 21; this.tbPumAmt.TabStop = false; this.tbPumAmt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // tbSupply // this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbSupply.Location = new System.Drawing.Point(93, 283); + this.tbSupply.Location = new System.Drawing.Point(93, 306); this.tbSupply.Margin = new System.Windows.Forms.Padding(4); this.tbSupply.Name = "tbSupply"; this.tbSupply.Size = new System.Drawing.Size(311, 27); - this.tbSupply.TabIndex = 22; + this.tbSupply.TabIndex = 28; // // tbSupplyIndex // - this.tbSupplyIndex.Location = new System.Drawing.Point(410, 283); + this.tbSupplyIndex.Location = new System.Drawing.Point(410, 306); this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4); this.tbSupplyIndex.Name = "tbSupplyIndex"; this.tbSupplyIndex.ReadOnly = true; this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27); - this.tbSupplyIndex.TabIndex = 23; + this.tbSupplyIndex.TabIndex = 29; this.tbSupplyIndex.TabStop = false; this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbSupplyIndex, "Database ID"); @@ -436,21 +441,21 @@ // this.tbProject.BackColor = System.Drawing.SystemColors.Window; this.tbProject.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbProject.Location = new System.Drawing.Point(93, 320); + this.tbProject.Location = new System.Drawing.Point(93, 336); this.tbProject.Margin = new System.Windows.Forms.Padding(4); this.tbProject.Name = "tbProject"; this.tbProject.Size = new System.Drawing.Size(311, 27); - this.tbProject.TabIndex = 25; + this.tbProject.TabIndex = 31; this.toolTip1.SetToolTip(this.tbProject, "관련 프로젝트에서 선택하여 입력, 가공 파트 및 명확히 프로젝트에 한정되어 구매되는 것들"); // // tbProjectIndex // - this.tbProjectIndex.Location = new System.Drawing.Point(410, 320); + this.tbProjectIndex.Location = new System.Drawing.Point(410, 336); this.tbProjectIndex.Margin = new System.Windows.Forms.Padding(4); this.tbProjectIndex.Name = "tbProjectIndex"; this.tbProjectIndex.ReadOnly = true; this.tbProjectIndex.Size = new System.Drawing.Size(64, 27); - this.tbProjectIndex.TabIndex = 26; + this.tbProjectIndex.TabIndex = 32; this.tbProjectIndex.TabStop = false; this.tbProjectIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbProjectIndex, "Database ID"); @@ -461,18 +466,18 @@ this.tbPO.Margin = new System.Windows.Forms.Padding(4); this.tbPO.Name = "tbPO"; this.tbPO.Size = new System.Drawing.Size(286, 27); - this.tbPO.TabIndex = 11; + this.tbPO.TabIndex = 5; // // tbBigo // this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.tbBigo.Location = new System.Drawing.Point(12, 465); + this.tbBigo.Location = new System.Drawing.Point(12, 479); this.tbBigo.Margin = new System.Windows.Forms.Padding(4); this.tbBigo.MaxLength = 500; this.tbBigo.Multiline = true; this.tbBigo.Name = "tbBigo"; - this.tbBigo.Size = new System.Drawing.Size(490, 115); - this.tbBigo.TabIndex = 28; + this.tbBigo.Size = new System.Drawing.Size(490, 77); + this.tbBigo.TabIndex = 4; this.tbBigo.TabStop = false; this.toolTip1.SetToolTip(this.tbBigo, resources.GetString("tbBigo.ToolTip")); // @@ -487,11 +492,11 @@ // btSave // this.btSave.Font = new System.Drawing.Font("맑은 고딕", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.btSave.Location = new System.Drawing.Point(12, 588); + this.btSave.Location = new System.Drawing.Point(512, 434); this.btSave.Margin = new System.Windows.Forms.Padding(4); this.btSave.Name = "btSave"; - this.btSave.Size = new System.Drawing.Size(490, 80); - this.btSave.TabIndex = 1; + this.btSave.Size = new System.Drawing.Size(410, 121); + this.btSave.TabIndex = 8; this.btSave.Text = "저장(&S)"; this.btSave.UseVisualStyleBackColor = true; this.btSave.Click += new System.EventHandler(this.button1_Click); @@ -500,10 +505,10 @@ // this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.cmbState.FormattingEnabled = true; - this.cmbState.Location = new System.Drawing.Point(327, 59); + this.cmbState.Location = new System.Drawing.Point(327, 58); this.cmbState.Margin = new System.Windows.Forms.Padding(4); this.cmbState.Name = "cmbState"; - this.cmbState.Size = new System.Drawing.Size(148, 28); + this.cmbState.Size = new System.Drawing.Size(147, 28); this.cmbState.TabIndex = 5; this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // @@ -514,7 +519,7 @@ this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbRequest.FormattingEnabled = true; this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.cmbRequest.Location = new System.Drawing.Point(93, 59); + this.cmbRequest.Location = new System.Drawing.Point(93, 58); this.cmbRequest.Margin = new System.Windows.Forms.Padding(4); this.cmbRequest.Name = "cmbRequest"; this.cmbRequest.Size = new System.Drawing.Size(179, 28); @@ -531,39 +536,27 @@ this.cmbReceive.Margin = new System.Windows.Forms.Padding(4); this.cmbReceive.Name = "cmbReceive"; this.cmbReceive.Size = new System.Drawing.Size(286, 28); - this.cmbReceive.TabIndex = 5; + this.cmbReceive.TabIndex = 9; // // tbPumIDX // - this.tbPumIDX.Location = new System.Drawing.Point(410, 88); + this.tbPumIDX.Location = new System.Drawing.Point(406, 88); this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4); this.tbPumIDX.Name = "tbPumIDX"; this.tbPumIDX.ReadOnly = true; - this.tbPumIDX.Size = new System.Drawing.Size(64, 27); + this.tbPumIDX.Size = new System.Drawing.Size(68, 27); this.tbPumIDX.TabIndex = 8; this.tbPumIDX.TabStop = false; this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID"); // - // tbPumStock - // - this.tbPumStock.Location = new System.Drawing.Point(208, 147); - this.tbPumStock.Margin = new System.Windows.Forms.Padding(4); - this.tbPumStock.Name = "tbPumStock"; - this.tbPumStock.ReadOnly = true; - this.tbPumStock.Size = new System.Drawing.Size(64, 27); - this.tbPumStock.TabIndex = 14; - this.tbPumStock.TabStop = false; - this.tbPumStock.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.toolTip1.SetToolTip(this.tbPumStock, "재고량"); - // // dtInDate // this.dtInDate.Location = new System.Drawing.Point(104, 191); this.dtInDate.Margin = new System.Windows.Forms.Padding(4); this.dtInDate.Name = "dtInDate"; this.dtInDate.Size = new System.Drawing.Size(286, 27); - this.dtInDate.TabIndex = 3; + this.dtInDate.TabIndex = 11; this.dtInDate.TabStop = false; // // chkInDate @@ -573,7 +566,7 @@ this.chkInDate.Margin = new System.Windows.Forms.Padding(4); this.chkInDate.Name = "chkInDate"; this.chkInDate.Size = new System.Drawing.Size(73, 24); - this.chkInDate.TabIndex = 2; + this.chkInDate.TabIndex = 10; this.chkInDate.TabStop = false; this.chkInDate.Text = "입고일"; this.chkInDate.UseVisualStyleBackColor = true; @@ -608,13 +601,15 @@ this.btSaveAdd.Margin = new System.Windows.Forms.Padding(4); this.btSaveAdd.Name = "btSaveAdd"; this.btSaveAdd.Size = new System.Drawing.Size(410, 80); - this.btSaveAdd.TabIndex = 3; + this.btSaveAdd.TabIndex = 9; this.btSaveAdd.Text = "저장 및 추가(&A)"; this.btSaveAdd.UseVisualStyleBackColor = true; this.btSaveAdd.Click += new System.EventHandler(this.button2_Click); // // groupBox1 // + this.groupBox1.Controls.Add(this.tbpumqtyReq); + this.groupBox1.Controls.Add(label13); this.groupBox1.Controls.Add(this.btSIDChk); this.groupBox1.Controls.Add(this.tbLineCode); this.groupBox1.Controls.Add(this.tbStorage); @@ -631,7 +626,6 @@ this.groupBox1.Controls.Add(label6); this.groupBox1.Controls.Add(label3); this.groupBox1.Controls.Add(this.dtPdate); - this.groupBox1.Controls.Add(this.tbPumStock); this.groupBox1.Controls.Add(this.tbPumAmt); this.groupBox1.Controls.Add(this.tbSupplyIndex); this.groupBox1.Controls.Add(pumamtLabel); @@ -656,7 +650,7 @@ this.groupBox1.Margin = new System.Windows.Forms.Padding(4); this.groupBox1.Name = "groupBox1"; this.groupBox1.Padding = new System.Windows.Forms.Padding(4); - this.groupBox1.Size = new System.Drawing.Size(490, 421); + this.groupBox1.Size = new System.Drawing.Size(490, 435); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "필수입력"; @@ -664,40 +658,56 @@ // btSIDChk // this.btSIDChk.BackColor = System.Drawing.Color.Gray; - this.btSIDChk.Location = new System.Drawing.Point(279, 242); + this.btSIDChk.Location = new System.Drawing.Point(279, 268); this.btSIDChk.Name = "btSIDChk"; this.btSIDChk.Size = new System.Drawing.Size(196, 34); - this.btSIDChk.TabIndex = 41; + this.btSIDChk.TabIndex = 26; this.btSIDChk.Text = "SID 검사(SPR/NR)"; this.btSIDChk.UseVisualStyleBackColor = false; this.btSIDChk.Click += new System.EventHandler(this.btSIDChk_Click); // + // tbLineCode + // + this.tbLineCode.Location = new System.Drawing.Point(93, 395); + this.tbLineCode.Margin = new System.Windows.Forms.Padding(4); + this.tbLineCode.Name = "tbLineCode"; + this.tbLineCode.Size = new System.Drawing.Size(381, 27); + this.tbLineCode.TabIndex = 36; + // // tbStorage // this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.tbStorage.Location = new System.Drawing.Point(370, 206); + this.tbStorage.Location = new System.Drawing.Point(370, 238); this.tbStorage.Margin = new System.Windows.Forms.Padding(4); this.tbStorage.Name = "tbStorage"; this.tbStorage.Size = new System.Drawing.Size(104, 27); - this.tbStorage.TabIndex = 39; + this.tbStorage.TabIndex = 23; + // + // tbCostCenter + // + this.tbCostCenter.Location = new System.Drawing.Point(93, 366); + this.tbCostCenter.Margin = new System.Windows.Forms.Padding(4); + this.tbCostCenter.Name = "tbCostCenter"; + this.tbCostCenter.Size = new System.Drawing.Size(381, 27); + this.tbCostCenter.TabIndex = 34; // // tbPumPriceD // this.tbPumPriceD.ForeColor = System.Drawing.Color.Blue; - this.tbPumPriceD.Location = new System.Drawing.Point(94, 176); + this.tbPumPriceD.Location = new System.Drawing.Point(94, 208); this.tbPumPriceD.Margin = new System.Windows.Forms.Padding(4); this.tbPumPriceD.Name = "tbPumPriceD"; this.tbPumPriceD.Size = new System.Drawing.Size(178, 27); - this.tbPumPriceD.TabIndex = 36; + this.tbPumPriceD.TabIndex = 19; this.tbPumPriceD.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.tbPumPriceD.TextChanged += new System.EventHandler(this.tbDolloerPrice_TextChanged); // // button3 // - this.button3.Location = new System.Drawing.Point(9, 320); + this.button3.Location = new System.Drawing.Point(9, 336); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(80, 27); - this.button3.TabIndex = 34; + this.button3.TabIndex = 30; this.button3.Text = "프로젝트"; this.toolTip1.SetToolTip(this.button3, "관련 프로젝트에서 선택하여 입력, 가공 파트 및 명확히 프로젝트에 한정되어 구매되는 것들"); this.button3.UseVisualStyleBackColor = true; @@ -705,10 +715,10 @@ // // button2 // - this.button2.Location = new System.Drawing.Point(9, 283); + this.button2.Location = new System.Drawing.Point(9, 306); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(80, 27); - this.button2.TabIndex = 33; + this.button2.TabIndex = 27; this.button2.Text = "공급처"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click_1); @@ -718,7 +728,7 @@ this.button1.Location = new System.Drawing.Point(9, 88); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(80, 27); - this.button1.TabIndex = 32; + this.button1.TabIndex = 6; this.button1.Text = "품명"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click_1); @@ -747,38 +757,22 @@ this.groupBox2.Margin = new System.Windows.Forms.Padding(4); this.groupBox2.Name = "groupBox2"; this.groupBox2.Padding = new System.Windows.Forms.Padding(4); - this.groupBox2.Size = new System.Drawing.Size(409, 573); - this.groupBox2.TabIndex = 2; + this.groupBox2.Size = new System.Drawing.Size(409, 420); + this.groupBox2.TabIndex = 7; this.groupBox2.TabStop = false; this.groupBox2.Text = "추가정보"; // // button7 // this.button7.Dock = System.Windows.Forms.DockStyle.Bottom; - this.button7.Location = new System.Drawing.Point(4, 534); + this.button7.Location = new System.Drawing.Point(4, 381); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(401, 35); - this.button7.TabIndex = 37; + this.button7.TabIndex = 16; this.button7.Text = "견적서폴더"; this.button7.UseVisualStyleBackColor = true; this.button7.Click += new System.EventHandler(this.button7_Click_1); // - // tbLineCode - // - this.tbLineCode.Location = new System.Drawing.Point(93, 385); - this.tbLineCode.Margin = new System.Windows.Forms.Padding(4); - this.tbLineCode.Name = "tbLineCode"; - this.tbLineCode.Size = new System.Drawing.Size(381, 27); - this.tbLineCode.TabIndex = 21; - // - // tbCostCenter - // - this.tbCostCenter.Location = new System.Drawing.Point(93, 353); - this.tbCostCenter.Margin = new System.Windows.Forms.Padding(4); - this.tbCostCenter.Name = "tbCostCenter"; - this.tbCostCenter.Size = new System.Drawing.Size(381, 27); - this.tbCostCenter.TabIndex = 19; - // // tbInRemar // this.tbInRemar.Location = new System.Drawing.Point(104, 261); @@ -786,7 +780,7 @@ this.tbInRemar.Multiline = true; this.tbInRemar.Name = "tbInRemar"; this.tbInRemar.Size = new System.Drawing.Size(286, 70); - this.tbInRemar.TabIndex = 17; + this.tbInRemar.TabIndex = 15; this.tbInRemar.TextChanged += new System.EventHandler(this.textBox2_TextChanged); // // tbInQty @@ -795,7 +789,7 @@ this.tbInQty.Margin = new System.Windows.Forms.Padding(4); this.tbInQty.Name = "tbInQty"; this.tbInQty.Size = new System.Drawing.Size(286, 27); - this.tbInQty.TabIndex = 15; + this.tbInQty.TabIndex = 13; // // tbOrderNo // @@ -804,7 +798,34 @@ this.tbOrderNo.Margin = new System.Windows.Forms.Padding(4); this.tbOrderNo.Name = "tbOrderNo"; this.tbOrderNo.Size = new System.Drawing.Size(286, 27); - this.tbOrderNo.TabIndex = 13; + this.tbOrderNo.TabIndex = 7; + // + // timer1 + // + this.timer1.Interval = 250; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // chk2 + // + this.chk2.AutoSize = true; + this.chk2.Enabled = false; + this.chk2.Location = new System.Drawing.Point(369, 448); + this.chk2.Name = "chk2"; + this.chk2.Size = new System.Drawing.Size(133, 24); + this.chk2.TabIndex = 2; + this.chk2.Text = "구매담당자확인"; + this.chk2.UseVisualStyleBackColor = true; + // + // chk1 + // + this.chk1.AutoSize = true; + this.chk1.Enabled = false; + this.chk1.Location = new System.Drawing.Point(262, 448); + this.chk1.Name = "chk1"; + this.chk1.Size = new System.Drawing.Size(103, 24); + this.chk1.TabIndex = 1; + this.chk1.Text = "요청자확인"; + this.chk1.UseVisualStyleBackColor = true; // // dsPurchase // @@ -820,32 +841,48 @@ // this.purchaseTableAdapter.ClearBeforeFill = true; // - // timer1 + // tbBigoChk // - this.timer1.Interval = 250; - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + this.tbBigoChk.ImeMode = System.Windows.Forms.ImeMode.Hangul; + this.tbBigoChk.Location = new System.Drawing.Point(11, 591); + this.tbBigoChk.Margin = new System.Windows.Forms.Padding(4); + this.tbBigoChk.MaxLength = 500; + this.tbBigoChk.Multiline = true; + this.tbBigoChk.Name = "tbBigoChk"; + this.tbBigoChk.Size = new System.Drawing.Size(490, 77); + this.tbBigoChk.TabIndex = 6; + this.tbBigoChk.TabStop = false; + this.toolTip1.SetToolTip(this.tbBigoChk, resources.GetString("tbBigoChk.ToolTip")); // - // chk2 + // label12 // - this.chk2.AutoSize = true; - this.chk2.Enabled = false; - this.chk2.Location = new System.Drawing.Point(369, 434); - this.chk2.Name = "chk2"; - this.chk2.Size = new System.Drawing.Size(133, 24); - this.chk2.TabIndex = 44; - this.chk2.Text = "구매담당자확인"; - this.chk2.UseVisualStyleBackColor = true; + label12.AutoSize = true; + label12.Location = new System.Drawing.Point(13, 564); + label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label12.Name = "label12"; + label12.Size = new System.Drawing.Size(119, 20); + label12.TabIndex = 5; + label12.Text = "구매담당자 비고"; + this.toolTip1.SetToolTip(label12, resources.GetString("label12.ToolTip")); // - // chk1 + // tbpumqtyReq // - this.chk1.AutoSize = true; - this.chk1.Enabled = false; - this.chk1.Location = new System.Drawing.Point(262, 434); - this.chk1.Name = "chk1"; - this.chk1.Size = new System.Drawing.Size(103, 24); - this.chk1.TabIndex = 43; - this.chk1.Text = "요청자확인"; - this.chk1.UseVisualStyleBackColor = true; + this.tbpumqtyReq.Location = new System.Drawing.Point(341, 148); + this.tbpumqtyReq.Margin = new System.Windows.Forms.Padding(4); + this.tbpumqtyReq.Name = "tbpumqtyReq"; + this.tbpumqtyReq.Size = new System.Drawing.Size(133, 27); + this.tbpumqtyReq.TabIndex = 15; + this.tbpumqtyReq.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label13 + // + label13.AutoSize = true; + label13.Location = new System.Drawing.Point(242, 152); + label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label13.Name = "label13"; + label13.Size = new System.Drawing.Size(89, 20); + label13.TabIndex = 14; + label13.Text = "실 구매수량"; // // fPurchaseCR_Add // @@ -853,6 +890,8 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.ClientSize = new System.Drawing.Size(928, 681); + this.Controls.Add(this.tbBigoChk); + this.Controls.Add(label12); this.Controls.Add(this.chk2); this.Controls.Add(this.chk1); this.Controls.Add(this.groupBox2); @@ -901,7 +940,6 @@ private System.Windows.Forms.ComboBox cmbState; private System.Windows.Forms.ComboBox cmbRequest; private System.Windows.Forms.ComboBox cmbReceive; - private System.Windows.Forms.TextBox tbPumStock; private System.Windows.Forms.TextBox tbPumIDX; private System.Windows.Forms.DateTimePicker dtInDate; private System.Windows.Forms.CheckBox chkInDate; @@ -929,5 +967,7 @@ private System.Windows.Forms.TextBox tbLineCode; private System.Windows.Forms.TextBox tbCostCenter; private System.Windows.Forms.Button button7; + private System.Windows.Forms.TextBox tbBigoChk; + private System.Windows.Forms.TextBox tbpumqtyReq; } } \ No newline at end of file diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs index 29f4eb1..4a2a8b4 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.cs @@ -190,7 +190,9 @@ namespace FEQ0000 tbPumModel.Text = dr.pumscale; tbPumQty.Text = dr.pumqty.ToString(); - tbPumStock.Text = "--"; + if (dr.IspumqtyReqNull()) tbpumqtyReq.Text = "0"; //230817 + else tbpumqtyReq.Text = dr.pumqtyReq.ToString(); + if (dr.IspumidxNull()) tbPumIDX.Text = "-1"; else tbPumIDX.Text = dr.pumidx.ToString(); tbPumPrice.Text = dr.pumprice.ToString(); @@ -231,6 +233,8 @@ namespace FEQ0000 tbPO.Text = dr.po; tbOrderNo.Text = dr.orderno; tbBigo.Text = dr.bigo; + if (dr.IschkremarkNull()) tbBigoChk.Text = string.Empty; + else tbBigoChk.Text = dr.chkremark; dtInDate.Text = dr.indate; dtExpDate.Text = dr.edate; @@ -270,6 +274,13 @@ namespace FEQ0000 groupBox1.Enabled = false; groupBox2.Enabled = false; } + tbBigoChk.Enabled = false; + tbpumqtyReq.Enabled = false; + } + else + { + tbBigoChk.Enabled = true; + tbpumqtyReq.Enabled = true; } if (advInput == false) @@ -305,13 +316,13 @@ namespace FEQ0000 //복사된 자료는 isd가 잇으면 sid가 잇다면 자동 처리해준다. if (tbSID.Text.StartsWith("10") && tbSID.TextLength == 9) dbchk1 = tbPumName.Text.Trim(); - } + } else { - sidchk1 = tbSID.Text.Trim(); + sidchk1 = tbSID.Text.Trim(); dbchk1 = tbPumName.Text.Trim(); } - + timer1.Start(); @@ -502,7 +513,7 @@ namespace FEQ0000 return false; } - if(tbSID.Text.Equals("신규") || tbSID.Text.isEmpty()) + if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty()) { //FCOMMON.Util.MsgI($"신규 SID로 인해 SID 검사를 진행하지 않습니다"); } @@ -524,7 +535,7 @@ namespace FEQ0000 } } - + //if (cbProcess.Text.Trim() == "") //{ @@ -548,14 +559,26 @@ namespace FEQ0000 } if (tbPumQty.Text == "") { - FCOMMON.Util.MsgE("수량을 입력하세요."); + FCOMMON.Util.MsgE("수량(요청)을 입력하세요."); tbPumQty.Focus(); return false; } + if (tbBigoChk.Enabled && (cmbState.Text == "PO" || cmbState.Text == "PR")) + { + var qtycnv = int.TryParse(tbpumqtyReq.Text, out int qtyreq); + if (qtycnv == false || qtyreq < 1) + { + FCOMMON.Util.MsgE("수량(실 구매)을 입력하세요."); + tbpumqtyReq.Focus(); + return false; + } + } + + if (int.TryParse(tbProjectIndex.Text, out int pidx) == false || pidx < 1) { - if(tbBigo.Text.isEmpty() == true) + if (tbBigo.Text.isEmpty() == true) { FCOMMON.Util.MsgE("프로젝트가 선택되지 않았습니다. 직접입력은 허용되지 않습니다.\n" + "프로젝트 명을 입력하고 Enter 키를 눌러서 관련 프로젝트를 선택하세요\n" + @@ -564,7 +587,7 @@ namespace FEQ0000 tbProject.SelectAll(); return false; } - + } if (tbOrderNo.Text.isEmpty()) @@ -716,10 +739,17 @@ namespace FEQ0000 } } - if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0"; - if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0"; - dr.pumqty = int.Parse(tbPumQty.Text); - dr.pumprice = decimal.Parse(tbPumPrice.Text); + + if (int.TryParse(tbPumQty.Text, out int vqty) == false) + tbPumQty.Text = "0"; + if (int.TryParse(tbpumqtyReq.Text, out int vqtyreq) == false) + tbpumqtyReq.Text = "0"; + if (decimal.TryParse(tbPumPrice.Text, out decimal vpumprice) == false) + tbPumPrice.Text = "0"; + + dr.pumqty = vqty;// int.Parse(tbPumQty.Text); + dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text); + dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text); if (int.TryParse(tbInQty.Text, out int inqty)) { @@ -788,6 +818,7 @@ namespace FEQ0000 dr.po = tbPO.Text; dr.orderno = tbOrderNo.Text; dr.bigo = tbBigo.Text; + dr.chkremark = tbBigoChk.Text; //품정보가 업데이트 되어있으면 해당 데이터의 이미지를 업데이트 한다.(크기비교) //품정보가 없다면 그대로 생성을 해준다. @@ -1026,7 +1057,7 @@ namespace FEQ0000 { var sid = tbSID.Text.Trim(); - if(sid.Equals("신규") || sid.isEmpty()) + if (sid.Equals("신규") || sid.isEmpty()) { Util.MsgI($"신규SID는 검사를 진행하지 않습니다"); return; @@ -1048,7 +1079,7 @@ namespace FEQ0000 { dr.chk1 = true; this.sidchk1 = sid; - } + } else { Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다."); diff --git a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.resx b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.resx index f6bcfad..a5b029d 100644 --- a/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.resx +++ b/SubProject/FEQ0000/PurchaseCR/fPurchaseCR_Add.resx @@ -194,6 +194,12 @@ * 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) * 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) + + False + + + 674, 17 + 17, 17 @@ -203,9 +209,23 @@ 313, 17 - - 674, 17 + + * 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등) +* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등) +* 공정 정비 파트 / 상세한 사유 작성 (본인 담당의 주, 보조 공정에서 사용되는 것들. Feeder wheel, O/H, 장비 교체 파트 등) +* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) +* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) + + + False + + * 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등) +* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등) +* 공정 정비 파트 / 상세한 사유 작성 (본인 담당의 주, 보조 공정에서 사용되는 것들. Feeder wheel, O/H, 장비 교체 파트 등) +* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등) +* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등) + 58 diff --git a/SubProject/FEQ0000/dsPurchase.Designer.cs b/SubProject/FEQ0000/dsPurchase.Designer.cs index fc4b159..b85ca65 100644 --- a/SubProject/FEQ0000/dsPurchase.Designer.cs +++ b/SubProject/FEQ0000/dsPurchase.Designer.cs @@ -487,6 +487,10 @@ namespace FEQ0000 { private global::System.Data.DataColumn columnlinecode; + private global::System.Data.DataColumn columnpumqtyReq; + + private global::System.Data.DataColumn columnchkremark; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public PurchaseDataTable() : @@ -889,6 +893,22 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn pumqtyReqColumn { + get { + return this.columnpumqtyReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn chkremarkColumn { + get { + return this.columnchkremark; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -970,7 +990,9 @@ namespace FEQ0000 { bool chk1, bool chk2, string costcenter, - string linecode) { + string linecode, + int pumqtyReq, + string chkremark) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1017,7 +1039,9 @@ namespace FEQ0000 { chk1, chk2, costcenter, - linecode}; + linecode, + pumqtyReq, + chkremark}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1068,7 +1092,9 @@ namespace FEQ0000 { bool chk1, bool chk2, string costcenter, - string linecode) { + string linecode, + int pumqtyReq, + string chkremark) { PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1115,7 +1141,9 @@ namespace FEQ0000 { chk1, chk2, costcenter, - linecode}; + linecode, + pumqtyReq, + chkremark}; rowPurchaseRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRow); return rowPurchaseRow; @@ -1190,6 +1218,8 @@ namespace FEQ0000 { this.columnchk2 = base.Columns["chk2"]; this.columncostcenter = base.Columns["costcenter"]; this.columnlinecode = base.Columns["linecode"]; + this.columnpumqtyReq = base.Columns["pumqtyReq"]; + this.columnchkremark = base.Columns["chkremark"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1285,6 +1315,10 @@ namespace FEQ0000 { base.Columns.Add(this.columncostcenter); this.columnlinecode = new global::System.Data.DataColumn("linecode", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnlinecode); + this.columnpumqtyReq = new global::System.Data.DataColumn("pumqtyReq", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpumqtyReq); + this.columnchkremark = new global::System.Data.DataColumn("chkremark", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnchkremark); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -1328,6 +1362,7 @@ namespace FEQ0000 { this.columnwinuid.MaxLength = 20; this.columncostcenter.MaxLength = 20; this.columnlinecode.MaxLength = 20; + this.columnchkremark.MaxLength = 500; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1557,6 +1592,10 @@ namespace FEQ0000 { private global::System.Data.DataColumn columnlinecode; + private global::System.Data.DataColumn columnpumqtyReq; + + private global::System.Data.DataColumn columnchkremark; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public EETGW_PurchaseCRDataTable() : @@ -1959,6 +1998,22 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn pumqtyReqColumn { + get { + return this.columnpumqtyReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn chkremarkColumn { + get { + return this.columnchkremark; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -2040,7 +2095,9 @@ namespace FEQ0000 { bool chk1, bool chk2, string costcenter, - string linecode) { + string linecode, + int pumqtyReq, + string chkremark) { EETGW_PurchaseCRRow rowEETGW_PurchaseCRRow = ((EETGW_PurchaseCRRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2087,7 +2144,9 @@ namespace FEQ0000 { chk1, chk2, costcenter, - linecode}; + linecode, + pumqtyReq, + chkremark}; rowEETGW_PurchaseCRRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseCRRow); return rowEETGW_PurchaseCRRow; @@ -2138,7 +2197,9 @@ namespace FEQ0000 { bool chk1, bool chk2, string costcenter, - string linecode) { + string linecode, + int pumqtyReq, + string chkremark) { EETGW_PurchaseCRRow rowEETGW_PurchaseCRRow = ((EETGW_PurchaseCRRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2185,7 +2246,9 @@ namespace FEQ0000 { chk1, chk2, costcenter, - linecode}; + linecode, + pumqtyReq, + chkremark}; rowEETGW_PurchaseCRRow.ItemArray = columnValuesArray; this.Rows.Add(rowEETGW_PurchaseCRRow); return rowEETGW_PurchaseCRRow; @@ -2260,6 +2323,8 @@ namespace FEQ0000 { this.columnchk2 = base.Columns["chk2"]; this.columncostcenter = base.Columns["costcenter"]; this.columnlinecode = base.Columns["linecode"]; + this.columnpumqtyReq = base.Columns["pumqtyReq"]; + this.columnchkremark = base.Columns["chkremark"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2355,6 +2420,10 @@ namespace FEQ0000 { base.Columns.Add(this.columncostcenter); this.columnlinecode = new global::System.Data.DataColumn("linecode", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnlinecode); + this.columnpumqtyReq = new global::System.Data.DataColumn("pumqtyReq", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpumqtyReq); + this.columnchkremark = new global::System.Data.DataColumn("chkremark", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnchkremark); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -2398,6 +2467,7 @@ namespace FEQ0000 { this.columnwinuid.MaxLength = 20; this.columncostcenter.MaxLength = 20; this.columnlinecode.MaxLength = 20; + this.columnchkremark.MaxLength = 500; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4384,6 +4454,38 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int pumqtyReq { + get { + try { + return ((int)(this[this.tablePurchase.pumqtyReqColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'pumqtyReq\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tablePurchase.pumqtyReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string chkremark { + get { + try { + return ((string)(this[this.tablePurchase.chkremarkColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'chkremark\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tablePurchase.chkremarkColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -4875,6 +4977,30 @@ namespace FEQ0000 { public void SetlinecodeNull() { this[this.tablePurchase.linecodeColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IspumqtyReqNull() { + return this.IsNull(this.tablePurchase.pumqtyReqColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetpumqtyReqNull() { + this[this.tablePurchase.pumqtyReqColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IschkremarkNull() { + return this.IsNull(this.tablePurchase.chkremarkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetchkremarkNull() { + this[this.tablePurchase.chkremarkColumn] = global::System.Convert.DBNull; + } } /// @@ -5591,6 +5717,38 @@ namespace FEQ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int pumqtyReq { + get { + try { + return ((int)(this[this.tableEETGW_PurchaseCR.pumqtyReqColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'pumqtyReq\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_PurchaseCR.pumqtyReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string chkremark { + get { + try { + return ((string)(this[this.tableEETGW_PurchaseCR.chkremarkColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'EETGW_PurchaseCR\' 테이블의 \'chkremark\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableEETGW_PurchaseCR.chkremarkColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IspdateNull() { @@ -6082,6 +6240,30 @@ namespace FEQ0000 { public void SetlinecodeNull() { this[this.tableEETGW_PurchaseCR.linecodeColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IspumqtyReqNull() { + return this.IsNull(this.tableEETGW_PurchaseCR.pumqtyReqColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetpumqtyReqNull() { + this[this.tableEETGW_PurchaseCR.pumqtyReqColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IschkremarkNull() { + return this.IsNull(this.tableEETGW_PurchaseCR.chkremarkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetchkremarkNull() { + this[this.tableEETGW_PurchaseCR.chkremarkColumn] = global::System.Convert.DBNull; + } } /// @@ -7471,6 +7653,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { tableMapping.ColumnMappings.Add("chk2", "chk2"); tableMapping.ColumnMappings.Add("costcenter", "costcenter"); tableMapping.ColumnMappings.Add("linecode", "linecode"); + tableMapping.ColumnMappings.Add("pumqtyReq", "pumqtyReq"); + tableMapping.ColumnMappings.Add("chkremark", "chkremark"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -7513,7 +7697,9 @@ namespace FEQ0000.dsPurchaseTableAdapters { "chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] =" + " @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([co" + "stcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS " + - "NULL) OR ([linecode] = @Original_linecode)))"; + "NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pum" + + "qtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark" + + " = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -7593,10 +7779,14 @@ namespace FEQ0000.dsPurchaseTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chkremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -7639,61 +7829,197 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE Purchase -SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, - pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, - indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno, gcode = @gcode, place = @place, inqty = @inqty, pumpriceD = @pumpriceD, inremark = @inremark, winuid = @winuid, windate = @windate, chk1 = @chk1, - chk2 = @chk2, costcenter = @costcenter, linecode = @linecode -WHERE (idx = @Original_idx) AND (gcode = @original_gcode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; + this._adapter.UpdateCommand.CommandText = "UPDATE [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [" + + "receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] =" + + " @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pu" + + "mprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supp" + + "lyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [edat" + + "e] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @wuid, [wd" + + "ate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel, [bigo] " + + "= @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode, [place]" + + " = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inremark, [" + + "winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costce" + + "nter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremar" + + "k] = @chkremark WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdat" + + "e] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] " + + "IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process]" + + " IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [rec" + + "eive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc]" + + " IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS N" + + "ULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL" + + ") OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) O" + + "R ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS " + + "NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumun" + + "it] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [p" + + "umqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND" + + " [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt " + + "= 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply" + + " = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_suppl" + + "yidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((" + + "@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_pr" + + "ojectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_" + + "asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_eda" + + "te)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_ind" + + "ate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@Is" + + "Null_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @O" + + "riginal_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [impo" + + "rt] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pum" + + "idx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isd" + + "el] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] I" + + "S NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] " + + "IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [or" + + "derno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gco" + + "de) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place))" + + " AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AN" + + "D ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_p" + + "umpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @" + + "Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] " + + "= @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([winda" + + "te] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] " + + "= @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Orig" + + "inal_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcent" + + "er] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) " + + "OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq" + + "] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 A" + + "ND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)));\r\nSELECT idx, p" + + "date, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, requ" + + "est, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, p" + + "umqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, i" + + "ndate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gc" + + "ode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter," + + " linecode, pumqtyReq, chkremark FROM Purchase WHERE (idx = @idx) ORDER BY pdate " + + "DESC, idx DESC"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 30, 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("@receive", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sc", global::System.Data.SqlDbType.VarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumname", global::System.Data.SqlDbType.NVarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumscale", global::System.Data.SqlDbType.VarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumunit", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumprice", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumamt", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.VarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.VarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@asset", global::System.Data.SqlDbType.VarChar, 50, 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("@edate", global::System.Data.SqlDbType.VarChar, 10, 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("@indate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, 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("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inqty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumpriceD", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inremark", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@winuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@windate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk1", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@original_gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, 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("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", 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("@receive", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumscale", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumunit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumprice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", 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("@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("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 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("@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("@pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 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("@bigo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 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("@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("@place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumpriceD", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@winuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@windate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_state", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", 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_receive", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_receive", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumscale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumscale", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumunit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumunit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumprice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumprice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumprice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumamt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumamt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supply", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", 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_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_indate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_po", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_po", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", 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_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_pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", 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_bigo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_manuproc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_manuproc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", 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("@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_place", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumpriceD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumpriceD", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumpriceD", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_inremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_inremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_winuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_winuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_windate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_windate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chk1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chk1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chk2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costcenter", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chkremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", 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()] @@ -7711,7 +8037,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -7737,19 +8063,19 @@ ORDER BY pdate DESC, idx DESC"; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; + this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = @"SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)"; + this._commandCollection[4].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)"; this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = @"SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; + this._commandCollection[5].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; this._commandCollection[5].CommandType = global::System.Data.CommandType.Text; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -8012,7 +8338,9 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable Original_chk1, global::System.Nullable Original_chk2, string Original_costcenter, - string Original_linecode) { + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -8323,6 +8651,22 @@ ORDER BY pdate DESC, idx DESC"; this.Adapter.DeleteCommand.Parameters[76].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[77].Value = ((string)(Original_linecode)); } + if ((Original_pumqtyReq.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[79].Value = ((int)(Original_pumqtyReq.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[79].Value = global::System.DBNull.Value; + } + if ((Original_chkremark == 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_chkremark)); + } 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)) { @@ -8384,7 +8728,9 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable chk1, global::System.Nullable chk2, string costcenter, - string linecode) { + string linecode, + global::System.Nullable pumqtyReq, + string chkremark) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -8626,6 +8972,18 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[40].Value = ((string)(linecode)); } + if ((pumqtyReq.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[41].Value = ((int)(pumqtyReq.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value; + } + if ((chkremark == null)) { + this.Adapter.InsertCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[42].Value = ((string)(chkremark)); + } 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)) { @@ -8688,8 +9046,51 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable chk2, string costcenter, string linecode, + global::System.Nullable pumqtyReq, + string chkremark, int Original_idx, - string original_gcode, + string Original_pdate, + string Original_state, + string Original_process, + string Original_receive, + string Original_sc, + string Original_request, + string Original_sid, + string Original_pumname, + string Original_pumscale, + string Original_pumunit, + global::System.Nullable Original_pumqty, + global::System.Nullable Original_pumprice, + global::System.Nullable Original_pumamt, + string Original_supply, + global::System.Nullable Original_supplyidx, + global::System.Nullable Original_projectidx, + string Original_asset, + string Original_edate, + string Original_indate, + string Original_po, + string Original_dept, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_import, + global::System.Nullable Original_pumidx, + global::System.Nullable Original_isdel, + string Original_bigo, + string Original_manuproc, + string Original_orderno, + string Original_gcode, + string Original_place, + global::System.Nullable Original_inqty, + global::System.Nullable Original_pumpriceD, + string Original_inremark, + string Original_winuid, + global::System.Nullable Original_windate, + global::System.Nullable Original_chk1, + global::System.Nullable Original_chk2, + string Original_costcenter, + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -8932,14 +9333,345 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(linecode)); } - this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_idx)); - if ((original_gcode == null)) { - throw new global::System.ArgumentNullException("original_gcode"); + if ((pumqtyReq.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(pumqtyReq.Value)); } else { - this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(original_gcode)); + this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; } - this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(idx)); + if ((chkremark == null)) { + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(chkremark)); + } + this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_pdate)); + } + if ((Original_state == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_state)); + } + if ((Original_process == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_process)); + } + if ((Original_receive == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_receive)); + } + if ((Original_sc == null)) { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_sc)); + } + if ((Original_request == null)) { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_request)); + } + if ((Original_sid == null)) { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_sid)); + } + if ((Original_pumname == null)) { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_pumname)); + } + if ((Original_pumscale == null)) { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_pumscale)); + } + if ((Original_pumunit == null)) { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_pumunit)); + } + if ((Original_pumqty.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((int)(Original_pumqty.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + } + if ((Original_pumprice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((decimal)(Original_pumprice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + } + if ((Original_pumamt.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((decimal)(Original_pumamt.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + } + if ((Original_supply == null)) { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((string)(Original_supply)); + } + if ((Original_supplyidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((int)(Original_supplyidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; + } + if ((Original_projectidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((int)(Original_projectidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + } + if ((Original_asset == 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_asset)); + } + if ((Original_edate == 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_edate)); + } + if ((Original_indate == 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_indate)); + } + if ((Original_po == null)) { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_po)); + } + if ((Original_dept == null)) { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_dept)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[87].Value = ((System.DateTime)(Original_wdate)); + if ((Original_import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; + } + if ((Original_pumidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((int)(Original_pumidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[91].Value = global::System.DBNull.Value; + } + if ((Original_isdel.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((bool)(Original_isdel.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value; + } + if ((Original_bigo == 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_bigo)); + } + if ((Original_manuproc == 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_manuproc)); + } + if ((Original_orderno == 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_orderno)); + } + if ((Original_gcode == null)) { + throw new global::System.ArgumentNullException("Original_gcode"); + } + else { + this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_gcode)); + } + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_place)); + } + if ((Original_inqty.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[104].Value = ((int)(Original_inqty.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value; + } + if ((Original_pumpriceD.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[106].Value = ((decimal)(Original_pumpriceD.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value; + } + if ((Original_inremark == null)) { + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_inremark)); + } + if ((Original_winuid == null)) { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_winuid)); + } + if ((Original_windate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((System.DateTime)(Original_windate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; + } + if ((Original_chk1.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((bool)(Original_chk1.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value; + } + if ((Original_chk2.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[116].Value = ((bool)(Original_chk2.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value; + } + if ((Original_costcenter == null)) { + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[118].Value = ((string)(Original_costcenter)); + } + if ((Original_linecode == null)) { + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_linecode)); + } + if ((Original_pumqtyReq.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[122].Value = ((int)(Original_pumqtyReq.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value; + } + if ((Original_chkremark == null)) { + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_chkremark)); + } + this.Adapter.UpdateCommand.Parameters[125].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)) { @@ -8956,6 +9688,100 @@ ORDER BY pdate DESC, idx DESC"; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string pdate, + string state, + string process, + string receive, + string sc, + string request, + string sid, + string pumname, + string pumscale, + string pumunit, + global::System.Nullable pumqty, + global::System.Nullable pumprice, + global::System.Nullable pumamt, + string supply, + global::System.Nullable supplyidx, + string project, + global::System.Nullable projectidx, + string asset, + string edate, + string indate, + string po, + string dept, + string wuid, + System.DateTime wdate, + global::System.Nullable import, + global::System.Nullable pumidx, + global::System.Nullable isdel, + string bigo, + string manuproc, + string orderno, + string gcode, + string place, + global::System.Nullable inqty, + global::System.Nullable pumpriceD, + string inremark, + string winuid, + global::System.Nullable windate, + global::System.Nullable chk1, + global::System.Nullable chk2, + string costcenter, + string linecode, + global::System.Nullable pumqtyReq, + string chkremark, + int Original_idx, + string Original_pdate, + string Original_state, + string Original_process, + string Original_receive, + string Original_sc, + string Original_request, + string Original_sid, + string Original_pumname, + string Original_pumscale, + string Original_pumunit, + global::System.Nullable Original_pumqty, + global::System.Nullable Original_pumprice, + global::System.Nullable Original_pumamt, + string Original_supply, + global::System.Nullable Original_supplyidx, + global::System.Nullable Original_projectidx, + string Original_asset, + string Original_edate, + string Original_indate, + string Original_po, + string Original_dept, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_import, + global::System.Nullable Original_pumidx, + global::System.Nullable Original_isdel, + string Original_bigo, + string Original_manuproc, + string Original_orderno, + string Original_gcode, + string Original_place, + global::System.Nullable Original_inqty, + global::System.Nullable Original_pumpriceD, + string Original_inremark, + string Original_winuid, + global::System.Nullable Original_windate, + global::System.Nullable Original_chk1, + global::System.Nullable Original_chk2, + string Original_costcenter, + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark) { + return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_idx); + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -9220,6 +10046,8 @@ ORDER BY pdate DESC, idx DESC"; tableMapping.ColumnMappings.Add("chk2", "chk2"); tableMapping.ColumnMappings.Add("costcenter", "costcenter"); tableMapping.ColumnMappings.Add("linecode", "linecode"); + tableMapping.ColumnMappings.Add("pumqtyReq", "pumqtyReq"); + tableMapping.ColumnMappings.Add("chkremark", "chkremark"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -9262,7 +10090,9 @@ ORDER BY pdate DESC, idx DESC"; "L) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR (" + "[chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL)" + " OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linec" + - "ode] IS NULL) OR ([linecode] = @Original_linecode)))"; + "ode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 " + + "AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_c" + + "hkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -9342,10 +10172,14 @@ ORDER BY pdate DESC, idx DESC"; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chkremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_PurchaseCR] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_PurchaseCR] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -9388,61 +10222,197 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE EETGW_PurchaseCR -SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, - pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, - indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno, gcode = @gcode, place = @place, inqty = @inqty, pumpriceD = @pumpriceD, inremark = @inremark, winuid = @winuid, windate = @windate, chk1 = @chk1, - chk2 = @chk2, costcenter = @costcenter, linecode = @linecode -WHERE (idx = @Original_idx) AND (gcode = @Original_gcode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; + this._adapter.UpdateCommand.CommandText = "UPDATE [EETGW_PurchaseCR] SET [pdate] = @pdate, [state] = @state, [process] = @pr" + + "ocess, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pu" + + "mname] = @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pum" + + "qty, [pumprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx]" + + " = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asse" + + "t, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @w" + + "uid, [wdate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel," + + " [bigo] = @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode," + + " [place] = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inr" + + "emark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2," + + " [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [" + + "chkremark] = @chkremark WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 A" + + "ND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND " + + "[state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [" + + "process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 " + + "AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 " + + "AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [reque" + + "st] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid]" + + " IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS" + + " NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumsc" + + "ale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AN" + + "D [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = " + + "1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice" + + " = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull" + + "_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNul" + + "l_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNu" + + "ll_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)" + + ") AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Ori" + + "ginal_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @O" + + "riginal_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Orig" + + "inal_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Orig" + + "inal_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) A" + + "ND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wu" + + "id] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 A" + + "ND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 " + + "AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 " + + "AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND " + + "[bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [ma" + + "nuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1" + + " AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Orig" + + "inal_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original" + + "_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_in" + + "qty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Or" + + "iginal_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inrem" + + "ark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([" + + "winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR" + + " ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR " + + "([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2]" + + " = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([" + + "costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] I" + + "S NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [p" + + "umqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkrema" + + "rk = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark)));\r\nSELEC" + + "T idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, " + + "sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pu" + + "munit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, " + + "edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, ord" + + "erno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, cos" + + "tcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (idx = @idx)" + + " ORDER BY pdate DESC, idx DESC"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 30, 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("@receive", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sc", global::System.Data.SqlDbType.VarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumname", global::System.Data.SqlDbType.NVarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumscale", global::System.Data.SqlDbType.VarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumunit", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumprice", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumamt", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.VarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.VarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@asset", global::System.Data.SqlDbType.VarChar, 50, 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("@edate", global::System.Data.SqlDbType.VarChar, 10, 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("@indate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, 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("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inqty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumpriceD", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inremark", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@winuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@windate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk1", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, 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("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", 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("@receive", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumscale", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumunit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumprice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", 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("@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("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 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("@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("@pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 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("@bigo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 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("@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("@place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumpriceD", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@winuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@windate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_state", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", 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_receive", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_receive", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "receive", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumname", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumscale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumscale", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumscale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumunit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumunit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumunit", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumprice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumprice", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumprice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumprice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumamt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumamt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "pumamt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supply", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", 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_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_indate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_po", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_po", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", 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_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_pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", 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_bigo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bigo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_manuproc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_manuproc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", 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("@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_place", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_inqty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inqty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumpriceD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumpriceD", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumpriceD", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "pumpriceD", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_inremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_inremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "inremark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_winuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_winuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "winuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_windate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_windate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "windate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chk1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chk1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chk2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chk2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chk2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_costcenter", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_costcenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "costcenter", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_linecode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_linecode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "linecode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pumqtyReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pumqtyReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_chkremark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chkremark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkremark", 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()] @@ -9460,7 +10430,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC"; @@ -9486,14 +10456,14 @@ ORDER BY pdate DESC, idx DESC"; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM EETGW_PurchaseCR WHERE (idx = @idx)"; + this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM EETGW_PurchaseCR WHERE (idx = @idx)"; this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = @"SELECT asset, bigo, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2 + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC"; @@ -9699,7 +10669,9 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable Original_chk1, global::System.Nullable Original_chk2, string Original_costcenter, - string Original_linecode) { + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); if ((Original_pdate == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -10010,6 +10982,22 @@ ORDER BY pdate DESC, idx DESC"; this.Adapter.DeleteCommand.Parameters[76].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[77].Value = ((string)(Original_linecode)); } + if ((Original_pumqtyReq.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[79].Value = ((int)(Original_pumqtyReq.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[78].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[79].Value = global::System.DBNull.Value; + } + if ((Original_chkremark == 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_chkremark)); + } 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)) { @@ -10071,7 +11059,9 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable chk1, global::System.Nullable chk2, string costcenter, - string linecode) { + string linecode, + global::System.Nullable pumqtyReq, + string chkremark) { if ((pdate == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -10313,6 +11303,18 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.InsertCommand.Parameters[40].Value = ((string)(linecode)); } + if ((pumqtyReq.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[41].Value = ((int)(pumqtyReq.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value; + } + if ((chkremark == null)) { + this.Adapter.InsertCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[42].Value = ((string)(chkremark)); + } 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)) { @@ -10375,8 +11377,51 @@ ORDER BY pdate DESC, idx DESC"; global::System.Nullable chk2, string costcenter, string linecode, + global::System.Nullable pumqtyReq, + string chkremark, int Original_idx, + string Original_pdate, + string Original_state, + string Original_process, + string Original_receive, + string Original_sc, + string Original_request, + string Original_sid, + string Original_pumname, + string Original_pumscale, + string Original_pumunit, + global::System.Nullable Original_pumqty, + global::System.Nullable Original_pumprice, + global::System.Nullable Original_pumamt, + string Original_supply, + global::System.Nullable Original_supplyidx, + global::System.Nullable Original_projectidx, + string Original_asset, + string Original_edate, + string Original_indate, + string Original_po, + string Original_dept, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_import, + global::System.Nullable Original_pumidx, + global::System.Nullable Original_isdel, + string Original_bigo, + string Original_manuproc, + string Original_orderno, string Original_gcode, + string Original_place, + global::System.Nullable Original_inqty, + global::System.Nullable Original_pumpriceD, + string Original_inremark, + string Original_winuid, + global::System.Nullable Original_windate, + global::System.Nullable Original_chk1, + global::System.Nullable Original_chk2, + string Original_costcenter, + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark, int idx) { if ((pdate == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -10619,14 +11664,345 @@ ORDER BY pdate DESC, idx DESC"; else { this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(linecode)); } - this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_idx)); + if ((pumqtyReq.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(pumqtyReq.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + } + if ((chkremark == null)) { + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(chkremark)); + } + this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_idx)); + if ((Original_pdate == null)) { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_pdate)); + } + if ((Original_state == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_state)); + } + if ((Original_process == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_process)); + } + if ((Original_receive == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_receive)); + } + if ((Original_sc == null)) { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_sc)); + } + if ((Original_request == null)) { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_request)); + } + if ((Original_sid == null)) { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_sid)); + } + if ((Original_pumname == null)) { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_pumname)); + } + if ((Original_pumscale == null)) { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_pumscale)); + } + if ((Original_pumunit == null)) { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_pumunit)); + } + if ((Original_pumqty.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((int)(Original_pumqty.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + } + if ((Original_pumprice.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((decimal)(Original_pumprice.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + } + if ((Original_pumamt.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((decimal)(Original_pumamt.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + } + if ((Original_supply == null)) { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((string)(Original_supply)); + } + if ((Original_supplyidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((int)(Original_supplyidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; + } + if ((Original_projectidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((int)(Original_projectidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + } + if ((Original_asset == 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_asset)); + } + if ((Original_edate == 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_edate)); + } + if ((Original_indate == 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_indate)); + } + if ((Original_po == null)) { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_po)); + } + if ((Original_dept == null)) { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_dept)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[87].Value = ((System.DateTime)(Original_wdate)); + if ((Original_import.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((bool)(Original_import.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; + } + if ((Original_pumidx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[91].Value = ((int)(Original_pumidx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[90].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[91].Value = global::System.DBNull.Value; + } + if ((Original_isdel.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[93].Value = ((bool)(Original_isdel.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value; + } + if ((Original_bigo == 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_bigo)); + } + if ((Original_manuproc == 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_manuproc)); + } + if ((Original_orderno == 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_orderno)); + } if ((Original_gcode == null)) { throw new global::System.ArgumentNullException("Original_gcode"); } else { - this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_gcode)); + this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_gcode)); } - this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(idx)); + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_place)); + } + if ((Original_inqty.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[104].Value = ((int)(Original_inqty.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value; + } + if ((Original_pumpriceD.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[106].Value = ((decimal)(Original_pumpriceD.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value; + } + if ((Original_inremark == null)) { + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_inremark)); + } + if ((Original_winuid == null)) { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_winuid)); + } + if ((Original_windate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[112].Value = ((System.DateTime)(Original_windate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value; + } + if ((Original_chk1.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[114].Value = ((bool)(Original_chk1.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value; + } + if ((Original_chk2.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[116].Value = ((bool)(Original_chk2.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value; + } + if ((Original_costcenter == null)) { + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[118].Value = ((string)(Original_costcenter)); + } + if ((Original_linecode == null)) { + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_linecode)); + } + if ((Original_pumqtyReq.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[122].Value = ((int)(Original_pumqtyReq.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value; + } + if ((Original_chkremark == null)) { + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_chkremark)); + } + this.Adapter.UpdateCommand.Parameters[125].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)) { @@ -10643,6 +12019,100 @@ ORDER BY pdate DESC, idx DESC"; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string pdate, + string state, + string process, + string receive, + string sc, + string request, + string sid, + string pumname, + string pumscale, + string pumunit, + global::System.Nullable pumqty, + global::System.Nullable pumprice, + global::System.Nullable pumamt, + string supply, + global::System.Nullable supplyidx, + string project, + global::System.Nullable projectidx, + string asset, + string edate, + string indate, + string po, + string dept, + string wuid, + System.DateTime wdate, + global::System.Nullable import, + global::System.Nullable pumidx, + global::System.Nullable isdel, + string bigo, + string manuproc, + string orderno, + string gcode, + string place, + global::System.Nullable inqty, + global::System.Nullable pumpriceD, + string inremark, + string winuid, + global::System.Nullable windate, + global::System.Nullable chk1, + global::System.Nullable chk2, + string costcenter, + string linecode, + global::System.Nullable pumqtyReq, + string chkremark, + int Original_idx, + string Original_pdate, + string Original_state, + string Original_process, + string Original_receive, + string Original_sc, + string Original_request, + string Original_sid, + string Original_pumname, + string Original_pumscale, + string Original_pumunit, + global::System.Nullable Original_pumqty, + global::System.Nullable Original_pumprice, + global::System.Nullable Original_pumamt, + string Original_supply, + global::System.Nullable Original_supplyidx, + global::System.Nullable Original_projectidx, + string Original_asset, + string Original_edate, + string Original_indate, + string Original_po, + string Original_dept, + string Original_wuid, + System.DateTime Original_wdate, + global::System.Nullable Original_import, + global::System.Nullable Original_pumidx, + global::System.Nullable Original_isdel, + string Original_bigo, + string Original_manuproc, + string Original_orderno, + string Original_gcode, + string Original_place, + global::System.Nullable Original_inqty, + global::System.Nullable Original_pumpriceD, + string Original_inremark, + string Original_winuid, + global::System.Nullable Original_windate, + global::System.Nullable Original_chk1, + global::System.Nullable Original_chk2, + string Original_costcenter, + string Original_linecode, + global::System.Nullable Original_pumqtyReq, + string Original_chkremark) { + return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_idx); + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] diff --git a/SubProject/FEQ0000/dsPurchase.xsd b/SubProject/FEQ0000/dsPurchase.xsd index 02df679..5b47562 100644 --- a/SubProject/FEQ0000/dsPurchase.xsd +++ b/SubProject/FEQ0000/dsPurchase.xsd @@ -12,7 +12,7 @@ - DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode))) + DELETE FROM [Purchase] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark))) @@ -92,13 +92,17 @@ + + + + - INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC + INSERT INTO [Purchase] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -141,6 +145,8 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + @@ -148,7 +154,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM Purchase WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -158,60 +164,136 @@ ORDER BY pdate DESC, idx DESC - - UPDATE Purchase -SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, - pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, - indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno, gcode = @gcode, place = @place, inqty = @inqty, pumpriceD = @pumpriceD, inremark = @inremark, winuid = @winuid, windate = @windate, chk1 = @chk1, - chk2 = @chk2, costcenter = @costcenter, linecode = @linecode -WHERE (idx = @Original_idx) AND (gcode = @original_gcode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC + + UPDATE [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @wuid, [wdate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel, [bigo] = @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode, [place] = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremark] = @chkremark WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark))); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -262,6 +344,8 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + @@ -301,7 +385,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC @@ -313,7 +397,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx) + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx) @@ -323,7 +407,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -339,7 +423,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - DELETE FROM [EETGW_PurchaseCR] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode))) + DELETE FROM [EETGW_PurchaseCR] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark))) @@ -419,13 +503,17 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc + + + + - INSERT INTO [EETGW_PurchaseCR] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC + INSERT INTO [EETGW_PurchaseCR] ([pdate], [state], [process], [receive], [sc], [request], [sid], [pumname], [pumscale], [pumunit], [pumqty], [pumprice], [pumamt], [supply], [supplyidx], [project], [projectidx], [asset], [edate], [indate], [po], [dept], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], [gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1], [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark]) VALUES (@pdate, @state, @process, @receive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @linecode, @pumqtyReq, @chkremark); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC @@ -468,6 +556,8 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + @@ -475,7 +565,7 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, - winuid, windate, chk1, chk2, costcenter, linecode + winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC @@ -485,60 +575,136 @@ ORDER BY pdate DESC, idx DESC - - UPDATE EETGW_PurchaseCR -SET pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit, - pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate, - indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc, - orderno = @orderno, gcode = @gcode, place = @place, inqty = @inqty, pumpriceD = @pumpriceD, inremark = @inremark, winuid = @winuid, windate = @windate, chk1 = @chk1, - chk2 = @chk2, costcenter = @costcenter, linecode = @linecode -WHERE (idx = @Original_idx) AND (gcode = @Original_gcode); -SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode FROM EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC + + UPDATE [EETGW_PurchaseCR] SET [pdate] = @pdate, [state] = @state, [process] = @process, [receive] = @receive, [sc] = @sc, [request] = @request, [sid] = @sid, [pumname] = @pumname, [pumscale] = @pumscale, [pumunit] = @pumunit, [pumqty] = @pumqty, [pumprice] = @pumprice, [pumamt] = @pumamt, [supply] = @supply, [supplyidx] = @supplyidx, [project] = @project, [projectidx] = @projectidx, [asset] = @asset, [edate] = @edate, [indate] = @indate, [po] = @po, [dept] = @dept, [wuid] = @wuid, [wdate] = @wdate, [import] = @import, [pumidx] = @pumidx, [isdel] = @isdel, [bigo] = @bigo, [manuproc] = @manuproc, [orderno] = @orderno, [gcode] = @gcode, [place] = @place, [inqty] = @inqty, [pumpriceD] = @pumpriceD, [inremark] = @inremark, [winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costcenter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremark] = @chkremark WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremark))); +SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark FROM EETGW_PurchaseCR WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -589,6 +755,8 @@ SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveN + + @@ -629,7 +797,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc - SELECT asset, bigo, chk1, chk2, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM EETGW_PurchaseCR WHERE (idx = @idx) + SELECT asset, bigo, chk1, chk2, chkremark, costcenter, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM EETGW_PurchaseCR WHERE (idx = @idx) @@ -641,7 +809,7 @@ WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc SELECT asset, bigo, dept, edate, gcode, idx, import, indate, inqty, isdel, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumscale, pumunit, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, wuid, inremark, - winuid, windate, chk1, chk2 + winuid, windate, chk1, chk2, pumqtyReq, chkremark, costcenter, linecode FROM EETGW_PurchaseCR WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC @@ -941,20 +1109,28 @@ ORDER BY source DESC, request, wdate DESC - + - + + + + + + + + + @@ -1166,20 +1342,28 @@ ORDER BY source DESC, request, wdate DESC - + - + + + + + + + + +