pm 용 구매 업데이트 기능 추가

This commit is contained in:
chi
2023-10-15 21:00:04 +09:00
parent b6291f2bd0
commit bf4852d84b
39 changed files with 2115 additions and 1342 deletions

View File

@@ -51,19 +51,20 @@
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -132,9 +133,9 @@
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.tbRequest = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel();
this.tbManager = new System.Windows.Forms.ToolStripTextBox();
this.cmbManager = new System.Windows.Forms.ToolStripComboBox();
this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
this.tbAdmin = new System.Windows.Forms.ToolStripTextBox();
this.cmbAdmin = new System.Windows.Forms.ToolStripComboBox();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.btSearch = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
@@ -299,8 +300,8 @@
this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image")));
this.btAdd.Name = "btAdd";
this.btAdd.RightToLeftAutoMirrorImage = true;
this.btAdd.Size = new System.Drawing.Size(67, 23);
this.btAdd.Text = "추가(&A)";
this.btAdd.Size = new System.Drawing.Size(91, 23);
this.btAdd.Text = "구매입력(&A)";
this.btAdd.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
//
// btCopy
@@ -627,9 +628,9 @@
this.toolStripLabel3,
this.tbRequest,
this.toolStripLabel6,
this.tbManager,
this.cmbManager,
this.toolStripLabel7,
this.tbAdmin,
this.cmbAdmin,
this.toolStripSeparator4,
this.btSearch,
this.toolStripSeparator5,
@@ -741,13 +742,11 @@
this.toolStripLabel6.Size = new System.Drawing.Size(55, 34);
this.toolStripLabel6.Text = "구매담당";
//
// tbManager
// cmbManager
//
this.tbManager.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbManager.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbManager.Name = "tbManager";
this.tbManager.Size = new System.Drawing.Size(70, 37);
this.tbManager.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.cmbManager.Name = "cmbManager";
this.cmbManager.Size = new System.Drawing.Size(75, 37);
this.cmbManager.Text = "65";
//
// toolStripLabel7
//
@@ -755,13 +754,11 @@
this.toolStripLabel7.Size = new System.Drawing.Size(55, 34);
this.toolStripLabel7.Text = "구매승인";
//
// tbAdmin
// cmbAdmin
//
this.tbAdmin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbAdmin.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbAdmin.Name = "tbAdmin";
this.tbAdmin.Size = new System.Drawing.Size(70, 37);
this.tbAdmin.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.cmbAdmin.Name = "cmbAdmin";
this.cmbAdmin.Size = new System.Drawing.Size(75, 37);
this.cmbAdmin.Text = "66";
//
// toolStripSeparator4
//
@@ -892,13 +889,13 @@
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 = 38;
this.fpSpread1_Sheet1.ColumnCount = 39;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "요청\r\n검사";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "구매\r\n검사";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).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 = "Storage";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "공정";
@@ -918,22 +915,23 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "수량\r\n(요청)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "수량\r\n(구매)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "단위";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단가($)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "단가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "합계금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "공급업체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "비고\r\n(요청자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "입고예정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "입고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "입고수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 34).Value = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "구매담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "구매승인";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "단가\r\n(해외)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "통화";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "단가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "합계금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "공급업체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 29).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 30).Value = "비고\r\n(요청자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 31).Value = "입고예정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 32).Value = "입고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 33).Value = "입고수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 34).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "구매담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "구매승인";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 38).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1";
@@ -948,7 +946,7 @@
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "등록일";
this.fpSpread1_Sheet1.Columns.Get(2).Label = "구매신청일";
this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F;
@@ -1084,8 +1082,14 @@
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "단가($)";
this.fpSpread1_Sheet1.Columns.Get(22).Label = "단가\r\n(해외)";
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "currency";
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F;
numberCellType5.DecimalPlaces = 0;
numberCellType5.MaximumValue = 9999999999999.99D;
numberCellType5.MinimumValue = -9999999999999.99D;
@@ -1094,12 +1098,12 @@
numberCellType5.Separator = ",";
numberCellType5.ShowSeparator = true;
numberCellType5.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(23).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(23).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(24).Width = 51F;
numberCellType6.DecimalPlaces = 0;
numberCellType6.MaximumValue = 9999999999999.99D;
numberCellType6.MinimumValue = -9999999999999.99D;
@@ -1108,102 +1112,102 @@
numberCellType6.Separator = ",";
numberCellType6.ShowSeparator = true;
numberCellType6.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(24).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(25).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(26).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(26).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "supply";
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).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(27).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType7.DecimalPlaces = 0;
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType7.MaximumValue = 2147483647D;
numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(26).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(27).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "프로젝트";
this.fpSpread1_Sheet1.Columns.Get(27).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(27).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(28).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(28).Label = "프로젝트";
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType8.DecimalPlaces = 0;
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType8.MaximumValue = 2147483647D;
numberCellType8.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(28).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(28).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(29).Label = "비고\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(29).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(29).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(29).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(30).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(30).Label = "비고\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(30).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType20;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(31).Label = "입고";
this.fpSpread1_Sheet1.Columns.Get(31).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(31).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(31).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(32).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F;
numberCellType9.DecimalPlaces = 0;
numberCellType9.NegativeRed = true;
numberCellType9.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "inqty";
this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고수량";
this.fpSpread1_Sheet1.Columns.Get(32).Tag = "inqty";
this.fpSpread1_Sheet1.Columns.Get(32).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(33).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(33).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(33).DataField = "inqty";
this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(33).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(33).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(33).Label = "입고수량";
this.fpSpread1_Sheet1.Columns.Get(33).Tag = "inqty";
this.fpSpread1_Sheet1.Columns.Get(33).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(33).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(34).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(34).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(34).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(34).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(34).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(34).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(34).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(35).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(35).DataField = "purchase_manager";
this.fpSpread1_Sheet1.Columns.Get(35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(35).Label = "구매담당";
this.fpSpread1_Sheet1.Columns.Get(35).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(35).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(35).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(36).DataField = "purchase_admin";
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(36).DataField = "purchase_manager";
this.fpSpread1_Sheet1.Columns.Get(36).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(36).Label = "구매승인";
this.fpSpread1_Sheet1.Columns.Get(36).Label = "구매담당";
this.fpSpread1_Sheet1.Columns.Get(36).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(37).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(37).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(37).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(37).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(37).DataField = "purchase_admin";
this.fpSpread1_Sheet1.Columns.Get(37).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(37).Label = "구매승인";
this.fpSpread1_Sheet1.Columns.Get(37).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(38).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(38).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(38).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(38).Width = 51F;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
@@ -1322,8 +1326,8 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ToolStripLabel toolStripLabel6;
private System.Windows.Forms.ToolStripLabel toolStripLabel7;
private System.Windows.Forms.ToolStripTextBox tbManager;
private System.Windows.Forms.ToolStripTextBox tbAdmin;
private System.Windows.Forms.ToolStripComboBox cmbManager;
private System.Windows.Forms.ToolStripComboBox cmbAdmin;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}

View File

@@ -13,6 +13,7 @@ using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
namespace FEQ0000
{
@@ -110,6 +111,7 @@ namespace FEQ0000
this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString();
this.dtED.Text = DateTime.Now.AddDays(10).ToShortDateString();
//state list
var stList = FCOMMON.DBM.getCodeList("04");
this.cmbState.Items.Clear();
@@ -118,7 +120,24 @@ namespace FEQ0000
cmbState.Items.Add(item.Value);
cmbState.Items.Add("<=Received");
this.cmbState.SelectedIndex = 0; //all기본 - 양진원
//this.cmbCr.SelectedIndex = 1;
//this.cmbCr.SelectedIndex = 1;
//구매-담당
stList = FCOMMON.DBM.getCodeList("65");
this.cmbManager.Items.Clear();
cmbManager.Items.Add("-- 전체 --");
foreach (var item in stList)
cmbManager.Items.Add(item.Value);
this.cmbManager.SelectedIndex = 0;
//구매-승인
stList = FCOMMON.DBM.getCodeList("66");
this.cmbAdmin.Items.Clear();
cmbAdmin.Items.Add("-- 전체 --");
foreach (var item in stList)
cmbAdmin.Items.Add(item.Value);
this.cmbAdmin.SelectedIndex = 0;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
@@ -198,13 +217,13 @@ namespace FEQ0000
cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)";
}
if (tbManager.Text.isEmpty() == false)
if (cmbManager.SelectedIndex != 0 && cmbManager.Text.isEmpty() == false)
{
cmd.CommandText += $" and purchase_manager like '%{tbManager.Text.Replace("'", "''")}%'";
cmd.CommandText += $" and purchase_manager like '%{cmbManager.Text.Replace("'", "''")}%'";
}
if (tbAdmin.Text.isEmpty() == false)
if (cmbAdmin.SelectedIndex != 0 && cmbAdmin.Text.isEmpty() == false)
{
cmd.CommandText += $" and purchase_admin like '%{tbAdmin.Text.Replace("'", "''")}%'";
cmd.CommandText += $" and purchase_admin like '%{cmbAdmin.Text.Replace("'", "''")}%'";
}
if (cmbState.SelectedIndex != 0)
@@ -449,12 +468,14 @@ namespace FEQ0000
else
newdr.request = FCOMMON.info.Login.no;
var t1 = DBM.getCodeByCode("65", "01");
var t2 = DBM.getCodeByCode("66", "01");
newdr.purchase_manager = t1.title;
newdr.purchase_admin = t2.title;
var t1 = DBM.getCodeList("65");
var t2 = DBM.getCodeList("66");
if (t1.Count == 1)
newdr.purchase_manager = t1.First().Value;
if (t2.Count == 1)
newdr.purchase_admin = t2.First().Value;
repeat:
repeat:
bool repeat = false;
DialogResult dlg;
@@ -831,6 +852,12 @@ namespace FEQ0000
newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no;
newdr.state = "---";
if (newdr.sid.Length != 9 && newdr.sid.StartsWith("10") == false)
newdr.sid = string.Empty;
newdr.bigo = string.Empty;
newdr.bigo2 = string.Empty;
newdr.request = FCOMMON.info.Login.no;
newdr.receive = "";// FCOMMON.info.Login.nameK;
newdr.sc = string.Empty;
@@ -1069,8 +1096,18 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
string path = "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년";
FCOMMON.Util.RunExplorer(path);
var datapath = FCOMMON.DBM.getCodeSvalue("55", "02");
if (datapath.isEmpty())
{
FCOMMON.Util.MsgE("견적서 기본폴더 공용코드 55-02 값을 입력하세요");
return;
}
string path = System.IO.Path.Combine(datapath, DateTime.Now.Year.ToString("0000") + "년");// "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년";
if (System.IO.Directory.Exists(path) == false)
FCOMMON.Util.RunExplorer(datapath);
else
FCOMMON.Util.RunExplorer(path);
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)

View File

@@ -49,7 +49,6 @@
System.Windows.Forms.Label label6;
System.Windows.Forms.Label label7;
System.Windows.Forms.Label label8;
System.Windows.Forms.Label label9;
System.Windows.Forms.Label label10;
System.Windows.Forms.Label label11;
System.Windows.Forms.Label label12;
@@ -58,6 +57,8 @@
System.Windows.Forms.Label label15;
System.Windows.Forms.Label label16;
System.Windows.Forms.Label label17;
System.Windows.Forms.Label label9;
System.Windows.Forms.Label label18;
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbPumName = new System.Windows.Forms.TextBox();
@@ -84,6 +85,7 @@
this.chkExp = new System.Windows.Forms.CheckBox();
this.btSaveAdd = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cmbCurrency = new System.Windows.Forms.ComboBox();
this.tbQtyReal = new System.Windows.Forms.TextBox();
this.tbBigoChk = new System.Windows.Forms.TextBox();
this.chk2 = new System.Windows.Forms.CheckBox();
@@ -95,26 +97,27 @@
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tbCostCenter = new System.Windows.Forms.ComboBox();
this.tbLineCode = new System.Windows.Forms.ComboBox();
this.tbManager = new System.Windows.Forms.ComboBox();
this.tbAdmin = new System.Windows.Forms.ComboBox();
this.btEQModel = new System.Windows.Forms.Button();
this.btEQManu = new System.Windows.Forms.Button();
this.btManuProc = new System.Windows.Forms.Button();
this.btProcess = new System.Windows.Forms.Button();
this.tbLineCode = new System.Windows.Forms.TextBox();
this.tbCostCenter = new System.Windows.Forms.TextBox();
this.tbInQty = new System.Windows.Forms.TextBox();
this.btManuProc = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.tbInQty = new System.Windows.Forms.TextBox();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.tbOrderNo = new System.Windows.Forms.TextBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.cmbRemark = new System.Windows.Forms.ComboBox();
this.dsPurchase = new FEQ0000.dsPurchase();
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.tbAdmin = new System.Windows.Forms.TextBox();
this.tbManager = new System.Windows.Forms.TextBox();
processLabel = new System.Windows.Forms.Label();
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
@@ -134,7 +137,6 @@
label6 = new System.Windows.Forms.Label();
label7 = new System.Windows.Forms.Label();
label8 = new System.Windows.Forms.Label();
label9 = new System.Windows.Forms.Label();
label10 = new System.Windows.Forms.Label();
label11 = new System.Windows.Forms.Label();
label12 = new System.Windows.Forms.Label();
@@ -143,6 +145,8 @@
label15 = new System.Windows.Forms.Label();
label16 = new System.Windows.Forms.Label();
label17 = new System.Windows.Forms.Label();
label9 = new System.Windows.Forms.Label();
label18 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -153,7 +157,7 @@
// processLabel
//
processLabel.AutoSize = true;
processLabel.Location = new System.Drawing.Point(58, 163);
processLabel.Location = new System.Drawing.Point(66, 402);
processLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
processLabel.Name = "processLabel";
processLabel.Size = new System.Drawing.Size(39, 20);
@@ -164,7 +168,7 @@
// receiveLabel
//
receiveLabel.AutoSize = true;
receiveLabel.Location = new System.Drawing.Point(43, 99);
receiveLabel.Location = new System.Drawing.Point(51, 338);
receiveLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
receiveLabel.Name = "receiveLabel";
receiveLabel.Size = new System.Drawing.Size(54, 20);
@@ -174,7 +178,7 @@
// scLabel
//
scLabel.AutoSize = true;
scLabel.Location = new System.Drawing.Point(70, 195);
scLabel.Location = new System.Drawing.Point(78, 434);
scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
scLabel.Name = "scLabel";
scLabel.Size = new System.Drawing.Size(27, 20);
@@ -214,12 +218,12 @@
// pumpriceLabel
//
pumpriceLabel.AutoSize = true;
pumpriceLabel.Location = new System.Drawing.Point(47, 176);
pumpriceLabel.Location = new System.Drawing.Point(7, 176);
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumpriceLabel.Name = "pumpriceLabel";
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
pumpriceLabel.Size = new System.Drawing.Size(79, 20);
pumpriceLabel.TabIndex = 16;
pumpriceLabel.Text = "단가";
pumpriceLabel.Text = "단가(국내)";
//
// pumamtLabel
//
@@ -234,7 +238,7 @@
// assetLabel
//
assetLabel.AutoSize = true;
assetLabel.Location = new System.Drawing.Point(28, 357);
assetLabel.Location = new System.Drawing.Point(36, 94);
assetLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
assetLabel.Name = "assetLabel";
assetLabel.Size = new System.Drawing.Size(69, 20);
@@ -244,7 +248,7 @@
// poLabel
//
poLabel.AutoSize = true;
poLabel.Location = new System.Drawing.Point(67, 227);
poLabel.Location = new System.Drawing.Point(75, 466);
poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
poLabel.Name = "poLabel";
poLabel.Size = new System.Drawing.Size(30, 20);
@@ -257,9 +261,9 @@
deptLabel.Location = new System.Drawing.Point(4, 368);
deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
deptLabel.Name = "deptLabel";
deptLabel.Size = new System.Drawing.Size(84, 20);
deptLabel.Size = new System.Drawing.Size(84, 40);
deptLabel.TabIndex = 34;
deptLabel.Text = "요청자비고";
deptLabel.Text = "요청자비고\r\n(구매사유)";
this.toolTip1.SetToolTip(deptLabel, resources.GetString("deptLabel.ToolTip"));
//
// label1
@@ -275,7 +279,7 @@
// label2
//
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(13, 322);
label2.Location = new System.Drawing.Point(21, 59);
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(84, 20);
@@ -285,7 +289,7 @@
// label4
//
label4.AutoSize = true;
label4.Location = new System.Drawing.Point(28, 291);
label4.Location = new System.Drawing.Point(36, 28);
label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label4.Name = "label4";
label4.Size = new System.Drawing.Size(69, 20);
@@ -295,12 +299,14 @@
// label5
//
label5.AutoSize = true;
label5.Location = new System.Drawing.Point(38, 259);
label5.ForeColor = System.Drawing.Color.Red;
label5.Location = new System.Drawing.Point(72, -5);
label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(59, 20);
label5.TabIndex = 14;
label5.Text = "SCR/CF";
label5.Visible = false;
//
// label3
//
@@ -338,24 +344,12 @@
//
label8.AutoSize = true;
label8.ForeColor = System.Drawing.Color.Blue;
label8.Location = new System.Drawing.Point(29, 206);
label8.Location = new System.Drawing.Point(7, 206);
label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label8.Name = "label8";
label8.Size = new System.Drawing.Size(57, 20);
label8.Size = new System.Drawing.Size(79, 20);
label8.TabIndex = 18;
label8.Text = "단가($)";
//
// label9
//
label9.AutoSize = true;
label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
label9.ForeColor = System.Drawing.Color.Blue;
label9.Location = new System.Drawing.Point(285, 210);
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label9.Name = "label9";
label9.Size = new System.Drawing.Size(163, 15);
label9.TabIndex = 20;
label9.Text = "해외물품은 좌측 단가를 입력";
label8.Text = "단가(해외)";
//
// label10
//
@@ -370,7 +364,7 @@
// label11
//
label11.AutoSize = true;
label11.Location = new System.Drawing.Point(28, 131);
label11.Location = new System.Drawing.Point(36, 370);
label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label11.Name = "label11";
label11.Size = new System.Drawing.Size(69, 20);
@@ -380,17 +374,17 @@
// label12
//
label12.AutoSize = true;
label12.Location = new System.Drawing.Point(19, 419);
label12.Location = new System.Drawing.Point(68, 155);
label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label12.Name = "label12";
label12.Size = new System.Drawing.Size(78, 20);
label12.Size = new System.Drawing.Size(37, 20);
label12.TabIndex = 24;
label12.Text = "Line Code";
label12.Text = "Line";
//
// label13
//
label13.AutoSize = true;
label13.Location = new System.Drawing.Point(8, 387);
label13.Location = new System.Drawing.Point(16, 124);
label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label13.Name = "label13";
label13.Size = new System.Drawing.Size(89, 20);
@@ -400,7 +394,7 @@
// label14
//
label14.AutoSize = true;
label14.Location = new System.Drawing.Point(4, 461);
label14.Location = new System.Drawing.Point(4, 497);
label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(84, 20);
@@ -418,9 +412,41 @@
label15.TabIndex = 14;
label15.Text = "실 구매 수량";
//
// label16
//
label16.AutoSize = true;
label16.Location = new System.Drawing.Point(10, 218);
label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label16.Name = "label16";
label16.Size = new System.Drawing.Size(99, 20);
label16.TabIndex = 44;
label16.Text = "구매승인자명";
//
// label17
//
label17.AutoSize = true;
label17.Location = new System.Drawing.Point(10, 185);
label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label17.Name = "label17";
label17.Size = new System.Drawing.Size(99, 20);
label17.TabIndex = 42;
label17.Text = "구매담당자명";
//
// label9
//
label9.AutoSize = true;
label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
label9.ForeColor = System.Drawing.Color.Blue;
label9.Location = new System.Drawing.Point(371, 200);
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label9.Name = "label9";
label9.Size = new System.Drawing.Size(99, 30);
label9.TabIndex = 20;
label9.Text = "해외물품은\r\n좌측 단가를 입력";
//
// tbSC
//
this.tbSC.Location = new System.Drawing.Point(104, 191);
this.tbSC.Location = new System.Drawing.Point(112, 430);
this.tbSC.Margin = new System.Windows.Forms.Padding(4);
this.tbSC.Name = "tbSC";
this.tbSC.Size = new System.Drawing.Size(286, 27);
@@ -451,7 +477,6 @@
//
// 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(93, 109);
this.tbPumModel.Margin = new System.Windows.Forms.Padding(4);
@@ -549,7 +574,7 @@
//
// tbPO
//
this.tbPO.Location = new System.Drawing.Point(104, 223);
this.tbPO.Location = new System.Drawing.Point(112, 462);
this.tbPO.Margin = new System.Windows.Forms.Padding(4);
this.tbPO.Name = "tbPO";
this.tbPO.Size = new System.Drawing.Size(286, 27);
@@ -557,8 +582,9 @@
//
// tbBigo
//
this.tbBigo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbBigo.Location = new System.Drawing.Point(93, 364);
this.tbBigo.Location = new System.Drawing.Point(93, 400);
this.tbBigo.Margin = new System.Windows.Forms.Padding(4);
this.tbBigo.MaxLength = 500;
this.tbBigo.Multiline = true;
@@ -618,7 +644,7 @@
this.cmbReceive.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbReceive.FormattingEnabled = true;
this.cmbReceive.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.cmbReceive.Location = new System.Drawing.Point(104, 93);
this.cmbReceive.Location = new System.Drawing.Point(112, 332);
this.cmbReceive.Margin = new System.Windows.Forms.Padding(4);
this.cmbReceive.Name = "cmbReceive";
this.cmbReceive.Size = new System.Drawing.Size(286, 28);
@@ -638,7 +664,7 @@
//
// dtInDate
//
this.dtInDate.Location = new System.Drawing.Point(104, 58);
this.dtInDate.Location = new System.Drawing.Point(112, 297);
this.dtInDate.Margin = new System.Windows.Forms.Padding(4);
this.dtInDate.Name = "dtInDate";
this.dtInDate.Size = new System.Drawing.Size(286, 27);
@@ -648,7 +674,7 @@
// chkInDate
//
this.chkInDate.AutoSize = true;
this.chkInDate.Location = new System.Drawing.Point(24, 60);
this.chkInDate.Location = new System.Drawing.Point(32, 299);
this.chkInDate.Margin = new System.Windows.Forms.Padding(4);
this.chkInDate.Name = "chkInDate";
this.chkInDate.Size = new System.Drawing.Size(73, 24);
@@ -660,7 +686,7 @@
//
// dtExpDate
//
this.dtExpDate.Location = new System.Drawing.Point(104, 26);
this.dtExpDate.Location = new System.Drawing.Point(112, 265);
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
this.dtExpDate.Name = "dtExpDate";
this.dtExpDate.Size = new System.Drawing.Size(286, 27);
@@ -670,7 +696,7 @@
// chkExp
//
this.chkExp.AutoSize = true;
this.chkExp.Location = new System.Drawing.Point(24, 30);
this.chkExp.Location = new System.Drawing.Point(32, 269);
this.chkExp.Margin = new System.Windows.Forms.Padding(4);
this.chkExp.Name = "chkExp";
this.chkExp.Size = new System.Drawing.Size(73, 24);
@@ -693,6 +719,9 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(label18);
this.groupBox1.Controls.Add(this.cmbRemark);
this.groupBox1.Controls.Add(this.cmbCurrency);
this.groupBox1.Controls.Add(this.tbQtyReal);
this.groupBox1.Controls.Add(label15);
this.groupBox1.Controls.Add(this.tbBigoChk);
@@ -743,6 +772,18 @@
this.groupBox1.Text = "필수입력";
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
// cmbCurrency
//
this.cmbCurrency.FormattingEnabled = true;
this.cmbCurrency.Items.AddRange(new object[] {
"USD"});
this.cmbCurrency.Location = new System.Drawing.Point(274, 202);
this.cmbCurrency.Margin = new System.Windows.Forms.Padding(4);
this.cmbCurrency.Name = "cmbCurrency";
this.cmbCurrency.Size = new System.Drawing.Size(89, 28);
this.cmbCurrency.TabIndex = 50;
this.cmbCurrency.Text = "USD";
//
// tbQtyReal
//
this.tbQtyReal.Location = new System.Drawing.Point(339, 140);
@@ -756,7 +797,7 @@
// tbBigoChk
//
this.tbBigoChk.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbBigoChk.Location = new System.Drawing.Point(93, 457);
this.tbBigoChk.Location = new System.Drawing.Point(93, 493);
this.tbBigoChk.Margin = new System.Windows.Forms.Padding(4);
this.tbBigoChk.MaxLength = 500;
this.tbBigoChk.Multiline = true;
@@ -770,7 +811,7 @@
//
this.chk2.AutoSize = true;
this.chk2.Enabled = false;
this.chk2.Location = new System.Drawing.Point(201, 552);
this.chk2.Location = new System.Drawing.Point(201, 588);
this.chk2.Name = "chk2";
this.chk2.Size = new System.Drawing.Size(133, 24);
this.chk2.TabIndex = 39;
@@ -781,7 +822,7 @@
//
this.chk1.AutoSize = true;
this.chk1.Enabled = false;
this.chk1.Location = new System.Drawing.Point(94, 552);
this.chk1.Location = new System.Drawing.Point(94, 588);
this.chk1.Name = "chk1";
this.chk1.Size = new System.Drawing.Size(103, 24);
this.chk1.TabIndex = 38;
@@ -801,7 +842,6 @@
//
// tbStorage
//
this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.tbStorage.Location = new System.Drawing.Point(370, 234);
this.tbStorage.Margin = new System.Windows.Forms.Padding(4);
this.tbStorage.Name = "tbStorage";
@@ -846,48 +886,48 @@
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 27);
this.button1.TabIndex = 6;
this.button1.Text = "품명";
this.button1.Text = "통합검색";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// groupBox2
//
this.groupBox2.BackColor = System.Drawing.Color.Gainsboro;
this.groupBox2.Controls.Add(this.tbCostCenter);
this.groupBox2.Controls.Add(this.tbLineCode);
this.groupBox2.Controls.Add(this.tbManager);
this.groupBox2.Controls.Add(this.tbAdmin);
this.groupBox2.Controls.Add(label16);
this.groupBox2.Controls.Add(this.tbManager);
this.groupBox2.Controls.Add(label17);
this.groupBox2.Controls.Add(this.btEQModel);
this.groupBox2.Controls.Add(this.btEQManu);
this.groupBox2.Controls.Add(this.btManuProc);
this.groupBox2.Controls.Add(this.btProcess);
this.groupBox2.Controls.Add(this.tbLineCode);
this.groupBox2.Controls.Add(label12);
this.groupBox2.Controls.Add(this.tbCostCenter);
this.groupBox2.Controls.Add(label13);
this.groupBox2.Controls.Add(this.tbInQty);
this.groupBox2.Controls.Add(label11);
this.groupBox2.Controls.Add(this.button7);
this.groupBox2.Controls.Add(this.button6);
this.groupBox2.Controls.Add(this.button5);
this.groupBox2.Controls.Add(this.button4);
this.groupBox2.Controls.Add(this.tbOrderNo);
this.groupBox2.Controls.Add(label5);
this.groupBox2.Controls.Add(label4);
this.groupBox2.Controls.Add(this.chkExp);
this.groupBox2.Controls.Add(label2);
this.groupBox2.Controls.Add(this.chkInDate);
this.groupBox2.Controls.Add(this.dtExpDate);
this.groupBox2.Controls.Add(this.dtInDate);
this.groupBox2.Controls.Add(this.pictureBox1);
this.groupBox2.Controls.Add(this.tbPO);
this.groupBox2.Controls.Add(poLabel);
this.groupBox2.Controls.Add(this.tbSC);
this.groupBox2.Controls.Add(scLabel);
this.groupBox2.Controls.Add(receiveLabel);
this.groupBox2.Controls.Add(assetLabel);
this.groupBox2.Controls.Add(this.cmbReceive);
this.groupBox2.Controls.Add(processLabel);
this.groupBox2.Controls.Add(this.btEQManu);
this.groupBox2.Controls.Add(this.btProcess);
this.groupBox2.Controls.Add(this.btManuProc);
this.groupBox2.Controls.Add(this.cmbReceive);
this.groupBox2.Controls.Add(receiveLabel);
this.groupBox2.Controls.Add(label12);
this.groupBox2.Controls.Add(scLabel);
this.groupBox2.Controls.Add(this.tbSC);
this.groupBox2.Controls.Add(label13);
this.groupBox2.Controls.Add(poLabel);
this.groupBox2.Controls.Add(this.button7);
this.groupBox2.Controls.Add(this.tbInQty);
this.groupBox2.Controls.Add(this.button6);
this.groupBox2.Controls.Add(this.tbPO);
this.groupBox2.Controls.Add(this.button5);
this.groupBox2.Controls.Add(label11);
this.groupBox2.Controls.Add(this.button4);
this.groupBox2.Controls.Add(this.dtInDate);
this.groupBox2.Controls.Add(this.tbOrderNo);
this.groupBox2.Controls.Add(this.chkInDate);
this.groupBox2.Controls.Add(label5);
this.groupBox2.Controls.Add(this.chkExp);
this.groupBox2.Controls.Add(label4);
this.groupBox2.Controls.Add(label2);
this.groupBox2.Controls.Add(this.pictureBox1);
this.groupBox2.Controls.Add(assetLabel);
this.groupBox2.Location = new System.Drawing.Point(512, 7);
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
this.groupBox2.Name = "groupBox2";
@@ -897,9 +937,52 @@
this.groupBox2.TabStop = false;
this.groupBox2.Text = "추가정보";
//
// tbCostCenter
//
this.tbCostCenter.FormattingEnabled = true;
this.tbCostCenter.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.tbCostCenter.Location = new System.Drawing.Point(112, 120);
this.tbCostCenter.Margin = new System.Windows.Forms.Padding(4);
this.tbCostCenter.Name = "tbCostCenter";
this.tbCostCenter.Size = new System.Drawing.Size(286, 28);
this.tbCostCenter.TabIndex = 49;
this.tbCostCenter.Text = "68";
//
// tbLineCode
//
this.tbLineCode.FormattingEnabled = true;
this.tbLineCode.Location = new System.Drawing.Point(112, 151);
this.tbLineCode.Margin = new System.Windows.Forms.Padding(4);
this.tbLineCode.Name = "tbLineCode";
this.tbLineCode.Size = new System.Drawing.Size(286, 28);
this.tbLineCode.TabIndex = 48;
this.tbLineCode.Text = "67";
//
// tbManager
//
this.tbManager.FormattingEnabled = true;
this.tbManager.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbManager.Location = new System.Drawing.Point(112, 182);
this.tbManager.Margin = new System.Windows.Forms.Padding(4);
this.tbManager.Name = "tbManager";
this.tbManager.Size = new System.Drawing.Size(286, 28);
this.tbManager.TabIndex = 47;
this.tbManager.Text = "65";
//
// tbAdmin
//
this.tbAdmin.FormattingEnabled = true;
this.tbAdmin.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbAdmin.Location = new System.Drawing.Point(112, 214);
this.tbAdmin.Margin = new System.Windows.Forms.Padding(4);
this.tbAdmin.Name = "tbAdmin";
this.tbAdmin.Size = new System.Drawing.Size(286, 28);
this.tbAdmin.TabIndex = 46;
this.tbAdmin.Text = "66";
//
// btEQModel
//
this.btEQModel.Location = new System.Drawing.Point(104, 353);
this.btEQModel.Location = new System.Drawing.Point(112, 90);
this.btEQModel.Name = "btEQModel";
this.btEQModel.Size = new System.Drawing.Size(286, 28);
this.btEQModel.TabIndex = 21;
@@ -910,7 +993,7 @@
//
// btEQManu
//
this.btEQManu.Location = new System.Drawing.Point(104, 319);
this.btEQManu.Location = new System.Drawing.Point(112, 56);
this.btEQManu.Name = "btEQManu";
this.btEQManu.Size = new System.Drawing.Size(286, 28);
this.btEQManu.TabIndex = 19;
@@ -919,20 +1002,9 @@
this.btEQManu.UseVisualStyleBackColor = true;
this.btEQManu.Click += new System.EventHandler(this.btProcess_Click);
//
// btManuProc
//
this.btManuProc.Location = new System.Drawing.Point(104, 286);
this.btManuProc.Name = "btManuProc";
this.btManuProc.Size = new System.Drawing.Size(286, 28);
this.btManuProc.TabIndex = 17;
this.btManuProc.Tag = "08";
this.btManuProc.Text = "공용코드 08";
this.btManuProc.UseVisualStyleBackColor = true;
this.btManuProc.Click += new System.EventHandler(this.btProcess_Click);
//
// btProcess
//
this.btProcess.Location = new System.Drawing.Point(104, 158);
this.btProcess.Location = new System.Drawing.Point(112, 397);
this.btProcess.Name = "btProcess";
this.btProcess.Size = new System.Drawing.Size(286, 28);
this.btProcess.TabIndex = 9;
@@ -942,30 +1014,16 @@
this.btProcess.UseVisualStyleBackColor = true;
this.btProcess.Click += new System.EventHandler(this.btProcess_Click);
//
// tbLineCode
// btManuProc
//
this.tbLineCode.Location = new System.Drawing.Point(104, 418);
this.tbLineCode.Margin = new System.Windows.Forms.Padding(4);
this.tbLineCode.Name = "tbLineCode";
this.tbLineCode.Size = new System.Drawing.Size(286, 27);
this.tbLineCode.TabIndex = 25;
//
// tbCostCenter
//
this.tbCostCenter.Location = new System.Drawing.Point(104, 386);
this.tbCostCenter.Margin = new System.Windows.Forms.Padding(4);
this.tbCostCenter.Name = "tbCostCenter";
this.tbCostCenter.Size = new System.Drawing.Size(286, 27);
this.tbCostCenter.TabIndex = 23;
//
// tbInQty
//
this.tbInQty.Location = new System.Drawing.Point(104, 126);
this.tbInQty.Margin = new System.Windows.Forms.Padding(4);
this.tbInQty.Name = "tbInQty";
this.tbInQty.Size = new System.Drawing.Size(286, 27);
this.tbInQty.TabIndex = 7;
this.tbInQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.btManuProc.Location = new System.Drawing.Point(112, 23);
this.btManuProc.Name = "btManuProc";
this.btManuProc.Size = new System.Drawing.Size(286, 28);
this.btManuProc.TabIndex = 17;
this.btManuProc.Tag = "08";
this.btManuProc.Text = "공용코드 08";
this.btManuProc.UseVisualStyleBackColor = true;
this.btManuProc.Click += new System.EventHandler(this.btProcess_Click);
//
// button7
//
@@ -977,6 +1035,15 @@
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// tbInQty
//
this.tbInQty.Location = new System.Drawing.Point(112, 365);
this.tbInQty.Margin = new System.Windows.Forms.Padding(4);
this.tbInQty.Name = "tbInQty";
this.tbInQty.Size = new System.Drawing.Size(286, 27);
this.tbInQty.TabIndex = 7;
this.tbInQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button6
//
this.button6.Location = new System.Drawing.Point(4, 583);
@@ -1010,11 +1077,13 @@
// tbOrderNo
//
this.tbOrderNo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.tbOrderNo.Location = new System.Drawing.Point(104, 255);
this.tbOrderNo.ForeColor = System.Drawing.Color.Red;
this.tbOrderNo.Location = new System.Drawing.Point(138, -9);
this.tbOrderNo.Margin = new System.Windows.Forms.Padding(4);
this.tbOrderNo.Name = "tbOrderNo";
this.tbOrderNo.Size = new System.Drawing.Size(286, 27);
this.tbOrderNo.TabIndex = 15;
this.tbOrderNo.Visible = false;
//
// pictureBox1
//
@@ -1027,6 +1096,21 @@
this.pictureBox1.TabStop = false;
this.pictureBox1.Tag = "A";
//
// timer1
//
this.timer1.Interval = 250;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// cmbRemark
//
this.cmbRemark.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbRemark.FormattingEnabled = true;
this.cmbRemark.Location = new System.Drawing.Point(94, 368);
this.cmbRemark.Margin = new System.Windows.Forms.Padding(4);
this.cmbRemark.Name = "cmbRemark";
this.cmbRemark.Size = new System.Drawing.Size(380, 28);
this.cmbRemark.TabIndex = 50;
//
// dsPurchase
//
this.dsPurchase.DataSetName = "dsPurchase";
@@ -1041,52 +1125,21 @@
//
this.purchaseTableAdapter.ClearBeforeFill = true;
//
// timer1
// label18
//
this.timer1.Interval = 250;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// tbAdmin
//
this.tbAdmin.Location = new System.Drawing.Point(104, 479);
this.tbAdmin.Margin = new System.Windows.Forms.Padding(4);
this.tbAdmin.Name = "tbAdmin";
this.tbAdmin.Size = new System.Drawing.Size(286, 27);
this.tbAdmin.TabIndex = 45;
//
// label16
//
label16.AutoSize = true;
label16.Location = new System.Drawing.Point(2, 482);
label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label16.Name = "label16";
label16.Size = new System.Drawing.Size(99, 20);
label16.TabIndex = 44;
label16.Text = "구매승인자명";
//
// tbManager
//
this.tbManager.Location = new System.Drawing.Point(104, 450);
this.tbManager.Margin = new System.Windows.Forms.Padding(4);
this.tbManager.Name = "tbManager";
this.tbManager.Size = new System.Drawing.Size(286, 27);
this.tbManager.TabIndex = 43;
//
// label17
//
label17.AutoSize = true;
label17.Location = new System.Drawing.Point(2, 454);
label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label17.Name = "label17";
label17.Size = new System.Drawing.Size(99, 20);
label17.TabIndex = 42;
label17.Text = "구매담당자명";
label18.AutoSize = true;
label18.Location = new System.Drawing.Point(277, 177);
label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label18.Name = "label18";
label18.Size = new System.Drawing.Size(20, 20);
label18.TabIndex = 51;
label18.Text = "\\";
//
// fPurchase_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(928, 821);
this.ClientSize = new System.Drawing.Size(929, 821);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btSaveAdd);
@@ -1161,15 +1214,17 @@
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.CheckBox chk2;
private System.Windows.Forms.CheckBox chk1;
private System.Windows.Forms.TextBox tbLineCode;
private System.Windows.Forms.TextBox tbCostCenter;
private System.Windows.Forms.Button btProcess;
private System.Windows.Forms.Button btManuProc;
private System.Windows.Forms.Button btEQManu;
private System.Windows.Forms.Button btEQModel;
private System.Windows.Forms.TextBox tbBigoChk;
private System.Windows.Forms.TextBox tbQtyReal;
private System.Windows.Forms.TextBox tbAdmin;
private System.Windows.Forms.TextBox tbManager;
private System.Windows.Forms.ComboBox tbAdmin;
private System.Windows.Forms.ComboBox tbCostCenter;
private System.Windows.Forms.ComboBox tbLineCode;
private System.Windows.Forms.ComboBox tbManager;
private System.Windows.Forms.ComboBox cmbCurrency;
private System.Windows.Forms.ComboBox cmbRemark;
}
}

View File

@@ -53,8 +53,6 @@ namespace FEQ0000
}
}
Boolean advInput = false;
private void __Load(object sender, EventArgs e)
{
@@ -67,6 +65,55 @@ namespace FEQ0000
this.cmbState.ValueMember = "Value";
this.cmbState.DataSource = stateList;
//costcenter
var LstCost = FCOMMON.DBM.getCodeTable("68");
this.tbCostCenter.DisplayMember = "Value";
this.tbCostCenter.ValueMember = "Value";
this.tbCostCenter.DataSource = LstCost;
//line
var LstLine = FCOMMON.DBM.getCodeTable("67");
this.tbLineCode.DisplayMember = "Value";
this.tbLineCode.ValueMember = "Value";
this.tbLineCode.DataSource = LstLine;
//구매-담당
var LstMan = FCOMMON.DBM.getCodeTable("65");
this.tbManager.DisplayMember = "Value";
this.tbManager.ValueMember = "Value";
this.tbManager.DataSource = LstMan;
//구매-승인
var LstAdm = FCOMMON.DBM.getCodeTable("66");
this.tbAdmin.DisplayMember = "Value";
this.tbAdmin.ValueMember = "Value";
this.tbAdmin.DataSource = LstAdm;
//통화
var LstCur = FCOMMON.DBM.getCodeTable("69");
this.cmbCurrency.DisplayMember = "Value";
this.cmbCurrency.ValueMember = "Value";
this.cmbCurrency.DataSource = LstCur;
//구매자비고
var LstRemark = FCOMMON.DBM.getCodeList("70");
this.cmbRemark.Items.Clear();
this.cmbRemark.Items.Add("-- 선택 안함 --");
foreach (var item in LstRemark)
{
cmbRemark.Items.Add(item.Value);
}
this.cmbRemark.SelectedIndexChanged += (s1, e1) =>
{
if (cmbRemark.SelectedIndex > 0)
{
tbBigo.Text = cmbRemark.Text.Trim() + tbBigo.Text.Trim();
}
};
cmbRemark.SelectedIndex = 0;
//담당자목록
var userList = FCOMMON.DBM.getUserList(); //.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
foreach (var user in userList)
@@ -156,8 +203,7 @@ namespace FEQ0000
}
else btEQModel.Text = dr.asset; //제조모델명
cmbCurrency.Text = dr.currency;
tbPumName.Text = dr.pumname;
tbPumName.Tag = tbPumName.Text;
@@ -373,7 +419,8 @@ namespace FEQ0000
this.tbSID.Tag = f.SID;
this.tbPumUnit.Text = f.itemUnit; //181214
this.tbStorage.Text = f.Storage;
this.tbPumModel.Enabled = false;
this.tbPumModel.Enabled = this.tbPumModel.Text.isEmpty();
this.tbPumUnit.Enabled = false;
if (tbSID.Text != "") tbSID.Enabled = false;
else tbSID.Enabled = true;
@@ -400,7 +447,8 @@ namespace FEQ0000
if (oimage != null) oimage.Dispose();
}
}
this.tbQtyReq.Focus();
if (tbPumModel.Enabled) tbPumModel.Focus();
else this.tbQtyReq.Focus();
}
void Lov_Project(string search, Boolean allowAll)
{
@@ -513,12 +561,12 @@ namespace FEQ0000
return false;
}
if (tbPumModel.Text == "")
{
FCOMMON.Util.MsgE("제품 규격을 입력하세요.");
tbPumModel.Focus();
return false;
}
//if (tbPumModel.Text == "")
//{
// FCOMMON.Util.MsgE("제품 규격을 입력하세요.");
// tbPumModel.Focus();
// return false;
//}
if (tbQtyReq.Text == "")
{
@@ -567,15 +615,14 @@ namespace FEQ0000
return false;
}
}
}
if (tbStorage.Text.Equals("SPR"))
{
if (FCOMMON.Util.MsgQ("SPR 항목입니다. 저장할까요?") != DialogResult.Yes)
return false;
}
if (chkInDate.Checked)
{
if (int.TryParse(tbInQty.Text.Replace(",", ""), out int qty) == false)
@@ -590,7 +637,7 @@ namespace FEQ0000
}
var overtime = DateTime.Now - DateTime.Parse("2019-01-09 00:00:00");
if (overtime.TotalSeconds > 0)
if (overtime.TotalSeconds > 0 && FCOMMON.info.Login.gcode != "K4PM")
{
if (advInput == true && this.btProcess.Text.Trim() == "")
{
@@ -655,16 +702,14 @@ namespace FEQ0000
}
}
//if (bsModel.Count > 0 && this.cbEQModel.SelectedIndex == -1)
//{
// FCOMMON.Util.MsgE("장비 모델을 선택하세요.\n\n" +
// "선택 대상이 없는 경우 문의 바랍니다.\n\n" +
// "BongSeok Jung(T.7191)\n" +
// "BongSeok.Jung@amkor.co.kr");
// cbEQModel.Focus();
// return false;
//}
}
//프로젝트명이 업다면 사유가 반드시 입력되어ㅑㅇ 하낟.
if (tbProject.Text.isEmpty() && tbBigo.Text.isEmpty())
{
Util.MsgE("구매자 비고(=구매사유)를 입력하세요\n프로젝트가 없다면 사유가 입력되어야 합니다");
tbBigo.Focus();
return false;
}
//if (dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Added)
@@ -720,7 +765,7 @@ namespace FEQ0000
//요청 구매 수량이 다를경우 비고 입력이 필요함
if (vqtyreal > 0 && vqtyreq > 0 && vqtyreq != vqtyreal)
{
if(tbBigoChk.Text.isEmpty())
if (tbBigoChk.Text.isEmpty())
{
Util.MsgE("구매 요청/실 수량이 서로 다릅니다\n구매자 비고에 해당 사유를 입력하세요");
tbBigoChk.Focus();
@@ -731,7 +776,7 @@ namespace FEQ0000
dr.pumqty = vqtyreal;// int.Parse(tbPumQty.Text);
dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text);
dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text);
dr.currency = cmbCurrency.Text.Trim();
if (decimal.TryParse(tbPumPriceD.Text, out decimal priced))
{
@@ -776,7 +821,7 @@ namespace FEQ0000
dr.costcenter = tbCostCenter.Text;
dr.linecode = tbLineCode.Text;
dr.purchase_manager= tbManager.Text;
dr.purchase_manager = tbManager.Text;
dr.purchase_admin = tbAdmin.Text;
if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull();

View File

@@ -193,9 +193,6 @@
<metadata name="label8.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label9.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label10.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
@@ -221,6 +218,15 @@
<metadata name="label15.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label16.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label17.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label9.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="tbBigo.ToolTip" xml:space="preserve">
<value>* 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등)
* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등)
@@ -228,6 +234,9 @@
* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등)
* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등)</value>
</data>
<metadata name="label18.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="tbBigoChk.ToolTip" xml:space="preserve">
<value>* 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등)
* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등)
@@ -235,11 +244,8 @@
* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등)
* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등)</value>
</data>
<metadata name="label16.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label17.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>587, 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>
@@ -250,9 +256,6 @@
<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="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>587, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>58</value>
</metadata>