구매내역 색상 및 필터 정렬 기능 추가, 삭제시 데이터 숨김처리하게

This commit is contained in:
chikyun.kim
2018-12-13 09:29:48 +09:00
parent 1c72ca913a
commit 9cf98cd0d4
21 changed files with 728 additions and 662 deletions

View File

@@ -52,6 +52,7 @@
FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = 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();
@@ -108,6 +109,8 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.btViewDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
@@ -170,14 +173,14 @@
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.bn.Location = new System.Drawing.Point(0, 573);
this.bn.Location = new System.Drawing.Point(0, 634);
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(971, 31);
this.bn.Size = new System.Drawing.Size(1074, 31);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -462,10 +465,12 @@
this.tbRequest,
this.btSearch,
this.toolStripSeparator5,
this.toolStripDropDownButton1});
this.toolStripDropDownButton1,
this.btViewDel,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(971, 31);
this.toolStrip1.Size = new System.Drawing.Size(1074, 31);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
@@ -586,6 +591,26 @@
this.ToolStripMenuItem.Text = "이번달 자료";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// btViewDel
//
this.btViewDel.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btViewDel.CheckOnClick = true;
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.Text = "삭제자료표시";
this.btViewDel.Click += new System.EventHandler(this.btViewDel_Click);
//
// toolStripButton2
//
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(56, 28);
this.toolStripButton2.Text = "Test";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
//
// fpSpread1
//
this.fpSpread1.AccessibleDescription = "";
@@ -597,7 +622,8 @@
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(971, 542);
this.fpSpread1.Size = new System.Drawing.Size(1074, 603);
this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 4;
//
// fpSpread1_Sheet1
@@ -606,66 +632,86 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 23;
this.fpSpread1_Sheet1.ColumnCount = 24;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "Date";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "state";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "sc#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "sid#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "Item";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "등록일";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "공정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "SC#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "수령";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "SID#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "품명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "Model";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "Qty";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "Unit";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "Price";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Amt";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Supply";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "모델";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "단위";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "단가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "합계금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "공급업체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "관련프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "자산번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "입고예정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "입고일";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType18;
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 = "Date";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 34F;
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 = textCellType19;
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 = "상태";
this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 34F;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 66F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType20;
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 = 49F;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 67F;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType21;
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 = textCellType22;
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).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 = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "receive";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(5).Width = 46F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "sid#";
this.fpSpread1_Sheet1.Columns.Get(6).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 31F;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 55F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType25;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "Item";
this.fpSpread1_Sheet1.Columns.Get(7).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(7).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType6.DecimalPlaces = 0;
@@ -680,7 +726,7 @@
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "Model";
this.fpSpread1_Sheet1.Columns.Get(9).Label = "모델";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 43F;
numberCellType7.DecimalPlaces = 0;
numberCellType7.NegativeRed = true;
@@ -691,13 +737,13 @@
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "Qty";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 28F;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "수량";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 44F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType27;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "Unit";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 31F;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 46F;
numberCellType8.DecimalPlaces = 0;
numberCellType8.NegativeRed = true;
numberCellType8.NullDisplay = "--";
@@ -707,17 +753,18 @@
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "Price";
this.fpSpread1_Sheet1.Columns.Get(12).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "Amt";
this.fpSpread1_Sheet1.Columns.Get(13).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(13).Width = 32F;
this.fpSpread1_Sheet1.Columns.Get(14).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType28;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "Supply";
this.fpSpread1_Sheet1.Columns.Get(14).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 46F;
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType9.DecimalPlaces = 0;
@@ -732,6 +779,7 @@
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType29;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "관련프로젝트";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 46F;
this.fpSpread1_Sheet1.Columns.Get(17).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType10.DecimalPlaces = 0;
@@ -746,23 +794,32 @@
this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType30;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "asset";
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 = 35F;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "edate";
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 = 38F;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType32;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(20).Width = 42F;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType33;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(21).Width = 23F;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType34;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(23).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(23).Tag = "isdel";
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
@@ -773,7 +830,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(971, 604);
this.ClientSize = new System.Drawing.Size(1074, 665);
this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
@@ -854,7 +911,9 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem deleteDataToolStripMenuItem;
private System.Windows.Forms.ToolStripButton btViewDel;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}