This commit is contained in:
chikyun.kim
2019-07-26 17:28:19 +09:00
parent ae209e00af
commit 11d7c7f704
58 changed files with 3360 additions and 6285 deletions

View File

@@ -30,30 +30,30 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchase));
FarPoint.Win.Spread.CellType.TextCellType textCellType73 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType74 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType75 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType76 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType77 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType78 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType79 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType80 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType81 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType21 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType82 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType83 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType22 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType84 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType23 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType85 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType24 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType86 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType25 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType87 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType88 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType89 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType90 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType5 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = 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.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
@@ -93,6 +93,10 @@
this.CustomDataCopyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.cmDate = new System.Windows.Forms.ToolStripComboBox();
this.dtSD = new System.Windows.Forms.ToolStripTextBox();
@@ -111,13 +115,10 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.btViewDel = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -380,7 +381,7 @@
this.ToolStripMenuItem1,
this.ToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(317, 332);
this.cm1.Size = new System.Drawing.Size(317, 310);
//
// columnSizeToolStripMenuItem
//
@@ -457,9 +458,37 @@
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(313, 6);
//
// 추가ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "추가ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem.Text = "추가";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// makeRepeatToolStripMenuItem
//
this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem";
this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.makeRepeatToolStripMenuItem.Text = "복사";
this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click);
//
// 편집ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "편집ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem1.Text = "편집";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//
// 삭제ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "삭제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem.Text = "삭제";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmDate,
this.dtSD,
@@ -475,10 +504,11 @@
this.btSearch,
this.toolStripSeparator5,
this.toolStripDropDownButton1,
this.toolStripButton2,
this.btViewDel});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1074, 31);
this.toolStrip1.Size = new System.Drawing.Size(1074, 37);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
@@ -490,20 +520,20 @@
"입고일",
"입고예정일"});
this.cmDate.Name = "cmDate";
this.cmDate.Size = new System.Drawing.Size(75, 31);
this.cmDate.Size = new System.Drawing.Size(75, 37);
//
// dtSD
//
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(90, 31);
this.dtSD.Size = new System.Drawing.Size(90, 37);
this.dtSD.Text = "1982-11-23";
this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbEnd
//
this.lbEnd.Name = "lbEnd";
this.lbEnd.Size = new System.Drawing.Size(15, 28);
this.lbEnd.Size = new System.Drawing.Size(15, 34);
this.lbEnd.Text = "~";
this.lbEnd.Click += new System.EventHandler(this.lbEnd_Click);
//
@@ -511,36 +541,36 @@
//
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(90, 31);
this.dtED.Size = new System.Drawing.Size(90, 37);
this.dtED.Text = "1982-11-23";
this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 37);
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel1.Size = new System.Drawing.Size(31, 34);
this.toolStripLabel1.Text = "상태";
//
// cmbState
//
this.cmbState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbState.Name = "cmbState";
this.cmbState.Size = new System.Drawing.Size(90, 31);
this.cmbState.Size = new System.Drawing.Size(90, 37);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 31);
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 37);
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(43, 28);
this.toolStripLabel3.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel3.Text = "사용자";
this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click);
//
@@ -548,28 +578,28 @@
//
this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbRequest.Name = "tbRequest";
this.tbRequest.Size = new System.Drawing.Size(70, 31);
this.tbRequest.Size = new System.Drawing.Size(70, 37);
this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbRequest.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbRequest_KeyDown);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 31);
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 37);
//
// btSearch
//
this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSearch.Name = "btSearch";
this.btSearch.Size = new System.Drawing.Size(74, 28);
this.btSearch.Size = new System.Drawing.Size(80, 34);
this.btSearch.Text = "조회(&R)";
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 31);
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 37);
//
// toolStripDropDownButton1
//
@@ -580,7 +610,7 @@
this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(110, 28);
this.toolStripDropDownButton1.Size = new System.Drawing.Size(116, 34);
this.toolStripDropDownButton1.Text = "Quick Menu";
//
// 금일입고품목ToolStripMenuItem
@@ -604,6 +634,16 @@
this.ToolStripMenuItem.Text = "이번달 자료";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(65, 34);
this.toolStripButton2.Text = "닫기";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
//
// btViewDel
//
this.btViewDel.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
@@ -611,7 +651,7 @@
this.btViewDel.Image = ((System.Drawing.Image)(resources.GetObject("btViewDel.Image")));
this.btViewDel.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btViewDel.Name = "btViewDel";
this.btViewDel.Size = new System.Drawing.Size(107, 28);
this.btViewDel.Size = new System.Drawing.Size(113, 34);
this.btViewDel.Text = "삭제자료표시";
this.btViewDel.Click += new System.EventHandler(this.btViewDel_Click);
//
@@ -622,11 +662,11 @@
this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fpSpread1.EditModeReplace = true;
this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.fpSpread1.Location = new System.Drawing.Point(0, 31);
this.fpSpread1.Location = new System.Drawing.Point(0, 37);
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(1074, 608);
this.fpSpread1.Size = new System.Drawing.Size(1074, 602);
this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 4;
//
@@ -670,7 +710,7 @@
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;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType73;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일";
@@ -678,7 +718,7 @@
this.fpSpread1_Sheet1.Columns.Get(0).Width = 82F;
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 = textCellType74;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태";
@@ -686,155 +726,155 @@
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(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType75;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "process";
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).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 = textCellType76;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "request";
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(4).CellType = textCellType77;
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(5).CellType = textCellType78;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "orderno";
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 44F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType79;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receive";
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(7).CellType = textCellType80;
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(8).CellType = textCellType81;
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)))));
numberCellType21.DecimalPlaces = 0;
numberCellType21.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType21.MaximumValue = 2147483647D;
numberCellType21.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType21;
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 = textCellType82;
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(11).CellType = textCellType83;
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 = textCellType83;
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 = textCellType83;
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모델";
numberCellType22.DecimalPlaces = 0;
numberCellType22.NegativeRed = true;
numberCellType22.NullDisplay = "--";
numberCellType22.Separator = ",";
numberCellType22.ShowSeparator = true;
numberCellType22.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType22;
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 = textCellType84;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumunit";
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;
numberCellType23.DecimalPlaces = 0;
numberCellType23.NegativeRed = true;
numberCellType23.NullDisplay = "--";
numberCellType23.Separator = ",";
numberCellType23.ShowSeparator = true;
numberCellType23.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType23;
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 = numberCellType23;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumamt";
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 = textCellType85;
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)))));
numberCellType24.DecimalPlaces = 0;
numberCellType24.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType24.MaximumValue = 2147483647D;
numberCellType24.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType24;
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 = textCellType86;
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)))));
numberCellType25.DecimalPlaces = 0;
numberCellType25.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType25.MaximumValue = 2147483647D;
numberCellType25.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType25;
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 = textCellType87;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "edate";
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(23).CellType = textCellType88;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "indate";
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(24).CellType = textCellType89;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "po";
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(25).CellType = textCellType90;
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 = checkBoxCellType5;
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";
@@ -844,34 +884,6 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// makeRepeatToolStripMenuItem
//
this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem";
this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.makeRepeatToolStripMenuItem.Text = "복사";
this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click);
//
// 편집ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "편집ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem1.Text = "편집";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//
// 삭제ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "삭제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem.Text = "삭제";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 추가ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "추가ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.ToolStripMenuItem.Text = "추가";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchase
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -882,7 +894,7 @@
this.Controls.Add(this.bn);
this.DoubleBuffered = true;
this.Name = "fPurchase";
this.Text = "NR 구매 신청";
this.Text = "구매 신청";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
@@ -956,7 +968,6 @@
private System.Windows.Forms.ToolStripMenuItem CustomDataCopyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripButton btCopy;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton1;
@@ -965,5 +976,7 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}

View File

@@ -96,7 +96,7 @@ namespace FEQ0000
//this.cmbCr.SelectedIndex = 1;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.purchase));
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
if (curLevel >= 5)
{
btSave.Visible = true;
@@ -121,6 +121,16 @@ namespace FEQ0000
refreshData();
//열표시여부를 설정
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)
{
if (hidecols.Contains(col.DataField.ToLower())) col.Visible = false;
}
}
}
@@ -131,17 +141,21 @@ namespace FEQ0000
{
string state = "%";
if (cmbState.SelectedIndex > 0) state = cmbState.Text.Split(',')[0];
string request = "%";
if (tbRequest.Text.Trim() != "") request = "%" + this.tbRequest.Text.Trim() + "%";
if (tbRequest.Text.Trim() != "")
request = "%" + tbRequest.Text.Trim() + "%";// tbRequest.Text.Substring(1, tbRequest.Text.IndexOf("]") - 1);
string dateField = "pdate";
if (cmDate.SelectedIndex == 1) dateField = "indate";
else if (cmDate.SelectedIndex == 2) dateField = "expdate";
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter();
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand();
cmd.CommandText = " select *" +
cmd.CommandText = " select *,dbo.getusername(request) as requestName,dbo.getusername(receive) as receiveName" +
" from purchase " +
" where isnull(" + dateField + ",'') between @sd and @ed ";
" where gcode='"+ FCOMMON.info.Login.gcode + "' and isnull(" + dateField + ",'') between @sd and @ed ";
@@ -149,7 +163,10 @@ namespace FEQ0000
cmd.CommandText += " and isnull(isdel,0) = 0";
if(tbRequest.Text.Trim() != "")
cmd.CommandText += " and (isnull(request,'') like @req or isnull(receive,'') like @req)";
{
cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)";
}
if (cmbState.SelectedIndex != 0)
{
@@ -318,6 +335,12 @@ namespace FEQ0000
void func_add()
{
var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
if (FCOMMON.info.Login.no == "dev")
newdr.request = "395552";//string.Format("[{0}] {1}", "395552", "김치균");
else
newdr.request = FCOMMON.info.Login.no;
repeat:
fPurchase_Add f = new fPurchase_Add(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
@@ -366,7 +389,7 @@ namespace FEQ0000
var drv = bs.Current as DataRowView;
if (drv == null) return;
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth( FCOMMON.DBM.eAutoType.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 != "")
{
@@ -377,7 +400,7 @@ namespace FEQ0000
}
}
if(dr.request != FCOMMON.info.Login.nameK)
if(dr.request != FCOMMON.info.Login.no)
{
if (curLevel < 5)
{
@@ -750,5 +773,10 @@ namespace FEQ0000
func_add();
}
private void toolStripButton2_Click_1(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -311,6 +311,16 @@
kBHypJw8OQKeD4C3u2Ww2XVDx9SAcJMmx1TKFMe7wNMOMNpSbkUO5MZbX9q5/LipXK0csMi3iphK+aH4
o8xnlLJi3IJdbKvsSg4L/MrpG8SVSzGitkGSyfQYdtNMV6YkkU3sEna+obyrS3TQ/y/lIGqEYgSRGChT
wdMZXkp4+r8UxSdk1wcO0mb/TQAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR
DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il
zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij
KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY
UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC
</value>
</data>
<data name="btViewDel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -33,13 +33,10 @@
System.Windows.Forms.Label receiveLabel;
System.Windows.Forms.Label scLabel;
System.Windows.Forms.Label sidLabel;
System.Windows.Forms.Label pumnameLabel;
System.Windows.Forms.Label pumscaleLabel;
System.Windows.Forms.Label pumqtyLabel;
System.Windows.Forms.Label pumpriceLabel;
System.Windows.Forms.Label pumamtLabel;
System.Windows.Forms.Label supplyLabel;
System.Windows.Forms.Label projectLabel;
System.Windows.Forms.Label assetLabel;
System.Windows.Forms.Label poLabel;
System.Windows.Forms.Label deptLabel;
@@ -47,6 +44,8 @@
System.Windows.Forms.Label label2;
System.Windows.Forms.Label label4;
System.Windows.Forms.Label label5;
System.Windows.Forms.Label label3;
System.Windows.Forms.Label label6;
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbPumName = new System.Windows.Forms.TextBox();
@@ -73,9 +72,11 @@
this.chkInDate = new System.Windows.Forms.CheckBox();
this.dtExpDate = new System.Windows.Forms.DateTimePicker();
this.chkExp = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.btSaveAdd = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.linkLabel7 = new System.Windows.Forms.LinkLabel();
this.linkLabel6 = new System.Windows.Forms.LinkLabel();
this.linkLabel5 = new System.Windows.Forms.LinkLabel();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tbOrderNo = new System.Windows.Forms.TextBox();
@@ -94,13 +95,10 @@
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
sidLabel = new System.Windows.Forms.Label();
pumnameLabel = 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();
supplyLabel = new System.Windows.Forms.Label();
projectLabel = new System.Windows.Forms.Label();
assetLabel = new System.Windows.Forms.Label();
poLabel = new System.Windows.Forms.Label();
deptLabel = new System.Windows.Forms.Label();
@@ -108,6 +106,8 @@
label2 = new System.Windows.Forms.Label();
label4 = new System.Windows.Forms.Label();
label5 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label6 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -122,7 +122,7 @@
processLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
processLabel.Name = "processLabel";
processLabel.Size = new System.Drawing.Size(39, 20);
processLabel.TabIndex = 4;
processLabel.TabIndex = 6;
processLabel.Text = "공정";
//
// receiveLabel
@@ -132,7 +132,7 @@
receiveLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
receiveLabel.Name = "receiveLabel";
receiveLabel.Size = new System.Drawing.Size(54, 20);
receiveLabel.TabIndex = 2;
receiveLabel.TabIndex = 4;
receiveLabel.Text = "수령인";
//
// scLabel
@@ -142,38 +142,28 @@
scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
scLabel.Name = "scLabel";
scLabel.Size = new System.Drawing.Size(27, 20);
scLabel.TabIndex = 6;
scLabel.TabIndex = 8;
scLabel.Text = "SC";
//
// sidLabel
//
sidLabel.AutoSize = true;
sidLabel.Location = new System.Drawing.Point(54, 68);
sidLabel.Location = new System.Drawing.Point(288, 210);
sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
sidLabel.Name = "sidLabel";
sidLabel.Size = new System.Drawing.Size(32, 20);
sidLabel.TabIndex = 3;
sidLabel.TabIndex = 19;
sidLabel.Text = "SID";
//
// pumnameLabel
//
pumnameLabel.AutoSize = true;
pumnameLabel.Location = new System.Drawing.Point(47, 105);
pumnameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumnameLabel.Name = "pumnameLabel";
pumnameLabel.Size = new System.Drawing.Size(39, 20);
pumnameLabel.TabIndex = 5;
pumnameLabel.Text = "품명";
//
// pumscaleLabel
//
pumscaleLabel.AutoSize = true;
pumscaleLabel.Location = new System.Drawing.Point(47, 142);
pumscaleLabel.Location = new System.Drawing.Point(10, 142);
pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumscaleLabel.Name = "pumscaleLabel";
pumscaleLabel.Size = new System.Drawing.Size(39, 20);
pumscaleLabel.TabIndex = 8;
pumscaleLabel.Text = "규격";
pumscaleLabel.Size = new System.Drawing.Size(75, 20);
pumscaleLabel.TabIndex = 9;
pumscaleLabel.Text = "모델/규격";
//
// pumqtyLabel
//
@@ -182,7 +172,7 @@
pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumqtyLabel.Name = "pumqtyLabel";
pumqtyLabel.Size = new System.Drawing.Size(39, 20);
pumqtyLabel.TabIndex = 11;
pumqtyLabel.TabIndex = 12;
pumqtyLabel.Text = "수량";
//
// pumpriceLabel
@@ -192,7 +182,7 @@
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumpriceLabel.Name = "pumpriceLabel";
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
pumpriceLabel.TabIndex = 13;
pumpriceLabel.TabIndex = 15;
pumpriceLabel.Text = "단가";
//
// pumamtLabel
@@ -202,29 +192,9 @@
pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumamtLabel.Name = "pumamtLabel";
pumamtLabel.Size = new System.Drawing.Size(39, 20);
pumamtLabel.TabIndex = 15;
pumamtLabel.TabIndex = 17;
pumamtLabel.Text = "합계";
//
// supplyLabel
//
supplyLabel.AutoSize = true;
supplyLabel.Location = new System.Drawing.Point(32, 251);
supplyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
supplyLabel.Name = "supplyLabel";
supplyLabel.Size = new System.Drawing.Size(54, 20);
supplyLabel.TabIndex = 17;
supplyLabel.Text = "공급처";
//
// projectLabel
//
projectLabel.AutoSize = true;
projectLabel.Location = new System.Drawing.Point(17, 287);
projectLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
projectLabel.Name = "projectLabel";
projectLabel.Size = new System.Drawing.Size(69, 20);
projectLabel.TabIndex = 20;
projectLabel.Text = "프로젝트";
//
// assetLabel
//
assetLabel.AutoSize = true;
@@ -232,7 +202,7 @@
assetLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
assetLabel.Name = "assetLabel";
assetLabel.Size = new System.Drawing.Size(69, 20);
assetLabel.TabIndex = 10;
assetLabel.TabIndex = 18;
assetLabel.Text = "장비모델";
//
// poLabel
@@ -242,7 +212,7 @@
poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
poLabel.Name = "poLabel";
poLabel.Size = new System.Drawing.Size(30, 20);
poLabel.TabIndex = 8;
poLabel.TabIndex = 10;
poLabel.Text = "PO";
//
// deptLabel
@@ -252,7 +222,7 @@
deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
deptLabel.Name = "deptLabel";
deptLabel.Size = new System.Drawing.Size(39, 20);
deptLabel.TabIndex = 26;
deptLabel.TabIndex = 27;
deptLabel.Text = "비고";
//
// label1
@@ -272,7 +242,7 @@
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(84, 20);
label2.TabIndex = 12;
label2.TabIndex = 16;
label2.Text = "장비제조사";
//
// label4
@@ -282,7 +252,7 @@
label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label4.Name = "label4";
label4.Size = new System.Drawing.Size(69, 20);
label4.TabIndex = 18;
label4.TabIndex = 14;
label4.Text = "제조공정";
//
// label5
@@ -292,25 +262,45 @@
label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(60, 20);
label5.TabIndex = 20;
label5.TabIndex = 12;
label5.Text = "CR/CF#";
//
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(46, 69);
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(280, 69);
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 = "상태";
//
// tbSC
//
this.tbSC.Location = new System.Drawing.Point(104, 156);
this.tbSC.Margin = new System.Windows.Forms.Padding(4);
this.tbSC.Name = "tbSC";
this.tbSC.Size = new System.Drawing.Size(286, 27);
this.tbSC.TabIndex = 7;
this.tbSC.TabIndex = 9;
//
// tbSID
//
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.tbSID.Location = new System.Drawing.Point(93, 66);
this.tbSID.Location = new System.Drawing.Point(327, 208);
this.tbSID.Margin = new System.Windows.Forms.Padding(4);
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(238, 27);
this.tbSID.TabIndex = 0;
this.tbSID.Size = new System.Drawing.Size(148, 27);
this.tbSID.TabIndex = 20;
//
// tbPumName
//
@@ -320,7 +310,7 @@
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 = 1;
this.tbPumName.TabIndex = 7;
//
// tbPumModel
//
@@ -330,7 +320,7 @@
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 = 2;
this.tbPumModel.TabIndex = 10;
//
// tbPumUnit
//
@@ -339,7 +329,7 @@
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 = 10;
this.tbPumUnit.TabIndex = 11;
this.tbPumUnit.TabStop = false;
this.tbPumUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.toolTip1.SetToolTip(this.tbPumUnit, "단위");
@@ -351,7 +341,7 @@
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 = 3;
this.tbPumQty.TabIndex = 13;
this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged);
//
@@ -361,7 +351,7 @@
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 = 4;
this.tbPumPrice.TabIndex = 16;
this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged);
//
@@ -371,8 +361,8 @@
this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4);
this.tbPumAmt.Name = "tbPumAmt";
this.tbPumAmt.ReadOnly = true;
this.tbPumAmt.Size = new System.Drawing.Size(382, 27);
this.tbPumAmt.TabIndex = 5;
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;
//
@@ -383,7 +373,7 @@
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 = 6;
this.tbSupply.TabIndex = 22;
//
// tbSupplyIndex
//
@@ -392,20 +382,20 @@
this.tbSupplyIndex.Name = "tbSupplyIndex";
this.tbSupplyIndex.ReadOnly = true;
this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27);
this.tbSupplyIndex.TabIndex = 19;
this.tbSupplyIndex.TabIndex = 23;
this.tbSupplyIndex.TabStop = false;
this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.toolTip1.SetToolTip(this.tbSupplyIndex, "Database ID");
//
// tbProject
//
this.tbProject.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbProject.BackColor = System.Drawing.SystemColors.Window;
this.tbProject.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbProject.Location = new System.Drawing.Point(93, 285);
this.tbProject.Margin = new System.Windows.Forms.Padding(4);
this.tbProject.Name = "tbProject";
this.tbProject.Size = new System.Drawing.Size(311, 27);
this.tbProject.TabIndex = 7;
this.tbProject.TabIndex = 25;
//
// tbProjectIndex
//
@@ -414,7 +404,7 @@
this.tbProjectIndex.Name = "tbProjectIndex";
this.tbProjectIndex.ReadOnly = true;
this.tbProjectIndex.Size = new System.Drawing.Size(64, 27);
this.tbProjectIndex.TabIndex = 22;
this.tbProjectIndex.TabIndex = 26;
this.tbProjectIndex.TabStop = false;
this.tbProjectIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.toolTip1.SetToolTip(this.tbProjectIndex, "Database ID");
@@ -425,7 +415,7 @@
this.tbPO.Margin = new System.Windows.Forms.Padding(4);
this.tbPO.Name = "tbPO";
this.tbPO.Size = new System.Drawing.Size(286, 27);
this.tbPO.TabIndex = 9;
this.tbPO.TabIndex = 11;
//
// tbBigo
//
@@ -435,8 +425,8 @@
this.tbBigo.MaxLength = 500;
this.tbBigo.Multiline = true;
this.tbBigo.Name = "tbBigo";
this.tbBigo.Size = new System.Drawing.Size(381, 165);
this.tbBigo.TabIndex = 8;
this.tbBigo.Size = new System.Drawing.Size(381, 188);
this.tbBigo.TabIndex = 28;
this.tbBigo.TabStop = false;
//
// dtPdate
@@ -444,16 +434,16 @@
this.dtPdate.Location = new System.Drawing.Point(93, 29);
this.dtPdate.Margin = new System.Windows.Forms.Padding(4);
this.dtPdate.Name = "dtPdate";
this.dtPdate.Size = new System.Drawing.Size(238, 27);
this.dtPdate.Size = new System.Drawing.Size(381, 27);
this.dtPdate.TabIndex = 1;
//
// btSave
//
this.btSave.Location = new System.Drawing.Point(11, 562);
this.btSave.Location = new System.Drawing.Point(11, 531);
this.btSave.Margin = new System.Windows.Forms.Padding(4);
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(492, 51);
this.btSave.TabIndex = 0;
this.btSave.Size = new System.Drawing.Size(490, 49);
this.btSave.TabIndex = 1;
this.btSave.Text = "저장(&S)";
this.btSave.UseVisualStyleBackColor = true;
this.btSave.Click += new System.EventHandler(this.button1_Click);
@@ -462,11 +452,11 @@
//
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(336, 65);
this.cmbState.Location = new System.Drawing.Point(327, 66);
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
this.cmbState.Name = "cmbState";
this.cmbState.Size = new System.Drawing.Size(139, 28);
this.cmbState.TabIndex = 1;
this.cmbState.Size = new System.Drawing.Size(148, 28);
this.cmbState.TabIndex = 5;
this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// cbProcess
@@ -480,31 +470,33 @@
this.cbProcess.Margin = new System.Windows.Forms.Padding(4);
this.cbProcess.Name = "cbProcess";
this.cbProcess.Size = new System.Drawing.Size(286, 28);
this.cbProcess.TabIndex = 5;
this.cbProcess.TabIndex = 7;
//
// 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(336, 29);
this.cmbRequest.Location = new System.Drawing.Point(93, 66);
this.cmbRequest.Margin = new System.Windows.Forms.Padding(4);
this.cmbRequest.Name = "cmbRequest";
this.cmbRequest.Size = new System.Drawing.Size(139, 28);
this.cmbRequest.TabIndex = 2;
this.cmbRequest.Size = new System.Drawing.Size(179, 28);
this.cmbRequest.TabIndex = 3;
//
// cmbReceive
//
this.cmbReceive.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cmbReceive.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
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.Margin = new System.Windows.Forms.Padding(4);
this.cmbReceive.Name = "cmbReceive";
this.cmbReceive.Size = new System.Drawing.Size(286, 28);
this.cmbReceive.TabIndex = 3;
this.cmbReceive.TabIndex = 5;
//
// tbPumIDX
//
@@ -513,7 +505,7 @@
this.tbPumIDX.Name = "tbPumIDX";
this.tbPumIDX.ReadOnly = true;
this.tbPumIDX.Size = new System.Drawing.Size(64, 27);
this.tbPumIDX.TabIndex = 7;
this.tbPumIDX.TabIndex = 8;
this.tbPumIDX.TabStop = false;
this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID");
@@ -536,7 +528,7 @@
this.dtInDate.Margin = new System.Windows.Forms.Padding(4);
this.dtInDate.Name = "dtInDate";
this.dtInDate.Size = new System.Drawing.Size(286, 27);
this.dtInDate.TabIndex = 15;
this.dtInDate.TabIndex = 3;
this.dtInDate.TabStop = false;
//
// chkInDate
@@ -546,7 +538,7 @@
this.chkInDate.Margin = new System.Windows.Forms.Padding(4);
this.chkInDate.Name = "chkInDate";
this.chkInDate.Size = new System.Drawing.Size(73, 24);
this.chkInDate.TabIndex = 25;
this.chkInDate.TabIndex = 2;
this.chkInDate.TabStop = false;
this.chkInDate.Text = "입고일";
this.chkInDate.UseVisualStyleBackColor = true;
@@ -558,7 +550,7 @@
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
this.dtExpDate.Name = "dtExpDate";
this.dtExpDate.Size = new System.Drawing.Size(286, 27);
this.dtExpDate.TabIndex = 24;
this.dtExpDate.TabIndex = 1;
this.dtExpDate.TabStop = false;
//
// chkExp
@@ -568,37 +560,30 @@
this.chkExp.Margin = new System.Windows.Forms.Padding(4);
this.chkExp.Name = "chkExp";
this.chkExp.Size = new System.Drawing.Size(73, 24);
this.chkExp.TabIndex = 23;
this.chkExp.TabIndex = 0;
this.chkExp.TabStop = false;
this.chkExp.Text = "예상일";
this.chkExp.UseVisualStyleBackColor = true;
this.chkExp.CheckedChanged += new System.EventHandler(this.chkExp_CheckedChanged);
//
// label3
//
this.label3.BackColor = System.Drawing.Color.White;
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
this.label3.Location = new System.Drawing.Point(0, 0);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(934, 29);
this.label3.TabIndex = 0;
this.label3.Text = "--";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btSaveAdd
//
this.btSaveAdd.Location = new System.Drawing.Point(511, 562);
this.btSaveAdd.Location = new System.Drawing.Point(511, 531);
this.btSaveAdd.Margin = new System.Windows.Forms.Padding(4);
this.btSaveAdd.Name = "btSaveAdd";
this.btSaveAdd.Size = new System.Drawing.Size(410, 51);
this.btSaveAdd.TabIndex = 0;
this.btSaveAdd.TabIndex = 3;
this.btSaveAdd.Text = "저장 및 추가(&A)";
this.btSaveAdd.UseVisualStyleBackColor = true;
this.btSaveAdd.Click += new System.EventHandler(this.button2_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.linkLabel7);
this.groupBox1.Controls.Add(this.linkLabel6);
this.groupBox1.Controls.Add(this.linkLabel5);
this.groupBox1.Controls.Add(label6);
this.groupBox1.Controls.Add(label3);
this.groupBox1.Controls.Add(this.dtPdate);
this.groupBox1.Controls.Add(this.tbPumStock);
this.groupBox1.Controls.Add(this.tbPumAmt);
@@ -608,10 +593,8 @@
this.groupBox1.Controls.Add(pumamtLabel);
this.groupBox1.Controls.Add(this.tbPumIDX);
this.groupBox1.Controls.Add(this.cmbState);
this.groupBox1.Controls.Add(projectLabel);
this.groupBox1.Controls.Add(this.tbSID);
this.groupBox1.Controls.Add(this.tbPumQty);
this.groupBox1.Controls.Add(supplyLabel);
this.groupBox1.Controls.Add(pumqtyLabel);
this.groupBox1.Controls.Add(sidLabel);
this.groupBox1.Controls.Add(this.tbProject);
@@ -622,19 +605,54 @@
this.groupBox1.Controls.Add(label1);
this.groupBox1.Controls.Add(this.tbPumName);
this.groupBox1.Controls.Add(this.cmbRequest);
this.groupBox1.Controls.Add(pumnameLabel);
this.groupBox1.Controls.Add(pumscaleLabel);
this.groupBox1.Controls.Add(this.tbPumUnit);
this.groupBox1.Controls.Add(this.tbPumModel);
this.groupBox1.Location = new System.Drawing.Point(12, 36);
this.groupBox1.Location = new System.Drawing.Point(11, 6);
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
this.groupBox1.Size = new System.Drawing.Size(492, 496);
this.groupBox1.TabIndex = 2;
this.groupBox1.Size = new System.Drawing.Size(490, 518);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "필수입력";
//
// linkLabel7
//
this.linkLabel7.AutoSize = true;
this.linkLabel7.Location = new System.Drawing.Point(17, 288);
this.linkLabel7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.linkLabel7.Name = "linkLabel7";
this.linkLabel7.Size = new System.Drawing.Size(69, 20);
this.linkLabel7.TabIndex = 31;
this.linkLabel7.TabStop = true;
this.linkLabel7.Text = "프로젝트";
this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked);
//
// linkLabel6
//
this.linkLabel6.AutoSize = true;
this.linkLabel6.Location = new System.Drawing.Point(31, 251);
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(46, 105);
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);
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
@@ -676,12 +694,12 @@
this.groupBox2.Controls.Add(this.cmbReceive);
this.groupBox2.Controls.Add(processLabel);
this.groupBox2.Controls.Add(this.cbProcess);
this.groupBox2.Location = new System.Drawing.Point(512, 38);
this.groupBox2.Location = new System.Drawing.Point(512, 7);
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
this.groupBox2.Size = new System.Drawing.Size(409, 516);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "추가정보";
//
@@ -692,7 +710,7 @@
this.tbOrderNo.Margin = new System.Windows.Forms.Padding(4);
this.tbOrderNo.Name = "tbOrderNo";
this.tbOrderNo.Size = new System.Drawing.Size(286, 27);
this.tbOrderNo.TabIndex = 21;
this.tbOrderNo.TabIndex = 13;
//
// cbManuProc
//
@@ -705,7 +723,7 @@
this.cbManuProc.Margin = new System.Windows.Forms.Padding(4);
this.cbManuProc.Name = "cbManuProc";
this.cbManuProc.Size = new System.Drawing.Size(286, 28);
this.cbManuProc.TabIndex = 19;
this.cbManuProc.TabIndex = 15;
//
// cbEQModel
//
@@ -718,7 +736,7 @@
this.cbEQModel.Margin = new System.Windows.Forms.Padding(4);
this.cbEQModel.Name = "cbEQModel";
this.cbEQModel.Size = new System.Drawing.Size(286, 28);
this.cbEQModel.TabIndex = 11;
this.cbEQModel.TabIndex = 19;
//
// cbEQManu
//
@@ -731,7 +749,7 @@
this.cbEQManu.Margin = new System.Windows.Forms.Padding(4);
this.cbEQManu.Name = "cbEQManu";
this.cbEQManu.Size = new System.Drawing.Size(286, 28);
this.cbEQManu.TabIndex = 13;
this.cbEQManu.TabIndex = 17;
this.cbEQManu.SelectedIndexChanged += new System.EventHandler(this.cbEQManu_SelectedIndexChanged);
//
// linkLabel4
@@ -741,7 +759,7 @@
this.linkLabel4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.linkLabel4.Name = "linkLabel4";
this.linkLabel4.Size = new System.Drawing.Size(39, 20);
this.linkLabel4.TabIndex = 16;
this.linkLabel4.TabIndex = 21;
this.linkLabel4.TabStop = true;
this.linkLabel4.Text = "촬영";
this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel4_LinkClicked);
@@ -753,7 +771,7 @@
this.linkLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size(69, 20);
this.linkLabel3.TabIndex = 15;
this.linkLabel3.TabIndex = 20;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "붙여넣기";
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.imgpase_LinkClicked);
@@ -765,7 +783,7 @@
this.linkLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(74, 20);
this.linkLabel2.TabIndex = 14;
this.linkLabel2.TabIndex = 22;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "그림 선택";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
@@ -799,11 +817,10 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(934, 618);
this.ClientSize = new System.Drawing.Size(928, 589);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btSaveAdd);
this.Controls.Add(this.label3);
this.Controls.Add(this.btSave);
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;
@@ -852,7 +869,6 @@
private System.Windows.Forms.CheckBox chkInDate;
private System.Windows.Forms.DateTimePicker dtExpDate;
private System.Windows.Forms.CheckBox chkExp;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button btSaveAdd;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
@@ -869,5 +885,8 @@
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.ComboBox cbManuProc;
private System.Windows.Forms.TextBox tbOrderNo;
private System.Windows.Forms.LinkLabel linkLabel5;
private System.Windows.Forms.LinkLabel linkLabel6;
private System.Windows.Forms.LinkLabel linkLabel7;
}
}

View File

@@ -27,6 +27,9 @@ namespace FEQ0000
{
if (e1.KeyCode == Keys.Escape) this.Close();
};
this.tbPumName.Leave += tbPumName_Leave;
this.tbSupply.Leave += tbSupply_Leave;
this.tbProject.Leave += tbProject_Leave;
foreach (Control ctl in groupBox1.Controls)
{
@@ -36,13 +39,18 @@ namespace FEQ0000
}
}
}
Boolean advInput = false;
private void __Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsPurchase.Purchase' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
//this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
// this.Show();
// Application.DoEvents();
advInput = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv);
//상태
var stateList = FCOMMON.DBM.getCodeTable("04");
this.cmbState.DisplayMember = "Value";
@@ -83,11 +91,11 @@ namespace FEQ0000
//this.cbProcess.DataSource = new BindingSource(procList, "");
//담당자목록
var userList = FCOMMON.DBM.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
var userList = FCOMMON.DBM.getUserList(); //.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
foreach (var user in userList)
{
this.cmbReceive.Items.Add(user);
this.cmbRequest.Items.Add(user);
this.cmbReceive.Items.Add(string.Format("[{0}] {1}",user.Key,user.Value));
this.cmbRequest.Items.Add(string.Format("[{0}] {1}", user.Key, user.Value));
}
dtPdate.Value = DateTime.Parse(dr.pdate);
@@ -113,8 +121,35 @@ namespace FEQ0000
///입력된 데이터를 적용한다.
dtPdate.Value = DateTime.Parse(dr.pdate);
cmbRequest.Text = dr.request;
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;
if (cmbReceive.Items.Count > 0)
{
for (int i = 0; i < cmbReceive.Items.Count; i++)
{
if (cmbReceive.Items[i].ToString().StartsWith("[" + dr.receive + "]"))
{
cmbReceive.SelectedIndex = i;
break;
}
}
}
else cmbReceive.Text = dr.receive;
tbSID.Text = dr.sid;
tbSID.Tag = tbSID.Text;
if (dr.manuproc == "") cbManuProc.SelectedIndex = -1;
@@ -139,6 +174,8 @@ namespace FEQ0000
tbPumName.Text = dr.pumname;
tbPumName.Tag = tbPumName.Text;
tbPumModel.Text = dr.pumscale;
tbPumQty.Text = dr.pumqty.ToString();
tbPumStock.Text = "--";
@@ -147,13 +184,17 @@ namespace FEQ0000
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();
tbProject.Text = dr.project;
tbProject.Tag = tbProject.Text;
tbProjectIndex.Text = dr.projectidx.ToString();
cmbState.Text = dr.state;
cmbReceive.Text = dr.receive;
if (dr.process == "") cbProcess.SelectedIndex = -1;
else cbProcess.Text = dr.process;
@@ -178,7 +219,7 @@ namespace FEQ0000
this.dtInDate.Enabled = chkInDate.Checked;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.purchase));
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
if (curLevel < 5)
{
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
@@ -189,7 +230,7 @@ namespace FEQ0000
//데이터가 편집 상태인데 요청자가 내가 아닌경우에도 편집 불가
Boolean enb = true;
if (dr.RowState == DataRowState.Unchanged && dr.request != FCOMMON.info.Login.nameK)
if (dr.RowState == DataRowState.Unchanged && dr.request != FCOMMON.info.Login.no)
enb = false;
if (tbSC.Text.Trim() != "") enb = false;
@@ -202,9 +243,13 @@ namespace FEQ0000
}
}
if(advInput==false)
{
this.Width = 528;
}
this.Show();
Application.DoEvents();
tbSID.Focus();
tbPumName.Focus();
//이미지를 불러온다.
if (dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Deleted && dr.RowState != DataRowState.Added)
@@ -219,6 +264,8 @@ namespace FEQ0000
}
}
}
string sidTrim(string sid)
@@ -243,145 +290,15 @@ namespace FEQ0000
var lastprocess = FCOMMON.DBM.getFirstValue("process", "purchase", "request like '%" + this.cmbRequest.Text + "%'", "pdate desc");
if (lastprocess != "") cbProcess.Text = lastprocess;
tbSID.Focus();
break;
case "tbsid":
if (search != "" && search != "신규")
{
//if (search.Length == 9 && search.IndexOf('-') == -1)
//{
// search = string.Format("{0}-{1}-{2}",
// search.Substring(0, 3),
// search.Substring(3, 3),
// search.Substring(6, 3));
// tbSID.Text = search;
//}
var f = new FCM0000.fLovItem("%" + sidTrim(search) + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
tbSID.Text = sidTrim(f.SID);
tbPumIDX.Text = f.item.ToString();
tbPumName.Text = f.itemName;
tbPumModel.Text = f.itemmodel;
tbPumPrice.Text = f.itemprice.ToString();
tbPumQty.Text = "1";
tbPumUnit.Text = f.itemUnit; //181214
//pumamtTextBox.Text = tbPumPrice.Text;\
//이 제품의 마지막 구매기록을 찾아서 업데이트 해준다.
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();
}
if (tbPumIDX.Text != "")
{
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();
}
FCOMMON.Util.MsgI("SID를 선택하면 품명&모델을 편집할 수 없습니다.\n\n해당 정보는 '품목' 정보에서 수정해야 합니다.");
//이름을 선택되었으므로 모델을 선택한다.
tbPumName.Enabled = false;
tbPumModel.Enabled = false;
tbPumQty.Focus();
this.Invalidate();
return;
}
else
{
tbPumName.Enabled = true;
tbPumModel.Enabled = true;
tbPumName.Focus();
}
}
else
{
tbPumName.Enabled = true;
tbPumModel.Enabled = true;
tbPumName.Focus();
}
break;
case "tbpumname":
if (search != "")
{
var f = new FCM0000.fLovItem("%" + search + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
tbPumName.Text = f.itemName;
if (this.tbPumIDX.Text != f.item.ToString())
{
this.tbPumIDX.Text = f.item.ToString();
this.tbPumModel.Text = f.itemmodel;
this.tbPumPrice.Text = f.itemprice.ToString();
this.tbSID.Text = f.SID;
this.tbPumUnit.Text = f.itemUnit; //181214
//제품을 찾앗다면 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();
}
}
if (tbPumIDX.Text != "")
{
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();
}
}
else this.tbPumIDX.Text = "-1";
}
tbPumModel.Focus();
Lov_Item(search, false);
break;
case "tbproject":
if (search != "")
{
FCM0000.fLovProject f = new FCM0000.fLovProject("%" + search + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.tbProject.Text = f.Title;
this.tbProjectIndex.Text = f.Index.ToString();
}
}
this.btSave.Focus();
Lov_Project(search, false);
break;
case "tbsupply":
if (search != "")
{
FCM0000.fLovSupply f = new FCM0000.fLovSupply(search);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
tbSupply.Text = f.Title;
tbSupplyIndex.Text = f.Index.ToString();
this.tbProject.Focus();
}
}
tbProject.Focus();
Lov_Supply(search, false);
break;
default:
SendKeys.Send("{TAB}");
@@ -389,8 +306,104 @@ namespace FEQ0000
}
}
}
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();
this.tbProject.Focus();
}
else
{
tbSupply.Focus();
tbSupply.SelectAll();
}
}
else tbProject.Focus();
}
private bool saveData()
{
this.Validate();
@@ -423,7 +436,7 @@ namespace FEQ0000
tbPumQty.Focus();
return false;
}
if (tbProject.Text == "")
if ( advInput==true && tbProject.Text == "")
{
FCOMMON.Util.MsgE("프로젝트 정보를 입력하세요.");
tbProject.Focus();
@@ -433,7 +446,7 @@ namespace FEQ0000
var overtime = DateTime.Now - DateTime.Parse("2019-01-09 00:00:00");
if (overtime.TotalSeconds > 0)
{
if (this.cbProcess.Text.Trim()=="")
if (advInput == true && this.cbProcess.Text.Trim() == "")
{
if (FCOMMON.info.Login.level >= 5)
{
@@ -458,7 +471,7 @@ namespace FEQ0000
return false;
}
}
if (cbManuProc.Text.Trim() == "")
if (advInput == true && cbManuProc.Text.Trim() == "")
{
if (FCOMMON.info.Login.level >= 5)
{
@@ -483,7 +496,7 @@ namespace FEQ0000
return false;
}
}
if (this.cbEQManu.Text.Trim() == "")
if (advInput == true && this.cbEQManu.Text.Trim() == "")
{
if (FCOMMON.info.Login.level >= 5)
{
@@ -530,7 +543,17 @@ namespace FEQ0000
}
}
//품목정보에 없는 데이터이므로 자료를 추가한다.
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 (chkInDate.Checked)
@@ -551,10 +574,7 @@ namespace FEQ0000
dr.pumamt = dr.pumqty * dr.pumprice;
if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") dr.SetpumidxNull();
else dr.pumidx = int.Parse(tbPumIDX.Text);
var sid = this.tbSID.Text.Replace("-", "").Replace(" ", "").Replace("-", "").Trim();
//if (sid.Length == 9) sid = sid.Substring(0, 3) + "-" + sid.Substring(3, 3) + "-" + sid.Substring(6, 3);
dr.sid = sid;
dr.sid = tbSID.Text.Trim();
if (chkExp.Checked) dr.edate = this.dtExpDate.Value.ToShortDateString();
else dr.SetedateNull();
@@ -562,8 +582,12 @@ namespace FEQ0000
else dr.SetindateNull();
dr.pdate = this.dtPdate.Value.ToShortDateString();
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.request = cmbRequest.Text;
dr.sid = tbSID.Text;
dr.asset = cbEQModel.Text;
@@ -587,7 +611,12 @@ namespace FEQ0000
else dr.projectidx = int.Parse(tbProjectIndex.Text);
dr.state = cmbState.Text.Trim();
dr.receive = cmbReceive.Text;
if (cmbReceive.Text.IndexOf("]") != -1)
dr.receive = cmbReceive.Text.Substring(1, cmbReceive.Text.IndexOf("]") - 1);
else
dr.receive = cmbReceive.Text.Trim();
dr.process = cbProcess.Text;
dr.sc = tbSC.Text;
dr.po = tbPO.Text;
@@ -646,44 +675,44 @@ namespace FEQ0000
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;
//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;
}
//}
//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;
//}
}
@@ -770,5 +799,45 @@ namespace FEQ0000
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;
}
}
}
}

View File

@@ -129,9 +129,6 @@
<metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="pumnameLabel.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>
@@ -144,12 +141,6 @@
<metadata name="pumamtLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="projectLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="assetLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
@@ -171,11 +162,11 @@
<metadata name="label5.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 name="label3.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 name="label6.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>