업무일지 리포트 추가

This commit is contained in:
chikyun.kim
2019-05-07 14:11:57 +09:00
parent 1b487e8c5d
commit a9888ebf39
60 changed files with 8953 additions and 10776 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 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();
FarPoint.Win.Spread.CellType.TextCellType textCellType37 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType38 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType39 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType40 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType41 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType42 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType43 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType44 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType45 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType46 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType47 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType48 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType49 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType50 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType51 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType52 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType53 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType54 = 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);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
@@ -68,9 +68,10 @@
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.btAdd = new System.Windows.Forms.ToolStripButton();
this.btCopy = new System.Windows.Forms.ToolStripButton();
this.btEdit = new System.Windows.Forms.ToolStripButton();
this.btDel = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
@@ -84,12 +85,6 @@
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.copyDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.viewThisUserDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.CustomDataCopyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -156,7 +151,6 @@
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.ImageScalingSize = new System.Drawing.Size(24, 24);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
@@ -167,9 +161,10 @@
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.btAdd,
this.btCopy,
this.btEdit,
this.btDel,
this.btSave,
this.toolStripSeparator1,
this.lbSum,
@@ -177,21 +172,21 @@
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.bn.Location = new System.Drawing.Point(0, 634);
this.bn.Location = new System.Drawing.Point(0, 639);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1074, 31);
this.bn.Size = new System.Drawing.Size(1074, 26);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28);
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 23);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
@@ -201,7 +196,7 @@
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 23);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
@@ -210,13 +205,13 @@
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 23);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31);
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 26);
//
// bindingNavigatorPositionItem
//
@@ -230,7 +225,7 @@
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31);
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 26);
//
// bindingNavigatorMoveNextItem
//
@@ -238,7 +233,7 @@
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 23);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
@@ -247,81 +242,90 @@
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 23);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31);
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 26);
//
// bindingNavigatorAddNewItem
// btAdd
//
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(75, 28);
this.bindingNavigatorAddNewItem.Text = "추가(&A)";
this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
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.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
//
// bindingNavigatorDeleteItem
// btCopy
//
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(76, 28);
this.bindingNavigatorDeleteItem.Text = "삭제(&D)";
this.bindingNavigatorDeleteItem.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click);
this.btCopy.Image = ((System.Drawing.Image)(resources.GetObject("btCopy.Image")));
this.btCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btCopy.Name = "btCopy";
this.btCopy.Size = new System.Drawing.Size(67, 23);
this.btCopy.Text = "복사(&C)";
this.btCopy.Click += new System.EventHandler(this.toolStripButton1_Click_2);
//
// btEdit
//
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(73, 28);
this.btEdit.Size = new System.Drawing.Size(65, 23);
this.btEdit.Text = "편집(&E)";
this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// btDel
//
this.btDel.Image = ((System.Drawing.Image)(resources.GetObject("btDel.Image")));
this.btDel.Name = "btDel";
this.btDel.RightToLeftAutoMirrorImage = true;
this.btDel.Size = new System.Drawing.Size(68, 23);
this.btDel.Text = "삭제(&D)";
this.btDel.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click);
//
// btSave
//
this.btSave.Image = global::FEQ0000.Properties.Resources.action_save;
this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(74, 28);
this.btSave.Size = new System.Drawing.Size(66, 23);
this.btSave.Text = "저장(&S)";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26);
//
// lbSum
//
this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbSum.Name = "lbSum";
this.lbSum.Size = new System.Drawing.Size(22, 28);
this.lbSum.Size = new System.Drawing.Size(22, 23);
this.lbSum.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Size = new System.Drawing.Size(31, 23);
this.toolStripLabel5.Text = "합계";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel2.Size = new System.Drawing.Size(31, 23);
this.toolStripLabel2.Text = "검색";
//
// tbFind
//
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbFind.Name = "tbFind";
this.tbFind.Size = new System.Drawing.Size(100, 31);
this.tbFind.Size = new System.Drawing.Size(100, 26);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
//
// btFind
@@ -330,7 +334,7 @@
this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image")));
this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btFind.Name = "btFind";
this.btFind.Size = new System.Drawing.Size(28, 28);
this.btFind.Size = new System.Drawing.Size(23, 23);
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
@@ -339,18 +343,12 @@
this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.columnSizeToolStripMenuItem,
this.toolStripMenuItem1,
this.copyDataToolStripMenuItem,
this.editDataToolStripMenuItem,
this.deleteDataToolStripMenuItem,
this.toolStripMenuItem2,
this.viewThisUserDataToolStripMenuItem,
this.exportDataToolStripMenuItem,
this.toolStripMenuItem3,
this.CustomDataCopyToolStripMenuItem,
this.toolStripMenuItem4});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(337, 322);
this.cm1.Size = new System.Drawing.Size(317, 164);
//
// columnSizeToolStripMenuItem
//
@@ -395,44 +393,6 @@
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(333, 6);
//
// copyDataToolStripMenuItem
//
this.copyDataToolStripMenuItem.Name = "copyDataToolStripMenuItem";
this.copyDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.copyDataToolStripMenuItem.Text = "Copy Data";
this.copyDataToolStripMenuItem.Click += new System.EventHandler(this.copyDataToolStripMenuItem_Click);
//
// editDataToolStripMenuItem
//
this.editDataToolStripMenuItem.Name = "editDataToolStripMenuItem";
this.editDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.editDataToolStripMenuItem.Text = "Edit Data";
this.editDataToolStripMenuItem.Click += new System.EventHandler(this.editDataToolStripMenuItem_Click);
//
// deleteDataToolStripMenuItem
//
this.deleteDataToolStripMenuItem.Name = "deleteDataToolStripMenuItem";
this.deleteDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.deleteDataToolStripMenuItem.Text = "Delete Data";
this.deleteDataToolStripMenuItem.Click += new System.EventHandler(this.deleteDataToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(333, 6);
//
// viewThisUserDataToolStripMenuItem
//
this.viewThisUserDataToolStripMenuItem.Name = "viewThisUserDataToolStripMenuItem";
this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.viewThisUserDataToolStripMenuItem.Text = "View This User data";
this.viewThisUserDataToolStripMenuItem.Click += new System.EventHandler(this.viewThisUserDataToolStripMenuItem_Click);
//
// exportDataToolStripMenuItem
//
this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem";
@@ -572,8 +532,8 @@
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(98, 28);
this.btSearch.Text = "새로고침(&R)";
this.btSearch.Size = new System.Drawing.Size(74, 28);
this.btSearch.Text = "조회(&R)";
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
//
// toolStripSeparator5
@@ -662,7 +622,7 @@
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(1074, 603);
this.fpSpread1.Size = new System.Drawing.Size(1074, 608);
this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 4;
//
@@ -706,7 +666,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 = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType37;
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 = "등록일";
@@ -714,7 +674,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 = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType38;
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 = "상태";
@@ -722,155 +682,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 = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType39;
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 = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType40;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "request";
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 = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType41;
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 = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType42;
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 = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType43;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receive";
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 = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType44;
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 = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType45;
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)))));
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;
numberCellType11.DecimalPlaces = 0;
numberCellType11.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType11.MaximumValue = 2147483647D;
numberCellType11.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType11;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType46;
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 = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType47;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(11).Label = "장비\r\n제조사";
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType47;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "manuproc";
this.fpSpread1_Sheet1.Columns.Get(12).Label = "제조\r\n공정";
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType47;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(13).Label = "장비\r\n모델";
numberCellType2.DecimalPlaces = 0;
numberCellType2.NegativeRed = true;
numberCellType2.NullDisplay = "--";
numberCellType2.Separator = ",";
numberCellType2.ShowSeparator = true;
numberCellType2.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2;
numberCellType12.DecimalPlaces = 0;
numberCellType12.NegativeRed = true;
numberCellType12.NullDisplay = "--";
numberCellType12.Separator = ",";
numberCellType12.ShowSeparator = true;
numberCellType12.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType12;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 44F;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType48;
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;
numberCellType3.DecimalPlaces = 0;
numberCellType3.NegativeRed = true;
numberCellType3.NullDisplay = "--";
numberCellType3.Separator = ",";
numberCellType3.ShowSeparator = true;
numberCellType3.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType3;
numberCellType13.DecimalPlaces = 0;
numberCellType13.NegativeRed = true;
numberCellType13.NullDisplay = "--";
numberCellType13.Separator = ",";
numberCellType13.ShowSeparator = true;
numberCellType13.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType13;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType13;
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 = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType49;
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)))));
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;
numberCellType14.DecimalPlaces = 0;
numberCellType14.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType14.MaximumValue = 2147483647D;
numberCellType14.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType14;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType14;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType50;
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)))));
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;
numberCellType15.DecimalPlaces = 0;
numberCellType15.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType15.MaximumValue = 2147483647D;
numberCellType15.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType15;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(21).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType51;
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 = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType52;
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 = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType53;
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 = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType54;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(26).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "isdel";
@@ -914,9 +874,9 @@
private dsPurchaseTableAdapters.PurchaseTableAdapter ta;
private dsPurchaseTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripButton btAdd;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton btDel;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
@@ -941,15 +901,10 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripComboBox cmbState;
private System.Windows.Forms.ToolStripMenuItem viewThisUserDataToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem copyDataToolStripMenuItem;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
private FarPoint.Win.Spread.FpSpread fpSpread1;
private System.Windows.Forms.ToolStripMenuItem editDataToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
@@ -963,7 +918,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem deleteDataToolStripMenuItem;
private System.Windows.Forms.ToolStripButton btViewDel;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton3;
@@ -974,5 +928,6 @@
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;
}
}

View File

@@ -435,55 +435,7 @@ namespace FEQ0000
private void copyDataToolStripMenuItem_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPurchase.PurchaseRow;
//현재 데이터를 입력하여 신규 추가를 한다.
var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr);
newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no;
newdr.state = "---";
newdr.request = FCOMMON.info.Login.nameK;
newdr.receive = FCOMMON.info.Login.nameK;
newdr.sc = string.Empty;
newdr.po = string.Empty;
newdr.indate = string.Empty;
newdr.edate = string.Empty;
newdr.idx = -1;
newdr.EndEdit();
repeat:
fPurchase_Add f = new fPurchase_Add(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
this.dsPurchase.Purchase.AddPurchaseRow(newdr);
this.ta.Update(newdr);
newdr.AcceptChanges();
if (f.repeatAdd)
{
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData(newdr, newdro);
newdro.idx = -1;
newdro.wdate = DateTime.Now;
newdr = newdro; //change
goto repeat;
}
}
else newdr.Delete();
}
private void btFind_Click(object sender, EventArgs e)
@@ -531,7 +483,7 @@ namespace FEQ0000
if (drv == null) return;
var dr = drv.Row as dsPurchase.PurchaseRow;
fPurchase_Add f = new fPurchase_Add(dr);
var f = new fPurchase_Add(dr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
@@ -725,15 +677,58 @@ namespace FEQ0000
//FCOMMON.Util.MsgI("다음 데이터가 클립보드에 저장됨\n\n" + buffer); 190131
}
private void fdsaToolStripMenuItem_Click(object sender, EventArgs e)
private void toolStripButton1_Click_2(object sender, EventArgs e)
{
}
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPurchase.PurchaseRow;
private void toolStripButton1_Click(object sender, EventArgs e)
{
//현재 데이터를 입력하여 신규 추가를 한다.
var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr);
newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no;
newdr.state = "---";
newdr.request = FCOMMON.info.Login.nameK;
newdr.receive = FCOMMON.info.Login.nameK;
newdr.sc = string.Empty;
newdr.po = string.Empty;
newdr.indate = string.Empty;
newdr.edate = string.Empty;
newdr.idx = -1;
newdr.EndEdit();
repeat:
fPurchase_Add f = new fPurchase_Add(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
this.dsPurchase.Purchase.AddPurchaseRow(newdr);
this.ta.Update(newdr);
newdr.AcceptChanges();
if (f.repeatAdd)
{
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData(newdr, newdro);
newdro.idx = -1;
newdro.wdate = DateTime.Now;
newdr = newdro; //change
goto repeat;
}
}
else newdr.Delete();
}
}

View File

@@ -173,7 +173,7 @@
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
@@ -185,16 +185,16 @@
rkJggg==
</value>
</data>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="btCopy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFDSURBVDhPlZK9SgNREIXzOpY+gEXQIg+QkMLOTuwsLNRU
ViKIja0SbMRCBQsLUxgQArERf1ARCaLBCErUIoWJjnyzTna4Ccs6cLLkzpzvnr17M5KiMknFQPXyQfbO
m6rNkxtZ3q9LqVyR2bVdVSKEJsbr53dpvnVUrx/RE61W2zI5v6EQqz9rVCwAYLj2+KP6VyL+bJ825LPz
pWYzpknUB7CLARgIE6HK/bfO0F86aklhZiWC8ENEA9D0iUKAKRHgE5kZHdz2VPTyUwsxYHHrWN+TIQAe
6M07F10VvVx+OgZwsgaYO3wZAHhz+ayr5zMAwGAAn8gDMA8F8Fmu7p4Uwh3wibx5vd5TNVptyeaKMQAD
p4o4HJ9oGAD42EQhBoTlE9kFYleEmZQjo+M6q5fJF4thIt4XEZudMfc/Y1i6mrpEfgGL0hchHI3KDgAA
AABJRU5ErkJggg==
</value>
</data>
<data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -206,6 +206,18 @@
0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w
9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF
KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII=
</value>
</data>
<data name="btDel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -39,11 +39,11 @@ namespace FEQ0000
private void __Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsPurchase.Purchase' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
//this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
// this.Show();
// Application.DoEvents();
//statelist
//상태
var stateList = FCOMMON.DBM.getCodeTable("04");
this.cmbState.DisplayMember = "Value";
this.cmbState.ValueMember = "Value";
@@ -82,7 +82,7 @@ namespace FEQ0000
//this.cbProcess.ValueMember = "Key";
//this.cbProcess.DataSource = new BindingSource(procList, "");
//juserlist
//담당자목록
var userList = FCOMMON.DBM.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
foreach (var user in userList)
{
@@ -91,7 +91,6 @@ namespace FEQ0000
}
dtPdate.Value = DateTime.Parse(dr.pdate);
if (dr.IsindateNull() || dr.indate.isEmpty())
{
this.chkInDate.Checked = false;

View File

@@ -290,7 +290,7 @@ namespace FEQ0000
}
var taE = new dsPurchaseTableAdapters.PurchaseTableAdapter();
if(checkBox1.Checked) taE.DeleteImport(sd.Value.ToShortDateString(),ed.Value.ToShortDateString());
if (checkBox1.Checked) taE.DeleteImport(sd.Value.ToShortDateString(), ed.Value.ToShortDateString(), FCOMMON.info.Login.no);
taE.Update((dsPurchase.PurchaseDataTable)dt);
dt.AcceptChanges();

View File

@@ -37,11 +37,8 @@
this.button3 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
this.label6 = new System.Windows.Forms.Label();
this.ed = new System.Windows.Forms.DateTimePicker();
this.sd = new System.Windows.Forms.DateTimePicker();
this.label4 = new System.Windows.Forms.Label();
this.nudCE = new System.Windows.Forms.NumericUpDown();
this.nudCS = new System.Windows.Forms.NumericUpDown();
@@ -66,6 +63,30 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.progressBar1 = new System.Windows.Forms.ToolStripProgressBar();
this.panel2 = new System.Windows.Forms.Panel();
this.label16 = new System.Windows.Forms.Label();
this.tbState = new System.Windows.Forms.TextBox();
this.col_supply = new System.Windows.Forms.NumericUpDown();
this.label15 = new System.Windows.Forms.Label();
this.col_amt = new System.Windows.Forms.NumericUpDown();
this.label14 = new System.Windows.Forms.Label();
this.col_price = new System.Windows.Forms.NumericUpDown();
this.label13 = new System.Windows.Forms.Label();
this.numericUpDown7 = new System.Windows.Forms.NumericUpDown();
this.label12 = new System.Windows.Forms.Label();
this.col_qty = new System.Windows.Forms.NumericUpDown();
this.label11 = new System.Windows.Forms.Label();
this.col_name = new System.Windows.Forms.NumericUpDown();
this.label10 = new System.Windows.Forms.Label();
this.col_sid = new System.Windows.Forms.NumericUpDown();
this.label9 = new System.Windows.Forms.Label();
this.col_crcf = new System.Windows.Forms.NumericUpDown();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.dtPdate = new System.Windows.Forms.DateTimePicker();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label17 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
@@ -77,6 +98,15 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.col_supply)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_amt)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_price)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_qty)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_name)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_sid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.col_crcf)).BeginInit();
this.SuspendLayout();
//
// textBox1
@@ -112,10 +142,10 @@
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 97);
this.dataGridView1.Location = new System.Drawing.Point(0, 159);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(906, 535);
this.dataGridView1.Size = new System.Drawing.Size(906, 473);
this.dataGridView1.TabIndex = 1;
//
// button3
@@ -130,12 +160,10 @@
//
// panel1
//
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.checkBox1);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.numericUpDown2);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.ed);
this.panel1.Controls.Add(this.sd);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.nudCE);
this.panel1.Controls.Add(this.nudCS);
@@ -167,16 +195,6 @@
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(474, 66);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(127, 16);
this.checkBox1.TabIndex = 19;
this.checkBox1.Text = "Auto Delete Import";
this.checkBox1.UseVisualStyleBackColor = true;
//
// numericUpDown2
//
this.numericUpDown2.Location = new System.Drawing.Point(406, 63);
@@ -198,25 +216,11 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(312, 67);
this.label6.Location = new System.Drawing.Point(316, 67);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(87, 12);
this.label6.Size = new System.Drawing.Size(78, 12);
this.label6.TabIndex = 17;
this.label6.Text = "Column Name";
//
// ed
//
this.ed.Location = new System.Drawing.Point(42, 67);
this.ed.Name = "ed";
this.ed.Size = new System.Drawing.Size(170, 21);
this.ed.TabIndex = 16;
//
// sd
//
this.sd.Location = new System.Drawing.Point(42, 40);
this.sd.Name = "sd";
this.sd.Size = new System.Drawing.Size(170, 21);
this.sd.TabIndex = 15;
this.label6.Text = "Column Row";
//
// label4
//
@@ -470,12 +474,283 @@
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(200, 22);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.panel2.Controls.Add(this.textBox2);
this.panel2.Controls.Add(this.label17);
this.panel2.Controls.Add(this.label16);
this.panel2.Controls.Add(this.tbState);
this.panel2.Controls.Add(this.col_supply);
this.panel2.Controls.Add(this.label15);
this.panel2.Controls.Add(this.col_amt);
this.panel2.Controls.Add(this.label14);
this.panel2.Controls.Add(this.col_price);
this.panel2.Controls.Add(this.label13);
this.panel2.Controls.Add(this.numericUpDown7);
this.panel2.Controls.Add(this.label12);
this.panel2.Controls.Add(this.col_qty);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.col_name);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.col_sid);
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.col_crcf);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.dtPdate);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 97);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(906, 62);
this.panel2.TabIndex = 3;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(536, 10);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(33, 12);
this.label16.TabIndex = 38;
this.label16.Text = "State";
//
// tbState
//
this.tbState.Location = new System.Drawing.Point(579, 6);
this.tbState.Name = "tbState";
this.tbState.Size = new System.Drawing.Size(45, 21);
this.tbState.TabIndex = 21;
this.tbState.Text = "PO";
//
// col_supply
//
this.col_supply.Location = new System.Drawing.Point(476, 6);
this.col_supply.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_supply.Name = "col_supply";
this.col_supply.Size = new System.Drawing.Size(45, 21);
this.col_supply.TabIndex = 37;
this.col_supply.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(427, 10);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(44, 12);
this.label15.TabIndex = 36;
this.label15.Text = "Supply";
//
// col_amt
//
this.col_amt.Location = new System.Drawing.Point(670, 32);
this.col_amt.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_amt.Name = "col_amt";
this.col_amt.Size = new System.Drawing.Size(45, 21);
this.col_amt.TabIndex = 35;
this.col_amt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(636, 36);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(27, 12);
this.label14.TabIndex = 34;
this.label14.Text = "Amt";
//
// col_price
//
this.col_price.Location = new System.Drawing.Point(578, 32);
this.col_price.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_price.Name = "col_price";
this.col_price.Size = new System.Drawing.Size(45, 21);
this.col_price.TabIndex = 33;
this.col_price.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(535, 36);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(34, 12);
this.label13.TabIndex = 32;
this.label13.Text = "Price";
//
// numericUpDown7
//
this.numericUpDown7.Location = new System.Drawing.Point(476, 32);
this.numericUpDown7.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.numericUpDown7.Name = "numericUpDown7";
this.numericUpDown7.Size = new System.Drawing.Size(45, 21);
this.numericUpDown7.TabIndex = 31;
this.numericUpDown7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(445, 36);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(26, 12);
this.label12.TabIndex = 30;
this.label12.Text = "Unit";
//
// col_qty
//
this.col_qty.Location = new System.Drawing.Point(377, 32);
this.col_qty.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_qty.Name = "col_qty";
this.col_qty.Size = new System.Drawing.Size(45, 21);
this.col_qty.TabIndex = 29;
this.col_qty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(345, 36);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(24, 12);
this.label11.TabIndex = 28;
this.label11.Text = "Qty";
//
// col_name
//
this.col_name.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.col_name.Location = new System.Drawing.Point(292, 32);
this.col_name.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_name.Name = "col_name";
this.col_name.Size = new System.Drawing.Size(45, 21);
this.col_name.TabIndex = 27;
this.col_name.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(246, 36);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(39, 12);
this.label10.TabIndex = 26;
this.label10.Text = "Name";
//
// col_sid
//
this.col_sid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.col_sid.Location = new System.Drawing.Point(377, 6);
this.col_sid.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_sid.Name = "col_sid";
this.col_sid.Size = new System.Drawing.Size(45, 21);
this.col_sid.TabIndex = 25;
this.col_sid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(345, 10);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 12);
this.label9.TabIndex = 24;
this.label9.Text = "SID";
//
// col_crcf
//
this.col_crcf.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.col_crcf.Location = new System.Drawing.Point(292, 6);
this.col_crcf.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.col_crcf.Name = "col_crcf";
this.col_crcf.Size = new System.Drawing.Size(45, 21);
this.col_crcf.TabIndex = 23;
this.col_crcf.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(241, 10);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(44, 12);
this.label8.TabIndex = 22;
this.label8.Text = "CR/CF";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(12, 10);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(41, 12);
this.label7.TabIndex = 21;
this.label7.Text = "등록일";
//
// dtPdate
//
this.dtPdate.Location = new System.Drawing.Point(59, 6);
this.dtPdate.Name = "dtPdate";
this.dtPdate.Size = new System.Drawing.Size(170, 21);
this.dtPdate.TabIndex = 16;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(474, 67);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(138, 16);
this.checkBox1.TabIndex = 21;
this.checkBox1.Text = "Remove Import Data";
this.checkBox1.UseVisualStyleBackColor = true;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(636, 10);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(29, 12);
this.label17.TabIndex = 39;
this.label17.Text = "비고";
//
// textBox2
//
this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.textBox2.Location = new System.Drawing.Point(670, 5);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(224, 21);
this.textBox2.TabIndex = 40;
//
// fPurchase_ImportO
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(906, 657);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.bn);
this.Controls.Add(this.panel1);
this.Name = "fPurchase_ImportO";
@@ -494,6 +769,16 @@
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.col_supply)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_amt)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_price)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_qty)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_name)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_sid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.col_crcf)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -531,11 +816,32 @@
private System.Windows.Forms.NumericUpDown nudCE;
private System.Windows.Forms.NumericUpDown nudCS;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.DateTimePicker ed;
private System.Windows.Forms.DateTimePicker sd;
private System.Windows.Forms.NumericUpDown numericUpDown2;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.DateTimePicker dtPdate;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.NumericUpDown col_crcf;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.NumericUpDown col_sid;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.NumericUpDown numericUpDown7;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.NumericUpDown col_qty;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.NumericUpDown col_name;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.NumericUpDown col_price;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.NumericUpDown col_amt;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.NumericUpDown col_supply;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox tbState;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.TextBox textBox2;
}
}

View File

@@ -21,8 +21,8 @@ namespace FEQ0000
private void __Load(object sender, EventArgs e)
{
this.sd.Value = DateTime.Now.AddMonths(-1);
this.ed.Value = DateTime.Now;
//this.sd.Value = DateTime.Now.AddMonths(-1);
this.dtPdate.Value = DateTime.Now;
}
void __Closed(object sender, FormClosedEventArgs e)
@@ -103,8 +103,8 @@ namespace FEQ0000
//제목줄을 처리한다. 181029
List<string> cols = new List<string>();
string sDate = sd.Value.ToShortDateString();
string eDate = ed.Value.ToShortDateString();
//string sDate = sd.Value.ToShortDateString();
//string eDate = ed.Value.ToShortDateString();
for (int c = MinCol; c <= MaxCol; c++)
{
@@ -160,15 +160,16 @@ namespace FEQ0000
{
nullColumn = true; //날짜가 없다면 패스
break;
} else if(value.CompareTo(sDate) < 0)
{
nullColumn = true; //과거데이터라서 패스
break;
} else if(value.CompareTo(eDate) > 0)
{
nullColumn = true; //미래데이터 패스
break;
}
}
//else if(value.CompareTo(sDate) < 0)
//{
// nullColumn = true; //과거데이터라서 패스
// break;
//} else if(value.CompareTo(eDate) > 0)
//{
// nullColumn = true; //미래데이터 패스
// break;
//}
}
}
else
@@ -220,6 +221,12 @@ namespace FEQ0000
return;
}
if(col_crcf.Value < 1 || col_sid.Value < 1 || col_name.Value < 1)
{
FCOMMON.Util.MsgE("CR번호/품명/SId는 반드시 입력되어야 합니다.");
return;
}
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("다음 자료를 추가하시겠습니까?");
sb.AppendLine();
@@ -247,41 +254,60 @@ namespace FEQ0000
//데이터추가
var newdr = dt.NewRow();
if (dr[1] == DBNull.Value) continue; //nullerror
if (dr[(int)col_crcf.Value] == DBNull.Value) continue; //nullerror
newdr["pdate"] = "2019-01-01";// dr[0].ToString();
newdr["orderno"] = dr[1].ToString();
newdr["sid"] = dr[2].ToString().Replace(" ",""); //181116 - 빈공백제거
newdr["pdate"] = dtPdate.Value.ToString("yyyy-MM-dd");// "2019-01-01";// dr[0].ToString();
newdr["orderno"] = dr[(int)col_crcf.Value].ToString();
newdr["sid"] = dr[(int)col_sid.Value].ToString().Replace(" ", ""); //181116 - 빈공백제거
//이름 변경함
if (dr[3].ToString() != "") dr[3] = dr[3].ToString().Replace("*", "x");
if (dr[4].ToString() != "") dr[4] = dr[4].ToString().Replace("*", "x");
newdr["pumname"] = dr[3].ToString();
newdr["pumscale"] = dr[4].ToString();
if (dr[(int)col_name.Value].ToString() != "") dr[(int)col_name.Value] = dr[(int)col_name.Value].ToString().Replace("*", "x");
//if (dr[4].ToString() != "") dr[4] = dr[4].ToString().Replace("*", "x");
newdr["pumunit"] = dr[7].ToString();
newdr["pumname"] = dr[(int)col_name.Value].ToString();
newdr["pumscale"] = "";// dr[4].ToString();
if (dr[6].ToString() != "")
newdr["pumqty"] = int.Parse(dr[6].ToString());
if ((int)numericUpDown7.Value > 0)
newdr["pumunit"] = dr[(int)numericUpDown7.Value].ToString();
if (dr[5].ToString() != "")
newdr["pumprice"] = decimal.Parse(dr[5].ToString());
if ((int)col_qty.Value > 0)
{
if (dr[(int)col_qty.Value].ToString() != "")
newdr["pumqty"] = int.Parse(dr[(int)col_qty.Value].ToString());
}
if ((int)col_price.Value > 0)
{
if (dr[(int)col_price.Value].ToString() != "")
newdr["pumprice"] = decimal.Parse(dr[(int)col_price.Value].ToString());
}
if ((int)col_amt.Value > 0)
{
if (dr[(int)col_amt.Value].ToString() != "")
newdr["pumamt"] = decimal.Parse(dr[(int)col_amt.Value].ToString());
}
if (dr[8].ToString() != "")
newdr["pumamt"] = decimal.Parse(dr[8].ToString());
if ((int)col_supply.Value > 0)
newdr["supply"] = dr[(int)col_supply.Value].ToString();
newdr["supply"] = dr[10].ToString();
newdr["state"] = "PO";// dr[14 + 6].ToString();
newdr["state"] = tbState.Text;// dr[14 + 6].ToString();
newdr["import"] = true;
newdr["wuid"] = "JBS";
newdr["wdate"] = "2019-04-16 00:00:00";
newdr["wuid"] = FCOMMON.info.Login.no;
newdr["wdate"] = DateTime.Now;
newdr["bigo"] = textBox2.Text.Trim();
dt.Rows.Add(newdr);
}
var taE = new dsPurchaseTableAdapters.PurchaseTableAdapter();
if(checkBox1.Checked) taE.DeleteImport(sd.Value.ToShortDateString(),ed.Value.ToShortDateString());
//과거데이터 삭제
if (checkBox1.Checked) taE.DeleteImport(
dtPdate.Value.ToShortDateString(),
dtPdate.Value.ToShortDateString(),
FCOMMON.info.Login.no);
taE.Update((dsPurchase.PurchaseDataTable)dt);
dt.AcceptChanges();