This commit is contained in:
chi
2024-01-16 10:09:25 +09:00
parent d76b40ddf0
commit c2be3da94a
40 changed files with 3288 additions and 2627 deletions

View File

@@ -30,37 +30,37 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB));
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.TextCellType textCellType85 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType86 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType87 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType88 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType89 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType90 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType41 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType91 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType42 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType43 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType92 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType44 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType93 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType45 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType46 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType94 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType47 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType48 = new FarPoint.Win.Spread.CellType.NumberCellType();
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.NumberCellType numberCellType49 = 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.CheckBoxCellType checkBoxCellType5 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType50 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType100 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType121 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType122 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType123 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType124 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType125 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType126 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType127 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType128 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType129 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType130 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType61 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType131 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType62 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType63 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType132 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType64 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType133 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType65 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType66 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType134 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType67 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType68 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType135 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType136 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType137 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType69 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType138 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType139 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType7 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType70 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType140 = new FarPoint.Win.Spread.CellType.TextCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
@@ -94,10 +94,8 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
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.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -143,6 +141,12 @@
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
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.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();
@@ -255,6 +259,7 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -381,6 +386,7 @@
// tbFind
//
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbFind.Name = "tbFind";
this.tbFind.Size = new System.Drawing.Size(100, 26);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
@@ -439,10 +445,9 @@
// toolStripButton7
//
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem2});
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
@@ -450,14 +455,6 @@
this.toolStripButton7.Size = new System.Drawing.Size(60, 23);
this.toolStripButton7.Text = "기능";
//
// 입고품목메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "입고 품목 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 엑셀에서가져오기ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
@@ -474,13 +471,6 @@
this.ToolStripMenuItem.Text = "견적서 폴더 열기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 현재목록메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "현재 목록 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
@@ -661,6 +651,7 @@
// dtSD
//
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtSD.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(75, 37);
this.dtSD.Text = "1982-11-23";
@@ -677,6 +668,7 @@
// dtED
//
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtED.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(75, 37);
this.dtED.Text = "1982-11-23";
@@ -732,6 +724,7 @@
// tbRequest
//
this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbRequest.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbRequest.Name = "tbRequest";
this.tbRequest.Size = new System.Drawing.Size(70, 37);
this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@@ -878,7 +871,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 = textCellType81;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType121;
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 = "구매신청일";
@@ -887,7 +880,7 @@
this.fpSpread1_Sheet1.Columns.Get(0).Width = 119F;
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 = textCellType82;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType122;
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 = "상태";
@@ -895,7 +888,7 @@
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType83;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType123;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "site";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "SITE";
@@ -903,7 +896,7 @@
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType84;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType124;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "분류";
@@ -911,13 +904,13 @@
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 100F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType85;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType125;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청";
this.fpSpread1_Sheet1.Columns.Get(4).Tag = "requestName";
this.fpSpread1_Sheet1.Columns.Get(4).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType86;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType126;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#";
@@ -925,7 +918,7 @@
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType87;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType127;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "SCR/CF";
@@ -933,208 +926,208 @@
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType88;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType128;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(7).Tag = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(7).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType89;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType129;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType90;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType130;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "pumname";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType41.DecimalPlaces = 0;
numberCellType41.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType41.MaximumValue = 2147483647D;
numberCellType41.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType41;
numberCellType61.DecimalPlaces = 0;
numberCellType61.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType61.MaximumValue = 2147483647D;
numberCellType61.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType61;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType91;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType131;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 119F;
numberCellType42.DecimalPlaces = 0;
numberCellType42.NegativeRed = true;
numberCellType42.NullDisplay = "--";
numberCellType42.Separator = ",";
numberCellType42.ShowSeparator = true;
numberCellType42.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType42;
numberCellType62.DecimalPlaces = 0;
numberCellType62.NegativeRed = true;
numberCellType62.NullDisplay = "--";
numberCellType62.Separator = ",";
numberCellType62.ShowSeparator = true;
numberCellType62.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType62;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "pumqtyReq";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "수량\r\n(요청)";
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 119F;
numberCellType43.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType43;
numberCellType63.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType63;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "수량\r\n(구매)";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType92;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType132;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumunit";
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 = 119F;
numberCellType44.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType44;
numberCellType64.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType64;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "단가\r\n(해외)";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType93;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType133;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "currency";
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Width = 119F;
numberCellType45.DecimalPlaces = 0;
numberCellType45.MaximumValue = 9999999999999.99D;
numberCellType45.MinimumValue = -9999999999999.99D;
numberCellType45.NegativeRed = true;
numberCellType45.NullDisplay = "--";
numberCellType45.Separator = ",";
numberCellType45.ShowSeparator = true;
numberCellType45.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType45;
numberCellType65.DecimalPlaces = 0;
numberCellType65.MaximumValue = 9999999999999.99D;
numberCellType65.MinimumValue = -9999999999999.99D;
numberCellType65.NegativeRed = true;
numberCellType65.NullDisplay = "--";
numberCellType65.Separator = ",";
numberCellType65.ShowSeparator = true;
numberCellType65.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType65;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice";
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 = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 119F;
numberCellType46.DecimalPlaces = 0;
numberCellType46.MaximumValue = 9999999999999.99D;
numberCellType46.MinimumValue = -9999999999999.99D;
numberCellType46.NegativeRed = true;
numberCellType46.NullDisplay = "--";
numberCellType46.Separator = ",";
numberCellType46.ShowSeparator = true;
numberCellType46.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType46;
numberCellType66.DecimalPlaces = 0;
numberCellType66.MaximumValue = 9999999999999.99D;
numberCellType66.MinimumValue = -9999999999999.99D;
numberCellType66.NegativeRed = true;
numberCellType66.NullDisplay = "--";
numberCellType66.Separator = ",";
numberCellType66.ShowSeparator = true;
numberCellType66.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType66;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt";
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 = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType94;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType134;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(19).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType47.DecimalPlaces = 0;
numberCellType47.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType47.MaximumValue = 2147483647D;
numberCellType47.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType47;
numberCellType67.DecimalPlaces = 0;
numberCellType67.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType67.MaximumValue = 2147483647D;
numberCellType67.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType67;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx";
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).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType48.DecimalPlaces = 0;
numberCellType48.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType48.MaximumValue = 2147483647D;
numberCellType48.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType48;
numberCellType68.DecimalPlaces = 0;
numberCellType68.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType68.MaximumValue = 2147483647D;
numberCellType68.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType68;
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).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(21).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 119F;
textCellType95.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType95;
textCellType135.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType135;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(22).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType96;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType136;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType97;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType137;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(24).Width = 119F;
numberCellType49.DecimalPlaces = 0;
numberCellType49.NegativeRed = true;
numberCellType49.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType49;
numberCellType69.DecimalPlaces = 0;
numberCellType69.NegativeRed = true;
numberCellType69.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType69;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "inqty";
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 = "inqty";
this.fpSpread1_Sheet1.Columns.Get(25).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType98;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType138;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 119F;
textCellType99.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType99;
textCellType139.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType139;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(27).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(27).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = checkBoxCellType5;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = checkBoxCellType7;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(28).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(28).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType50;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType70;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(29).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(29).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(29).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(30).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(30).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(30).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(31).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(31).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(31).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(31).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(32).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(32).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(32).Tag = "conf_reponse";
@@ -1171,6 +1164,52 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 메일전송ToolStripMenuItem
//
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(180, 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);
//
// fPurchaseEB
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1271,7 +1310,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton4;
@@ -1280,9 +1318,14 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
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.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -1015,101 +1015,7 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PF";
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
//현재표시데이터중에 수신자목록을 가져온다
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();
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());
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
///save file
//fpSpread1.SaveExcel(fi.FullName,
// FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
// | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
// | FarPoint.Excel.ExcelSaveFlags.NoFormulas
// | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
}
var rows = this.GetDatarows();
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
if (f.chkList.Checked)
{
form_body += 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" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
//string MakeDataTableToHTML(string savefilenamexls = "")
@@ -1473,56 +1379,67 @@ namespace FEQ0000
}
List<dsPurchase.EETGW_PurchaseEBRow> GetDatarows()
List<dsPurchase.EETGW_PurchaseEBRow> GetDatarows(bool all = false)
{
List<dsPurchase.EETGW_PurchaseEBRow> rows = new List<dsPurchase.EETGW_PurchaseEBRow>();
//선택된 자료의 데이터를 추출한다.
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)
if (all)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.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)
{
if (rowidxs.Contains(i) == false)
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (fpSpread1_Sheet1.IsRowBound(i))
if (rowidxs.Contains(i) == false)
{
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
if (state != null && state.ToString() != "---")
if (fpSpread1_Sheet1.IsRowBound(i))
{
FCOMMON.Util.MsgE($"{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);
}
//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_PurchaseEB.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
if (rows.Any() == false)
{
if (this.bs.Count > 0)
var idx = 0;
foreach (var i in rowidxs)
{
var drv = this.bs.Current as DataRowView;
rows.Add(drv.Row as dsPurchase.EETGW_PurchaseEBRow);
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.EETGW_PurchaseEB.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_PurchaseEBRow);
}
}
}
return rows;
}
@@ -1546,24 +1463,83 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PO";
}
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rows = new List<int>();
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rows.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
}
//이대상의 실제 데이터베이스 인덱스값을 생성해서 폼에 전송한다.
var codlist = DBM.getCodeList("04");
var f = new FEQ0000.Purchase.fBatchUpdate(rows);
if (f.ShowDialog() != DialogResult.OK) return;
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
FCOMMON.Util.MsgI($"{rows.Count} 건의 자료가 변경되었습니다\n저장 버튼을 누르면 적용 됩니다\n취소하려면 새로고침을 누르세요");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true);
}
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 = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
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();
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>();
@@ -1607,117 +1583,23 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
string fn = "";
if (attachfile)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNRI_" + 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);
fn = fi.FullName;
}
if (f.chkList.Checked)
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(drows, fn);
if (attachlist)
{
//목록을 본문에 추가한다
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>" + UTIL_EQ0000.getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.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>" + UTIL_EQ0000.getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
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; //
@@ -1729,42 +1611,20 @@ namespace FEQ0000
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true,"PF");
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rows = new List<int>();
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rows.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false);
}
}
}
//이대상의 실제 데이터베이스 인덱스값을 생성해서 폼에 전송한다.
var codlist = DBM.getCodeList("04");
var f = new FEQ0000.Purchase.fBatchUpdate(rows);
if (f.ShowDialog() != DialogResult.OK) return;
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
FCOMMON.Util.MsgI($"{rows.Count} 건의 자료가 변경되었습니다\n저장 버튼을 누르면 적용 됩니다\n취소하려면 새로고침을 누르세요");
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false, "PF");
}
}
}

View File

@@ -296,21 +296,7 @@
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX
EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl
7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR
BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT
Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz
tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV
iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i
DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA
AAAASUVORK5CYII=
</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
@@ -347,6 +333,20 @@
oQIAAAJCCriYcSOGDCgzBAiQYSTGDQM4AjBAEwGCCRRIftypoKcDBwcS5MQIYIBRBQ0aPCBAwIKDoR4A
cFiZdKmFAgUOQAWwIKnSpgUkSOgA1UCCqmAlVKgAoWyCBQsSOLhwoAMECBfK2tw7oa9fqBYDL2yIMCAA
Ow==
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX
EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl
7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR
BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT
Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz
tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV
iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i
DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA
AAAASUVORK5CYII=
</value>
</data>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -307,11 +307,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_PurchaseEBRow;
@@ -321,10 +316,6 @@ namespace FEQ0000
//else richTextBox2.Text = dr.bigo;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
@@ -440,7 +431,7 @@ namespace FEQ0000
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseEB_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);

View File

@@ -63,6 +63,9 @@ namespace FEQ0000.Purchase
this.tbPrjName = new System.Windows.Forms.TextBox();
this.tbIdx = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbRemarkO = new System.Windows.Forms.TextBox();
this.tbAmt = new System.Windows.Forms.TextBox();
this.tbPriceO = new System.Windows.Forms.TextBox();
@@ -82,9 +85,6 @@ namespace FEQ0000.Purchase
this.dtInDate = new System.Windows.Forms.DateTimePicker();
this.btOK = new System.Windows.Forms.Button();
this.arLabel3 = new System.Windows.Forms.Label();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
label17 = new System.Windows.Forms.Label();
label12 = new System.Windows.Forms.Label();
label11 = new System.Windows.Forms.Label();
@@ -276,6 +276,45 @@ namespace FEQ0000.Purchase
label1.TabIndex = 98;
label1.Text = "수량/단가/금액";
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gainsboro;
@@ -438,6 +477,37 @@ namespace FEQ0000.Purchase
this.panel2.Size = new System.Drawing.Size(582, 192);
this.panel2.TabIndex = 88;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbRemarkO
//
this.tbRemarkO.ImeMode = System.Windows.Forms.ImeMode.Hangul;
@@ -659,77 +729,7 @@ namespace FEQ0000.Purchase
this.arLabel3.Text = "입고정보";
this.arLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// fPurchaseNR_Ipgo
// fPurchaseEB_Ipgo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -739,9 +739,9 @@ namespace FEQ0000.Purchase
this.Controls.Add(this.panel1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fPurchaseNR_Ipgo";
this.Name = "fPurchaseEB_Ipgo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NR 품목 입고";
this.Text = " 전자실 품목 입고";
this.Load += new System.EventHandler(this.fPurchaseCR_Ipgo_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();

View File

@@ -122,7 +122,7 @@ namespace FEQ0000.Purchase
cmbReceive.Focus();
return;
}
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter ();
var ta = new dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter();
var dr = ta.GetByIdx(this.idx).First();
if (chkInDate.Checked == false)
{

View File

@@ -180,16 +180,4 @@
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label10.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label15.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label14.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>