..
This commit is contained in:
310
SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs
generated
310
SubProject/FEQ0000/PurchaseCR/fPurchaseCR.Designer.cs
generated
@@ -30,44 +30,44 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR));
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = 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.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = 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.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType10 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType11 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
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.TextCellType textCellType82 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType83 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType84 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType31 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType85 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType86 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType32 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType33 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType87 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType34 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType35 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType36 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType88 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType37 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType89 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType38 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType90 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType91 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType92 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType93 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType39 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType94 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType95 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType96 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType97 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType12 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType40 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType98 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType99 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType100 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
this.dsPurchase = new FEQ0000.dsPurchase();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
|
||||
@@ -99,7 +99,6 @@
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
this.집계표ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripButton7 = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
this.입고품목메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.엑셀에서가져오기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.sAP구매신청엑셀작성ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripButton5 = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
@@ -156,7 +155,12 @@
|
||||
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.현재목록메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.메일전송ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.현재목록ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.선택목록ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
|
||||
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();
|
||||
@@ -437,10 +441,9 @@
|
||||
// toolStripButton7
|
||||
//
|
||||
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.입고품목메일전송ToolStripMenuItem,
|
||||
this.메일전송ToolStripMenuItem,
|
||||
this.엑셀에서가져오기ToolStripMenuItem,
|
||||
this.sAP구매신청엑셀작성ToolStripMenuItem,
|
||||
this.현재목록메일전송ToolStripMenuItem});
|
||||
this.sAP구매신청엑셀작성ToolStripMenuItem});
|
||||
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
|
||||
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton7.Name = "toolStripButton7";
|
||||
@@ -448,14 +451,6 @@
|
||||
this.toolStripButton7.Text = "기능";
|
||||
this.toolStripButton7.Click += new System.EventHandler(this.toolStripButton7_Click);
|
||||
//
|
||||
// 입고품목메일전송ToolStripMenuItem
|
||||
//
|
||||
this.입고품목메일전송ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image")));
|
||||
this.입고품목메일전송ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem";
|
||||
this.입고품목메일전송ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
|
||||
this.입고품목메일전송ToolStripMenuItem.Text = "입고 품목 메일 전송";
|
||||
this.입고품목메일전송ToolStripMenuItem.Click += new System.EventHandler(this.입고품목메일전송ToolStripMenuItem_Click);
|
||||
//
|
||||
// 엑셀에서가져오기ToolStripMenuItem
|
||||
//
|
||||
this.엑셀에서가져오기ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
|
||||
@@ -997,15 +992,15 @@
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 29).Value = "비고";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 29F;
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 35F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType10;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1";
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).Width = 33F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType11;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2";
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).Width = 37F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType76;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate";
|
||||
@@ -1013,243 +1008,243 @@
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType77;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "state";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Tag = "state";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType78;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place";
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType79;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "requestName";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Tag = "requestName";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType80;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "costcenter";
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType81;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "linecode";
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType82;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sc";
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "sc";
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType83;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "orderno";
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "crcf";
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType84;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumname";
|
||||
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).Tag = "pumname";
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).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(11).CellType = numberCellType1;
|
||||
numberCellType31.DecimalPlaces = 0;
|
||||
numberCellType31.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType31.MaximumValue = 2147483647D;
|
||||
numberCellType31.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType31;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).Label = "*";
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType10;
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType85;
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "sid";
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).Label = "SID#";
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "sid";
|
||||
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11;
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType86;
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumscale";
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).Label = "모델";
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).Tag = "pumscale";
|
||||
this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F;
|
||||
numberCellType2.DecimalPlaces = 0;
|
||||
numberCellType2.NegativeRed = true;
|
||||
numberCellType2.NullDisplay = "--";
|
||||
numberCellType2.Separator = ",";
|
||||
numberCellType2.ShowSeparator = true;
|
||||
numberCellType2.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2;
|
||||
numberCellType32.DecimalPlaces = 0;
|
||||
numberCellType32.NegativeRed = true;
|
||||
numberCellType32.NullDisplay = "--";
|
||||
numberCellType32.Separator = ",";
|
||||
numberCellType32.ShowSeparator = true;
|
||||
numberCellType32.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType32;
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqtyReq";
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량\r\n(요청)";
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).Tag = "pumqty";
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F;
|
||||
numberCellType3.DecimalPlaces = 0;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType3;
|
||||
numberCellType33.DecimalPlaces = 0;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType33;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty";
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량\r\n(구매)\r\n";
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType87;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit";
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위";
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumunit";
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F;
|
||||
numberCellType4.DecimalPlaces = 2;
|
||||
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType4;
|
||||
numberCellType34.DecimalPlaces = 2;
|
||||
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType34;
|
||||
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumpriceD";
|
||||
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).Tag = "pumpriceD";
|
||||
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
numberCellType5.DecimalPlaces = 0;
|
||||
numberCellType5.MaximumValue = 9999999999999.99D;
|
||||
numberCellType5.MinimumValue = -9999999999999.99D;
|
||||
numberCellType5.NegativeRed = true;
|
||||
numberCellType5.NullDisplay = "--";
|
||||
numberCellType5.Separator = ",";
|
||||
numberCellType5.ShowSeparator = true;
|
||||
numberCellType5.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType5;
|
||||
numberCellType35.DecimalPlaces = 0;
|
||||
numberCellType35.MaximumValue = 9999999999999.99D;
|
||||
numberCellType35.MinimumValue = -9999999999999.99D;
|
||||
numberCellType35.NegativeRed = true;
|
||||
numberCellType35.NullDisplay = "--";
|
||||
numberCellType35.Separator = ",";
|
||||
numberCellType35.ShowSeparator = true;
|
||||
numberCellType35.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType35;
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumprice";
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).Label = "단가";
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "pumprice";
|
||||
this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F;
|
||||
numberCellType6.DecimalPlaces = 0;
|
||||
numberCellType6.MaximumValue = 9999999999999.99D;
|
||||
numberCellType6.MinimumValue = -9999999999999.99D;
|
||||
numberCellType6.NegativeRed = true;
|
||||
numberCellType6.NullDisplay = "--";
|
||||
numberCellType6.Separator = ",";
|
||||
numberCellType6.ShowSeparator = true;
|
||||
numberCellType6.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType6;
|
||||
numberCellType36.DecimalPlaces = 0;
|
||||
numberCellType36.MaximumValue = 9999999999999.99D;
|
||||
numberCellType36.MinimumValue = -9999999999999.99D;
|
||||
numberCellType36.NegativeRed = true;
|
||||
numberCellType36.NullDisplay = "--";
|
||||
numberCellType36.Separator = ",";
|
||||
numberCellType36.ShowSeparator = true;
|
||||
numberCellType36.ShrinkToFit = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType36;
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "pumamt";
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).Label = "금액";
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).Tag = "pumamt";
|
||||
this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(20).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType13;
|
||||
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType88;
|
||||
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supply";
|
||||
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).Tag = "supply";
|
||||
this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
numberCellType7.DecimalPlaces = 0;
|
||||
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType7.MaximumValue = 2147483647D;
|
||||
numberCellType7.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType7;
|
||||
numberCellType37.DecimalPlaces = 0;
|
||||
numberCellType37.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType37.MaximumValue = 2147483647D;
|
||||
numberCellType37.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType37;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "supplyidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(21).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType14;
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType89;
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "project";
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).Tag = "project";
|
||||
this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
numberCellType8.DecimalPlaces = 0;
|
||||
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType8.MaximumValue = 2147483647D;
|
||||
numberCellType8.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType8;
|
||||
numberCellType38.DecimalPlaces = 0;
|
||||
numberCellType38.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType38.MaximumValue = 2147483647D;
|
||||
numberCellType38.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType38;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "projectidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).Tag = "projectidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType15;
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType90;
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "bigo";
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "bigo";
|
||||
this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType16;
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType91;
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "edate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).Label = "예정일";
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "edate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17;
|
||||
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType92;
|
||||
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "receiveName";
|
||||
this.fpSpread1_Sheet1.Columns.Get(26).Label = "수령인";
|
||||
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "receiveName";
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType18;
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType93;
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "indate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).Label = "입고일";
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "indate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
|
||||
numberCellType9.DecimalPlaces = 0;
|
||||
numberCellType9.NegativeRed = true;
|
||||
numberCellType9.ShowSeparator = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType9;
|
||||
numberCellType39.DecimalPlaces = 0;
|
||||
numberCellType39.NegativeRed = true;
|
||||
numberCellType39.ShowSeparator = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType39;
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "inqty";
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).Label = "수량";
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "inqty";
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19;
|
||||
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType94;
|
||||
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "inremark";
|
||||
this.fpSpread1_Sheet1.Columns.Get(29).Label = "비고";
|
||||
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "inremark";
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType20;
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType95;
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "po";
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "po";
|
||||
this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType21;
|
||||
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType96;
|
||||
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "chkremark";
|
||||
this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType22;
|
||||
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType97;
|
||||
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "purchase_manager";
|
||||
this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(32).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType22;
|
||||
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType97;
|
||||
this.fpSpread1_Sheet1.Columns.Get(33).DataField = "purchase_admin";
|
||||
this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(33).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(34).CellType = checkBoxCellType3;
|
||||
this.fpSpread1_Sheet1.Columns.Get(34).CellType = checkBoxCellType12;
|
||||
this.fpSpread1_Sheet1.Columns.Get(34).DataField = "isdel";
|
||||
this.fpSpread1_Sheet1.Columns.Get(34).Tag = "isdel";
|
||||
this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).BackColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).CellType = numberCellType10;
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).CellType = numberCellType40;
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).DataField = "idx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).ForeColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).Tag = "idx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(35).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).BackColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType23;
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType98;
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).DataField = "conf_status";
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).ForeColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).Tag = "conf_status";
|
||||
this.fpSpread1_Sheet1.Columns.Get(36).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).BackColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType24;
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType99;
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).DataField = "conf_request";
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).ForeColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).Tag = "conf_request";
|
||||
this.fpSpread1_Sheet1.Columns.Get(37).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).BackColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).CellType = textCellType25;
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).CellType = textCellType100;
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).DataField = "conf_request";
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "conf_request";
|
||||
@@ -1274,12 +1269,51 @@
|
||||
this.label2.Text = "--";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// 현재목록메일전송ToolStripMenuItem
|
||||
// 메일전송ToolStripMenuItem
|
||||
//
|
||||
this.현재목록메일전송ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
|
||||
this.현재목록메일전송ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
|
||||
this.현재목록메일전송ToolStripMenuItem.Text = "현재목록 메일전송";
|
||||
this.현재목록메일전송ToolStripMenuItem.Click += new System.EventHandler(this.현재목록메일전송ToolStripMenuItem_Click);
|
||||
this.메일전송ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.현재목록ToolStripMenuItem,
|
||||
this.선택목록ToolStripMenuItem,
|
||||
this.toolStripSeparator7,
|
||||
this.현재목록입고양식ToolStripMenuItem,
|
||||
this.선택목록입고양식ToolStripMenuItem});
|
||||
this.메일전송ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem.Image")));
|
||||
this.메일전송ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
|
||||
this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
|
||||
this.메일전송ToolStripMenuItem.Text = "메일 전송";
|
||||
//
|
||||
// 현재목록ToolStripMenuItem
|
||||
//
|
||||
this.현재목록ToolStripMenuItem.Name = "현재목록ToolStripMenuItem";
|
||||
this.현재목록ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.현재목록ToolStripMenuItem.Text = "현재목록";
|
||||
this.현재목록ToolStripMenuItem.Click += new System.EventHandler(this.현재목록ToolStripMenuItem_Click);
|
||||
//
|
||||
// 선택목록ToolStripMenuItem
|
||||
//
|
||||
this.선택목록ToolStripMenuItem.Name = "선택목록ToolStripMenuItem";
|
||||
this.선택목록ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.선택목록ToolStripMenuItem.Text = "선택목록";
|
||||
this.선택목록ToolStripMenuItem.Click += new System.EventHandler(this.선택목록ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator7
|
||||
//
|
||||
this.toolStripSeparator7.Name = "toolStripSeparator7";
|
||||
this.toolStripSeparator7.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 현재목록입고양식ToolStripMenuItem
|
||||
//
|
||||
this.현재목록입고양식ToolStripMenuItem.Name = "현재목록입고양식ToolStripMenuItem";
|
||||
this.현재목록입고양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.현재목록입고양식ToolStripMenuItem.Text = "현재목록(입고양식)";
|
||||
this.현재목록입고양식ToolStripMenuItem.Click += new System.EventHandler(this.현재목록입고양식ToolStripMenuItem_Click);
|
||||
//
|
||||
// 선택목록입고양식ToolStripMenuItem
|
||||
//
|
||||
this.선택목록입고양식ToolStripMenuItem.Name = "선택목록입고양식ToolStripMenuItem";
|
||||
this.선택목록입고양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.선택목록입고양식ToolStripMenuItem.Text = "선택목록(입고양식)";
|
||||
this.선택목록입고양식ToolStripMenuItem.Click += new System.EventHandler(this.선택목록입고양식ToolStripMenuItem_Click);
|
||||
//
|
||||
// fPurchaseCR
|
||||
//
|
||||
@@ -1380,7 +1414,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem cRCF검색ToolStripMenuItem;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ToolStripDropDownButton toolStripButton7;
|
||||
private System.Windows.Forms.ToolStripMenuItem 입고품목메일전송ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 엑셀에서가져오기ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
private FarPoint.Win.Spread.FpSpread fpSpread1;
|
||||
@@ -1400,6 +1433,11 @@
|
||||
private System.Windows.Forms.ToolStripTextBox tbAdmin;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton8;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 현재목록메일전송ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 메일전송ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 현재목록ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
|
||||
private System.Windows.Forms.ToolStripMenuItem 현재목록입고양식ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록입고양식ToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -779,6 +779,173 @@ namespace FEQ0000
|
||||
refreshData();
|
||||
}
|
||||
|
||||
List<dsPurchase.EETGW_PurchaseCRRow> GetDatarows(bool all = false)
|
||||
{
|
||||
List<dsPurchase.EETGW_PurchaseCRRow> rows = new List<dsPurchase.EETGW_PurchaseCRRow>();
|
||||
|
||||
if (all)
|
||||
{
|
||||
var drows = (dsPurchase.EETGW_PurchaseCRRow[])(this.dsPurchase.EETGW_PurchaseCR.Select(this.bs.Filter, this.bs.Sort)); ;
|
||||
foreach (var dr in drows)
|
||||
rows.Add(dr);
|
||||
}
|
||||
else
|
||||
{
|
||||
//선택된 자료의 데이터를 추출한다.
|
||||
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
|
||||
List<int> rowidxs = new List<int>();
|
||||
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
|
||||
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
|
||||
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
|
||||
foreach (var item in selected)
|
||||
{
|
||||
for (int i = item.Row; i < item.Row + item.RowCount; i++)
|
||||
{
|
||||
if (rowidxs.Contains(i) == false)
|
||||
{
|
||||
if (fpSpread1_Sheet1.IsRowBound(i))
|
||||
{
|
||||
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
|
||||
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
|
||||
//if (state != null && state.ToString() != "---")
|
||||
//{
|
||||
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
|
||||
//}
|
||||
//else if (confsta != null && confsta.ToString() != "0")
|
||||
//{
|
||||
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
|
||||
//}
|
||||
// else
|
||||
rowidxs.Add(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//수집된데이터를 보내야한다.
|
||||
|
||||
var idx = 0;
|
||||
foreach (var i in rowidxs)
|
||||
{
|
||||
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
|
||||
var row = this.dsPurchase.EETGW_PurchaseCR.Where(t => t.idx == rowidx).First();
|
||||
rows.Add(row);
|
||||
}
|
||||
if (rows.Any() == false)
|
||||
{
|
||||
if (this.bs.Count > 0)
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
rows.Add(drv.Row as dsPurchase.EETGW_PurchaseCRRow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rows;
|
||||
|
||||
}
|
||||
|
||||
void MailSendNoForm(bool alldata, string cate = "")
|
||||
{
|
||||
var form_subject = "";
|
||||
var form_body = "";
|
||||
var form_to = "";
|
||||
var form_cc = "{요청}";
|
||||
var form_bcc = "";//f.tbBcc.Text.Trim();
|
||||
bool attachfile = true;
|
||||
bool attachlist = true;
|
||||
|
||||
if (cate.isEmpty() == false)
|
||||
{
|
||||
var db = new DataClasses1DataContext();
|
||||
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
|
||||
var f = new Purchase.fMailForm(cate);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
form_subject = f.tbSubject.Text.Trim();
|
||||
form_body = f.htmlEditor1.Html;
|
||||
form_to = f.tbTo.Text.Trim();
|
||||
form_cc = f.tbCC.Text.Trim();
|
||||
form_bcc = f.tbBcc.Text.Trim();
|
||||
attachfile = f.chkAttach.Checked;
|
||||
attachlist = f.chkList.Checked;
|
||||
}
|
||||
|
||||
//현재표시데이터중에 수신자목록을 가져온다
|
||||
var drows = this.GetDatarows(alldata);
|
||||
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
|
||||
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
|
||||
|
||||
|
||||
List<string> tolist = new List<string>(); //최종받는사람
|
||||
List<string> cclist = new List<string>();
|
||||
List<string> bcclist = new List<string>();
|
||||
|
||||
//받는사람
|
||||
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
|
||||
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
|
||||
form_to = form_to.Replace("{요청}", "");
|
||||
form_to = form_to.Replace("{수령}", "");
|
||||
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
tolist = ChangeMailAddress(tolist);
|
||||
|
||||
//참조
|
||||
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
|
||||
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
|
||||
form_cc = form_cc.Replace("{요청}", "");
|
||||
form_cc = form_cc.Replace("{수령}", "");
|
||||
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
cclist = ChangeMailAddress(cclist);
|
||||
|
||||
//숨은참조
|
||||
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
|
||||
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
|
||||
form_bcc = form_bcc.Replace("{요청}", "");
|
||||
form_bcc = form_bcc.Replace("{수령}", "");
|
||||
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
bcclist = ChangeMailAddress(bcclist);
|
||||
|
||||
var datestr = DateTime.Now.ToShortDateString();
|
||||
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
|
||||
else datestr = dtSD.Text + "~" + dtED.Text;
|
||||
form_subject = form_subject.Replace("{DATE}", datestr);
|
||||
|
||||
try
|
||||
{
|
||||
Outlook.Application outlookApplication = new Outlook.Application();
|
||||
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
|
||||
newMail.Display();
|
||||
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
|
||||
newMail.To = string.Join(";", tolist.ToArray());
|
||||
newMail.CC = string.Join(";", cclist.ToArray());
|
||||
newMail.BCC = string.Join(";", bcclist.ToArray());
|
||||
string fn = "";
|
||||
if (attachfile)
|
||||
{
|
||||
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNRI_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
|
||||
if (fi.Directory.Exists == false) fi.Directory.Create();
|
||||
fn = fi.FullName;
|
||||
}
|
||||
|
||||
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(drows, fn);
|
||||
if (attachlist)
|
||||
{
|
||||
form_body += "<br />" + tabledata;
|
||||
}
|
||||
|
||||
if (fn.isEmpty() == false)
|
||||
newMail.Attachments.Add(fn);
|
||||
|
||||
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
|
||||
form_body = form_body.Replace("{DATE}", datestr);
|
||||
newMail.HTMLBody = form_body + newMail.HTMLBody; //
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
|
||||
"아웃룩의 설정이 정상인지 확인하세요");
|
||||
}
|
||||
}
|
||||
|
||||
void func_copy()
|
||||
{
|
||||
@@ -941,16 +1108,6 @@ namespace FEQ0000
|
||||
else this.label2.Visible = false;
|
||||
}
|
||||
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
string getmaxstr(string src, int len = 30)
|
||||
{
|
||||
if (src.Length > len) return src.Substring(0, len) + "...";
|
||||
else return src;
|
||||
}
|
||||
|
||||
List<string> ChangeMailAddress(List<string> userid)
|
||||
{
|
||||
@@ -980,16 +1137,6 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
//선택된 줄의 데이터를 생성하낟.
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
var dr = drv.Row as dsPurchase.EETGW_PurchaseCRRow;
|
||||
string buffer = string.Format("{0}_{1}", dr.pumname.Replace("_", "-"), dr.pumscale.Replace("_", "-"), dr.dept.Replace("_", "-"), dr.manuproc.Replace("_", "-"), dr.asset.Replace("_", "-"));
|
||||
Clipboard.SetText(buffer);
|
||||
//FCOMMON.Util.MsgI("다음 데이터가 클립보드에 저장됨\n\n" + buffer); 190131
|
||||
}
|
||||
|
||||
private void dtSD_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
@@ -1014,190 +1161,7 @@ namespace FEQ0000
|
||||
f.Show();
|
||||
}
|
||||
|
||||
private void 입고품목메일전송ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
var db = new DataClasses1DataContext();
|
||||
var dr = db.MailForm.Where(t => t.cate == "PD").FirstOrDefault();
|
||||
|
||||
//현재표시데이터중에 수신자목록을 가져온다
|
||||
var drows = (dsPurchase.EETGW_PurchaseCRRow[])(this.dsPurchase.EETGW_PurchaseCR.Select(this.bs.Filter, this.bs.Sort));
|
||||
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
|
||||
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
|
||||
|
||||
var f = new Purchase.fMailForm("PD");
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
var form_subject = f.tbSubject.Text.Trim();
|
||||
var form_body = f.htmlEditor1.Html;
|
||||
var form_to = f.tbTo.Text.Trim();
|
||||
var form_cc = f.tbCC.Text.Trim();
|
||||
var form_bcc = f.tbBcc.Text.Trim();
|
||||
|
||||
List<string> tolist = new List<string>(); //최종받는사람
|
||||
List<string> cclist = new List<string>();
|
||||
List<string> bcclist = new List<string>();
|
||||
|
||||
//받는사람
|
||||
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
|
||||
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
|
||||
form_to = form_to.Replace("{요청}", "");
|
||||
form_to = form_to.Replace("{수령}", "");
|
||||
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
tolist = ChangeMailAddress(tolist);
|
||||
|
||||
//참조
|
||||
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
|
||||
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
|
||||
form_cc = form_cc.Replace("{요청}", "");
|
||||
form_cc = form_cc.Replace("{수령}", "");
|
||||
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
cclist = ChangeMailAddress(cclist);
|
||||
|
||||
//숨은참조
|
||||
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
|
||||
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
|
||||
form_bcc = form_bcc.Replace("{요청}", "");
|
||||
form_bcc = form_bcc.Replace("{수령}", "");
|
||||
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
bcclist = ChangeMailAddress(bcclist);
|
||||
|
||||
var datestr = DateTime.Now.ToShortDateString();
|
||||
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
|
||||
else datestr = dtSD.Text + "~" + dtED.Text;
|
||||
form_subject = form_subject.Replace("{DATE}", datestr);
|
||||
|
||||
try
|
||||
{
|
||||
Outlook.Application outlookApplication = new Outlook.Application();
|
||||
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
|
||||
newMail.Display();
|
||||
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
|
||||
newMail.To = string.Join(";", tolist.ToArray());
|
||||
newMail.CC = string.Join(";", cclist.ToArray());
|
||||
newMail.BCC = string.Join(";", bcclist.ToArray());
|
||||
if (f.chkAttach.Checked)
|
||||
{
|
||||
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseCR_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
|
||||
if (fi.Directory.Exists == false) fi.Directory.Create();
|
||||
|
||||
///save file
|
||||
fpSpread1.SaveExcel(fi.FullName,
|
||||
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
|
||||
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
|
||||
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
|
||||
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
|
||||
|
||||
newMail.Attachments.Add(fi.FullName);
|
||||
}
|
||||
if (f.chkList.Checked)
|
||||
{
|
||||
//목록을 본문에 추가한다
|
||||
System.Text.StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
|
||||
sb.AppendLine("<thead>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
|
||||
sb.AppendLine("</thead>");
|
||||
sb.AppendLine("<tbody>");
|
||||
|
||||
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
|
||||
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
|
||||
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
|
||||
|
||||
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
|
||||
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
|
||||
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
|
||||
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
|
||||
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
|
||||
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
|
||||
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
|
||||
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
|
||||
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
|
||||
|
||||
|
||||
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
|
||||
{
|
||||
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
|
||||
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
|
||||
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
|
||||
|
||||
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
|
||||
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
|
||||
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
|
||||
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
|
||||
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
|
||||
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
|
||||
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
|
||||
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
|
||||
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
|
||||
|
||||
var s신청 = String.Empty;
|
||||
var s요청 = String.Empty;
|
||||
var sCRCF = String.Empty;
|
||||
var s수령 = String.Empty;
|
||||
var sSID = String.Empty;
|
||||
var s품명 = String.Empty;
|
||||
var s규격 = String.Empty;
|
||||
var s수량 = "0";
|
||||
var s단가 = "0";
|
||||
var s금액 = "0";
|
||||
var s입고 = String.Empty;
|
||||
var s공급 = String.Empty;
|
||||
var s비고 = String.Empty;
|
||||
|
||||
if (v신청 != null) s신청 = v신청.ToString();
|
||||
if (v요청 != null) s요청 = v요청.ToString();
|
||||
if (vCRCF != null) sCRCF = vCRCF.ToString();
|
||||
if (v수령 != null) s수령 = v수령.ToString();
|
||||
if (vSID != null) sSID = vSID.ToString();
|
||||
if (v품명 != null) s품명 = v품명.ToString();
|
||||
if (v규격 != null) s규격 = v규격.ToString();
|
||||
if (v수량 != null) s수량 = v수량.ToString();
|
||||
if (v단가 != null) s단가 = v단가.ToString();
|
||||
if (v금액 != null) s금액 = v금액.ToString();
|
||||
if (v공급 != null) s공급 = v공급.ToString();
|
||||
|
||||
sb.AppendLine("<tr>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
|
||||
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
|
||||
|
||||
sb.AppendLine("</tr>");
|
||||
}
|
||||
sb.AppendLine("</tbody>");
|
||||
sb.AppendLine("</table>");
|
||||
form_body += sb.ToString();
|
||||
}
|
||||
|
||||
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
|
||||
form_body = form_body.Replace("{DATE}", datestr);
|
||||
newMail.HTMLBody = form_body + newMail.HTMLBody; //
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
|
||||
"아웃룩의 설정이 정상인지 확인하세요");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void toolStripButton3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var fn = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "PurcManual.pdf");
|
||||
@@ -1437,189 +1401,25 @@ namespace FEQ0000
|
||||
FormattingData();
|
||||
}
|
||||
|
||||
private void 현재목록메일전송ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
||||
private void 현재목록ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var cate = "PO";
|
||||
MailSendNoForm(true);
|
||||
}
|
||||
|
||||
var db = new DataClasses1DataContext();
|
||||
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
|
||||
private void 선택목록ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MailSendNoForm(false);
|
||||
}
|
||||
|
||||
//현재표시데이터중에 수신자목록을 가져온다
|
||||
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
|
||||
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
|
||||
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
|
||||
private void 현재목록입고양식ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MailSendNoForm(true, "PD");
|
||||
}
|
||||
|
||||
var f = new Purchase.fMailForm(cate);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
var form_subject = f.tbSubject.Text.Trim();
|
||||
var form_body = f.htmlEditor1.Html;
|
||||
var form_to = f.tbTo.Text.Trim();
|
||||
var form_cc = f.tbCC.Text.Trim();
|
||||
var form_bcc = f.tbBcc.Text.Trim();
|
||||
|
||||
List<string> tolist = new List<string>(); //최종받는사람
|
||||
List<string> cclist = new List<string>();
|
||||
List<string> bcclist = new List<string>();
|
||||
|
||||
//받는사람
|
||||
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
|
||||
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
|
||||
form_to = form_to.Replace("{요청}", "");
|
||||
form_to = form_to.Replace("{수령}", "");
|
||||
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
tolist = ChangeMailAddress(tolist);
|
||||
|
||||
//참조
|
||||
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
|
||||
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
|
||||
form_cc = form_cc.Replace("{요청}", "");
|
||||
form_cc = form_cc.Replace("{수령}", "");
|
||||
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
cclist = ChangeMailAddress(cclist);
|
||||
|
||||
//숨은참조
|
||||
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
|
||||
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
|
||||
form_bcc = form_bcc.Replace("{요청}", "");
|
||||
form_bcc = form_bcc.Replace("{수령}", "");
|
||||
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
bcclist = ChangeMailAddress(bcclist);
|
||||
|
||||
var datestr = DateTime.Now.ToShortDateString();
|
||||
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
|
||||
else datestr = dtSD.Text + "~" + dtED.Text;
|
||||
form_subject = form_subject.Replace("{DATE}", datestr);
|
||||
|
||||
try
|
||||
{
|
||||
Outlook.Application outlookApplication = new Outlook.Application();
|
||||
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
|
||||
newMail.Display();
|
||||
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
|
||||
newMail.To = string.Join(";", tolist.ToArray());
|
||||
newMail.CC = string.Join(";", cclist.ToArray());
|
||||
newMail.BCC = string.Join(";", bcclist.ToArray());
|
||||
if (f.chkAttach.Checked)
|
||||
{
|
||||
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
|
||||
if (fi.Directory.Exists == false) fi.Directory.Create();
|
||||
|
||||
///save file
|
||||
fpSpread1.SaveExcel(fi.FullName,
|
||||
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
|
||||
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
|
||||
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
|
||||
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
|
||||
|
||||
newMail.Attachments.Add(fi.FullName);
|
||||
}
|
||||
if (f.chkList.Checked)
|
||||
{
|
||||
//목록을 본문에 추가한다
|
||||
System.Text.StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
|
||||
sb.AppendLine("<thead>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
|
||||
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
|
||||
sb.AppendLine("</thead>");
|
||||
sb.AppendLine("<tbody>");
|
||||
|
||||
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
|
||||
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
|
||||
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
|
||||
|
||||
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
|
||||
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
|
||||
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
|
||||
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
|
||||
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
|
||||
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
|
||||
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
|
||||
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
|
||||
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
|
||||
|
||||
|
||||
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
|
||||
{
|
||||
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
|
||||
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
|
||||
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
|
||||
|
||||
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
|
||||
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
|
||||
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
|
||||
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
|
||||
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
|
||||
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
|
||||
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
|
||||
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
|
||||
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
|
||||
|
||||
var s신청 = String.Empty;
|
||||
var s요청 = String.Empty;
|
||||
var sCRCF = String.Empty;
|
||||
var s수령 = String.Empty;
|
||||
var sSID = String.Empty;
|
||||
var s품명 = String.Empty;
|
||||
var s규격 = String.Empty;
|
||||
var s수량 = "0";
|
||||
var s단가 = "0";
|
||||
var s금액 = "0";
|
||||
var s입고 = String.Empty;
|
||||
var s공급 = String.Empty;
|
||||
var s비고 = String.Empty;
|
||||
|
||||
if (v신청 != null) s신청 = v신청.ToString();
|
||||
if (v요청 != null) s요청 = v요청.ToString();
|
||||
if (vCRCF != null) sCRCF = vCRCF.ToString();
|
||||
if (v수령 != null) s수령 = v수령.ToString();
|
||||
if (vSID != null) sSID = vSID.ToString();
|
||||
if (v품명 != null) s품명 = v품명.ToString();
|
||||
if (v규격 != null) s규격 = v규격.ToString();
|
||||
if (v수량 != null) s수량 = v수량.ToString();
|
||||
if (v단가 != null) s단가 = v단가.ToString();
|
||||
if (v금액 != null) s금액 = v금액.ToString();
|
||||
if (v공급 != null) s공급 = v공급.ToString();
|
||||
|
||||
sb.AppendLine("<tr>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
|
||||
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
|
||||
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
|
||||
|
||||
sb.AppendLine("</tr>");
|
||||
}
|
||||
sb.AppendLine("</tbody>");
|
||||
sb.AppendLine("</table>");
|
||||
form_body += sb.ToString();
|
||||
}
|
||||
|
||||
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
|
||||
form_body = form_body.Replace("{DATE}", datestr);
|
||||
newMail.HTMLBody = form_body + newMail.HTMLBody; //
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
|
||||
"아웃룩의 설정이 정상인지 확인하세요");
|
||||
}
|
||||
private void 선택목록입고양식ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MailSendNoForm(false, "PD");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="입고품목메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
R0lGODlhEAAQAIQfAPr8/VVritvj7IqsyElVa+Ps9MvT2rvc/aPQ/KrU/Or0/nmYspzN/LbZ/FJgeXiQ
|
||||
q0NLXHWPrJnA1sDf/CkxQ9RSXD5FVa/X/H2fudPn8HyjwMPg/WV/nG+Or////////yH/C05FVFNDQVBF
|
||||
|
||||
@@ -314,11 +314,6 @@ namespace FEQ0000
|
||||
|
||||
}
|
||||
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void bs_CurrentChanged(object sender, EventArgs e)
|
||||
{
|
||||
var dr = bs.Current as dsPurchase.EETGW_PurchaseCRRow;
|
||||
@@ -328,10 +323,7 @@ namespace FEQ0000
|
||||
//else richTextBox2.Text = dr.bigo;
|
||||
}
|
||||
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
string getmaxstr(string src, int len = 30)
|
||||
{
|
||||
@@ -440,77 +432,25 @@ namespace FEQ0000
|
||||
newMail.To = string.Join(";", tolist.ToArray());
|
||||
newMail.CC = string.Join(";", cclist.ToArray());
|
||||
newMail.BCC = string.Join(";", bcclist.ToArray());
|
||||
string fn = "";
|
||||
if (f.chkAttach.Checked)
|
||||
{
|
||||
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmcr_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
|
||||
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
|
||||
if (fi.Directory.Exists == false) fi.Directory.Create();
|
||||
fn = fi.FullName;
|
||||
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
|
||||
|
||||
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
|
||||
|
||||
|
||||
newMail.Attachments.Add(fi.FullName);
|
||||
//newMail.Attachments.Add(fi.FullName);
|
||||
}
|
||||
if (f.chkList.Checked)
|
||||
{
|
||||
var rows = this.rows;
|
||||
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
|
||||
|
||||
//목록을 본문에 추가한다
|
||||
System.Text.StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
|
||||
sb.AppendLine("<thead>");
|
||||
|
||||
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
|
||||
{
|
||||
if (col.DataPropertyName.ToLower() == "pumqty") continue;
|
||||
sb.AppendLine($"<td style='text-align:center;background-color: aqua;'>{col.HeaderText}</td>");
|
||||
}
|
||||
sb.AppendLine("</thead>");
|
||||
sb.AppendLine("<tbody>");
|
||||
|
||||
for (int i = 0; i < this.dataGridView1.RowCount; i++)
|
||||
{
|
||||
|
||||
sb.AppendLine("<tr>");
|
||||
|
||||
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
|
||||
{
|
||||
if (col.DataPropertyName.ToLower() == "pumqty") continue;
|
||||
var v = dataGridView1.Rows[i].Cells[col.Index].Value;
|
||||
string value = "";
|
||||
if (v != null) value = v.ToString();
|
||||
|
||||
if (col.ValueType == typeof(int))
|
||||
{
|
||||
var ivalue = (int)v;
|
||||
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
|
||||
}
|
||||
else if (col.ValueType == typeof(decimal))
|
||||
{
|
||||
var ivalue = (decimal)v;
|
||||
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
|
||||
}
|
||||
else if (col.ValueType == typeof(float))
|
||||
{
|
||||
var ivalue = (float)v;
|
||||
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
|
||||
}
|
||||
else if (col.ValueType == typeof(double))
|
||||
{
|
||||
var ivalue = (double)v;
|
||||
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
|
||||
}
|
||||
else sb.AppendLine($"<td>{getmaxstr(value)}</td>");
|
||||
}
|
||||
sb.AppendLine("</tr>");
|
||||
}
|
||||
sb.AppendLine("</tbody>");
|
||||
sb.AppendLine("</table>");
|
||||
sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}");
|
||||
form_body = form_body.Replace("{body}", sb.ToString());
|
||||
}
|
||||
|
||||
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
|
||||
if (fn.isEmpty() == false)
|
||||
newMail.Attachments.Add(fn);
|
||||
|
||||
form_body = form_body.Replace("{body}", tabledata);
|
||||
newMail.HTMLBody = form_body + newMail.HTMLBody; //
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user