.. 구매내역 엑셀 반입 추가

This commit is contained in:
chi
2020-05-12 11:45:34 +09:00
parent 91c2ddc961
commit af87afe05e
14 changed files with 2795 additions and 690 deletions

View File

@@ -124,6 +124,12 @@
<Compile Include="Purchase\fInputSC.Designer.cs">
<DependentUpon>fInputSC.cs</DependentUpon>
</Compile>
<Compile Include="Purchase\fPurchase_excelimport.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Purchase\fPurchase_excelimport.Designer.cs">
<DependentUpon>fPurchase_excelimport.cs</DependentUpon>
</Compile>
<Compile Include="Purchase\fPurchase_AddS.cs">
<SubType>Form</SubType>
</Compile>
@@ -198,6 +204,9 @@
<EmbeddedResource Include="Purchase\fInputSC.resx">
<DependentUpon>fInputSC.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Purchase\fPurchase_excelimport.resx">
<DependentUpon>fPurchase_excelimport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Purchase\fPurchase_AddS.resx">
<DependentUpon>fPurchase_AddS.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -30,31 +30,31 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchase));
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
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.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
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.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.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType37 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType38 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
@@ -84,16 +84,17 @@
this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.CustomDataCopyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -188,7 +189,8 @@
this.btFind,
this.toolStripSeparator6,
this.toolStripButton1,
this.toolStripButton3});
this.toolStripButton3,
this.toolStripButton4});
this.bn.Location = new System.Drawing.Point(0, 639);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
@@ -383,18 +385,27 @@
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(87, 23);
this.toolStripButton3.Text = "견적서폴더";
this.toolStripButton3.Size = new System.Drawing.Size(63, 23);
this.toolStripButton3.Text = "견적서";
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// toolStripButton4
//
this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton4.Name = "toolStripButton4";
this.toolStripButton4.Size = new System.Drawing.Size(75, 23);
this.toolStripButton4.Text = "가져오기";
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
//
// cm1
//
this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.columnSizeToolStripMenuItem,
this.exportDataToolStripMenuItem,
this.toolStripMenuItem3,
this.CustomDataCopyToolStripMenuItem,
this.toolStripMenuItem3,
this.exportDataToolStripMenuItem,
this.toolStripMenuItem4,
this.ToolStripMenuItem,
this.makeRepeatToolStripMenuItem,
@@ -449,18 +460,6 @@
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
// exportDataToolStripMenuItem
//
this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem";
this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.exportDataToolStripMenuItem.Text = "Export List";
this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(313, 6);
//
// ㅕCustomDataCopyToolStripMenuItem
//
this.CustomDataCopyToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -476,6 +475,18 @@
this.copyToolStripMenuItem.Text = "Copy";
this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(313, 6);
//
// exportDataToolStripMenuItem
//
this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem";
this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.exportDataToolStripMenuItem.Text = "목록 내보내기(xls)";
this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click);
//
// toolStripMenuItem4
//
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
@@ -771,7 +782,7 @@
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType20;
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 = "등록일";
@@ -779,7 +790,7 @@
this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType21;
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 = "상태";
@@ -787,166 +798,166 @@
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "process";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "공정";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType24;
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).Width = 37F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType25;
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#";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 24F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType26;
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 = "CR/CF#";
this.fpSpread1_Sheet1.Columns.Get(6).Tag = "crcf";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 43F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType27;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType28;
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType29;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(10).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(10).CellType = numberCellType1;
numberCellType6.DecimalPlaces = 0;
numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType6.MaximumValue = 2147483647D;
numberCellType6.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType6;
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 = 14F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType30;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(12).Label = "장비\r\n제조사";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 45F;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "manuproc";
this.fpSpread1_Sheet1.Columns.Get(13).Label = "제조\r\n공정";
this.fpSpread1_Sheet1.Columns.Get(13).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(14).Label = "장비\r\n모델";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 33F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.NegativeRed = true;
numberCellType2.NullDisplay = "--";
numberCellType2.Separator = ",";
numberCellType2.ShowSeparator = true;
numberCellType2.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType2;
numberCellType7.DecimalPlaces = 0;
numberCellType7.NegativeRed = true;
numberCellType7.NullDisplay = "--";
numberCellType7.Separator = ",";
numberCellType7.ShowSeparator = true;
numberCellType7.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType7;
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 = "수량";
this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType32;
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).Width = 33F;
numberCellType3.DecimalPlaces = 0;
numberCellType3.NegativeRed = true;
numberCellType3.NullDisplay = "--";
numberCellType3.Separator = ",";
numberCellType3.ShowSeparator = true;
numberCellType3.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3;
numberCellType8.DecimalPlaces = 0;
numberCellType8.NegativeRed = true;
numberCellType8.NullDisplay = "--";
numberCellType8.Separator = ",";
numberCellType8.ShowSeparator = true;
numberCellType8.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType8;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType8;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType33;
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).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType4.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType4;
numberCellType9.DecimalPlaces = 0;
numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType9.MaximumValue = 2147483647D;
numberCellType9.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType9;
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).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(21).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType34;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "관련프로젝트";
this.fpSpread1_Sheet1.Columns.Get(21).Width = 45F;
this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType5.DecimalPlaces = 0;
numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType5.MaximumValue = 2147483647D;
numberCellType5.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType5;
numberCellType10.DecimalPlaces = 0;
numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType10.MaximumValue = 2147483647D;
numberCellType10.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType35;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType36;
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).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType37;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 32F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType38;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel";
@@ -1071,5 +1082,6 @@
private System.Windows.Forms.ToolStripButton toolStripButton3;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolStripButton toolStripButton4;
}
}

View File

@@ -897,5 +897,11 @@ namespace FEQ0000
var dr = drv.Row as dsPurchase.PurchaseRow;
this.label1.Text = string.Format("{0}",dr.bigo.Replace("\r","").Replace("\n",""));
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
var f = new fPurchase_excelimport();
f.Show();
}
}
}

View File

@@ -234,33 +234,57 @@
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAANJSURBVDhPtZBdTFN3GIdJdrdwsZnVMIUsc8lIzM6FjAUi
HR3hIxtgTLUUCNWyOooSKtBiEBkcuhUtuCKUrrTKGFCpFUdQsLN8BIImjNaunWeMQTfPCs5+2FWKx4kk
xN+a2mVbtts9t+/7PP/835i/o1kgY8846pvIb6RzdTcrtqqmjmyVm0vmDg0XNBYMDb0gHr3/YnT136io
Rk6LvY6+8fN1TLinYF4Zx+0HDhgdF3HQkKutGlw5drSXpj/UuzhR5S/anKe4ph/6MOmeQJ/rEqodjZB9
S2J4+Sq4/bnBwj7dG2E52HszANnAXfDanNyoGn55gdz2ibWWmV6ZRuuCBiLbcZRaj6N7sRfa2S7kaDOO
lfXQ2vbrXpi/Z6Cb9CO32cbk1MxtiwTIeZnC7BrD+aUBCG0SFM2JccLeDIPDgBx1urNUt5h0WL20NXrn
EVTjAQxZQ6juWcK7lZOKSODEbLnT8ssEJPZTKA7L4nkpDC4TJKajSFOmsAXqH2+1mz34yh5CjfE+FNf8
UI7cQ/KRMWckUGEp3bzm/hpV9ga0UmpcXh7GWUsr9n76zhclnUv8g8o7Ty7Pr0Fm9KD8wirEulWcG/OC
EFwJRQLCEX5o3mfDleURaGbU4Hy2N5gqT24alZKvaGq/jMsjbVTXDS/qjF4c6nBD0E5DOexB4oEBJhLg
D+5zds10ILuL8yC9LUVqkRYmPBUKGzZ4/CDzwX4is/YWdfbqr5D03AOv5S7KtauQdLuwK1///At5uixZ
Zidb7Kw5vHOzrEy1IRAwTNPHeFxUDCY9k0irHKfkphV8pHYjv34ZCpMXudXTiM/ueH5EnDz58mZlhf6p
SLT5uEWBNZMBwcE+rOfvB5OUSiSLRqn6fholrTTI8B0EZ74Ly+eYOHYLKxJ4JpGwNoRC5pH+czwcGoRH
3oDA+W6svZeFYCJBvFVsoqr1P4G86EFh823sKTAijq3kReQ/+Z3L4zEiER6SjQjoNfB3qvBbShp88YnE
m9x+StS+iEyxBTsyVDSLffr9qPZPQmnp2etJqXSAXwSvpBJ+4m34tscTr+V1UwlZHdZXM9rkLA4ZG13/
b/y7d8cGXk+U+3fssvpYCfC9tJ2Ijv4vYmL+AAft4bj62SxTAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKOSURBVDhPzZHdS5NhGMZf6Kx/orMOtEIcGhIEQRQdRWAf
kNKBBBWCYVAEgoiog+lE3JaWWoJobeb8WFFQmTR1nzZ1c/N107ml6dC2vd++e/dePZuDPPK4m+fifg7u
33XdDw/1f5fZfPNE+6DV/mJsGp0WJ4xWL3os39DbqDlZGDm+2t9Y7ZYfEdDbHDb2JDgjDCadcej6J+2F
kePLOOZCIM7AFRUwt85jlmhpS4TBPIvCCEWt2DS+zem7cux79RFVyWsfKyId7xwIJyTMRTjYwxy+hlh4
YxK633v+GQTHyyVVzQJQycnp8J4REzCMOuGPs5ihD+GcPHEJuiH7EQNrWUpVREi/9ODXu8BHX0PYHIWa
ScL8aQ5fvDF4ojzmoyLcJH1qkUVn7wj0NWX38gb0iIbJymkCG8CFu8EEmrDveoSEuxYRRxtskz1kk3mY
yA90vHVA32uBe8IEW3Ml03Dj1B2KtpTJGWEHSb8Bfxa02J15AmHXCVVhiNhCT+U3UjN/sDgzDpv2luqf
aMeruos8RQ+fl/Pvz0pEAqDweVARQpC2DRDjLRA2noJfewAuVAWFC+JDc5Hc/+yKYKq7BIoeKD9QFQEK
40Am+Rny3igOdvoIqIMQbYAQrgW/Wg1u5TrY5ctQWB+CfaVi/v25Cr4sl7IyA3l/Cge7QyTVCDFGUtdz
qffBBW+D9V8Ds3gB6YUSZBgPgsajBl2loionCTwIaasL4mYTgevB0zUEriSpV8H4KpD2nkPKfZoYuJBj
CjhFrepKtsXUaipNj2S5tQGwtAlsSA822ArG3whm+TnSS/VI+2qR/vkQ/O9pdUWvSRVwigq1Fj8Oac8M
B9qKEgHtWfFYteV7OtRS3H1IU9Rf97tD0F+smFkAAAAASUVORK5CYII=
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKQSURBVDhPzZLdS1NhHMcPdNc/0V1ElhiiFUEQRNFVBJa9
0oUEFYJhUASC7MKXUCeyuXzrRRCtzVxOiYI0pKmb22zq5o7HTeeWokPdzvvx7Ox8ezYHeeV1P54vz3Px
+3y/v4fnof7vslpvHmnutTvfDP1Eq82NdrsPHbZxdNYWH823HF7NH+xO268ImA0Bq9sK3BEODnccTW8d
znzL4dU+NINgnMNMVMLUiohJovl1GWbrJPItFLU4WuxfG7ujxsbvHdBddfnruUjLJxfCCQVTEQHOsIAx
mocvpsD02fvPIDhUquh6BoBOVlb757ScgHnQjUCcxwSzD2fljSto6nMeMLCXpHRNhvLHCHGlDWL0PaS1
QejpJKzfpvDDF4M3KmI6KsND0kfmeLR2DsBYUfIwZ8D0n+EyKktgM4SwCVzQgJ2Zp0h4KhFxNWDU0UEm
mYaFvEDLRxeMnTZ4hi0YNZRxNTeO3aYYW4maljaRDJixO9uIrYnnkLbc0DWOiM/vqdxEenoXcxNf4Ki/
pQeGm9FddVEkE5xVc/fPKEQSoIk5UJNoKBtmyPE6SKsvIC4/hkDfhyaEMGI4oXa/vCJZqi6BYnpK93RN
gsa5kE5+h7o9iL3NHgI2QYrWQApXQlx6AGHxOviFy9B4P4JdRXLu/tkKdpUqGZWDujOCva0+ktoOOUZS
V7KpjyCEysEHroGbuwB2tghpzoug6aBBa5Gsq0kC90JZb4O8ZiBwNUSmgsBlJPUqOP95sL5CpDzHiQH5
XITJ4xS19LpwQ0qFUkl6ICMsvwPPWMDTRvChenCBWnALr8DOV4P1V4L9/QT8+pgeMBan8jhF0fUFz+jG
U/2BhpOJhcbT8qFqyO0sXVdg2qcp6i9y+ENgXNWxCwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALxSURBVDhPhZPtS1NRHMf3Kv8G60Wvi9TKnlDoYalNjSzL
VEp8mlM0NdGVYVZMI1MXmuigIpKiFxXSg67p1JxzuuGMTLM0m48Jakvd09F77/x27t1wBkE/+HBenPP7
cH7fe66Ir/DrupSTVUZtTLXx96kqo4uuREDJryYSU9VHou4ahkPl+tqdcS+2CE2bK/J2j37RRn5Z7YSz
OlZhtfv4ZeMh+DpnQ+nbaUjrxpySXLWft9VT0RWGhRXnGtc3ycA0xcI0zcI4ycIwsQbd91VoRhxYZYHm
by6Uvp5C+v0x118SKnBRAQZmOHycYenKol+QrKF7fBVtI04qcGNgjoPpJ4Ny9TTE1zqfC80JSrHlfFXc
uqzhLNLrz6G+tRFlTUqIbwbiGEVSHoJwxQHUNNcIo9gJi/klJ8JLu1lBEF8tftU51IKWsUeoNxYJkuS6
KBQ9S0JeYyKkqtNIU6WheXAeLcN2vPu8gmWaU4SihwgCSa3EL7YynzOOduHpkAKVulxBktIQTZvPIOtB
JvTjDmGUjjEXtDSHJQeDiLJej4CvyIpuUvA4FeZxA1SmK7jTXogE5XGk1MXBPOmEmQbLB6z/4cnESgXh
ik2CIzduMgeLtyOpVoKBH30o78qGQl2AxHthaNS9wadZFmYabN8Eg17Kgo2B+JZXsFfuLwuWb0Pekwu4
2BCJCzUnBEmBOgnypkx6kzDw+wPTHPr5T0yx0SAPlxg8gmC5/2ywfCs95I/gIn/EVoYh52Eq9CNalGuL
kf0yFdKGeJipwETfhpEKCONGiFznG+FoSQ+ZWyYYnOUEukd/4vLjLGTQRpkqEYVPLm3s8dA3h/35nT5B
6FUdmbH6BP/DQUfYndnmExwq+OC0LDjW/3X4XxCGcweka+zedhpkVrtlfoXYLIsuNwWWBRfGvSzaGQE+
efqv8S/RzbndyzuS33/xtotE+7Jac4Kkre17ZFprkKyVbJDhITBD40GqIQFSzdKutPcdganqdJFIJPoD
0NqjIcbQ72sAAAAASUVORK5CYII=
</value>
</data>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -1,333 +1,333 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FEQ0000
{
public partial class fPurchase_ImportO : Form
{
DataTable dt = new dsPurchase.PurchaseDataTable();
DataTable dtExcel = new DataTable();
public fPurchase_ImportO()
{
InitializeComponent();
this.FormClosed += __Closed;
}
private void __Load(object sender, EventArgs e)
{
//this.sd.Value = DateTime.Now.AddMonths(-1);
this.dtPdate.Value = DateTime.Now;
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
OpenFileDialog od = new OpenFileDialog();
od.Filter = "excel|*.xlsx|all files|*.*";
od.InitialDirectory = FCOMMON.Util.CurrentPath + "model";
od.FilterIndex = 1;
od.RestoreDirectory = true;
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
textBox1.Text = od.FileName;
}
private void button1_Click(object sender, EventArgs e)
{
int ColumnNameNo = (int)numericUpDown2.Value;
if(textBox1.Text.isEmpty())
{
FCOMMON.Util.MsgE("파일을 선택하세요");
textBox1.Focus();
return;
}
if(!System.IO.File.Exists(textBox1.Text))
{
FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다.");
textBox1.Focus();
textBox1.SelectAll();
return;
}
dtExcel.Columns.Clear();
dtExcel.Rows.Clear();
dtExcel.AcceptChanges();
libxl.Book book;// = new libxl.BinBook();
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
try
{
book.load(textBox1.Text);
}catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
return;
}
int sheetNum = (int)numericUpDown1.Value;
if (sheetNum >= book.sheetCount())
{
FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다.");
book = null;
return;
}
var sheet = book.getSheet(sheetNum);
var MaxRow = sheet.lastRow();
var MinRow = sheet.firstRow();
MaxRow = (int)Math.Min(MaxRow, nudE.Value-1);
MinRow = (int)Math.Max(MinRow, nudS.Value-1);
if(MinRow <= (ColumnNameNo-1))
{
FCOMMON.Util.MsgI("시작줄을 제목줄 보다 커야 합니다. 자동으로 +1 증가합니다.");
MinRow = ColumnNameNo ;
}
var MaxCol = sheet.lastCol();
var MinCol = sheet.firstCol();
MaxCol = (int)Math.Min(MaxCol, nudCE.Value - 1);
MinCol = (int)Math.Max(MinCol, nudCS.Value - 1);
//제목줄을 처리한다. 181029
List<string> cols = new List<string>();
//string sDate = sd.Value.ToShortDateString();
//string eDate = ed.Value.ToShortDateString();
for (int c = MinCol; c <= MaxCol; c++)
{
var strVallue = sheet.readStr(ColumnNameNo-1, c);
if (strVallue.isEmpty() )
{
if (c == MinCol)
{
//첫줄 첫행이 빈값이면 처리하지 않는다.
FCOMMON.Util.MsgE("열 제목에 빈값이 있어 처리되지 못합니다.");
return;
}
else
{
//빈값이 나왓으므로 열 최대값을 변경해준다.
if(c < MaxCol)
{
FCOMMON.Util.MsgI("빈값으로 인해 최대 열 번호를 " + c.ToString() + "로 변경합니다");
MaxCol = c;
break;
}
}
}
cols.Add(strVallue);
this.dtExcel.Columns.Add(strVallue);
}
try{
for (int r = MinRow; r <= MaxRow; r++)
{
DataRow dr = dtExcel.NewRow();
Boolean nullColumn = false;
for (int c = MinCol; c <= MaxCol; c++)
{
if (sheet.isDate(r, c))
{
var datevalue = sheet.readNum(r, c);
int y, m, d;
y = m = d = 0;
book.dateUnpack(datevalue, ref y, ref m, ref d);
if (y >= 2000)
dr[cols[c]] = string.Format("{0:0000}-{1:00}-{2:00}", y, m, d);
else
dr[cols[c]] = string.Empty;
//일자가 만약 넘어서면 패스한다.
if(cols[c]=="일자" )
{
string value = dr[cols[c]].ToString();
if(value == "")
{
nullColumn = true; //날짜가 없다면 패스
break;
}
//else if(value.CompareTo(sDate) < 0)
//{
// nullColumn = true; //과거데이터라서 패스
// break;
//} else if(value.CompareTo(eDate) > 0)
//{
// nullColumn = true; //미래데이터 패스
// break;
//}
}
}
else
{
var dateStrin = sheet.readStr(r, c);
var strVallue = sheet.readStr(r, c);
if (strVallue.isEmpty() && c == MinCol)
{
//첫줄 첫행이 빈값이면 처리하지 않는다.
nullColumn = true;
break;
}
if (!cols[c].isEmpty())
dr[cols[c]] = strVallue;
}
}
if (nullColumn) continue; //줄처리를 못한 경우 넘어감
if (dr != null)
{
dtExcel.Rows.Add(dr);
}
}
dtExcel.AcceptChanges();
}
catch(Exception ex)
{
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
}
//
book = null;
this.bs.DataSource = dtExcel;
this.dataGridView1.DataSource = dtExcel;
this.bn.BindingSource = this.bs;
if(this.bs.Count < 1)
{
FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다.");
}
}
private void button3_Click(object sender, EventArgs e)
{
if(dtExcel == null || dtExcel.Rows.Count < 1)
{
FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다.");
return;
}
if(col_crcf.Value < 1 || col_sid.Value < 1 || col_name.Value < 1)
{
FCOMMON.Util.MsgE("CR번호/품명/SId는 반드시 입력되어야 합니다.");
return;
}
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("다음 자료를 추가하시겠습니까?");
sb.AppendLine();
sb.AppendLine("'저장 완료' 메세지가 나올때 까지 기다려 주세요.");
sb.AppendLine();
sb.AppendLine("실행 하려면 '예' 를 누르세요");
var dlg = FCOMMON.Util.MsgQ(sb.ToString());
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData();
lineTd.AcceptChanges();
dt.Clear();
dt.AcceptChanges();
this.progressBar1.Value = 0;
this.progressBar1.Maximum = dtExcel.Rows.Count;
//12,13
foreach (DataRow dr in dtExcel.Rows)
{
this.progressBar1.Value += 1;
//데이터추가
var newdr = dt.NewRow();
if (dr[(int)col_crcf.Value] == DBNull.Value) continue; //nullerror
newdr["pdate"] = dtPdate.Value.ToString("yyyy-MM-dd");// "2019-01-01";// dr[0].ToString();
newdr["orderno"] = dr[(int)col_crcf.Value].ToString();
newdr["sid"] = dr[(int)col_sid.Value].ToString().Replace(" ", ""); //181116 - 빈공백제거
//이름 변경함
if (dr[(int)col_name.Value].ToString() != "") dr[(int)col_name.Value] = dr[(int)col_name.Value].ToString().Replace("*", "x");
//if (dr[4].ToString() != "") dr[4] = dr[4].ToString().Replace("*", "x");
newdr["pumname"] = dr[(int)col_name.Value].ToString();
newdr["pumscale"] = "";// dr[4].ToString();
if ((int)numericUpDown7.Value > 0)
newdr["pumunit"] = dr[(int)numericUpDown7.Value].ToString();
if ((int)col_qty.Value > 0)
{
if (dr[(int)col_qty.Value].ToString() != "")
newdr["pumqty"] = int.Parse(dr[(int)col_qty.Value].ToString());
}
if ((int)col_price.Value > 0)
{
if (dr[(int)col_price.Value].ToString() != "")
newdr["pumprice"] = decimal.Parse(dr[(int)col_price.Value].ToString());
}
if ((int)col_amt.Value > 0)
{
if (dr[(int)col_amt.Value].ToString() != "")
newdr["pumamt"] = decimal.Parse(dr[(int)col_amt.Value].ToString());
}
if ((int)col_supply.Value > 0)
newdr["supply"] = dr[(int)col_supply.Value].ToString();
newdr["state"] = tbState.Text;// dr[14 + 6].ToString();
newdr["import"] = true;
newdr["wuid"] = FCOMMON.info.Login.no;
newdr["wdate"] = DateTime.Now;
newdr["bigo"] = textBox2.Text.Trim();
dt.Rows.Add(newdr);
}
var taE = new dsPurchaseTableAdapters.PurchaseTableAdapter();
//과거데이터 삭제
if (checkBox1.Checked) taE.DeleteImport(
dtPdate.Value.ToShortDateString(),
dtPdate.Value.ToShortDateString(),
FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
taE.Update((dsPurchase.PurchaseDataTable)dt);
dt.AcceptChanges();
FCOMMON.Util.MsgI("Save OK");
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
var dlg = FCOMMON.Util.MsgQ("데이터의 SID를 ITEM정보와 확인하여 업데이트 합니다.");
if(dlg != System.Windows.Forms.DialogResult.Yes) return;
var i = FCOMMON.DBM.UpdateItemIndexbySID();
FCOMMON.Util.MsgI(i.ToString() + "건의 자료가 업데이트 되었습니다.");
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FEQ0000
{
public partial class fPurchase_ImportO : Form
{
DataTable dt = new dsPurchase.PurchaseDataTable();
DataTable dtExcel = new DataTable();
public fPurchase_ImportO()
{
InitializeComponent();
this.FormClosed += __Closed;
}
private void __Load(object sender, EventArgs e)
{
//this.sd.Value = DateTime.Now.AddMonths(-1);
this.dtPdate.Value = DateTime.Now;
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
OpenFileDialog od = new OpenFileDialog();
od.Filter = "excel|*.xlsx|all files|*.*";
od.InitialDirectory = FCOMMON.Util.CurrentPath + "model";
od.FilterIndex = 1;
od.RestoreDirectory = true;
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
textBox1.Text = od.FileName;
}
private void button1_Click(object sender, EventArgs e)
{
int ColumnNameNo = (int)numericUpDown2.Value;
if(textBox1.Text.isEmpty())
{
FCOMMON.Util.MsgE("파일을 선택하세요");
textBox1.Focus();
return;
}
if(!System.IO.File.Exists(textBox1.Text))
{
FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다.");
textBox1.Focus();
textBox1.SelectAll();
return;
}
dtExcel.Columns.Clear();
dtExcel.Rows.Clear();
dtExcel.AcceptChanges();
libxl.Book book;// = new libxl.BinBook();
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
try
{
book.load(textBox1.Text);
}catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
return;
}
int sheetNum = (int)numericUpDown1.Value;
if (sheetNum >= book.sheetCount())
{
FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다.");
book = null;
return;
}
var sheet = book.getSheet(sheetNum);
var MaxRow = sheet.lastRow();
var MinRow = sheet.firstRow();
MaxRow = (int)Math.Min(MaxRow, nudE.Value-1);
MinRow = (int)Math.Max(MinRow, nudS.Value-1);
if(MinRow <= (ColumnNameNo-1))
{
FCOMMON.Util.MsgI("시작줄을 제목줄 보다 커야 합니다. 자동으로 +1 증가합니다.");
MinRow = ColumnNameNo ;
}
var MaxCol = sheet.lastCol();
var MinCol = sheet.firstCol();
MaxCol = (int)Math.Min(MaxCol, nudCE.Value - 1);
MinCol = (int)Math.Max(MinCol, nudCS.Value - 1);
//제목줄을 처리한다. 181029
List<string> cols = new List<string>();
//string sDate = sd.Value.ToShortDateString();
//string eDate = ed.Value.ToShortDateString();
for (int c = MinCol; c <= MaxCol; c++)
{
var strVallue = sheet.readStr(ColumnNameNo-1, c);
if (strVallue.isEmpty() )
{
if (c == MinCol)
{
//첫줄 첫행이 빈값이면 처리하지 않는다.
FCOMMON.Util.MsgE("열 제목에 빈값이 있어 처리되지 못합니다.");
return;
}
else
{
//빈값이 나왓으므로 열 최대값을 변경해준다.
if(c < MaxCol)
{
FCOMMON.Util.MsgI("빈값으로 인해 최대 열 번호를 " + c.ToString() + "로 변경합니다");
MaxCol = c;
break;
}
}
}
cols.Add(strVallue);
this.dtExcel.Columns.Add(strVallue);
}
try{
for (int r = MinRow; r <= MaxRow; r++)
{
DataRow dr = dtExcel.NewRow();
Boolean nullColumn = false;
for (int c = MinCol; c <= MaxCol; c++)
{
if (sheet.isDate(r, c))
{
var datevalue = sheet.readNum(r, c);
int y, m, d;
y = m = d = 0;
book.dateUnpack(datevalue, ref y, ref m, ref d);
if (y >= 2000)
dr[cols[c]] = string.Format("{0:0000}-{1:00}-{2:00}", y, m, d);
else
dr[cols[c]] = string.Empty;
//일자가 만약 넘어서면 패스한다.
if(cols[c]=="일자" )
{
string value = dr[cols[c]].ToString();
if(value == "")
{
nullColumn = true; //날짜가 없다면 패스
break;
}
//else if(value.CompareTo(sDate) < 0)
//{
// nullColumn = true; //과거데이터라서 패스
// break;
//} else if(value.CompareTo(eDate) > 0)
//{
// nullColumn = true; //미래데이터 패스
// break;
//}
}
}
else
{
var dateStrin = sheet.readStr(r, c);
var strVallue = sheet.readStr(r, c);
if (strVallue.isEmpty() && c == MinCol)
{
//첫줄 첫행이 빈값이면 처리하지 않는다.
nullColumn = true;
break;
}
if (!cols[c].isEmpty())
dr[cols[c]] = strVallue;
}
}
if (nullColumn) continue; //줄처리를 못한 경우 넘어감
if (dr != null)
{
dtExcel.Rows.Add(dr);
}
}
dtExcel.AcceptChanges();
}
catch(Exception ex)
{
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
}
//
book = null;
this.bs.DataSource = dtExcel;
this.dataGridView1.DataSource = dtExcel;
this.bn.BindingSource = this.bs;
if(this.bs.Count < 1)
{
FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다.");
}
}
private void button3_Click(object sender, EventArgs e)
{
if(dtExcel == null || dtExcel.Rows.Count < 1)
{
FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다.");
return;
}
if(col_crcf.Value < 1 || col_sid.Value < 1 || col_name.Value < 1)
{
FCOMMON.Util.MsgE("CR번호/품명/SId는 반드시 입력되어야 합니다.");
return;
}
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("다음 자료를 추가하시겠습니까?");
sb.AppendLine();
sb.AppendLine("'저장 완료' 메세지가 나올때 까지 기다려 주세요.");
sb.AppendLine();
sb.AppendLine("실행 하려면 '예' 를 누르세요");
var dlg = FCOMMON.Util.MsgQ(sb.ToString());
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData();
lineTd.AcceptChanges();
dt.Clear();
dt.AcceptChanges();
this.progressBar1.Value = 0;
this.progressBar1.Maximum = dtExcel.Rows.Count;
//12,13
foreach (DataRow dr in dtExcel.Rows)
{
this.progressBar1.Value += 1;
//데이터추가
var newdr = dt.NewRow();
if (dr[(int)col_crcf.Value] == DBNull.Value) continue; //nullerror
newdr["pdate"] = dtPdate.Value.ToString("yyyy-MM-dd");// "2019-01-01";// dr[0].ToString();
newdr["orderno"] = dr[(int)col_crcf.Value].ToString();
newdr["sid"] = dr[(int)col_sid.Value].ToString().Replace(" ", ""); //181116 - 빈공백제거
//이름 변경함
if (dr[(int)col_name.Value].ToString() != "") dr[(int)col_name.Value] = dr[(int)col_name.Value].ToString().Replace("*", "x");
//if (dr[4].ToString() != "") dr[4] = dr[4].ToString().Replace("*", "x");
newdr["pumname"] = dr[(int)col_name.Value].ToString();
newdr["pumscale"] = "";// dr[4].ToString();
if ((int)numericUpDown7.Value > 0)
newdr["pumunit"] = dr[(int)numericUpDown7.Value].ToString();
if ((int)col_qty.Value > 0)
{
if (dr[(int)col_qty.Value].ToString() != "")
newdr["pumqty"] = int.Parse(dr[(int)col_qty.Value].ToString());
}
if ((int)col_price.Value > 0)
{
if (dr[(int)col_price.Value].ToString() != "")
newdr["pumprice"] = decimal.Parse(dr[(int)col_price.Value].ToString());
}
if ((int)col_amt.Value > 0)
{
if (dr[(int)col_amt.Value].ToString() != "")
newdr["pumamt"] = decimal.Parse(dr[(int)col_amt.Value].ToString());
}
if ((int)col_supply.Value > 0)
newdr["supply"] = dr[(int)col_supply.Value].ToString();
newdr["state"] = tbState.Text;// dr[14 + 6].ToString();
newdr["import"] = true;
newdr["wuid"] = FCOMMON.info.Login.no;
newdr["wdate"] = DateTime.Now;
newdr["bigo"] = textBox2.Text.Trim();
dt.Rows.Add(newdr);
}
var taE = new dsPurchaseTableAdapters.PurchaseTableAdapter();
//과거데이터 삭제
if (checkBox1.Checked) taE.DeleteImport(
dtPdate.Value.ToShortDateString(),
dtPdate.Value.ToShortDateString(),
FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
taE.Update((dsPurchase.PurchaseDataTable)dt);
dt.AcceptChanges();
FCOMMON.Util.MsgI("Save OK");
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
var dlg = FCOMMON.Util.MsgQ("데이터의 SID를 ITEM정보와 확인하여 업데이트 합니다.");
if(dlg != System.Windows.Forms.DialogResult.Yes) return;
var i = FCOMMON.DBM.UpdateItemIndexbySID();
FCOMMON.Util.MsgI(i.ToString() + "건의 자료가 업데이트 되었습니다.");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,529 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FEQ0000
{
public partial class fPurchase_excelimport : Form
{
BindingSource bsModel;
public fPurchase_excelimport()
{
InitializeComponent();
this.FormClosed += __Closed;
}
private void __Load(object sender, EventArgs e)
{
//상태
var stateList = FCOMMON.DBM.getCodeTable("04");
this.cmbState.DisplayMember = "Value";
this.cmbState.ValueMember = "Value";
this.cmbState.DataSource = stateList;
//장비제조
var dt_dept = FCOMMON.DBM.getCodeTable("06");
BindingSource bsManu = new BindingSource(dt_dept, "");
this.cbEQManu.DisplayMember = "Value";
this.cbEQManu.ValueMember = "Value";
this.cbEQManu.DataSource = bsManu;
//장비모델
var dt_asset = FCOMMON.DBM.getCodeTable("07");
bsModel = new BindingSource(dt_asset, "");
bsModel.Filter = "svalue='그런거없다'";
this.cbEQModel.DisplayMember = "Value";
this.cbEQModel.ValueMember = "Value";
this.cbEQModel.DataSource = bsModel;
//제조공정
var dt_manuproc = FCOMMON.DBM.getCodeTable("08");
this.cbManuProc.DisplayMember = "Value";
this.cbManuProc.ValueMember = "Value";
this.cbManuProc.DataSource = dt_manuproc;
//장비기술공정
var dt_eetproc = FCOMMON.DBM.getCodeTable("09");
this.cbProcess.DisplayMember = "Value";
this.cbProcess.ValueMember = "Value";
this.cbProcess.DataSource = dt_eetproc;
string namestr = string.Format("{0}({1})", FCOMMON.info.Login.nameK, FCOMMON.info.Login.no);
if (FCOMMON.info.Login.no == "dev") namestr = "김치균(395552)";
this.cmbRequest.Items.Clear();
this.cmbRequest.Items.Add(namestr);
try
{
var cn = FCOMMON.DBM.getCn();
cn.Open();
string sql = "select [id],[name] " +
" from users" +
" where gcode='{1}' and id <> '{0}'" +
" order by [name]";
sql = string.Format(sql, FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
var rdr = cmd.ExecuteReader();
while (rdr.Read())
{
string cmbdata = string.Format("{1}({0})", rdr[0].ToString(), rdr[1].ToString());
this.cmbRequest.Items.Add(cmbdata);
}
cmd.Dispose();
cn.Close();
cn.Dispose();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("User List Error\n\n" + ex.Message);
}
cmbRequest.Text = namestr;// FCOMMON.info.Login.nameK;
dtPdate.Value = DateTime.Now;
cmbState.Text = "PO"; //po에서 변경 200423 - JBS요청
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
OpenFileDialog od = new OpenFileDialog();
od.Filter = "excel|*.xls|all files|*.*";
od.RestoreDirectory = true;
od.FilterIndex = 1;
od.RestoreDirectory = true;
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
textBox1.Text = od.FileName;
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
var dlg = FCOMMON.Util.MsgQ("데이터의 SID를 ITEM정보와 확인하여 업데이트 합니다.");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
var i = FCOMMON.DBM.UpdateItemIndexbySID();
FCOMMON.Util.MsgI(i.ToString() + "건의 자료가 업데이트 되었습니다.");
}
private void numericUpDown6_ValueChanged(object sender, EventArgs e)
{
var ctl = sender as NumericUpDown;
if (ctl.Value == 0) ctl.BackColor = Color.Gray;
else ctl.BackColor = Color.White;
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
//저장버튼
if (this.listView1.Items.Count < 1)
{
FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다.\n먼저 자료를 불러오세요");
return;
}
if (this.listView1.CheckedItems == null || this.listView1.CheckedItems.Count < 1)
{
FCOMMON.Util.MsgE("선택된 자료가 없습니다. 목록에서 입력할 자료를 선택하세요\n\n메뉴를 보려면 우클릭 하세요");
return;
}
//혀냊 입력된 자료를 적용한다
var valid = checkCombo();
if (valid == false) return;
//기존자료확인
var cnt = ta.CoutImport(dtPdate.Value.ToShortDateString(), dtPdate.Value.ToShortDateString(),
FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
if(cnt > 0)
{
var dlg = FCOMMON.Util.MsgQ("기존에 등록된 자료가 " +cnt.ToString() + "건 있습니다. 이 자료를 삭제할까요?");
if (dlg == DialogResult.Yes)
ta.DeleteImport(dtPdate.Value.ToShortDateString(), dtPdate.Value.ToShortDateString(),
FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
}
//요청자 번호확인
string userNo = this.cmbRequest.Text.Substring(cmbRequest.Text.LastIndexOf('(') + 1);
userNo = userNo.Substring(0, userNo.Length - 1);
//체크안된 데이터를 dr에서 삭제한다.
decimal itemAmt = 0;
var itemCount = 0;
foreach (ListViewItem lv in this.listView1.Items)
{
var dr = lv.Tag as dsPurchase.PurchaseRow;
if (lv.Checked == false) dr.AcceptChanges();
else
{
itemCount += 1;
dr.request = userNo;
dr.asset = cbEQModel.Text;
dr.dept = cbEQManu.Text;
dr.manuproc = cbManuProc.Text;
dr.process = cbProcess.Text.Trim();
dr.state = cmbState.Text.Trim();
dr.pdate = dtPdate.Value.ToShortDateString();
dr.project = tbProject.Text.Trim();
dr.AcceptChanges();
dr.SetAdded();
itemAmt += dr.pumamt;
}
}
//part 목록을 조회해서 NR에 등록해줘야 함
var dlg2 = FCOMMON.Util.MsgQ("해당 파트리스트를 NR구매 목록에 등록 하시겠습니까?\n" +
itemCount.ToString() + "건 " + itemAmt.ToString("N0") + "원");
if (dlg2 != System.Windows.Forms.DialogResult.Yes) return;
ta.Update(this.dsPRJ.Purchase);
dsPRJ.Purchase.AcceptChanges();
FCOMMON.Util.MsgI("Save OK");
}
bool checkCombo()
{
if (cbProcess.Text.isEmpty() == true)
{
FCOMMON.Util.MsgE("프로세스를 선택하세요.");
cbProcess.Focus();
return false;
}
if (tbProject.Text == "")
{
var dlg = FCOMMON.Util.MsgQ("프로젝트가 입력되지 않았습니다. 진행할까요?");
if(dlg != DialogResult.Yes)
{
tbProject.Focus();
return false;
}
}
if (this.cbProcess.Text.isEmpty() == true)
{
{
FCOMMON.Util.MsgE("[공정]을 선택하세요\n\n" +
"선택 대상이 없는 경우 문의 바랍니다.\n\n" +
"BongSeok Jung(T.7191)\n" +
"BongSeok.Jung@amkor.co.kr");
cbProcess.Focus();
return false;
}
}
if (cbManuProc.Text.isEmpty()==true)
{
{
FCOMMON.Util.MsgE("제조공정을 선택하세요\n\n" +
"선택 대상이 없는 경우 문의 바랍니다.\n\n" +
"BongSeok Jung(T.7191)\n" +
"BongSeok.Jung@amkor.co.kr");
cbManuProc.Focus();
return false;
}
}
if (this.cbEQManu.Text.isEmpty() == true)
{
{
FCOMMON.Util.MsgE("장비 제조사를 선택하세요.\n\n" +
"선택 대상이 없는 경우 문의 바랍니다.\n\n" +
"BongSeok Jung(T.7191)\n" +
"BongSeok.Jung@amkor.co.kr");
cbEQManu.Focus();
return false;
}
}
return true;
}
private void toolStripButton1_Click_1(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
FCOMMON.Util.MsgE("파일을 선택하세요");
textBox1.Focus();
return;
}
if (!System.IO.File.Exists(textBox1.Text))
{
FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다.");
textBox1.Focus();
textBox1.SelectAll();
return;
}
libxl.Book book;// = new libxl.BinBook();
book = new libxl.BinBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
try
{
book.load(textBox1.Text);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
return;
}
int sheetNum = (int)numericUpDown1.Value;
if (sheetNum > book.sheetCount())
{
FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다.");
book = null;
return;
}
var sheet = book.getSheet(sheetNum - 1);
var MaxRow = sheet.lastRow();
var MinRow = sheet.firstRow();
MaxRow = (int)Math.Min(MaxRow, nudE.Value - 1);
MinRow = (int)Math.Max(MinRow, nudS.Value - 1);
string SID = string.Empty;
string SC = string.Empty;
string CRCF = string.Empty;
string = string.Empty;
string = string.Empty;
string = string.Empty;
string = string.Empty;
string = string.Empty;
string = string.Empty;
string PO = string.Empty;
string = string.Empty;
this.progressBar1.Value = 0;
this.progressBar1.Maximum = MaxRow - MinRow + 1;
this.listView1.Items.Clear();
this.listView1.Visible = false;
this.dsPRJ.Purchase.Clear();
this.dsPRJ.Purchase.AcceptChanges();
decimal sumamt = 0;
try
{
for (int r = MinRow; r <= MaxRow; r++)
{
progressBar1.Value += 1;
var cf_qty = sheet.cellType(r, (int)nudQty.Value - 1);
var cf_price = sheet.cellType(r, (int)nudPrice.Value - 1);
var cf_sid = sheet.cellType(r, (int)nudSid.Value - 1);
//필수값을 먼저 확인한다.
if (nudSid.Value > 0)
{
if (cf_sid == libxl.CellType.CELLTYPE_NUMBER)
SID = sheet.readNum(r, (int)nudSid.Value - 1).ToString();
else if (cf_sid == libxl.CellType.CELLTYPE_STRING)
SID = sheet.readStr(r, (int)nudSid.Value - 1).Replace(",", "").Trim();
}
if (nudSc.Value > 0) SC = sheet.readStr(r, (int)this.nudSc.Value - 1).Trim();
if (nudCr.Value > 0) CRCF = sheet.readStr(r, (int)this.nudCr.Value - 1).Trim();
//if (nudRecev.Value > 0) 수령 = sheet.readStr(r, (int)nudRecev.Value - 1).Trim();
if (nudPumName.Value > 0) = sheet.readStr(r, (int)this.nudPumName.Value - 1).Replace(",", "").Trim();
if (nudScale.Value > 0) = sheet.readStr(r, (int)nudScale.Value - 1).Trim();
//먼저 숫자로 읽어보낟
if (nudQty.Value > 0)
{
if (cf_qty == libxl.CellType.CELLTYPE_NUMBER)
= sheet.readNum(r, (int)nudQty.Value - 1).ToString("N0");
else if (cf_qty == libxl.CellType.CELLTYPE_STRING)
= sheet.readStr(r, (int)nudQty.Value - 1).Replace(",", "").Trim();
}
if (nudUnit.Value > 0) = sheet.readStr(r, (int)nudUnit.Value - 1).Trim();
if (nudPrice.Value > 0)
{
if (cf_price == libxl.CellType.CELLTYPE_NUMBER)
= sheet.readNum(r, (int)nudPrice.Value - 1).ToString("N0");
else if (cf_price == libxl.CellType.CELLTYPE_STRING)
= sheet.readStr(r, (int)nudPrice.Value - 1).Replace(",", "").Trim();
}
if (nudSupplty.Value > 0) = sheet.readStr(r, (int)nudSupplty.Value - 1).Trim();
if (nudPo.Value > 0) PO = sheet.readStr(r, (int)nudPo.Value - 1).Trim();
if (nudMemo.Value > 0) = sheet.readStr(r, (int)nudMemo.Value - 1).Trim();
//sid 공백과 - _ 제거 200506
SID = SID.Replace(" ", "").Replace("-", "").Replace("_", "").Trim();
//필수자료갸ㅏ 없는 경우처리하지 않음
if (.Trim() == "") continue;
int d_qty = 0;
decimal d_price = 0;
decimal d_amt = 0;
if ( != "") d_price = decimal.Parse();
if ( != "") d_qty = int.Parse();
d_amt = d_price * d_qty;
var v_공급처 = string.Empty;
var v_공급처코드 = -1;
if ( != "")
{
int idx;
string nameK, nameE;
if (FCOMMON.DBM.getFindSupply(, out idx, out nameK, out nameE))
{
v_공급처 = nameK;
v_공급처코드 = idx;
}
else v_공급처 = ;
}
//리스트뷰에 추가
var newitem = this.listView1.Items.Add(SC);
newitem.Checked = false;
newitem.SubItems.Add(CRCF);
newitem.SubItems.Add(SID);
newitem.SubItems.Add();
newitem.SubItems.Add();
newitem.SubItems.Add(d_qty.ToString());
newitem.SubItems.Add();
newitem.SubItems.Add(d_price.ToString());
newitem.SubItems.Add(d_amt.ToString());
newitem.SubItems.Add(v_공급처);
newitem.SubItems.Add(PO);
newitem.SubItems.Add();
//데이터도 추가를 해준다
var newdr = this.dsPRJ.Purchase.NewPurchaseRow();
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.sc = SC;
newdr.orderno = CRCF;
newdr.sid = SID;
newdr.pumname = ;
newdr.pumscale = ;
newdr.pumqty = d_qty;
newdr.pumprice = d_price;
newdr.pumamt = d_amt;
newdr.supply = v_공급처;
newdr.supplyidx = v_공급처코드;
newdr.po = PO;
newdr.bigo = ;
newdr.import = true;
newitem.Tag = newdr;
this.dsPRJ.Purchase.AddPurchaseRow(newdr);
sumamt += d_amt;
}
//this.dsPRJ.ProjectsPart.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
}
//
book = null;
sbSum.Text = string.Format("합계:{0:N0}원", sumamt);
//this.bs.DataSource = dt;
//this.bn.BindingSource = this.bs;
//this.dataGridView1.AutoGenerateColumns = true;
//this.dataGridView1.DataSource = this.bs;
this.listView1.Visible = true;
//this.listView1.AutoResizeColumns();
if (this.listView1.Items.Count < 1)
{
FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다.");
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in this.listView1.Items)
item.Checked = true;
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in this.listView1.Items)
item.Checked = false;
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in this.listView1.Items)
item.Checked = !item.Checked;
}
private void cbEQManu_SelectedIndexChanged(object sender, EventArgs e)
{
if (bsModel == null) return;
string = cbEQModel.Text;
//장비모델 필터를 변경해준다.
if (cbEQManu.SelectedIndex < 0)
{
cbEQModel.SelectedIndex = -1;
return;
}
string filter = "svalue='" + cbEQManu.Text.Replace("'", "''") + "'";
bsModel.Filter = filter;
if ( != "") cbEQModel.Text = ;
else cbEQModel.SelectedIndex = -1;
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var file = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "sample_purchase.xls");
if(System.IO.File.Exists(file)==false)
{
FCOMMON.Util.MsgE("샘플파일이 없습니다. 개발자 문의 바람");
return;
}
this.textBox1.Text = file;
FCOMMON.Util.RunExplorer(file);
}
}
}

View File

@@ -0,0 +1,237 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="label18.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="stateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="processLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label22.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label23.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="assetLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label24.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="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>83, 17</value>
</metadata>
<metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>209, 17</value>
</metadata>
<metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>209, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKPSURBVDhPzZHdT1JxGMdPW1t32Xq5aK4/oP/BrZtuuuyi
dVGbXTRnm26la26pkZZetKWy1AxEPSZkEpu8iAjykiGIlAqIChIv53DO4QAesJHGaHyDE631H/jdnj0X
z+fz/H7bQ5ysJBKJhmR0d4HZXjlitpbBbpjAeg1gPVpwa/M/uaDbyTBMQw3/PxRFkWzYU0wFzBCCNvCb
RoRsSgRNk4hYJnG4Ngfh8zuw1okyH/Hratqf0DS9xAYcyAYs2FoioZ8ahJqUQzWrB6k0QE7qoFLI4VD0
IGsehmCSIuO3+kU5Ho8PsDuryPoWYVe/wer6Dj44c5hx5KCwCBgxHmBAm0GfmofWnUPIPIPkx+fIa/tB
+d1TBL0XSDFeDXbWrSiVStB5DjFtz0FuFnDu0hXUXazHi7k0upSpSudFhvM7wag64ZO1l4h9l6acoiI4
Pj4Wh2pnHmOmLKSGLOou1OPs+ct4MsOhXcGgu9KrTJXNRvz4MtgMIh4J/RIEAYVCAcViETZfvvJlHv1q
Dk9VDDqmkngop9E8msCEJSMyVbbqhDRDZYLesAl8fBf5fF4cRJLfIVvk0ElSlVcTaBmL4f7rKLqmKWzu
50SmynJBL2KKx0UiFg6+Ta1pkK5c4YCNI5fLwRfmQS4l0DEexqOxEEbmY/Bsp0RR4FnwngVQo01wySQu
8RJ7m24XvTyOrEOB1FeLkNn3sWmOimcymejfSqfTUcbnYjm9FImKbH7ZxoIgTokLqvF+MmlXlcOlb3N9
4A2vwFvk4BxKsHYlOCsJWjsEWtYCe++9smG0d90uuXa6pv6LUdp6RtffdFstaZydf9bIG3vu/DBJ7h7p
u28VNG03V5StN9reP7h+tYafiBDEbzX4GEGAI6bHAAAAAElFTkSuQmCC
</value>
</data>
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKSSURBVDhPvZJfSFNhGMa/6I8EXXgR0YUURpRGFwmxohIC
QeoquoigpMjIRCsVLAync8Zscy43mW45Nzsej9ZmbjjLbU5wc39yUogOJhNcol11Je5mTHo639fBCiK6
6oGPAw/f733e9/0O+e/ieR42mw29vb3o7u4uI+FwGPTMzMxgenoaU1NT8Pl8mJiYgNvthtPphMPhwPDw
MAYGBtjdbDaL9fV16PX6OAmFQtja2kImk/nr2dzchNVq/bKxsYGlpSVotdqURqOpIsFgkBlra2uIRqNY
XV0F9VKpFCYnJ7G8vIzx8XF2Z2RkBPF4nHUkwiXSVIT4/X5EIhHasiwQCGB0dFRGYUEQZHQMi8Uio3BX
V5dM9Nj8KpWqQMIJ8Xg8WFhYYDtYWVlhO6DJFE4kEtvJg4ODmJ+fp+lQKBT7JPyHXC4X0uk0vF4vSx4b
G2PJtF2dTier4S/iXn8R+vr60NzcDAn7KbvdLo/FYkgmk6AwTRY9LC4ugj7dA74YSvcNXDcXoKGh4ZuE
/S6O4+imYTabUSMU4xF/FpXcaZRbT0HuvAb7nAH1jiso7TwIArJDwv6sav4MXJ968PajkYGv5/TQ++vB
RdtRKZSi6HlOdruIONfxl6JMJhPdNJ0Zd8V5KfzCVwONpxqq9xVocd9B67v7MAefoezVBeQ3kgwrID6L
nH4NBkNtR0fHZ7VaXXvTUog3MT2EDzpwkXbYwmqxSBVMwVZUCJeQLyeJvDqylxUwGo1y8bdkzzU7O4uh
oSFcNR3BZUMeSjoP4Lw2F7f6z6En0IJyvhTHHudmjj4kOQz+VW1tbVAqlWhqaqqVrG0VKnanb3MlOPlk
P04oyB7J/ncdfkq+HmrcCaIguyRLFCHfASqH573FdPdJAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>147, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>292, 17</value>
</metadata>
</root>

File diff suppressed because it is too large Load Diff

View File

@@ -161,6 +161,20 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
<Mapping SourceColumn="place" DataSetColumn="place" />
</Mappings>
<Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="CoutImport" Modifier="Public" Name="CoutImport" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="CoutImport">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT COUNT(*) FROM Purchase
WHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wuid = @userid) AND (gcode = @gcode)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="pdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="pdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="userid" ColumnName="wuid" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@userid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteImport" Modifier="Public" Name="DeleteImport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteImport">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
@@ -207,7 +221,7 @@ ORDER BY pdate DESC, idx DESC</CommandText>
<xs:element name="dsPurchase" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPurchase" msprop:Generator_UserDSName="dsPurchase">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_RowClassName="PurchaseRow" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent">
<xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent" msprop:Generator_RowClassName="PurchaseRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />

View File

@@ -6,7 +6,7 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Purchase" ZOrder="1" X="149" Y="71" Height="518" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="412" />
<Shape ID="DesignTable:Purchase" ZOrder="1" X="149" Y="71" Height="520" Width="286" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="412" />
</Shapes>
<Connectors />
</DiagramLayout>