재고 등록화면 프로젝트 입력칸 비활성화 => 완료
재고 관리 화면 - 보관소 필터링 기능 추가 재고 관리 등록 화면 규격의 값이 없어도 등록 가능 => 완료 보관소 직접입력이 아닌 선택 하게 => 재고등록화면 수정, 품목정보에 공급처 선택 기능 => 공급처 칸(제일 우측) 추가 주문도 보관소 별로 처리 => 완료 안전용 주문등록화면 추가 => 보관소 기능 추가 구매 신청 목록에 "보관소" 열 추가
This commit is contained in:
		| @@ -124,6 +124,12 @@ | ||||
|     <Compile Include="Purchase\fInputSC.Designer.cs"> | ||||
|       <DependentUpon>fInputSC.cs</DependentUpon> | ||||
|     </Compile> | ||||
|     <Compile Include="Purchase\fPurchase_AddS.cs"> | ||||
|       <SubType>Form</SubType> | ||||
|     </Compile> | ||||
|     <Compile Include="Purchase\fPurchase_AddS.Designer.cs"> | ||||
|       <DependentUpon>fPurchase_AddS.cs</DependentUpon> | ||||
|     </Compile> | ||||
|     <Compile Include="Purchase\fPurchase_Add.cs"> | ||||
|       <SubType>Form</SubType> | ||||
|     </Compile> | ||||
| @@ -192,6 +198,9 @@ | ||||
|     <EmbeddedResource Include="Purchase\fInputSC.resx"> | ||||
|       <DependentUpon>fInputSC.cs</DependentUpon> | ||||
|     </EmbeddedResource> | ||||
|     <EmbeddedResource Include="Purchase\fPurchase_AddS.resx"> | ||||
|       <DependentUpon>fPurchase_AddS.cs</DependentUpon> | ||||
|     </EmbeddedResource> | ||||
|     <EmbeddedResource Include="Purchase\fPurchase_Add.resx"> | ||||
|       <DependentUpon>fPurchase_Add.cs</DependentUpon> | ||||
|     </EmbeddedResource> | ||||
|   | ||||
							
								
								
									
										290
									
								
								SubProject/FEQ0000/Purchase/fPurchase.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										290
									
								
								SubProject/FEQ0000/Purchase/fPurchase.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -39,20 +39,21 @@ | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); | ||||
|             this.dsPurchase = new FEQ0000.dsPurchase(); | ||||
|             this.bs = new System.Windows.Forms.BindingSource(this.components); | ||||
| @@ -676,37 +677,38 @@ | ||||
|             this.fpSpread1_Sheet1.SheetName = "Sheet1"; | ||||
|             // Formulas and custom names must be loaded with R1C1 reference style | ||||
|             this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; | ||||
|             this.fpSpread1_Sheet1.ColumnCount = 27; | ||||
|             this.fpSpread1_Sheet1.ColumnCount = 28; | ||||
|             this.fpSpread1_Sheet1.ActiveColumnIndex = -1; | ||||
|             this.fpSpread1_Sheet1.ActiveRowIndex = -1; | ||||
|             this.fpSpread1_Sheet1.AutoGenerateColumns = false; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "등록일"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "공정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "요청"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "SC#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "CR/CF#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "수령"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "SID#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "품명"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "규격"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "장비\r\n제조사"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "제조\r\n공정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "장비\r\n모델"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "수량"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "단위"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단가"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "합계금액"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "공급업체"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "관련프로젝트"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "입고예정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고일"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "PO#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "비고"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "삭제됨"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "보관소"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "공정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "요청"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "SC#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "CR/CF#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "수령"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "SID#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "품명"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "규격"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "장비\r\n제조사"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "제조\r\n공정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "장비\r\n모델"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "수량"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단위"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "단가"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "합계금액"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "공급업체"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "관련프로젝트"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "*"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고예정"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "입고일"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "PO#"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "비고"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "삭제됨"; | ||||
|             this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; | ||||
| @@ -715,7 +717,7 @@ | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).Width = 82F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; | ||||
| @@ -724,160 +726,170 @@ | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Width = 66F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Width = 49F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).DataField = "process"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).Label = "공정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).Width = 67F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).DataField = "requestName"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Label = "요청"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Width = 48F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).DataField = "process"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Label = "공정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Width = 49F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).DataField = "sc"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Label = "SC#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Width = 27F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Width = 37F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).DataField = "orderno"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Label = "CR/CF#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Width = 44F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Width = 24F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receiveName"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Label = "수령"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Width = 46F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Label = "CR/CF#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Width = 43F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).DataField = "sid"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).Label = "SID#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).Width = 55F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(7).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).DataField = "pumname"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).Label = "품명"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType10; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             numberCellType1.DecimalPlaces = 0; | ||||
|             numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; | ||||
|             numberCellType1.MaximumValue = 2147483647D; | ||||
|             numberCellType1.MinimumValue = -2147483648D; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType1; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(9).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumscale"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).Label = "규격"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).Width = 43F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType1; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(10).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).DataField = "dept"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).Label = "장비\r\n제조사"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).DataField = "manuproc"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).Label = "제조\r\n공정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).DataField = "asset"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).Label = "장비\r\n모델"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(11).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType12; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).DataField = "dept"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).Label = "장비\r\n제조사"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(12).Width = 45F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).DataField = "manuproc"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).Label = "제조\r\n공정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(13).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).DataField = "asset"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).Label = "장비\r\n모델"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).Width = 33F; | ||||
|             numberCellType2.DecimalPlaces = 0; | ||||
|             numberCellType2.NegativeRed = true; | ||||
|             numberCellType2.NullDisplay = "--"; | ||||
|             numberCellType2.Separator = ","; | ||||
|             numberCellType2.ShowSeparator = true; | ||||
|             numberCellType2.ShrinkToFit = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqty"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(14).Width = 44F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumunit"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType2; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).Label = "단위"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).Width = 46F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType13; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).Width = 33F; | ||||
|             numberCellType3.DecimalPlaces = 0; | ||||
|             numberCellType3.NegativeRed = true; | ||||
|             numberCellType3.NullDisplay = "--"; | ||||
|             numberCellType3.Separator = ","; | ||||
|             numberCellType3.ShowSeparator = true; | ||||
|             numberCellType3.ShrinkToFit = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType3; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumprice"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(16).Width = 35F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumamt"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).Label = "합계금액"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).Width = 32F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).DataField = "supply"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).Label = "공급업체"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).Width = 46F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(17).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType3; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).Label = "합계금액"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(18).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).Width = 49F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             numberCellType4.DecimalPlaces = 0; | ||||
|             numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; | ||||
|             numberCellType4.MaximumValue = 2147483647D; | ||||
|             numberCellType4.MinimumValue = -2147483648D; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType4; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supplyidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(19).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType14; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).DataField = "project"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).Label = "관련프로젝트"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).Width = 46F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType4; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(20).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).Label = "관련프로젝트"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).Width = 45F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             numberCellType5.DecimalPlaces = 0; | ||||
|             numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; | ||||
|             numberCellType5.MaximumValue = 2147483647D; | ||||
|             numberCellType5.MinimumValue = -2147483648D; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType5; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).DataField = "projectidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(21).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).DataField = "edate"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType5; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).Label = "입고예정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).Width = 38F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).Label = "*"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(22).Width = 14F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).DataField = "indate"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고일"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).Width = 42F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).DataField = "po"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).Label = "PO#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).Width = 41F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType18; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).DataField = "bigo"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).Label = "비고"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).CellType = checkBoxCellType1; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).DataField = "isdel"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).Label = "삭제됨"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).Tag = "isdel"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(25).Width = 32F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType19; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).DataField = "bigo"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(26).Width = 33F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(27).Width = 45F; | ||||
|             this.fpSpread1_Sheet1.DataAutoCellTypes = false; | ||||
|             this.fpSpread1_Sheet1.DataAutoSizeColumns = false; | ||||
|             this.fpSpread1_Sheet1.DataSource = this.bs; | ||||
|   | ||||
| @@ -13,7 +13,7 @@ namespace FEQ0000 | ||||
|     public partial class fPurchase : FCOMMON.fBase | ||||
|     { | ||||
|         string fn_fpcolsize = ""; | ||||
|             | ||||
|  | ||||
|         public fPurchase() | ||||
|         { | ||||
|             InitializeComponent(); | ||||
| @@ -28,7 +28,7 @@ namespace FEQ0000 | ||||
|         void dtSD_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode != Keys.Enter) return; | ||||
|             var tb = sender as ToolStripTextBox;              | ||||
|             var tb = sender as ToolStripTextBox; | ||||
|             var input = tb.Text.Trim(); | ||||
|             if (input == "") tb.Text = DateTime.Now.ToShortDateString(); | ||||
|             else | ||||
| @@ -46,7 +46,7 @@ namespace FEQ0000 | ||||
|                     tb.Text = dt; | ||||
|                 } | ||||
|             } | ||||
|             if(tb == dtSD) | ||||
|             if (tb == dtSD) | ||||
|             { | ||||
|                 dtED.Focus(); | ||||
|                 dtED.SelectAll(); | ||||
| @@ -114,21 +114,21 @@ namespace FEQ0000 | ||||
|                     col.Locked = true; | ||||
|             } | ||||
|  | ||||
|             if(curLevel < 5) | ||||
|             if (curLevel < 5) | ||||
|             { | ||||
|                 집계표ToolStripMenuItem.Visible = false; | ||||
|             } | ||||
|              | ||||
|  | ||||
|             refreshData(); | ||||
|             | ||||
|  | ||||
|             //열표시여부를 설정 | ||||
|             var adv= FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv); | ||||
|             if(adv == false) | ||||
|             var adv = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv); | ||||
|             if (adv == false) | ||||
|             { | ||||
|                 var hidecols = new string[] { "receivename", "receive","asset", "dept","manuproc","process", "cr", "orderno", "manuproc", "project", "projectidx", "edate", "po" }; | ||||
|                 foreach(FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) | ||||
|                 var hidecols = new string[] { "receivename", "receive", "asset", "dept", "manuproc", "process", "cr", "orderno", "manuproc", "project", "projectidx", "edate", "po" }; | ||||
|                 foreach (FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns) | ||||
|                 { | ||||
|                     if (hidecols.Contains(col.DataField.ToLower())) col.Visible = false;     | ||||
|                     if (hidecols.Contains(col.DataField.ToLower())) col.Visible = false; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| @@ -136,7 +136,7 @@ namespace FEQ0000 | ||||
|  | ||||
|         private void refreshData() | ||||
|         { | ||||
|              | ||||
|  | ||||
|             try | ||||
|             { | ||||
|                 string state = "%"; | ||||
| @@ -155,22 +155,22 @@ namespace FEQ0000 | ||||
|                 System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); | ||||
|                 cmd.CommandText = " select *,dbo.getusername(request) as requestName,dbo.getusername(receive) as receiveName" + | ||||
|                                    " from purchase " + | ||||
|                                    " where gcode='"+ FCOMMON.info.Login.gcode + "' and  isnull(" + dateField + ",'') between @sd and @ed "; | ||||
|                                    " where gcode='" + FCOMMON.info.Login.gcode + "' and  isnull(" + dateField + ",'') between @sd and @ed "; | ||||
|  | ||||
|  | ||||
|  | ||||
|              | ||||
|                  | ||||
|                 if (btViewDel.Checked == false) | ||||
|                     cmd.CommandText += " and isnull(isdel,0) = 0"; | ||||
|                      | ||||
|                 if(tbRequest.Text.Trim() != "") | ||||
|  | ||||
|                 if (tbRequest.Text.Trim() != "") | ||||
|                 { | ||||
|                     cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)"; | ||||
|                 } | ||||
|                      | ||||
|  | ||||
|  | ||||
|                 if (cmbState.SelectedIndex != 0) | ||||
|                 { | ||||
|                     if(cmbState.Text.ToUpper() == "<=RECEIVED") | ||||
|                     if (cmbState.Text.ToUpper() == "<=RECEIVED") | ||||
|                     { | ||||
|                         cmd.CommandText += " and isnull([state],'') in ('','---','Approving','PR','PO')"; | ||||
|                     } | ||||
| @@ -179,7 +179,7 @@ namespace FEQ0000 | ||||
|                         cmd.CommandText += " and isnull([state],'') like @st"; | ||||
|                     } | ||||
|                 } | ||||
|                // else cmd.CommandText += " and (state < '04' or state > '07')"; | ||||
|                 // else cmd.CommandText += " and (state < '04' or state > '07')"; | ||||
|                 cmd.CommandText += " ORDER BY " + dateField + " DESC, idx DESC"; | ||||
|  | ||||
|                 cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sd", dtSD.Text)); | ||||
| @@ -209,7 +209,7 @@ namespace FEQ0000 | ||||
|             this.fpSpread1.SuspendLayout(); | ||||
|             var delindex = this.fpSpread1.ActiveSheet.Columns["isdel"].Index; | ||||
|             var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; | ||||
|             for(int i = 0; i< this.fpSpread1.ActiveSheet.Rows.Count;i++) | ||||
|             for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) | ||||
|             { | ||||
|                 var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex); | ||||
|                 string stateStr = string.Empty; | ||||
| @@ -246,26 +246,27 @@ namespace FEQ0000 | ||||
|                             this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; | ||||
|                             break; | ||||
|                     } | ||||
|                      | ||||
|  | ||||
|                 } | ||||
|                      | ||||
|  | ||||
|             } | ||||
|             this.fpSpread1.ResumeLayout(); | ||||
|         } | ||||
|  | ||||
|         private void saveData(Boolean prompt ) | ||||
|         private void saveData(Boolean prompt) | ||||
|         { | ||||
|             this.Validate(); | ||||
|             this.bs.EndEdit(); | ||||
|             try | ||||
|             { | ||||
|                var cnt = this.tam.UpdateAll(this.dsPurchase); | ||||
|                 if(prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.",cnt)); | ||||
|             }catch (Exception ex) | ||||
|                 var cnt = this.tam.UpdateAll(this.dsPurchase); | ||||
|                 if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt)); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("저장 실패\n" + ex.Message); | ||||
|             } | ||||
|              | ||||
|  | ||||
|  | ||||
|         } | ||||
|         void showSummary() | ||||
| @@ -274,7 +275,7 @@ namespace FEQ0000 | ||||
|             var list = this.dsPurchase.Purchase.Select(this.bs.Filter, "") as dsPurchase.PurchaseRow[]; | ||||
|             sum = list.Sum(t => t.pumamt); | ||||
|             //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) | ||||
|                 //if (!dr.IspumamtNull()) sum += dr.pumamt; | ||||
|             //if (!dr.IspumamtNull()) sum += dr.pumamt; | ||||
|             lbSum.Text = sum.ToString("N0"); | ||||
|         } | ||||
|  | ||||
| @@ -315,7 +316,7 @@ namespace FEQ0000 | ||||
|         private void toolStripLabel3_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             //사용자목록처리 | ||||
|             if(tbRequest.Text.Trim() == "") | ||||
|             if (tbRequest.Text.Trim() == "") | ||||
|             { | ||||
|                 tbRequest.Text = FCOMMON.info.Login.nameK; | ||||
|             } | ||||
| @@ -323,11 +324,20 @@ namespace FEQ0000 | ||||
|             { | ||||
|                 tbRequest.Text = string.Empty; | ||||
|             } | ||||
|              | ||||
|  | ||||
|             refreshData(); | ||||
|         } | ||||
|  | ||||
|          | ||||
|         private bool getAdminInput | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 return FCOMMON.Util.getBit( | ||||
|                 FCOMMON.info.Login.gpermission, | ||||
|                 (int)FCOMMON.eGroupPermission.purchase_adv); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_delete(); | ||||
| @@ -342,8 +352,23 @@ namespace FEQ0000 | ||||
|                 newdr.request = FCOMMON.info.Login.no; | ||||
|  | ||||
|         repeat: | ||||
|             fPurchase_Add f = new fPurchase_Add(newdr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|  | ||||
|             bool repeat = false; | ||||
|             DialogResult dlg; | ||||
|             if (getAdminInput == false) | ||||
|             { | ||||
|                 repeat = false; | ||||
|                 var f = new fPurchase_AddS(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 var f = new fPurchase_Add(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|                 repeat = f.repeatAdd; | ||||
|             } | ||||
|  | ||||
|             if (dlg == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 //존재하지 않는 sid 는 추가를 해준다. | ||||
|                 var newidx = AddItemInfoGetIndex(newdr); | ||||
| @@ -352,17 +377,18 @@ namespace FEQ0000 | ||||
|                     newdr.pumidx = newidx; | ||||
|                     newdr.EndEdit(); | ||||
|                 } | ||||
|                  | ||||
|  | ||||
|                 this.dsPurchase.Purchase.AddPurchaseRow(newdr); | ||||
|                  | ||||
|  | ||||
|                 int cnt = this.ta.Update(newdr); | ||||
|                 if(cnt == 1) | ||||
|                 if (cnt == 1) | ||||
|                 { | ||||
|                     if (f.repeatAdd) | ||||
|                     if (repeat) | ||||
|                     { | ||||
|                         FCOMMON.Util.MsgI("저장 완료\n\n연속 저장 모드이므로 직전에 입력된 자료가 자동으로 설정 됩니다."); | ||||
|  | ||||
|                     } else  FCOMMON.Util.MsgI("저장 완료"); | ||||
|                     } | ||||
|                     else FCOMMON.Util.MsgI("저장 완료"); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
| @@ -371,7 +397,7 @@ namespace FEQ0000 | ||||
|  | ||||
|  | ||||
|                 newdr.AcceptChanges(); | ||||
|                 if (f.repeatAdd) | ||||
|                 if (repeat) | ||||
|                 { | ||||
|                     var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); | ||||
|                     FCOMMON.Util.CopyData(newdr, newdro); | ||||
| @@ -383,13 +409,16 @@ namespace FEQ0000 | ||||
|                 else refreshData(); //181210 | ||||
|             } | ||||
|             else newdr.Delete(); | ||||
|  | ||||
|              | ||||
|  | ||||
|         } | ||||
|         void func_delete() | ||||
|         { | ||||
|             var drv = bs.Current as DataRowView; | ||||
|             if (drv == null) return; | ||||
|  | ||||
|             int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth( FCOMMON.DBM.eAuthType.purchase)); | ||||
|             int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); | ||||
|             var dr = drv.Row as dsPurchase.PurchaseRow; | ||||
|             if (dr.sc != "") | ||||
|             { | ||||
| @@ -400,7 +429,7 @@ namespace FEQ0000 | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             if(dr.request != FCOMMON.info.Login.no) | ||||
|             if (dr.request != FCOMMON.info.Login.no) | ||||
|             { | ||||
|                 if (curLevel < 5) | ||||
|                 { | ||||
| @@ -414,7 +443,7 @@ namespace FEQ0000 | ||||
|                 var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); | ||||
|                 if (dlg != System.Windows.Forms.DialogResult.Yes) return; | ||||
|             } | ||||
|              | ||||
|  | ||||
|             bs.RemoveCurrent(); | ||||
|  | ||||
|             //일반사용자는 데이터를 바로 삭제한다. | ||||
| @@ -458,7 +487,7 @@ namespace FEQ0000 | ||||
|  | ||||
|         private void copyDataToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|              | ||||
|  | ||||
|         } | ||||
|  | ||||
|         private void btFind_Click(object sender, EventArgs e) | ||||
| @@ -468,7 +497,7 @@ namespace FEQ0000 | ||||
|             if (tbFind.Text != search) tbFind.Text = search; | ||||
|             try | ||||
|             { | ||||
|                 if(search.isEmpty()) | ||||
|                 if (search.isEmpty()) | ||||
|                 { | ||||
|                     this.bs.Filter = ""; | ||||
|                     tbFind.BackColor = Color.White; | ||||
| @@ -479,7 +508,7 @@ namespace FEQ0000 | ||||
|                     string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?"; | ||||
|                     filter = filter.Replace("?", "'%" + search + "%'"); | ||||
|                     this.bs.Filter = filter; | ||||
|                     tbFind.BackColor = Color.Lime;  | ||||
|                     tbFind.BackColor = Color.Lime; | ||||
|                 } | ||||
|                 tbFind.SelectAll(); | ||||
|                 tbFind.Focus(); | ||||
| @@ -505,40 +534,40 @@ namespace FEQ0000 | ||||
|         { | ||||
|             var drv = this.bs.Current as DataRowView; | ||||
|             if (drv == null) return; | ||||
|             var dr = drv.Row as dsPurchase.PurchaseRow; | ||||
|             var newdr = drv.Row as dsPurchase.PurchaseRow; | ||||
|  | ||||
|             var f = new fPurchase_Add(dr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             bool repeat = false; | ||||
|             DialogResult dlg; | ||||
|             if (getAdminInput == false) | ||||
|             { | ||||
|                 repeat = false; | ||||
|                 var f = new fPurchase_AddS(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 var f = new fPurchase_Add(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|                 repeat = f.repeatAdd; | ||||
|             } | ||||
|  | ||||
|             if (dlg == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 //존재하지 않는 sid 는 추가를 해준다. | ||||
|                 var newidx = AddItemInfoGetIndex(dr); | ||||
|                 var newidx = AddItemInfoGetIndex(newdr); | ||||
|                 if (newidx != -1) | ||||
|                 { | ||||
|                     dr.pumidx = newidx; | ||||
|                     dr.EndEdit(); | ||||
|                     newdr.pumidx = newidx; | ||||
|                     newdr.EndEdit(); | ||||
|                 } | ||||
|                 if(dr.RowState != DataRowState.Unchanged) | ||||
|                 if (newdr.RowState != DataRowState.Unchanged) | ||||
|                 { | ||||
|                     this.ta.Update(dr); | ||||
|                     dr.AcceptChanges(); | ||||
|                     this.ta.Update(newdr); | ||||
|                     newdr.AcceptChanges(); | ||||
|                 } | ||||
|             } | ||||
|             else dr.RejectChanges(); | ||||
|         } | ||||
|             else newdr.RejectChanges(); | ||||
|  | ||||
|         private void clearColumnsSizeToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         private void saveColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         private void loadColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         private void autoToolStripMenuItem_Click(object sender, EventArgs e) | ||||
| @@ -619,7 +648,7 @@ namespace FEQ0000 | ||||
|         private void updateSCToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             var dlg = FCOMMON.Util.MsgQ("#SC가 없는 자료에 한하여 일괄 기록을 실행 합니다."); | ||||
|             if(dlg == System.Windows.Forms.DialogResult.Yes) | ||||
|             if (dlg == System.Windows.Forms.DialogResult.Yes) | ||||
|             { | ||||
|  | ||||
|             } | ||||
| @@ -639,7 +668,7 @@ namespace FEQ0000 | ||||
|                     | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); | ||||
|                 FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName); | ||||
|             } | ||||
|              | ||||
|  | ||||
|         } | ||||
|  | ||||
|         private void 내가등록한자료ToolStripMenuItem_Click(object sender, EventArgs e) | ||||
| @@ -674,12 +703,12 @@ namespace FEQ0000 | ||||
|             refreshData(); | ||||
|         } | ||||
|  | ||||
|         | ||||
|  | ||||
|         private void copyToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             //선택된 줄의 데이터를 생성하낟. | ||||
|             var drv = this.bs.Current as DataRowView; | ||||
|             if(drv==null) return; | ||||
|             if (drv == null) return; | ||||
|             var dr = drv.Row as dsPurchase.PurchaseRow; | ||||
|             string buffer = string.Format("{0}_{1}_{2}_{3}_{4}", dr.pumname.Replace("_", "-"), dr.pumscale.Replace("_", "-"), dr.dept.Replace("_", "-"), dr.manuproc.Replace("_", "-"), dr.asset.Replace("_", "-")); | ||||
|             Clipboard.SetText(buffer); | ||||
| @@ -709,8 +738,22 @@ namespace FEQ0000 | ||||
|             newdr.EndEdit(); | ||||
|  | ||||
|         repeat: | ||||
|             fPurchase_Add f = new fPurchase_Add(newdr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|  | ||||
|             bool repeat = false; | ||||
|             DialogResult dlg; | ||||
|             if (getAdminInput == false) | ||||
|             { | ||||
|                 var f = new fPurchase_AddS(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 var f = new fPurchase_Add(newdr); | ||||
|                 dlg = f.ShowDialog(); | ||||
|                 repeat = f.repeatAdd; | ||||
|             } | ||||
|  | ||||
|             if (dlg == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 //존재하지 않는 sid 는 추가를 해준다. | ||||
|                 var newidx = AddItemInfoGetIndex(newdr); | ||||
| @@ -724,7 +767,7 @@ namespace FEQ0000 | ||||
|                 this.ta.Update(newdr); | ||||
|                 newdr.AcceptChanges(); | ||||
|  | ||||
|                 if (f.repeatAdd) | ||||
|                 if (repeat) | ||||
|                 { | ||||
|                     var newdro = this.dsPurchase.Purchase.NewPurchaseRow(); | ||||
|                     FCOMMON.Util.CopyData(newdr, newdro); | ||||
| @@ -737,8 +780,8 @@ namespace FEQ0000 | ||||
|             } | ||||
|             else newdr.Delete(); | ||||
|         } | ||||
|         | ||||
|         | ||||
|  | ||||
|  | ||||
|         private void toolStripButton1_Click_2(object sender, EventArgs e) | ||||
|         { | ||||
|             func_copy(); | ||||
|   | ||||
| @@ -246,6 +246,9 @@ namespace FEQ0000 | ||||
|             if(advInput==false) | ||||
|             { | ||||
|                 this.Width = 528; | ||||
|                 this.linkLabel7.Enabled = false; | ||||
|                 this.tbProject.Enabled = false; | ||||
|                 this.tbProjectIndex.Enabled = false; | ||||
|             } | ||||
|             this.Show(); | ||||
|             Application.DoEvents(); | ||||
|   | ||||
							
								
								
									
										494
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										494
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,494 @@ | ||||
| namespace FEQ0000 | ||||
| { | ||||
|     partial class fPurchase_AddS | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Required designer variable. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Clean up any resources being used. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region Windows Form Designer generated code | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Required method for Designer support - do not modify | ||||
|         /// the contents of this method with the code editor. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             this.components = new System.ComponentModel.Container(); | ||||
|             System.Windows.Forms.Label sidLabel; | ||||
|             System.Windows.Forms.Label pumscaleLabel; | ||||
|             System.Windows.Forms.Label pumqtyLabel; | ||||
|             System.Windows.Forms.Label pumpriceLabel; | ||||
|             System.Windows.Forms.Label pumamtLabel; | ||||
|             System.Windows.Forms.Label deptLabel; | ||||
|             System.Windows.Forms.Label label1; | ||||
|             System.Windows.Forms.Label label3; | ||||
|             System.Windows.Forms.Label label6; | ||||
|             System.Windows.Forms.Label label2; | ||||
|             this.tbSID = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumName = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumModel = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumUnit = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumQty = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumPrice = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumAmt = new System.Windows.Forms.TextBox(); | ||||
|             this.tbSupply = new System.Windows.Forms.TextBox(); | ||||
|             this.tbSupplyIndex = new System.Windows.Forms.TextBox(); | ||||
|             this.tbBigo = new System.Windows.Forms.TextBox(); | ||||
|             this.dtPdate = new System.Windows.Forms.DateTimePicker(); | ||||
|             this.btSave = new System.Windows.Forms.Button(); | ||||
|             this.cmbState = new System.Windows.Forms.ComboBox(); | ||||
|             this.cmbRequest = new System.Windows.Forms.ComboBox(); | ||||
|             this.tbPumIDX = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPumStock = new System.Windows.Forms.TextBox(); | ||||
|             this.linkLabel6 = new System.Windows.Forms.LinkLabel(); | ||||
|             this.linkLabel5 = new System.Windows.Forms.LinkLabel(); | ||||
|             this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); | ||||
|             this.dsPurchase = new FEQ0000.dsPurchase(); | ||||
|             this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components); | ||||
|             this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); | ||||
|             this.cmbPlace = new System.Windows.Forms.ComboBox(); | ||||
|             this.pictureBox1 = new System.Windows.Forms.PictureBox(); | ||||
|             sidLabel = new System.Windows.Forms.Label(); | ||||
|             pumscaleLabel = new System.Windows.Forms.Label(); | ||||
|             pumqtyLabel = new System.Windows.Forms.Label(); | ||||
|             pumpriceLabel = new System.Windows.Forms.Label(); | ||||
|             pumamtLabel = new System.Windows.Forms.Label(); | ||||
|             deptLabel = new System.Windows.Forms.Label(); | ||||
|             label1 = new System.Windows.Forms.Label(); | ||||
|             label3 = new System.Windows.Forms.Label(); | ||||
|             label6 = new System.Windows.Forms.Label(); | ||||
|             label2 = new System.Windows.Forms.Label(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // sidLabel | ||||
|             //  | ||||
|             sidLabel.AutoSize = true; | ||||
|             sidLabel.Location = new System.Drawing.Point(296, 197); | ||||
|             sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             sidLabel.Name = "sidLabel"; | ||||
|             sidLabel.Size = new System.Drawing.Size(32, 20); | ||||
|             sidLabel.TabIndex = 19; | ||||
|             sidLabel.Text = "SID"; | ||||
|             //  | ||||
|             // pumscaleLabel | ||||
|             //  | ||||
|             pumscaleLabel.AutoSize = true; | ||||
|             pumscaleLabel.Location = new System.Drawing.Point(19, 124); | ||||
|             pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             pumscaleLabel.Name = "pumscaleLabel"; | ||||
|             pumscaleLabel.Size = new System.Drawing.Size(75, 20); | ||||
|             pumscaleLabel.TabIndex = 9; | ||||
|             pumscaleLabel.Text = "모델/규격"; | ||||
|             //  | ||||
|             // pumqtyLabel | ||||
|             //  | ||||
|             pumqtyLabel.AutoSize = true; | ||||
|             pumqtyLabel.Location = new System.Drawing.Point(55, 161); | ||||
|             pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             pumqtyLabel.Name = "pumqtyLabel"; | ||||
|             pumqtyLabel.Size = new System.Drawing.Size(39, 20); | ||||
|             pumqtyLabel.TabIndex = 12; | ||||
|             pumqtyLabel.Text = "수량"; | ||||
|             //  | ||||
|             // pumpriceLabel | ||||
|             //  | ||||
|             pumpriceLabel.AutoSize = true; | ||||
|             pumpriceLabel.Location = new System.Drawing.Point(288, 161); | ||||
|             pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             pumpriceLabel.Name = "pumpriceLabel"; | ||||
|             pumpriceLabel.Size = new System.Drawing.Size(39, 20); | ||||
|             pumpriceLabel.TabIndex = 15; | ||||
|             pumpriceLabel.Text = "단가"; | ||||
|             //  | ||||
|             // pumamtLabel | ||||
|             //  | ||||
|             pumamtLabel.AutoSize = true; | ||||
|             pumamtLabel.Location = new System.Drawing.Point(55, 197); | ||||
|             pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             pumamtLabel.Name = "pumamtLabel"; | ||||
|             pumamtLabel.Size = new System.Drawing.Size(39, 20); | ||||
|             pumamtLabel.TabIndex = 17; | ||||
|             pumamtLabel.Text = "합계"; | ||||
|             //  | ||||
|             // deptLabel | ||||
|             //  | ||||
|             deptLabel.AutoSize = true; | ||||
|             deptLabel.Location = new System.Drawing.Point(55, 302); | ||||
|             deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             deptLabel.Name = "deptLabel"; | ||||
|             deptLabel.Size = new System.Drawing.Size(39, 20); | ||||
|             deptLabel.TabIndex = 27; | ||||
|             deptLabel.Text = "비고"; | ||||
|             //  | ||||
|             // label1 | ||||
|             //  | ||||
|             label1.AutoSize = true; | ||||
|             label1.Location = new System.Drawing.Point(40, 17); | ||||
|             label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             label1.Name = "label1"; | ||||
|             label1.Size = new System.Drawing.Size(54, 20); | ||||
|             label1.TabIndex = 0; | ||||
|             label1.Text = "입력일"; | ||||
|             //  | ||||
|             // label3 | ||||
|             //  | ||||
|             label3.AutoSize = true; | ||||
|             label3.Location = new System.Drawing.Point(55, 51); | ||||
|             label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             label3.Name = "label3"; | ||||
|             label3.Size = new System.Drawing.Size(39, 20); | ||||
|             label3.TabIndex = 2; | ||||
|             label3.Text = "요청"; | ||||
|             //  | ||||
|             // label6 | ||||
|             //  | ||||
|             label6.AutoSize = true; | ||||
|             label6.Location = new System.Drawing.Point(288, 51); | ||||
|             label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             label6.Name = "label6"; | ||||
|             label6.Size = new System.Drawing.Size(39, 20); | ||||
|             label6.TabIndex = 4; | ||||
|             label6.Text = "상태"; | ||||
|             //  | ||||
|             // label2 | ||||
|             //  | ||||
|             label2.AutoSize = true; | ||||
|             label2.Location = new System.Drawing.Point(40, 270); | ||||
|             label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             label2.Name = "label2"; | ||||
|             label2.Size = new System.Drawing.Size(54, 20); | ||||
|             label2.TabIndex = 31; | ||||
|             label2.Text = "보관소"; | ||||
|             //  | ||||
|             // tbSID | ||||
|             //  | ||||
|             this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); | ||||
|             this.tbSID.Location = new System.Drawing.Point(335, 194); | ||||
|             this.tbSID.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbSID.Name = "tbSID"; | ||||
|             this.tbSID.Size = new System.Drawing.Size(148, 27); | ||||
|             this.tbSID.TabIndex = 20; | ||||
|             //  | ||||
|             // tbPumName | ||||
|             //  | ||||
|             this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.tbPumName.Location = new System.Drawing.Point(101, 84); | ||||
|             this.tbPumName.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumName.Name = "tbPumName"; | ||||
|             this.tbPumName.Size = new System.Drawing.Size(311, 27); | ||||
|             this.tbPumName.TabIndex = 7; | ||||
|             //  | ||||
|             // tbPumModel | ||||
|             //  | ||||
|             this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha; | ||||
|             this.tbPumModel.Location = new System.Drawing.Point(101, 121); | ||||
|             this.tbPumModel.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumModel.Name = "tbPumModel"; | ||||
|             this.tbPumModel.Size = new System.Drawing.Size(311, 27); | ||||
|             this.tbPumModel.TabIndex = 10; | ||||
|             //  | ||||
|             // tbPumUnit | ||||
|             //  | ||||
|             this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); | ||||
|             this.tbPumUnit.Location = new System.Drawing.Point(418, 121); | ||||
|             this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumUnit.Name = "tbPumUnit"; | ||||
|             this.tbPumUnit.Size = new System.Drawing.Size(64, 27); | ||||
|             this.tbPumUnit.TabIndex = 11; | ||||
|             this.tbPumUnit.TabStop = false; | ||||
|             this.tbPumUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.toolTip1.SetToolTip(this.tbPumUnit, "단위"); | ||||
|             //  | ||||
|             // tbPumQty | ||||
|             //  | ||||
|             this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbPumQty.Location = new System.Drawing.Point(102, 157); | ||||
|             this.tbPumQty.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumQty.Name = "tbPumQty"; | ||||
|             this.tbPumQty.Size = new System.Drawing.Size(111, 27); | ||||
|             this.tbPumQty.TabIndex = 13; | ||||
|             this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); | ||||
|             //  | ||||
|             // tbPumPrice | ||||
|             //  | ||||
|             this.tbPumPrice.Location = new System.Drawing.Point(335, 157); | ||||
|             this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumPrice.Name = "tbPumPrice"; | ||||
|             this.tbPumPrice.Size = new System.Drawing.Size(148, 27); | ||||
|             this.tbPumPrice.TabIndex = 16; | ||||
|             this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; | ||||
|             this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged); | ||||
|             //  | ||||
|             // tbPumAmt | ||||
|             //  | ||||
|             this.tbPumAmt.Location = new System.Drawing.Point(101, 194); | ||||
|             this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumAmt.Name = "tbPumAmt"; | ||||
|             this.tbPumAmt.ReadOnly = true; | ||||
|             this.tbPumAmt.Size = new System.Drawing.Size(179, 27); | ||||
|             this.tbPumAmt.TabIndex = 18; | ||||
|             this.tbPumAmt.TabStop = false; | ||||
|             this.tbPumAmt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; | ||||
|             //  | ||||
|             // tbSupply | ||||
|             //  | ||||
|             this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.tbSupply.Location = new System.Drawing.Point(101, 230); | ||||
|             this.tbSupply.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbSupply.Name = "tbSupply"; | ||||
|             this.tbSupply.Size = new System.Drawing.Size(311, 27); | ||||
|             this.tbSupply.TabIndex = 22; | ||||
|             //  | ||||
|             // tbSupplyIndex | ||||
|             //  | ||||
|             this.tbSupplyIndex.Location = new System.Drawing.Point(418, 230); | ||||
|             this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbSupplyIndex.Name = "tbSupplyIndex"; | ||||
|             this.tbSupplyIndex.ReadOnly = true; | ||||
|             this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27); | ||||
|             this.tbSupplyIndex.TabIndex = 23; | ||||
|             this.tbSupplyIndex.TabStop = false; | ||||
|             this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.toolTip1.SetToolTip(this.tbSupplyIndex, "Database ID"); | ||||
|             //  | ||||
|             // tbBigo | ||||
|             //  | ||||
|             this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.tbBigo.Location = new System.Drawing.Point(101, 302); | ||||
|             this.tbBigo.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbBigo.MaxLength = 500; | ||||
|             this.tbBigo.Multiline = true; | ||||
|             this.tbBigo.Name = "tbBigo"; | ||||
|             this.tbBigo.Size = new System.Drawing.Size(381, 188); | ||||
|             this.tbBigo.TabIndex = 28; | ||||
|             this.tbBigo.TabStop = false; | ||||
|             //  | ||||
|             // dtPdate | ||||
|             //  | ||||
|             this.dtPdate.Location = new System.Drawing.Point(101, 11); | ||||
|             this.dtPdate.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.dtPdate.Name = "dtPdate"; | ||||
|             this.dtPdate.Size = new System.Drawing.Size(381, 27); | ||||
|             this.dtPdate.TabIndex = 1; | ||||
|             //  | ||||
|             // btSave | ||||
|             //  | ||||
|             this.btSave.Location = new System.Drawing.Point(101, 498); | ||||
|             this.btSave.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.btSave.Name = "btSave"; | ||||
|             this.btSave.Size = new System.Drawing.Size(381, 49); | ||||
|             this.btSave.TabIndex = 1; | ||||
|             this.btSave.Text = "저장(&S)"; | ||||
|             this.btSave.UseVisualStyleBackColor = true; | ||||
|             this.btSave.Click += new System.EventHandler(this.button1_Click); | ||||
|             //  | ||||
|             // cmbState | ||||
|             //  | ||||
|             this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.cmbState.FormattingEnabled = true; | ||||
|             this.cmbState.Location = new System.Drawing.Point(335, 48); | ||||
|             this.cmbState.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.cmbState.Name = "cmbState"; | ||||
|             this.cmbState.Size = new System.Drawing.Size(148, 28); | ||||
|             this.cmbState.TabIndex = 5; | ||||
|             this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); | ||||
|             //  | ||||
|             // cmbRequest | ||||
|             //  | ||||
|             this.cmbRequest.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; | ||||
|             this.cmbRequest.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; | ||||
|             this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||
|             this.cmbRequest.FormattingEnabled = true; | ||||
|             this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.cmbRequest.Location = new System.Drawing.Point(101, 48); | ||||
|             this.cmbRequest.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.cmbRequest.Name = "cmbRequest"; | ||||
|             this.cmbRequest.Size = new System.Drawing.Size(179, 28); | ||||
|             this.cmbRequest.TabIndex = 3; | ||||
|             //  | ||||
|             // tbPumIDX | ||||
|             //  | ||||
|             this.tbPumIDX.Location = new System.Drawing.Point(418, 84); | ||||
|             this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumIDX.Name = "tbPumIDX"; | ||||
|             this.tbPumIDX.ReadOnly = true; | ||||
|             this.tbPumIDX.Size = new System.Drawing.Size(64, 27); | ||||
|             this.tbPumIDX.TabIndex = 8; | ||||
|             this.tbPumIDX.TabStop = false; | ||||
|             this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID"); | ||||
|             //  | ||||
|             // tbPumStock | ||||
|             //  | ||||
|             this.tbPumStock.Location = new System.Drawing.Point(216, 157); | ||||
|             this.tbPumStock.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.tbPumStock.Name = "tbPumStock"; | ||||
|             this.tbPumStock.ReadOnly = true; | ||||
|             this.tbPumStock.Size = new System.Drawing.Size(64, 27); | ||||
|             this.tbPumStock.TabIndex = 14; | ||||
|             this.tbPumStock.TabStop = false; | ||||
|             this.tbPumStock.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.toolTip1.SetToolTip(this.tbPumStock, "재고량"); | ||||
|             //  | ||||
|             // linkLabel6 | ||||
|             //  | ||||
|             this.linkLabel6.AutoSize = true; | ||||
|             this.linkLabel6.Location = new System.Drawing.Point(40, 233); | ||||
|             this.linkLabel6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             this.linkLabel6.Name = "linkLabel6"; | ||||
|             this.linkLabel6.Size = new System.Drawing.Size(54, 20); | ||||
|             this.linkLabel6.TabIndex = 30; | ||||
|             this.linkLabel6.TabStop = true; | ||||
|             this.linkLabel6.Text = "공급처"; | ||||
|             this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked); | ||||
|             //  | ||||
|             // linkLabel5 | ||||
|             //  | ||||
|             this.linkLabel5.AutoSize = true; | ||||
|             this.linkLabel5.Location = new System.Drawing.Point(55, 87); | ||||
|             this.linkLabel5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); | ||||
|             this.linkLabel5.Name = "linkLabel5"; | ||||
|             this.linkLabel5.Size = new System.Drawing.Size(39, 20); | ||||
|             this.linkLabel5.TabIndex = 29; | ||||
|             this.linkLabel5.TabStop = true; | ||||
|             this.linkLabel5.Text = "품명"; | ||||
|             this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked); | ||||
|             //  | ||||
|             // dsPurchase | ||||
|             //  | ||||
|             this.dsPurchase.DataSetName = "dsPurchase"; | ||||
|             this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; | ||||
|             //  | ||||
|             // purchaseBindingSource | ||||
|             //  | ||||
|             this.purchaseBindingSource.DataMember = "Purchase"; | ||||
|             this.purchaseBindingSource.DataSource = this.dsPurchase; | ||||
|             //  | ||||
|             // purchaseTableAdapter | ||||
|             //  | ||||
|             this.purchaseTableAdapter.ClearBeforeFill = true; | ||||
|             //  | ||||
|             // cmbPlace | ||||
|             //  | ||||
|             this.cmbPlace.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; | ||||
|             this.cmbPlace.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; | ||||
|             this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||
|             this.cmbPlace.FormattingEnabled = true; | ||||
|             this.cmbPlace.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.cmbPlace.Location = new System.Drawing.Point(101, 265); | ||||
|             this.cmbPlace.Margin = new System.Windows.Forms.Padding(4); | ||||
|             this.cmbPlace.Name = "cmbPlace"; | ||||
|             this.cmbPlace.Size = new System.Drawing.Size(381, 28); | ||||
|             this.cmbPlace.TabIndex = 32; | ||||
|             //  | ||||
|             // pictureBox1 | ||||
|             //  | ||||
|             this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); | ||||
|             this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||
|             this.pictureBox1.Location = new System.Drawing.Point(490, 11); | ||||
|             this.pictureBox1.Name = "pictureBox1"; | ||||
|             this.pictureBox1.Size = new System.Drawing.Size(393, 538); | ||||
|             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; | ||||
|             this.pictureBox1.TabIndex = 33; | ||||
|             this.pictureBox1.TabStop = false; | ||||
|             //  | ||||
|             // fPurchase_AddS | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(895, 561); | ||||
|             this.Controls.Add(this.pictureBox1); | ||||
|             this.Controls.Add(this.cmbPlace); | ||||
|             this.Controls.Add(label2); | ||||
|             this.Controls.Add(this.btSave); | ||||
|             this.Controls.Add(this.linkLabel6); | ||||
|             this.Controls.Add(this.tbBigo); | ||||
|             this.Controls.Add(this.linkLabel5); | ||||
|             this.Controls.Add(this.tbPumModel); | ||||
|             this.Controls.Add(label6); | ||||
|             this.Controls.Add(this.tbPumUnit); | ||||
|             this.Controls.Add(label3); | ||||
|             this.Controls.Add(pumscaleLabel); | ||||
|             this.Controls.Add(this.dtPdate); | ||||
|             this.Controls.Add(this.cmbRequest); | ||||
|             this.Controls.Add(this.tbPumStock); | ||||
|             this.Controls.Add(this.tbPumName); | ||||
|             this.Controls.Add(this.tbPumAmt); | ||||
|             this.Controls.Add(label1); | ||||
|             this.Controls.Add(pumpriceLabel); | ||||
|             this.Controls.Add(deptLabel); | ||||
|             this.Controls.Add(this.tbSupply); | ||||
|             this.Controls.Add(this.tbSupplyIndex); | ||||
|             this.Controls.Add(this.tbPumPrice); | ||||
|             this.Controls.Add(pumamtLabel); | ||||
|             this.Controls.Add(sidLabel); | ||||
|             this.Controls.Add(this.tbPumIDX); | ||||
|             this.Controls.Add(pumqtyLabel); | ||||
|             this.Controls.Add(this.cmbState); | ||||
|             this.Controls.Add(this.tbPumQty); | ||||
|             this.Controls.Add(this.tbSID); | ||||
|             this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||
|             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; | ||||
|             this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); | ||||
|             this.MaximizeBox = false; | ||||
|             this.MinimizeBox = false; | ||||
|             this.Name = "fPurchase_AddS"; | ||||
|             this.Text = "Purchase ADD/EDIT"; | ||||
|             this.Load += new System.EventHandler(this.@__Load); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private System.Windows.Forms.TextBox tbSID; | ||||
|         private System.Windows.Forms.TextBox tbPumName; | ||||
|         private System.Windows.Forms.TextBox tbPumModel; | ||||
|         private System.Windows.Forms.TextBox tbPumUnit; | ||||
|         private System.Windows.Forms.TextBox tbPumQty; | ||||
|         private System.Windows.Forms.TextBox tbPumPrice; | ||||
|         private System.Windows.Forms.TextBox tbPumAmt; | ||||
|         private System.Windows.Forms.TextBox tbSupply; | ||||
|         private System.Windows.Forms.TextBox tbSupplyIndex; | ||||
|         private System.Windows.Forms.TextBox tbBigo; | ||||
|         private System.Windows.Forms.DateTimePicker dtPdate; | ||||
|         private System.Windows.Forms.Button btSave; | ||||
|         private System.Windows.Forms.ComboBox cmbState; | ||||
|         private System.Windows.Forms.ComboBox cmbRequest; | ||||
|         private System.Windows.Forms.TextBox tbPumStock; | ||||
|         private System.Windows.Forms.TextBox tbPumIDX; | ||||
|         private dsPurchase dsPurchase; | ||||
|         private System.Windows.Forms.BindingSource purchaseBindingSource; | ||||
|         private dsPurchaseTableAdapters.PurchaseTableAdapter purchaseTableAdapter; | ||||
|         private System.Windows.Forms.ToolTip toolTip1; | ||||
|         private System.Windows.Forms.LinkLabel linkLabel5; | ||||
|         private System.Windows.Forms.LinkLabel linkLabel6; | ||||
|         private System.Windows.Forms.ComboBox cmbPlace; | ||||
|         private System.Windows.Forms.PictureBox pictureBox1; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										602
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										602
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,602 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Data; | ||||
| using System.Drawing; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Windows.Forms; | ||||
|  | ||||
| namespace FEQ0000 | ||||
| { | ||||
|     public partial class fPurchase_AddS : Form | ||||
|     { | ||||
|         BindingSource bsManu; | ||||
|         BindingSource bsModel; | ||||
|         dsPurchase.PurchaseRow dr; | ||||
|         public Boolean repeatAdd = false; | ||||
|         public fPurchase_AddS(dsPurchase.PurchaseRow dr_) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             bsManu = new BindingSource(); | ||||
|             bsModel = new BindingSource(); | ||||
|             this.dr = dr_; | ||||
|             this.KeyPreview = true; | ||||
|             this.StartPosition = FormStartPosition.CenterScreen; | ||||
|             this.KeyDown += (s1, e1) => | ||||
|             { | ||||
|                 if (e1.KeyCode == Keys.Escape) this.Close(); | ||||
|             }; | ||||
|             this.tbPumName.Leave += tbPumName_Leave; | ||||
|             this.tbSupply.Leave += tbSupply_Leave; | ||||
|              | ||||
|             foreach (Control ctl in this.Controls) | ||||
|             { | ||||
|                 if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) | ||||
|                 { | ||||
|                     ctl.KeyDown += ctl_KeyDown; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|     | ||||
|  | ||||
|         //Boolean advInput = false; | ||||
|         private void __Load(object sender, EventArgs e) | ||||
|         { | ||||
|             | ||||
|             //상태 | ||||
|             var stateList = FCOMMON.DBM.getCodeTable("04"); | ||||
|             this.cmbState.DisplayMember = "Value"; | ||||
|             this.cmbState.ValueMember = "Value"; | ||||
|             this.cmbState.DataSource = stateList; | ||||
|  | ||||
|             //보관소 | ||||
|             var dt_dept = FCOMMON.DBM.getCodeTable("50"); | ||||
|             bsManu.DataSource = dt_dept; | ||||
|             this.cmbPlace.DisplayMember = "Value"; | ||||
|             this.cmbPlace.ValueMember = "Value"; | ||||
|             this.cmbPlace.DataSource = bsManu; | ||||
|  | ||||
|             //담당자목록 | ||||
|             var userList = FCOMMON.DBM.getUserList(); //.getGroupList("name", "Users", "[level] > 0 and [level] < 10"); | ||||
|             foreach (var user in userList) | ||||
|             { | ||||
|                 this.cmbRequest.Items.Add(string.Format("[{0}] {1}", user.Key, user.Value)); | ||||
|             } | ||||
|  | ||||
|             dtPdate.Value = DateTime.Parse(dr.pdate); | ||||
|             | ||||
|             ///입력된 데이터를 적용한다. | ||||
|             dtPdate.Value = DateTime.Parse(dr.pdate); | ||||
|             if(cmbRequest.Items.Count > 0) | ||||
|             { | ||||
|                 for(int i = 0; i< cmbRequest.Items.Count ;i++) | ||||
|                 { | ||||
|                     if (cmbRequest.Items[i].ToString().StartsWith("[" + dr.request + "]")) | ||||
|                     { | ||||
|                         cmbRequest.SelectedIndex = i; | ||||
|                         break; | ||||
|                     }    | ||||
|                 } | ||||
|             } else cmbRequest.Text = dr.request; | ||||
|  | ||||
|  | ||||
|  | ||||
|             cmbPlace.Text = dr.place; | ||||
|             tbSID.Text = dr.sid; | ||||
|             tbSID.Tag = tbSID.Text; | ||||
|  | ||||
|             tbPumName.Text = dr.pumname; | ||||
|             tbPumName.Tag = tbPumName.Text; | ||||
|  | ||||
|             tbPumModel.Text = dr.pumscale; | ||||
|             tbPumQty.Text = dr.pumqty.ToString(); | ||||
|             tbPumStock.Text = "--"; | ||||
|             if (dr.IspumidxNull()) tbPumIDX.Text = "-1"; | ||||
|             else tbPumIDX.Text = dr.pumidx.ToString(); | ||||
|             tbPumPrice.Text = dr.pumprice.ToString(); | ||||
|             tbPumAmt.Text = dr.pumamt.ToString("N0");   //천단위 구분기호 추가 181222 | ||||
|             tbPumUnit.Text = dr.pumunit; | ||||
|  | ||||
|             tbSupply.Text = dr.supply; | ||||
|             tbSupply.Tag = tbSupply.Text; | ||||
|             tbSupplyIndex.Text = dr.supplyidx.ToString(); | ||||
|  | ||||
|             cmbState.Text = dr.state; | ||||
|             | ||||
|             tbBigo.Text = dr.bigo; | ||||
|  | ||||
|  | ||||
|             //일반사용자의경우에는 상태를 변경하지 못한다. | ||||
|             int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase)); | ||||
|             if (curLevel < 5) | ||||
|             { | ||||
|                 | ||||
|  | ||||
|                 cmbState.Enabled = false; | ||||
|                 if (cmbRequest.Text != "") cmbRequest.Enabled = false; | ||||
|  | ||||
|                 //데이터가 편집 상태인데 요청자가 내가 아닌경우에도 편집 불가 | ||||
|                 Boolean enb = true; | ||||
|                 if (dr.RowState == DataRowState.Unchanged && dr.request != FCOMMON.info.Login.no) | ||||
|                     enb = false; | ||||
|  | ||||
|                 if (enb == false) //일반 사용자는 쇼핑, 카드 잇으면 수정 불가 | ||||
|                 { | ||||
|                     btSave.Enabled = false; | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             this.Show(); | ||||
|             Application.DoEvents(); | ||||
|             tbPumName.Focus(); | ||||
|  | ||||
|             //이미지를 불러온다. | ||||
|             if (dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Deleted && dr.RowState != DataRowState.Added) | ||||
|             { | ||||
|                 if (dr.IspumidxNull() == false && dr.pumidx != -1) | ||||
|                 { | ||||
|                     var img = FCOMMON.DBM.GetImageData("Items", "image", dr.pumidx); | ||||
|                     if (img != null) | ||||
|                     { | ||||
|                         this.pictureBox1.Image = img; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|              | ||||
|  | ||||
|         } | ||||
|  | ||||
|         string sidTrim(string sid) | ||||
|         { | ||||
|             return sid.Replace(" ", "").Replace("-", "").Replace("_", "").Trim(); | ||||
|         } | ||||
|  | ||||
|         void ctl_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) | ||||
|             { | ||||
|                 Control ctl = sender as Control; | ||||
|                 string nm = ctl.Name.ToLower(); | ||||
|                 string search = ctl.Text.Trim(); | ||||
|  | ||||
|                 Console.WriteLine("inner keydown " + nm + ":" + search); | ||||
|  | ||||
|                 switch (nm) | ||||
|                 { | ||||
|                     case "cmbrequest": | ||||
|                         ////요청자가 마지막으로 입력한 자료의 process 를 찾아서 기입해준다. | ||||
|                         //var lastprocess = FCOMMON.DBM.getFirstValue("process", "purchase", "request like '%" + this.cmbRequest.Text + "%'", "pdate desc"); | ||||
|                         //if (lastprocess != "") cbProcess.Text = lastprocess; | ||||
|                         tbSID.Focus(); | ||||
|                         break; | ||||
|                     case "tbpumname": | ||||
|                         Lov_Item(search, false); | ||||
|                         break; | ||||
|                     case "tbproject": | ||||
|                         Lov_Project(search, false); | ||||
|                         break; | ||||
|                     case "tbsupply": | ||||
|                         Lov_Supply(search, false); | ||||
|                         break; | ||||
|                     default: | ||||
|                         SendKeys.Send("{TAB}"); | ||||
|                         break; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             Lov_Item("",true); | ||||
|         } | ||||
|  | ||||
|         void Lov_Item( string search,Boolean allowAll) | ||||
|         { | ||||
|             if (search == "" && allowAll==false) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("품명은 필수 값 입니다"); | ||||
|                 tbPumName.Focus(); | ||||
|                 return; | ||||
|             } | ||||
|             else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다. | ||||
|             { | ||||
|                 var f = new FCM0000.fLovItem(search); | ||||
|                 if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|                 { | ||||
|                     //인덱스값이 다르면 모델 및 가격을 업데이트 한다. | ||||
|                     tbPumName.Text = f.itemName; | ||||
|                     tbPumName.Tag = f.itemName; | ||||
|  | ||||
|                     this.tbPumIDX.Text = f.item.ToString(); | ||||
|                     this.tbPumModel.Text = f.itemmodel; | ||||
|                     this.tbPumPrice.Text = f.itemprice.ToString(); | ||||
|                     this.tbSID.Text = f.SID; | ||||
|                     this.tbSID.Tag = f.SID; | ||||
|                     this.tbPumUnit.Text = f.itemUnit; //181214 | ||||
|  | ||||
|                     this.tbPumModel.Enabled = false; | ||||
|                     this.tbPumUnit.Enabled = false; | ||||
|                     if (tbSID.Text != "") tbSID.Enabled = false; | ||||
|                     else tbSID.Enabled = true; | ||||
|                      | ||||
|                     //제품을 찾앗다면 suppy 등을 업데이트 해준다. | ||||
|                     var pcInfo = FCOMMON.DBM.getLastPurchaseInfo(f.item); | ||||
|                     if (pcInfo.idx != -1) | ||||
|                     { | ||||
|                         tbSupply.Text = pcInfo.supply; | ||||
|                         tbSupplyIndex.Text = pcInfo.supplyidx.ToString(); | ||||
|                        // if (pcInfo.project != "" && tbProject.Text == "") | ||||
|                            // tbProject.Text = pcInfo.project; | ||||
|                     } | ||||
|                     else | ||||
|                     { | ||||
|                         tbSupply.Text = f.itemSupply; | ||||
|                         tbSupplyIndex.Text = f.itemSupplyidx.ToString(); | ||||
|                     } | ||||
|  | ||||
|                     //display image | ||||
|                     var image = FCOMMON.DBM.GetImageData("Items", "image", int.Parse(tbPumIDX.Text)); | ||||
|                     var oimage = this.pictureBox1.Image; | ||||
|                     this.pictureBox1.Image = image; | ||||
|                     if (oimage != null) oimage.Dispose(); | ||||
|                 } | ||||
|             } | ||||
|             this.tbPumQty.Focus(); | ||||
|         } | ||||
|         void Lov_Project(string search, Boolean allowAll) | ||||
|         { | ||||
|             //if (search != "" || allowAll == true) | ||||
|             //{ | ||||
|             //    var f = new FCM0000.fLovProject(search); | ||||
|             //    if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             //    { | ||||
|             //        this.tbProject.Text = f.Title; | ||||
|             //        this.tbProject.Tag = f.Title; | ||||
|             //        this.tbProjectIndex.Text = f.Index.ToString(); | ||||
|             //        btSave.Focus(); | ||||
|             //    } | ||||
|             //    else | ||||
|             //    { | ||||
|             //        tbProject.SelectAll(); | ||||
|             //        tbProject.Focus(); | ||||
|             //    } | ||||
|             //} | ||||
|             //else this.btSave.Focus(); | ||||
|         } | ||||
|         void Lov_Supply(string search, Boolean allowAll) | ||||
|         { | ||||
|             if (search != "" || allowAll == true) | ||||
|             { | ||||
|                 FCM0000.fLovSupply f = new FCM0000.fLovSupply(search); | ||||
|                 if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|                 { | ||||
|                     tbSupply.Text = f.Title; | ||||
|                     tbSupply.Tag = f.Title; | ||||
|                     tbSupplyIndex.Text = f.Index.ToString(); | ||||
|                    // if (advInput) | ||||
|                     //    this.tbProject.Focus(); | ||||
|                     //else | ||||
|                         this.tbBigo.Focus(); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     tbSupply.Focus(); | ||||
|                     tbSupply.SelectAll(); | ||||
|                 } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                // if (advInput) | ||||
|                //     this.tbProject.Focus(); | ||||
|                // else | ||||
|                     this.tbBigo.Focus(); | ||||
|             } | ||||
|         } | ||||
|         private bool saveData() | ||||
|         { | ||||
|             this.Validate(); | ||||
|  | ||||
|             tbSID.Text = sidTrim(tbSID.Text); | ||||
|  | ||||
|             //if (cbProcess.Text.Trim() == "") | ||||
|             //{ | ||||
|             //    FCOMMON.Util.MsgE("추가정보내의 [공정]을 선택하세요."); | ||||
|             //    cbProcess.Focus(); | ||||
|             //    return false; | ||||
|             //} | ||||
|  | ||||
|              | ||||
|  | ||||
|             if (tbPumName.Text.isEmpty()) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("품명이 없습니다."); | ||||
|                 tbPumName.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|  | ||||
|             if (tbPumModel.Enabled==true && tbPumModel.Text == "") | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("제품 규격을 입력하세요."); | ||||
|                 tbPumModel.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|             if (tbPumQty.Text == "") | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("수량을 입력하세요."); | ||||
|                 tbPumQty.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|             if ( cmbPlace.SelectedIndex < 0) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("저장소를 선택하세요"); | ||||
|                 cmbPlace.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|  | ||||
|             //품목정보에 없는 데이터이므로 자료를 추가한다. | ||||
|             if(tbPumIDX.Text == "-1") | ||||
|             { | ||||
|                 var newidx = FCOMMON.DBM.addItem(tbPumName.Text, tbSID.Text, tbPumModel.Text.Trim(), decimal.Parse(tbPumPrice.Text), tbSupply.Text.Trim(), int.Parse(tbSupplyIndex.Text), null); | ||||
|                 if (newidx > 0) tbPumIDX.Text = newidx.ToString(); | ||||
|             } | ||||
|             else if(tbSID.Text != "" && tbSID.Text != tbSID.Tag.ToString()) | ||||
|             { | ||||
|                 //SID가 변경되었으므로 업데이트 해주낟. | ||||
|                 FCOMMON.DBM.UpdateItemSID(int.Parse(tbPumIDX.Text), tbSID.Text); | ||||
|             } | ||||
|  | ||||
|             //수령을 했는데. 현재 상태가 04 미만이면 04(수령)으로 변경 한다. | ||||
|             | ||||
|  | ||||
|             if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0"; | ||||
|             if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0"; | ||||
|             dr.pumqty = int.Parse(tbPumQty.Text); | ||||
|             dr.pumprice = decimal.Parse(tbPumPrice.Text); | ||||
|             dr.pumamt = dr.pumqty * dr.pumprice; | ||||
|             if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") dr.SetpumidxNull(); | ||||
|             else dr.pumidx = int.Parse(tbPumIDX.Text); | ||||
|             dr.sid = tbSID.Text.Trim();  | ||||
|  | ||||
|             dr.pdate = this.dtPdate.Value.ToShortDateString(); | ||||
|             dr.place = cmbPlace.Text; | ||||
|  | ||||
|             dr.gcode = FCOMMON.info.Login.gcode; | ||||
|             if (cmbRequest.Text.IndexOf("]") != -1) | ||||
|                 dr.request = cmbRequest.Text.Substring(1, cmbRequest.Text.IndexOf("]") - 1); | ||||
|             else | ||||
|                 dr.request = cmbRequest.Text.Trim(); | ||||
|  | ||||
|             dr.sid = tbSID.Text; | ||||
|             dr.pumname = tbPumName.Text; | ||||
|             dr.pumname = dr.pumname.Replace("*", "x");  //181031 | ||||
|             dr.pumscale = tbPumModel.Text; | ||||
|             dr.pumscale = dr.pumscale.Replace("*", "x");  //181031 | ||||
|             dr.pumunit = tbPumUnit.Text; | ||||
|             dr.supply = tbSupply.Text; | ||||
|  | ||||
|             if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull(); | ||||
|             else dr.supplyidx = int.Parse(tbSupplyIndex.Text); | ||||
|  | ||||
|             dr.state = cmbState.Text.Trim(); | ||||
|             dr.bigo = tbBigo.Text; | ||||
|  | ||||
|             //품정보가 업데이트 되어있으면 해당 데이터의 이미지를 업데이트 한다.(크기비교) | ||||
|             //품정보가 없다면 그대로 생성을 해준다. | ||||
|             if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") | ||||
|             { | ||||
|  | ||||
|                 //아이템을 추가해야하낟. | ||||
|                 byte[] pic = null; | ||||
|                 if (this.pictureBox1.Image != null && this.pictureBox1.Tag.ToString() == "U") | ||||
|                 { | ||||
|                     //이미지를 변경해줘야 한다. | ||||
|                     pic = FCOMMON.DBM.getImagByteArray(this.pictureBox1.Image); | ||||
|                 } | ||||
|                 var newidx = FCOMMON.DBM.addItem(dr.pumname, dr.sid, dr.pumscale, dr.pumprice, dr.supply, dr.supplyidx, pic); | ||||
|                 if (newidx != -1) | ||||
|                 { | ||||
|                     dr.pumidx = newidx; | ||||
|                     Console.WriteLine("new pumidx set = " + dr.pumidx.ToString()); | ||||
|                 } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 //아이템을 추가해야한다(변경된 이름은  | ||||
|                 if (this.pictureBox1.Image != null && this.pictureBox1.Tag.ToString() == "U") | ||||
|                 { | ||||
|                     //이미지를 변경해줘야 한다. | ||||
|                     FCOMMON.DBM.setImageData(this.pictureBox1.Image, "Items", "image", dr.pumidx); | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             dr.EndEdit(); | ||||
|  | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         private void button1_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if (!saveData()) return; | ||||
|             DialogResult = System.Windows.Forms.DialogResult.OK; | ||||
|         } | ||||
|  | ||||
|         private void chkInDate_CheckedChanged(object sender, EventArgs e) | ||||
|         { | ||||
|           //  this.dtInDate.Enabled = chkInDate.Checked; | ||||
|         } | ||||
|  | ||||
|         private void chkExp_CheckedChanged(object sender, EventArgs e) | ||||
|         { | ||||
|            // this.dtExpDate.Enabled = chkExp.Checked; | ||||
|         } | ||||
|  | ||||
|         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) | ||||
|         { | ||||
|             //string code = ""; | ||||
|             //if (cmbState.SelectedIndex < 0) label3.Text = "--"; | ||||
|             //else | ||||
|             //{ | ||||
|             //    //var value = cmbState.DataSource as BindingSource; | ||||
|             //    //var list = value.DataSource as Dictionary<string, string>; | ||||
|             //    //var item = list.Values | ||||
|             //    if (cmbState.Text.StartsWith("[") == false) return; | ||||
|             //    code = cmbState.Text.ToString().Substring(1, 2); | ||||
|             //    var desc = FCOMMON.DBM.getCodeSavlue("04", code); | ||||
|             //    label3.Text = desc; | ||||
|  | ||||
|             //} | ||||
|             //switch (code) | ||||
|             //{ | ||||
|             //    case "01": | ||||
|             //        label3.BackColor = Color.LightBlue; | ||||
|             //        break; | ||||
|             //    case "02": | ||||
|             //        label3.BackColor = Color.SkyBlue; | ||||
|             //        break; | ||||
|             //    case "03": | ||||
|             //        label3.BackColor = Color.Yellow; | ||||
|             //        break; | ||||
|             //    case "04": | ||||
|             //        label3.BackColor = Color.Green; | ||||
|             //        break; | ||||
|             //    case "06": | ||||
|             //    case "05": | ||||
|             //        label3.BackColor = Color.Red; | ||||
|             //        break; | ||||
|             //    case "07": | ||||
|             //        label3.BackColor = Color.Magenta; | ||||
|             //        break; | ||||
|             //    default: | ||||
|             //        label3.BackColor = Color.LightGray; | ||||
|             //        break; | ||||
|             //} | ||||
|  | ||||
|         } | ||||
|  | ||||
|         private void button2_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if (!saveData()) return; | ||||
|             this.repeatAdd = true; | ||||
|             DialogResult = System.Windows.Forms.DialogResult.OK; | ||||
|         } | ||||
|  | ||||
|         private void tbPumQty_TextChanged(object sender, EventArgs e) | ||||
|         { | ||||
|             var strQty = this.tbPumQty.Text; | ||||
|             var strPrice = this.tbPumPrice.Text; | ||||
|  | ||||
|             int qty = 0; | ||||
|             double price = 0; | ||||
|             if (strQty.IsNumeric()) qty = int.Parse(strQty); | ||||
|             if (strPrice.IsNumeric()) price = double.Parse(strPrice); | ||||
|             double amt = price * qty; | ||||
|             tbPumAmt.Text = amt.ToString("N0"); | ||||
|         } | ||||
|  | ||||
|         private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             string path = "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년"; | ||||
|             FCOMMON.Util.RunExplorer(path); | ||||
|         } | ||||
|  | ||||
|         private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             OpenFileDialog od = new OpenFileDialog(); | ||||
|             if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; | ||||
|             var image = Image.FromFile(od.FileName); | ||||
|             var oimage = this.pictureBox1.Image; | ||||
|             this.pictureBox1.Image = image; | ||||
|             this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; | ||||
|             this.pictureBox1.Tag = "U"; | ||||
|             if (oimage != null) oimage.Dispose(); | ||||
|         } | ||||
|  | ||||
|         private void imgpase_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             if (!Clipboard.ContainsImage()) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("이미지를 먼저 클립보드에 복사 하세요."); | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             var image = Clipboard.GetImage(); | ||||
|             var oimage = this.pictureBox1.Image; | ||||
|             this.pictureBox1.Image = image; | ||||
|             this.pictureBox1.Tag = "U"; | ||||
|             if (oimage != null) oimage.Dispose(); | ||||
|         } | ||||
|  | ||||
|         private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             FCOMMON.fWebCamera f = new FCOMMON.fWebCamera(FCOMMON.info.camIndex); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 var bmp = f.bmp.Clone(); | ||||
|                 Application.DoEvents(); | ||||
|                 var oimag = this.pictureBox1.Image; | ||||
|                 this.pictureBox1.Image = (Image)bmp; | ||||
|                 if (oimag != null) oimag.Dispose(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void cbEQManu_SelectedIndexChanged(object sender, EventArgs e) | ||||
|         { | ||||
|             //string 원본모델 = cbEQModel.Text; | ||||
|  | ||||
|             ////장비모델 필터를 변경해준다. | ||||
|             //if (cbEQManu.SelectedIndex < 0) | ||||
|             //{ | ||||
|             //    cbEQModel.SelectedIndex = -1; | ||||
|             //    return; | ||||
|             //} | ||||
|  | ||||
|             //string filter = "svalue='" + cbEQManu.Text.Replace("'", "''") + "'"; | ||||
|             //bsModel.Filter = filter; | ||||
|             //if (원본모델 != "") cbEQModel.Text = 원본모델; | ||||
|             //else cbEQModel.SelectedIndex = -1; | ||||
|         } | ||||
|  | ||||
|         private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             //lov 공급처 | ||||
|             Lov_Supply("", true); | ||||
|         } | ||||
|  | ||||
|         private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             //lov 프로젝트 | ||||
|             Lov_Project("", true); | ||||
|         } | ||||
|  | ||||
|         void tbProject_Leave(object sender, EventArgs e) | ||||
|         { | ||||
|             //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다. | ||||
|             //var tb = sender as TextBox; | ||||
|             //if (tb.Text == "") tbProjectIndex.Text = "-1"; | ||||
|             //else if (tb.Text != tb.Tag.ToString()) tbProjectIndex.Text = "-1"; | ||||
|         } | ||||
|  | ||||
|         void tbSupply_Leave(object sender, EventArgs e) | ||||
|         { | ||||
|             //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다.\ | ||||
|             var tb = sender as TextBox; | ||||
|             if (tb.Text == "") tbSupplyIndex.Text = "-1"; | ||||
|             else if (tb.Text != tb.Tag.ToString()) tbSupplyIndex.Text = "-1"; | ||||
|         } | ||||
|  | ||||
|         void tbPumName_Leave(object sender, EventArgs e) | ||||
|         { | ||||
|             //커서를 빠져나갈떄 사용자가 이름만 변경했다면 선택 idx를 제거해준다. | ||||
|             var tb = sender as TextBox; | ||||
|             if (tb.Text == "") tbPumIDX.Text = "-1"; | ||||
|             else if (tb.Text != tb.Tag.ToString()) tbPumIDX.Text = "-1"; | ||||
|             if(tbPumIDX.Text =="-1") | ||||
|             { | ||||
|                 tbPumModel.Enabled = true; | ||||
|                 tbPumUnit.Enabled = true; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										165
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										165
									
								
								SubProject/FEQ0000/Purchase/fPurchase_AddS.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,165 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="pumscaleLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="pumqtyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="pumpriceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="pumamtLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="deptLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label6.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>490, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>17, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="purchaseBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>131, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="purchaseTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>313, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>58</value> | ||||
|   </metadata> | ||||
| </root> | ||||
							
								
								
									
										87
									
								
								SubProject/FEQ0000/dsPurchase.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										87
									
								
								SubProject/FEQ0000/dsPurchase.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -347,6 +347,8 @@ namespace FEQ0000 { | ||||
|              | ||||
|             private global::System.Data.DataColumn columnrequestName; | ||||
|              | ||||
|             private global::System.Data.DataColumn columnplace; | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public PurchaseDataTable() { | ||||
| @@ -652,6 +654,14 @@ namespace FEQ0000 { | ||||
|                 } | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public global::System.Data.DataColumn placeColumn { | ||||
|                 get { | ||||
|                     return this.columnplace; | ||||
|                 } | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             [global::System.ComponentModel.Browsable(false)] | ||||
| @@ -722,7 +732,8 @@ namespace FEQ0000 { | ||||
|                         string orderno,  | ||||
|                         string gcode,  | ||||
|                         string receiveName,  | ||||
|                         string requestName) { | ||||
|                         string requestName,  | ||||
|                         string place) { | ||||
|                 PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow())); | ||||
|                 object[] columnValuesArray = new object[] { | ||||
|                         null, | ||||
| @@ -758,7 +769,8 @@ namespace FEQ0000 { | ||||
|                         orderno, | ||||
|                         gcode, | ||||
|                         receiveName, | ||||
|                         requestName}; | ||||
|                         requestName, | ||||
|                         place}; | ||||
|                 rowPurchaseRow.ItemArray = columnValuesArray; | ||||
|                 this.Rows.Add(rowPurchaseRow); | ||||
|                 return rowPurchaseRow; | ||||
| @@ -822,6 +834,7 @@ namespace FEQ0000 { | ||||
|                 this.columngcode = base.Columns["gcode"]; | ||||
|                 this.columnreceiveName = base.Columns["receiveName"]; | ||||
|                 this.columnrequestName = base.Columns["requestName"]; | ||||
|                 this.columnplace = base.Columns["place"]; | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
| @@ -895,6 +908,8 @@ namespace FEQ0000 { | ||||
|                 base.Columns.Add(this.columnreceiveName); | ||||
|                 this.columnrequestName = new global::System.Data.DataColumn("requestName", typeof(string), null, global::System.Data.MappingType.Element); | ||||
|                 base.Columns.Add(this.columnrequestName); | ||||
|                 this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element); | ||||
|                 base.Columns.Add(this.columnplace); | ||||
|                 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { | ||||
|                                 this.columnidx}, true)); | ||||
|                 this.columnidx.AutoIncrement = true; | ||||
| @@ -932,6 +947,7 @@ namespace FEQ0000 { | ||||
|                 this.columnreceiveName.MaxLength = 200; | ||||
|                 this.columnrequestName.ReadOnly = true; | ||||
|                 this.columnrequestName.MaxLength = 200; | ||||
|                 this.columnplace.MaxLength = 20; | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
| @@ -1596,6 +1612,22 @@ namespace FEQ0000 { | ||||
|                 } | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public string place { | ||||
|                 get { | ||||
|                     if (this.IsplaceNull()) { | ||||
|                         return string.Empty; | ||||
|                     } | ||||
|                     else { | ||||
|                         return ((string)(this[this.tablePurchase.placeColumn])); | ||||
|                     } | ||||
|                 } | ||||
|                 set { | ||||
|                     this[this.tablePurchase.placeColumn] = value; | ||||
|                 } | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public bool IspdateNull() { | ||||
| @@ -1955,6 +1987,18 @@ namespace FEQ0000 { | ||||
|             public void SetrequestNameNull() { | ||||
|                 this[this.tablePurchase.requestNameColumn] = global::System.Convert.DBNull; | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public bool IsplaceNull() { | ||||
|                 return this.IsNull(this.tablePurchase.placeColumn); | ||||
|             } | ||||
|              | ||||
|             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||
|             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||||
|             public void SetplaceNull() { | ||||
|                 this[this.tablePurchase.placeColumn] = global::System.Convert.DBNull; | ||||
|             } | ||||
|         } | ||||
|          | ||||
|         /// <summary> | ||||
| @@ -2150,6 +2194,7 @@ namespace FEQ0000.dsPurchaseTableAdapters { | ||||
|             tableMapping.ColumnMappings.Add("gcode", "gcode"); | ||||
|             tableMapping.ColumnMappings.Add("receiveName", "receiveName"); | ||||
|             tableMapping.ColumnMappings.Add("requestName", "requestName"); | ||||
|             tableMapping.ColumnMappings.Add("place", "place"); | ||||
|             this._adapter.TableMappings.Add(tableMapping); | ||||
|             this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); | ||||
|             this._adapter.DeleteCommand.Connection = this.Connection; | ||||
| @@ -2160,8 +2205,8 @@ namespace FEQ0000.dsPurchaseTableAdapters { | ||||
|             this._adapter.InsertCommand.Connection = this.Connection; | ||||
|             this._adapter.InsertCommand.CommandText = @"INSERT INTO Purchase | ||||
|                (pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate,  | ||||
|                import, pumidx, isdel, bigo, manuproc, orderno, gcode) | ||||
| VALUES  (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode);    | ||||
|                import, pumidx, isdel, bigo, manuproc, orderno, gcode, place) | ||||
| VALUES  (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode,@place);     | ||||
| SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC"; | ||||
|             this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
| @@ -2187,7 +2232,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
| @@ -2195,14 +2240,15 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); | ||||
|             this._adapter.UpdateCommand.Connection = this.Connection; | ||||
|             this._adapter.UpdateCommand.CommandText = @"UPDATE Purchase | ||||
| SET        pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit,  | ||||
|                pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate,  | ||||
|                indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc,  | ||||
|                orderno = @orderno | ||||
| WHERE  (idx = @Original_idx);    | ||||
|                orderno = @orderno, place = @place | ||||
| WHERE  (idx = @Original_idx);     | ||||
| SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC"; | ||||
|             this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
| @@ -2228,13 +2274,14 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@po", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "po", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pumidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "pumidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isdel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "isdel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bigo", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "bigo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manuproc", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "manuproc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderno", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "orderno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); | ||||
|             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); | ||||
|         } | ||||
| @@ -2253,7 +2300,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, | ||||
|             this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); | ||||
|             this._commandCollection[0].Connection = this.Connection; | ||||
|             this._commandCollection[0].CommandText = @"SELECT  idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty,  | ||||
|                pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode | ||||
|                pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place | ||||
| FROM     Purchase | ||||
| WHERE  (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) | ||||
| ORDER BY pdate DESC, idx DESC"; | ||||
| @@ -2271,7 +2318,7 @@ ORDER BY pdate DESC, idx DESC"; | ||||
|             this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); | ||||
|             this._commandCollection[2].Connection = this.Connection; | ||||
|             this._commandCollection[2].CommandText = @"SELECT  idx, asset, bigo, dept, edate, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive,  | ||||
|                request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode | ||||
|                request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode, place | ||||
| FROM     Purchase | ||||
| WHERE  (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) | ||||
| ORDER BY pdate DESC, idx DESC"; | ||||
| @@ -2463,7 +2510,8 @@ ORDER BY pdate DESC, idx DESC"; | ||||
|                     string bigo,  | ||||
|                     string manuproc,  | ||||
|                     string orderno,  | ||||
|                     string gcode) { | ||||
|                     string gcode,  | ||||
|                     string place) { | ||||
|             if ((pdate == null)) { | ||||
|                 this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; | ||||
|             } | ||||
| @@ -2645,6 +2693,12 @@ ORDER BY pdate DESC, idx DESC"; | ||||
|             else { | ||||
|                 this.Adapter.InsertCommand.Parameters[30].Value = ((string)(gcode)); | ||||
|             } | ||||
|             if ((place == null)) { | ||||
|                 this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value; | ||||
|             } | ||||
|             else { | ||||
|                 this.Adapter.InsertCommand.Parameters[31].Value = ((string)(place)); | ||||
|             } | ||||
|             global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; | ||||
|             if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)  | ||||
|                         != global::System.Data.ConnectionState.Open)) { | ||||
| @@ -2696,6 +2750,7 @@ ORDER BY pdate DESC, idx DESC"; | ||||
|                     string bigo,  | ||||
|                     string manuproc,  | ||||
|                     string orderno,  | ||||
|                     string place,  | ||||
|                     int Original_idx,  | ||||
|                     int idx) { | ||||
|             if ((pdate == null)) { | ||||
| @@ -2873,8 +2928,14 @@ ORDER BY pdate DESC, idx DESC"; | ||||
|             else { | ||||
|                 this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(orderno)); | ||||
|             } | ||||
|             this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idx)); | ||||
|             this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(idx)); | ||||
|             if ((place == null)) { | ||||
|                 this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; | ||||
|             } | ||||
|             else { | ||||
|                 this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(place)); | ||||
|             } | ||||
|             this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_idx)); | ||||
|             this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(idx)); | ||||
|             global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; | ||||
|             if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)  | ||||
|                         != global::System.Data.ConnectionState.Open)) { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
|         <Tables> | ||||
|           <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PurchaseTableAdapter" GeneratorDataComponentClassName="PurchaseTableAdapter" Name="Purchase" UserDataComponentName="PurchaseTableAdapter"> | ||||
|             <MainSource> | ||||
|               <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Purchase" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> | ||||
|               <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Purchase" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> | ||||
|                 <DeleteCommand> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="false"> | ||||
|                     <CommandText>UPDATE Purchase | ||||
| @@ -21,101 +21,103 @@ WHERE  (idx = @Original_idx)</CommandText> | ||||
|                   </DbCommand> | ||||
|                 </DeleteCommand> | ||||
|                 <InsertCommand> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="false"> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="true"> | ||||
|                     <CommandText>INSERT INTO Purchase | ||||
|                (pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate,  | ||||
|                import, pumidx, isdel, bigo, manuproc, orderno, gcode) | ||||
| VALUES  (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode);    | ||||
|                import, pumidx, isdel, bigo, manuproc, orderno, gcode, place) | ||||
| VALUES  (@pdate,@state,@process,@receive,@sc,@request,@sid,@pumname,@pumscale,@pumunit,@pumqty,@pumprice,@pumamt,@supply,@supplyidx,@project,@projectidx,@asset,@edate,@indate,@po,@dept,@wuid,@wdate,@import,@pumidx,@isdel,@bigo,@manuproc,@orderno,@gcode,@place);     | ||||
| SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, idx DESC</CommandText> | ||||
|                     <Parameters> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="EE.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="EE.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="EE.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="EE.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="EE.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="EE.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="place" ColumnName="place" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                     </Parameters> | ||||
|                   </DbCommand> | ||||
|                 </InsertCommand> | ||||
|                 <SelectCommand> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="false"> | ||||
|                     <CommandText>SELECT  idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty,  | ||||
|                pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode | ||||
|                pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place | ||||
| FROM     Purchase | ||||
| WHERE  (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) | ||||
| ORDER BY pdate DESC, idx DESC</CommandText> | ||||
|                     <Parameters> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                     </Parameters> | ||||
|                   </DbCommand> | ||||
|                 </SelectCommand> | ||||
|                 <UpdateCommand> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="false"> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="true"> | ||||
|                     <CommandText>UPDATE Purchase | ||||
| SET        pdate = @pdate, state = @state, process = @process, receive = @receive, sc = @sc, request = @request, sid = @sid, pumname = @pumname, pumscale = @pumscale, pumunit = @pumunit,  | ||||
|                pumqty = @pumqty, pumprice = @pumprice, pumamt = @pumamt, supply = @supply, supplyidx = @supplyidx, project = @project, projectidx = @projectidx, asset = @asset, edate = @edate,  | ||||
|                indate = @indate, po = @po, dept = @dept, wuid = @wuid, wdate = @wdate, import = @import, pumidx = @pumidx, isdel = @isdel, bigo = @bigo, manuproc = @manuproc,  | ||||
|                orderno = @orderno | ||||
| WHERE  (idx = @Original_idx);    | ||||
|                orderno = @orderno, place = @place | ||||
| WHERE  (idx = @Original_idx);     | ||||
| SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DESC</CommandText> | ||||
|                     <Parameters> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="state" ColumnName="state" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@state" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="state" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="process" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@process" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="process" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="receive" ColumnName="receive" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@receive" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="receive" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sc" ColumnName="sc" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(30)" DbType="AnsiString" Direction="Input" ParameterName="@sc" Precision="0" ProviderType="VarChar" Scale="0" Size="30" SourceColumn="sc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="request" ColumnName="request" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumname" ColumnName="pumname" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@pumname" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="pumname" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumscale" ColumnName="pumscale" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@pumscale" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="pumscale" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumunit" ColumnName="pumunit" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@pumunit" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="pumunit" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumqty" ColumnName="pumqty" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumqty" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumqty" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumprice" ColumnName="pumprice" DataSourceName="EE.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumprice" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumprice" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumamt" ColumnName="pumamt" DataSourceName="EE.dbo.Purchase" DataTypeServer="decimal(18, 0)" DbType="Decimal" Direction="Input" ParameterName="@pumamt" Precision="18" ProviderType="Decimal" Scale="0" Size="9" SourceColumn="pumamt" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supply" ColumnName="supply" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@supply" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="supply" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="supplyidx" ColumnName="supplyidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@supplyidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="supplyidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="project" ColumnName="project" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@project" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="project" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="projectidx" ColumnName="projectidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@projectidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="projectidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="asset" ColumnName="asset" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="po" ColumnName="po" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@po" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="po" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="EE.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="import" ColumnName="import" DataSourceName="EE.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@import" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="import" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="pumidx" ColumnName="pumidx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pumidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="pumidx" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="isdel" ColumnName="isdel" DataSourceName="EE.dbo.Purchase" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@isdel" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="isdel" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="bigo" ColumnName="bigo" DataSourceName="EE.dbo.Purchase" DataTypeServer="nvarchar(500)" DbType="String" Direction="Input" ParameterName="@bigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumn="bigo" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="manuproc" ColumnName="manuproc" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@manuproc" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="manuproc" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="true" AutogeneratedName="place" ColumnName="place" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> | ||||
|                       <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Purchase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> | ||||
|                     </Parameters> | ||||
|                   </DbCommand> | ||||
|                 </UpdateCommand> | ||||
| @@ -156,6 +158,7 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, | ||||
|               <Mapping SourceColumn="gcode" DataSetColumn="gcode" /> | ||||
|               <Mapping SourceColumn="receiveName" DataSetColumn="receiveName" /> | ||||
|               <Mapping SourceColumn="requestName" DataSetColumn="requestName" /> | ||||
|               <Mapping SourceColumn="place" DataSetColumn="place" /> | ||||
|             </Mappings> | ||||
|             <Sources> | ||||
|               <DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteImport" Modifier="Public" Name="DeleteImport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteImport"> | ||||
| @@ -182,7 +185,7 @@ WHERE  (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gc | ||||
|                 <SelectCommand> | ||||
|                   <DbCommand CommandType="Text" ModifiedByUser="true"> | ||||
|                     <CommandText>SELECT  idx, asset, bigo, dept, edate, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive,  | ||||
|                request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode | ||||
|                request, sc, sid, state, supply, supplyidx, wdate, wuid, dbo.getUserName(receive) AS receiveName, dbo.getUserName(request) AS requestName, gcode, place | ||||
| FROM     Purchase | ||||
| WHERE  (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) | ||||
| ORDER BY pdate DESC, idx DESC</CommandText> | ||||
| @@ -204,7 +207,7 @@ ORDER BY pdate DESC, idx DESC</CommandText> | ||||
|   <xs:element name="dsPurchase" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPurchase" msprop:Generator_UserDSName="dsPurchase"> | ||||
|     <xs:complexType> | ||||
|       <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||||
|         <xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent" msprop:Generator_RowClassName="PurchaseRow"> | ||||
|         <xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_RowClassName="PurchaseRow" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent"> | ||||
|           <xs:complexType> | ||||
|             <xs:sequence> | ||||
|               <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> | ||||
| @@ -385,6 +388,13 @@ ORDER BY pdate DESC, idx DESC</CommandText> | ||||
|                   </xs:restriction> | ||||
|                 </xs:simpleType> | ||||
|               </xs:element> | ||||
|               <xs:element name="place" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="place" msprop:Generator_ColumnVarNameInTable="columnplace" msprop:Generator_ColumnPropNameInTable="placeColumn" msprop:Generator_UserColumnName="place" minOccurs="0"> | ||||
|                 <xs:simpleType> | ||||
|                   <xs:restriction base="xs:string"> | ||||
|                     <xs:maxLength value="20" /> | ||||
|                   </xs:restriction> | ||||
|                 </xs:simpleType> | ||||
|               </xs:element> | ||||
|             </xs:sequence> | ||||
|           </xs:complexType> | ||||
|         </xs:element> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chikyun.kim
					chikyun.kim