전자실메일양식 통일 및 정리 작업

This commit is contained in:
chi
2024-01-09 14:04:01 +09:00
parent aca27c5484
commit aef0c375ad
134 changed files with 4651 additions and 2343 deletions

View File

@@ -154,6 +154,12 @@
<DesignTime>True</DesignTime>
<DependentUpon>DSUser.xsd</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Mail\fAutoSendSetting.cs">
<SubType>Form</SubType>
</Compile>
@@ -585,7 +591,7 @@
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
<Name>arControl</Name>
</ProjectReference>
<ProjectReference Include="..\..\Sub\YARTE\YARTE.csproj">
<ProjectReference Include="..\..\Sub\YARTE\YARTE\YARTE\YARTE.csproj">
<Project>{db5ee9c8-eacf-4231-877e-b9dfd7a714de}</Project>
<Name>YARTE</Name>
</ProjectReference>

View File

@@ -9,5 +9,6 @@
<ErrorReportUrlHistory />
<FallbackCulture>ko-KR</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
<ProjectView>ProjectFiles</ProjectView>
</PropertyGroup>
</Project>

82
SubProject/FCM0000/Form1.Designer.cs generated Normal file
View File

@@ -0,0 +1,82 @@
namespace FCM0000
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.htmlEditControl1 = new Zoople.HTMLEditControl();
this.SuspendLayout();
//
// htmlEditControl1
//
this.htmlEditControl1.AcceptsReturn = true;
this.htmlEditControl1.BaseURL = null;
this.htmlEditControl1.CleanMSWordHTMLOnPaste = true;
this.htmlEditControl1.CodeEditor.Enabled = true;
this.htmlEditControl1.CodeEditor.Font = new System.Drawing.Font("Courier New", 10F);
this.htmlEditControl1.CodeEditor.Locked = false;
this.htmlEditControl1.CodeEditor.TabWidth = 720;
this.htmlEditControl1.CodeEditor.WordWrap = false;
this.htmlEditControl1.CSSText = null;
this.htmlEditControl1.DocumentHTML = null;
this.htmlEditControl1.EnableInlineSpelling = false;
this.htmlEditControl1.FontSizesList = null;
this.htmlEditControl1.FontsList = null;
this.htmlEditControl1.HiddenButtons = null;
this.htmlEditControl1.ImageStorageLocation = null;
this.htmlEditControl1.InCodeView = false;
this.htmlEditControl1.IndentAmount = 2;
this.htmlEditControl1.IndentsUseBlockuote = false;
this.htmlEditControl1.LanguageFile = null;
this.htmlEditControl1.LicenceActivationKey = null;
this.htmlEditControl1.LicenceKey = null;
this.htmlEditControl1.LicenceKeyInlineSpelling = null;
this.htmlEditControl1.Location = new System.Drawing.Point(41, 132);
this.htmlEditControl1.Name = "htmlEditControl1";
this.htmlEditControl1.Size = new System.Drawing.Size(558, 249);
this.htmlEditControl1.TabIndex = 0;
this.htmlEditControl1.ToolstripImageScalingSize = new System.Drawing.Size(16, 16);
this.htmlEditControl1.UseParagraphAsDefault = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.htmlEditControl1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private Zoople.HTMLEditControl htmlEditControl1;
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FCM0000
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,120 @@
<?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>
</root>

39
SubProject/FCM0000/Form2.Designer.cs generated Normal file
View File

@@ -0,0 +1,39 @@
namespace FCM0000
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Text = "Form2";
}
#endregion
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FCM0000
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
}
}

View File

@@ -20,6 +20,7 @@ namespace FCM0000
public decimal itempriceD { get; set; }
public string SID { get; set; }
public string itemUnit { get; set; }
public string Storage { get; set; }
public string itemSupply { get; set; }
public int itemSupplyidx { get; set; }

View File

@@ -6,7 +6,6 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using YARTE.UI.Buttons;
namespace FCM0000
{

View File

@@ -52,6 +52,7 @@
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.mailFormDataGridView = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -68,7 +69,8 @@
this.subjectTextBox = new System.Windows.Forms.TextBox();
this.ta = new FCM0000.DSMailTableAdapters.MailFormTableAdapter();
this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
tolistLabel = new System.Windows.Forms.Label();
bccLabel = new System.Windows.Forms.Label();
ccLabel = new System.Windows.Forms.Label();
@@ -82,6 +84,7 @@
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).BeginInit();
this.panel1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// tolistLabel
@@ -133,7 +136,7 @@
//
label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
label1.AutoSize = true;
label1.Location = new System.Drawing.Point(15, 457);
label1.Location = new System.Drawing.Point(15, 420);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(80, 12);
label1.TabIndex = 24;
@@ -143,7 +146,7 @@
//
label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(15, 523);
label2.Location = new System.Drawing.Point(15, 486);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(81, 12);
label2.TabIndex = 26;
@@ -235,6 +238,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";
@@ -285,6 +289,16 @@
this.mailFormBindingNavigatorSaveItem.Text = "Save(&S)";
this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click);
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(107, 22);
this.toolStripButton2.Text = "누락 항목 추가";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// mailFormDataGridView
//
this.mailFormDataGridView.AllowUserToAddRows = false;
@@ -297,10 +311,10 @@
this.dataGridViewTextBoxColumn3});
this.mailFormDataGridView.DataSource = this.bs;
this.mailFormDataGridView.Dock = System.Windows.Forms.DockStyle.Left;
this.mailFormDataGridView.Location = new System.Drawing.Point(0, 0);
this.mailFormDataGridView.Location = new System.Drawing.Point(0, 37);
this.mailFormDataGridView.Name = "mailFormDataGridView";
this.mailFormDataGridView.RowTemplate.Height = 23;
this.mailFormDataGridView.Size = new System.Drawing.Size(317, 591);
this.mailFormDataGridView.Size = new System.Drawing.Size(317, 554);
this.mailFormDataGridView.TabIndex = 2;
this.mailFormDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.mailFormDataGridView_DataError);
//
@@ -338,9 +352,9 @@
this.panel1.Controls.Add(this.subjectTextBox);
this.panel1.Controls.Add(bodyLabel);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(317, 0);
this.panel1.Location = new System.Drawing.Point(317, 37);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(516, 591);
this.panel1.Size = new System.Drawing.Size(516, 554);
this.panel1.TabIndex = 3;
//
// textBox2
@@ -348,7 +362,7 @@
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "exceptmailcc", true));
this.textBox2.Location = new System.Drawing.Point(17, 538);
this.textBox2.Location = new System.Drawing.Point(17, 501);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(487, 46);
@@ -359,7 +373,7 @@
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "exceptmail", true));
this.textBox1.Location = new System.Drawing.Point(17, 472);
this.textBox1.Location = new System.Drawing.Point(17, 435);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(487, 46);
@@ -371,12 +385,13 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.htmlEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.htmlEditor1.Html = resources.GetString("htmlEditor1.Html");
this.htmlEditor1.Html = "";
this.htmlEditor1.Location = new System.Drawing.Point(74, 122);
this.htmlEditor1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.htmlEditor1.Name = "htmlEditor1";
this.htmlEditor1.ReadOnly = false;
this.htmlEditor1.ShowToolbar = true;
this.htmlEditor1.Size = new System.Drawing.Size(430, 325);
this.htmlEditor1.Size = new System.Drawing.Size(430, 288);
this.htmlEditor1.TabIndex = 23;
this.htmlEditor1.Validated += new System.EventHandler(this.htmlEditor1_Validated);
//
@@ -468,15 +483,26 @@
this.tam.MailFormTableAdapter = this.ta;
this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// toolStripButton2
// toolStrip1
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(107, 22);
this.toolStripButton2.Text = "누락 항목 추가";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(833, 37);
this.toolStrip1.TabIndex = 4;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripButton1
//
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(65, 34);
this.toolStripButton1.Text = "닫기";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1);
//
// fMailform
//
@@ -486,6 +512,7 @@
this.Controls.Add(this.panel1);
this.Controls.Add(this.mailFormDataGridView);
this.Controls.Add(this.bn);
this.Controls.Add(this.toolStrip1);
this.Name = "fMailform";
this.Text = "메일 양식";
this.Load += new System.EventHandler(this.fMailform_Load);
@@ -497,6 +524,8 @@
((System.ComponentModel.ISupportInitialize)(this.mailFormDataGridView)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -536,5 +565,7 @@
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
}
}

View File

@@ -110,5 +110,10 @@ namespace FCM0000
FCOMMON.Util.MsgI($"{cnt}건의 목록이 생성 되었습니다");
refreshData();
}
private void toolStripButton1_Click_1(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -145,7 +145,7 @@
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
wgAADsIBFShKgAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
@@ -163,7 +163,7 @@
<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
wgAADsIBFShKgAAAASpJREFUOE9jGDygcNbz/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
@@ -174,7 +174,7 @@
<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
wgAADsIBFShKgAAAALZJREFUOE9jGDogvP3BfyiTdBDf/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
@@ -183,7 +183,7 @@
<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
wgAADsIBFShKgAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -192,7 +192,7 @@
<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+//
wgAADsIBFShKgAAAASxJREFUOE9jGFygcNbz/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
@@ -203,7 +203,7 @@
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
wgAADsIBFShKgAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
@@ -215,7 +215,7 @@
<data name="mailFormBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
wgAADsIBFShKgAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value>
</data>
@@ -237,18 +237,23 @@
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="htmlEditor1.Html" xml:space="preserve">
<value>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content="text/html; charset=unicode" http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content="MSHTML 11.00.10570.1001"&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</value>
</data>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>184, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>246, 17</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>440, 17</value>
</metadata>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR
DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il
zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij
KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY
UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC
</value>
</data>
</root>

View File

@@ -12,7 +12,7 @@ namespace FCM0000.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

View File

@@ -4,7 +4,7 @@
<Settings>
<Setting Name="gwcs" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;ConnectionString&gt;Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>

View File

@@ -3,7 +3,9 @@
<configSections>
</configSections>
<connectionStrings>
<add name="FEQ0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!" providerName="System.Data.SqlClient"/>
<add name="FCM0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!" providerName="System.Data.SqlClient"/>
<add name="FEQ0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.36.205;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!"
providerName="System.Data.SqlClient" />
<add name="FCM0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>

View File

@@ -5,6 +5,215 @@ using System.Text;
namespace FEQ0000
{
public static class UTIL_EQ0000
{
public static string getmaxstr(string src, int len = 30)
{
if (src.Length > len) return src.Substring(0, len) + "...";
else return src;
}
public static string MakeDataTableToHTML(List<dsPurchase.EETGW_PurchaseEBRow> rows, string savefilenamexls = "")
{
libxl.Book book = null;// = new libxl.BinBook();
libxl.Sheet sheet = null;
libxl.Format fTitle = null;
libxl.Format fDataStr = null;
libxl.Format fDataNum = null;
if (savefilenamexls.isEmpty() == false)
{
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
sheet = book.addSheet("Data");
fTitle = book.addFormat();
fDataStr = book.addFormat();
fDataNum = book.addFormat();
fDataStr.alignH = libxl.AlignH.ALIGNH_CENTER;
fDataStr.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataStr.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataStr.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataStr.patternForegroundColor = libxl.Color.COLOR_WHITE;
fTitle.alignV = libxl.AlignV.ALIGNV_CENTER;
fTitle.alignH = libxl.AlignH.ALIGNH_CENTER;
fTitle.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fTitle.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fTitle.patternForegroundColor = libxl.Color.COLOR_GRAY25;
fDataNum.alignH = libxl.AlignH.ALIGNH_GENERAL;
fDataNum.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataNum.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataNum.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataNum.patternForegroundColor = libxl.Color.COLOR_WHITE;
}
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</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("<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("</tr>");
sb.AppendLine("<tbody>");
var row = 0;
var col = 0;
if (sheet != null)
{
var basewidth = 15;
sheet.setRow(row, 30);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "S/C", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "자재번호", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "청구자", fTitle);
sheet.setCol(col, (int)(basewidth * 2)); sheet.writeStr(row, col++, "품목", fTitle);
sheet.setCol(col, (int)(basewidth * 3)); sheet.writeStr(row, col++, "규격", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "수량", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "단가", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "금액", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "공급업체", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "용도", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "요청부서", fTitle);
}
decimal totalamt = 0;
row = 1;
col = 0;
foreach (dsPurchase.EETGW_PurchaseEBRow dr in rows)
{
var s요청 = dr.IsrequestNameNull() ? "" : dr.requestName;// fpSpread1_Sheet1.Cells[i, col_요청].Value;
var sSID = dr.IssidNull() ? "" : dr.sid;// fpSpread1_Sheet1.Cells[i, col_SID].Value;
var s품명 = dr.IspumnameNull() ? "" : dr.pumname;// fpSpread1_Sheet1.Cells[i, col_품명].Value;
var s규격 = dr.IspumunitNull() ? "" : dr.pumunit;// fpSpread1_Sheet1.Cells[i, col_규격].Value;
var qty = dr.IspumqtyNull() ? 0 : dr.pumqty;// fpSpread1_Sheet1.Cells[i, col_수량].Value;
var price = dr.IspumpriceNull() ? 0 : dr.pumprice;// fpSpread1_Sheet1.Cells[i, col_단가].Value;
var amt = dr.IspumamtNull() ? 0 : dr.pumamt;// fpSpread1_Sheet1.Cells[i, col_금액].Value;
var s공급 = dr.IssupplyNull() ? "" : dr.supply;// fpSpread1_Sheet1.Cells[i, col_공급].Value;
var s비고 = dr.IsbigoNull() ? "" : dr.bigo;// fpSpread1_Sheet1.Cells[i, col_비고].Value;
var sSITE = dr.IssiteNull() ? "" : dr.site;// fpSpread1_Sheet1.Cells[i, col_site].Value;
var s분류 = dr.IsdeptNull() ? "" : dr.dept;
var sSC = dr.IsscNull() ? "" : dr.sc;//
totalamt += amt;
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(sSC) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + qty.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + price.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + amt.ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("<td>" + s비고 + "</td>");
sb.AppendLine("<td>전자실</td>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 23);
sheet.writeStr(row, col++, sSC, fDataStr);
sheet.writeStr(row, col++, sSID, fDataStr);
sheet.writeStr(row, col++, s요청, fDataStr);
sheet.writeStr(row, col++, s품명, fDataStr);
sheet.writeStr(row, col++, s규격, fDataStr);
sheet.writeNum(row, col++, qty, fDataNum);
sheet.writeNum(row, col++, (int)price, fDataNum);
sheet.writeNum(row, col++, (int)amt, fDataNum);
sheet.writeStr(row, col++, s공급, fDataStr);
sheet.writeStr(row, col++, s비고, fDataStr);
sheet.writeStr(row, col++, "전자실", fDataStr);
row += 1;
}
////sb.AppendLine("<td>" + getmaxstr(sSTIE) + "</td>");
//''sb.AppendLine("<td>" + getmaxstr(s분류) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 30);
sheet.writeStr(row, col++, "합계", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeNum(row, col++, (int)totalamt, fTitle);
sheet.setMerge(row, row, col - 1, col);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
row += 1;
}
if (book != null)
{
try
{
book.save(savefilenamexls);
}
catch { }
}
return sb.ToString().Replace("{금액}", totalamt.ToString("N0"));
}
}
public static class DatabaseManager
{
private static System.Data.SqlClient.SqlConnection getCn()

View File

@@ -559,7 +559,7 @@
<Project>{58cfc90c-5068-46a2-a8de-0e92ee9e0990}</Project>
<Name>AmkorRestfulService</Name>
</ProjectReference>
<ProjectReference Include="..\..\Sub\YARTE\YARTE.csproj">
<ProjectReference Include="..\..\Sub\YARTE\YARTE\YARTE\YARTE.csproj">
<Project>{db5ee9c8-eacf-4231-877e-b9dfd7a714de}</Project>
<Name>YARTE</Name>
</ProjectReference>

View File

@@ -30,36 +30,37 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB));
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType81 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType82 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType83 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType84 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.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();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
@@ -106,6 +107,7 @@
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.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -141,7 +143,6 @@
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();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -254,7 +255,6 @@
//
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,7 +381,6 @@
// 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);
@@ -505,7 +504,7 @@
this.sC검색ToolStripMenuItem,
this.cRCF검색ToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(314, 464);
this.cm1.Size = new System.Drawing.Size(314, 442);
//
// columnSizeToolStripMenuItem
//
@@ -559,6 +558,13 @@
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(310, 6);
//
// 상태일괄변경ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "상태일괄변경ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "상태 일괄 변경";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 입고ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "입고ToolStripMenuItem";
@@ -655,7 +661,6 @@
// 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";
@@ -672,7 +677,6 @@
// 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";
@@ -728,7 +732,6 @@
// 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;
@@ -839,287 +842,304 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 32;
this.fpSpread1_Sheet1.ColumnCount = 33;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "구매신청일";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "보관소";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "SC#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "SCR/CF";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "수령";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "SID#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "품명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "규격";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "수량\r\n(요청)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "수량\r\n(구매)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "단위";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "단가\r\n(해외)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "통화";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "단가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "합계금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "공급업체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "SITE";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "분류";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "SC#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "SCR/CF";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "수령";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "SID#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "품명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "규격";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "수량\r\n(요청)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "수량\r\n(구매)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "단";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "단가\r\n(해외)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "통화";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "단가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "합계금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "공급업체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "입고예정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "입고수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "*";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 23).Value = "입고예정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 24).Value = "입고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "입고수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType81;
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 = "구매신청일";
this.fpSpread1_Sheet1.Columns.Get(0).Tag = "pdate";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 82F;
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 = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType82;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태";
this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 116F;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType83;
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 = "보관소";
this.fpSpread1_Sheet1.Columns.Get(2).Label = "SITE";
this.fpSpread1_Sheet1.Columns.Get(2).Tag = "site";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "요청";
this.fpSpread1_Sheet1.Columns.Get(3).Tag = "requestName";
this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "SC#";
this.fpSpread1_Sheet1.Columns.Get(4).Tag = "sc";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType84;
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 = "분류";
this.fpSpread1_Sheet1.Columns.Get(3).Tag = "분류";
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).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).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SCR/CF";
this.fpSpread1_Sheet1.Columns.Get(5).Tag = "crcf";
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#";
this.fpSpread1_Sheet1.Columns.Get(5).Tag = "sc";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(6).Tag = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(7).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "pumname";
this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(9).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(10).Tag = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.NegativeRed = true;
numberCellType2.NullDisplay = "--";
numberCellType2.Separator = ",";
numberCellType2.ShowSeparator = true;
numberCellType2.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumqtyReq";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "수량\r\n(요청)";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F;
numberCellType3.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "pumqty";
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).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "SCR/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).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType88;
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).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).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;
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).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;
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Width = 55F;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumunit";
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;
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 = "단위";
this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F;
numberCellType4.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "단가\r\n(해외)";
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "currency";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "통화";
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).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;
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 = 33F;
numberCellType5.DecimalPlaces = 0;
numberCellType5.MaximumValue = 9999999999999.99D;
numberCellType5.MinimumValue = -9999999999999.99D;
numberCellType5.NegativeRed = true;
numberCellType5.NullDisplay = "--";
numberCellType5.Separator = ",";
numberCellType5.ShowSeparator = true;
numberCellType5.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F;
numberCellType6.DecimalPlaces = 0;
numberCellType6.MaximumValue = 9999999999999.99D;
numberCellType6.MinimumValue = -9999999999999.99D;
numberCellType6.NegativeRed = true;
numberCellType6.NullDisplay = "--";
numberCellType6.Separator = ",";
numberCellType6.ShowSeparator = true;
numberCellType6.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(15).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType93;
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;
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 = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(18).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType7.DecimalPlaces = 0;
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType7.MaximumValue = 2147483647D;
numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(19).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F;
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;
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).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)))));
numberCellType8.DecimalPlaces = 0;
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType8.MaximumValue = 2147483647D;
numberCellType8.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "projectidx";
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;
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).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(20).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F;
textCellType14.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType14;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(21).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 96F;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(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;
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;
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(23).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType96;
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).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F;
numberCellType9.DecimalPlaces = 0;
numberCellType9.NegativeRed = true;
numberCellType9.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "inqty";
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).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 = "inqty";
this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Width = 75F;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po";
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;
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 = "PO#";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F;
textCellType18.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(26).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(28).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(28).Visible = false;
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).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;
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).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 = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType50;
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 = "conf_status";
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 = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType100;
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_request";
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 = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType100;
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_reponse";
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).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(32).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(32).Tag = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(32).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(32).Width = 119F;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
@@ -1151,13 +1171,6 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 상태일괄변경ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "상태일괄변경ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "상태 일괄 변경";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchaseEB
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1267,9 +1280,9 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
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;
}
}

View File

@@ -14,6 +14,8 @@ using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using FarPoint.Win.Spread;
namespace FEQ0000
{
@@ -119,8 +121,8 @@ namespace FEQ0000
foreach (var item in stList)
cmbState.Items.Add(item.Value);
cmbState.Items.Add("<=Received");
this.cmbState.SelectedIndex = 0;
this.cmbState.SelectedIndex = 0;
//all기본 - 양진원
//this.cmbCr.SelectedIndex = 1;
@@ -146,7 +148,7 @@ namespace FEQ0000
foreach (FarPoint.Win.Spread.Column col in fpSpread1.ActiveSheet.Columns)
col.Locked = true;
}
refreshData();
//열표시여부를 설정
@@ -194,7 +196,7 @@ namespace FEQ0000
{
cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)";
}
if (cmbState.SelectedIndex != 0)
{
if (cmbState.Text.ToUpper() == "<=RECEIVED")
@@ -255,7 +257,7 @@ namespace FEQ0000
var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
{
@@ -927,12 +929,7 @@ namespace FEQ0000
}
string getmaxstr(string src, int len = 30)
{
if (src.Length > len) return src.Substring(0, len) + "...";
else return src;
}
List<string> ChangeMailAddress(List<string> userid)
{
var db = new DataClasses1DataContext();
@@ -1019,7 +1016,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();
@@ -1079,117 +1076,31 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\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);
//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);
}
var rows = this.GetDatarows();
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows,fn);
if (f.chkList.Checked)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
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; //
@@ -1201,6 +1112,276 @@ namespace FEQ0000
}
}
//string MakeDataTableToHTML(string savefilenamexls = "")
//{
// libxl.Book book = null;// = new libxl.BinBook();
// libxl.Sheet sheet = null;
// libxl.Format fTitle = null;
// libxl.Format fDataStr = null;
// libxl.Format fDataNum = null;
// if (savefilenamexls.isEmpty() == false)
// {
// book = new libxl.XmlBook();
// book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
// sheet = book.addSheet("Data");
// fTitle = book.addFormat();
// fDataStr = book.addFormat();
// fDataNum = book.addFormat();
// fDataStr.alignH = libxl.AlignH.ALIGNH_CENTER;
// fDataStr.alignV = libxl.AlignV.ALIGNV_CENTER;
// fDataStr.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
// fDataStr.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
// fDataStr.patternForegroundColor = libxl.Color.COLOR_WHITE;
// fTitle.alignV = libxl.AlignV.ALIGNV_CENTER;
// fTitle.alignH = libxl.AlignH.ALIGNH_CENTER;
// fTitle.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
// fTitle.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
// fTitle.patternForegroundColor = libxl.Color.COLOR_GRAY25;
// fDataNum.alignH = libxl.AlignH.ALIGNH_GENERAL;
// fDataNum.alignV = libxl.AlignV.ALIGNV_CENTER;
// fDataNum.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
// fDataNum.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
// fDataNum.patternForegroundColor = libxl.Color.COLOR_WHITE;
// }
// //목록을 본문에 추가한다
// System.Text.StringBuilder sb = new StringBuilder();
// sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
// sb.AppendLine("<tr>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
// sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("</tr>");
// sb.AppendLine("<tr>");
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</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("<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("</tr>");
// sb.AppendLine("<tbody>");
// var row = 0;
// var col = 0;
// if (sheet != null)
// {
// var basewidth = 15;
// sheet.setRow(row, 30);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "S/C", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "자재번호", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "청구자", fTitle);
// sheet.setCol(col, (int)(basewidth * 2)); sheet.writeStr(row, col++, "품목", fTitle);
// sheet.setCol(col, (int)(basewidth * 3)); sheet.writeStr(row, col++, "규격", fTitle);
// sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "수량", fTitle);
// sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "단가", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "금액", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "공급업체", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "용도", fTitle);
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "요청부서", fTitle);
// }
// 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;
// var col_site = fpSpread1_Sheet1.Columns["site"].Index;
// var col_분류 = fpSpread1_Sheet1.Columns["분류"].Index;
// var col_sc = fpSpread1_Sheet1.Columns["sc"].Index;
// int totalamt = 0;
// row = 1;
// col = 0;
// 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 vSITE = fpSpread1_Sheet1.Cells[i, col_site].Value;
// var v분류 = fpSpread1_Sheet1.Cells[i, col_분류].Value;
// var vsc = fpSpread1_Sheet1.Cells[i, col_sc].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;
// var sSTIE = string.Empty;
// var s분류 = string.Empty;
// var sSC = 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();
// if (vSITE != null) sSTIE = vSITE.ToString();
// if (v분류 != null) s분류 = v분류.ToString();
// if (vsc != null) sSC = vsc.ToString();
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</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("<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>");
// var qty = int.Parse(s수량);
// var price = int.Parse(s단가);
// var amt = int.Parse(s금액);
// totalamt += amt;
// sb.AppendLine("<tr>");
// sb.AppendLine("<td>" + getmaxstr(sSC) + "</td>");
// sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
// sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
// sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
// sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
// sb.AppendLine("<td style='text-align:center'>" + qty.ToString("N0") + "</td>");
// sb.AppendLine("<td style='text-align:right'>" + price.ToString("N0") + "</td>");
// sb.AppendLine("<td style='text-align:right'>" + amt.ToString("N0") + "</td>");
// sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
// sb.AppendLine("<td>" + s비고 + "</td>");
// sb.AppendLine("<td>전자실</td>");
// if (sheet != null)
// {
// col = 0;
// sheet.setRow(row, 23);
// sheet.writeStr(row, col++, sSC, fDataStr);
// sheet.writeStr(row, col++, sSID, fDataStr);
// sheet.writeStr(row, col++, s요청, fDataStr);
// sheet.writeStr(row, col++, s품명, fDataStr);
// sheet.writeStr(row, col++, s규격, fDataStr);
// sheet.writeNum(row, col++, qty, fDataNum);
// sheet.writeNum(row, col++, price, fDataNum);
// sheet.writeNum(row, col++, amt, fDataNum);
// sheet.writeStr(row, col++, s공급, fDataStr);
// sheet.writeStr(row, col++, s비고, fDataStr);
// sheet.writeStr(row, col++, "전자실", fDataStr);
// row += 1;
// }
// ////sb.AppendLine("<td>" + getmaxstr(sSTIE) + "</td>");
// //''sb.AppendLine("<td>" + getmaxstr(s분류) + "</td>");
// //sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
// //sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
// sb.AppendLine("</tr>");
// }
// sb.AppendLine("<tr>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
// sb.AppendLine("<td style='text-align:center;' colspan='3'><strong>{금액}</strong></td>");
// sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
// sb.AppendLine("</tr>");
// sb.AppendLine("</tbody>");
// sb.AppendLine("</table>");
// if (sheet != null)
// {
// col = 0;
// sheet.setRow(row, 30);
// sheet.writeStr(row, col++, "합계", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeStr(row, col++, "", fTitle);
// sheet.writeNum(row, col++, totalamt, fTitle);
// sheet.setMerge(row, row, col - 1, col + 2);
// row += 1;
// }
// if (book != null)
// {
// try
// {
// book.save(savefilenamexls);
// }
// catch { }
// }
// return sb.ToString().Replace("{금액}", totalamt.ToString("N0"));
//}
private void toolStripButton3_Click_1(object sender, EventArgs e)
{
var fn = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "PurcManual.pdf");
@@ -1264,7 +1445,7 @@ namespace FEQ0000
func_ipgo();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var fn = DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls";
@@ -1292,10 +1473,9 @@ namespace FEQ0000
}
private void toolStripButton8_Click(object sender, EventArgs e)
List<dsPurchase.EETGW_PurchaseEBRow> GetDatarows()
{
List<dsPurchase.EETGW_PurchaseEBRow> rows = new List<dsPurchase.EETGW_PurchaseEBRow>();
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
@@ -1327,7 +1507,7 @@ namespace FEQ0000
}
//수집된데이터를 보내야한다.
List<dsPurchase.EETGW_PurchaseEBRow> rows = new List<dsPurchase.EETGW_PurchaseEBRow>();
var idx = 0;
foreach (var i in rowidxs)
{
@@ -1335,6 +1515,14 @@ namespace FEQ0000
var row = this.dsPurchase.EETGW_PurchaseEB.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
return rows;
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
//수집된데이터를 보내야한다.
var rows = GetDatarows();
//이자료를 승인요청창에 보낸다.
if (rows.Any() == false)
@@ -1503,17 +1691,17 @@ namespace FEQ0000
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td>" + 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>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}

View File

@@ -294,6 +294,20 @@
pPXwne/C6mdp8McSRFzeZapS+wjkJRfymh5gT64ekcwWTlD+lz9zOBxaIMAzsgE+rQreDgWeJiTBEx1L
fJLTRwnaZpAqNGFnisLBYJ7+IqS9SSApOf15fKLDx82HW1QOL7EXnohoYlemmopJazfvSJFLGSwyPLT+
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">
@@ -333,20 +347,6 @@
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

@@ -49,6 +49,7 @@
System.Windows.Forms.Label label15;
System.Windows.Forms.Label label9;
System.Windows.Forms.Label label18;
System.Windows.Forms.Label label2;
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbPumName = new System.Windows.Forms.TextBox();
@@ -71,7 +72,8 @@
this.chkInDate = new System.Windows.Forms.CheckBox();
this.btSaveAdd = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tbStorage = new System.Windows.Forms.ComboBox();
this.cmbDept = new System.Windows.Forms.ComboBox();
this.cmbSite = new System.Windows.Forms.ComboBox();
this.cmbRemark = new System.Windows.Forms.ComboBox();
this.cmbCurrency = new System.Windows.Forms.ComboBox();
this.tbQtyReal = new System.Windows.Forms.TextBox();
@@ -80,6 +82,8 @@
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dtExpDate = new System.Windows.Forms.DateTimePicker();
this.chkExp = new System.Windows.Forms.CheckBox();
this.button7 = new System.Windows.Forms.Button();
this.tbInQty = new System.Windows.Forms.TextBox();
this.button6 = new System.Windows.Forms.Button();
@@ -91,8 +95,6 @@
this.dsPurchase = new FEQ0000.dsPurchase();
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.dtExpDate = new System.Windows.Forms.DateTimePicker();
this.chkExp = new System.Windows.Forms.CheckBox();
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
sidLabel = new System.Windows.Forms.Label();
@@ -112,6 +114,7 @@
label15 = new System.Windows.Forms.Label();
label9 = new System.Windows.Forms.Label();
label18 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -254,12 +257,12 @@
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(287, 237);
label10.Location = new System.Drawing.Point(299, 237);
label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(54, 20);
label10.Size = new System.Drawing.Size(37, 20);
label10.TabIndex = 23;
label10.Text = "보관소";
label10.Text = "SITE";
//
// label11
//
@@ -314,6 +317,16 @@
label18.TabIndex = 51;
label18.Text = "\\";
//
// label2
//
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(298, 272);
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(39, 20);
label2.TabIndex = 53;
label2.Text = "분류";
//
// tbSC
//
this.tbSC.Location = new System.Drawing.Point(115, 151);
@@ -543,7 +556,9 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.tbStorage);
this.groupBox1.Controls.Add(this.cmbDept);
this.groupBox1.Controls.Add(label2);
this.groupBox1.Controls.Add(this.cmbSite);
this.groupBox1.Controls.Add(label18);
this.groupBox1.Controls.Add(this.cmbRemark);
this.groupBox1.Controls.Add(this.cmbCurrency);
@@ -589,20 +604,34 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "필수입력";
//
// tbStorage
// cmbDept
//
this.tbStorage.FormattingEnabled = true;
this.tbStorage.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.tbStorage.Items.AddRange(new object[] {
this.cmbDept.FormattingEnabled = true;
this.cmbDept.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.cmbDept.Items.AddRange(new object[] {
"NR",
"SPR",
"전자실"});
this.tbStorage.Location = new System.Drawing.Point(345, 233);
this.tbStorage.Margin = new System.Windows.Forms.Padding(4);
this.tbStorage.Name = "tbStorage";
this.tbStorage.Size = new System.Drawing.Size(129, 28);
this.tbStorage.TabIndex = 52;
this.tbStorage.SelectedIndexChanged += new System.EventHandler(this.tbStorage_SelectedIndexChanged);
this.cmbDept.Location = new System.Drawing.Point(344, 268);
this.cmbDept.Margin = new System.Windows.Forms.Padding(4);
this.cmbDept.Name = "cmbDept";
this.cmbDept.Size = new System.Drawing.Size(129, 28);
this.cmbDept.TabIndex = 54;
//
// cmbSite
//
this.cmbSite.FormattingEnabled = true;
this.cmbSite.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.cmbSite.Items.AddRange(new object[] {
"NR",
"SPR",
"전자실"});
this.cmbSite.Location = new System.Drawing.Point(345, 233);
this.cmbSite.Margin = new System.Windows.Forms.Padding(4);
this.cmbSite.Name = "cmbSite";
this.cmbSite.Size = new System.Drawing.Size(129, 28);
this.cmbSite.TabIndex = 52;
this.cmbSite.SelectedIndexChanged += new System.EventHandler(this.tbStorage_SelectedIndexChanged);
//
// cmbRemark
//
@@ -709,6 +738,28 @@
this.groupBox2.TabStop = false;
this.groupBox2.Text = "추가정보";
//
// dtExpDate
//
this.dtExpDate.Location = new System.Drawing.Point(115, 20);
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
this.dtExpDate.Name = "dtExpDate";
this.dtExpDate.Size = new System.Drawing.Size(286, 27);
this.dtExpDate.TabIndex = 1;
this.dtExpDate.TabStop = false;
//
// chkExp
//
this.chkExp.AutoSize = true;
this.chkExp.Location = new System.Drawing.Point(35, 24);
this.chkExp.Margin = new System.Windows.Forms.Padding(4);
this.chkExp.Name = "chkExp";
this.chkExp.Size = new System.Drawing.Size(73, 24);
this.chkExp.TabIndex = 0;
this.chkExp.TabStop = false;
this.chkExp.Text = "예상일";
this.chkExp.UseVisualStyleBackColor = true;
this.chkExp.CheckedChanged += new System.EventHandler(this.chkExp_CheckedChanged);
//
// button7
//
this.button7.Location = new System.Drawing.Point(15, 313);
@@ -787,28 +838,6 @@
//
this.purchaseTableAdapter.ClearBeforeFill = true;
//
// dtExpDate
//
this.dtExpDate.Location = new System.Drawing.Point(115, 20);
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
this.dtExpDate.Name = "dtExpDate";
this.dtExpDate.Size = new System.Drawing.Size(286, 27);
this.dtExpDate.TabIndex = 1;
this.dtExpDate.TabStop = false;
//
// chkExp
//
this.chkExp.AutoSize = true;
this.chkExp.Location = new System.Drawing.Point(35, 24);
this.chkExp.Margin = new System.Windows.Forms.Padding(4);
this.chkExp.Name = "chkExp";
this.chkExp.Size = new System.Drawing.Size(73, 24);
this.chkExp.TabIndex = 0;
this.chkExp.TabStop = false;
this.chkExp.Text = "예상일";
this.chkExp.UseVisualStyleBackColor = true;
this.chkExp.CheckedChanged += new System.EventHandler(this.chkExp_CheckedChanged);
//
// fPurchaseEB_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
@@ -882,8 +911,9 @@
private System.Windows.Forms.TextBox tbQtyReal;
private System.Windows.Forms.ComboBox cmbCurrency;
private System.Windows.Forms.ComboBox cmbRemark;
private System.Windows.Forms.ComboBox tbStorage;
private System.Windows.Forms.ComboBox cmbSite;
private System.Windows.Forms.DateTimePicker dtExpDate;
private System.Windows.Forms.CheckBox chkExp;
private System.Windows.Forms.ComboBox cmbDept;
}
}

View File

@@ -98,29 +98,18 @@ namespace FEQ0000
this.cmbState.ValueMember = "Value";
this.cmbState.DataSource = stateList;
////costcenter
//var LstCost = FCOMMON.DBM.getCodeTable("68");
//this.tbCostCenter.DisplayMember = "Value";
//this.tbCostCenter.ValueMember = "Value";
//this.tbCostCenter.DataSource = LstCost;
//전자실분류
var LstCost = FCOMMON.DBM.getCodeTable("71");
this.cmbDept.DisplayMember = "Value";
this.cmbDept.ValueMember = "Value";
this.cmbDept.DataSource = LstCost;
////line
//var LstLine = FCOMMON.DBM.getCodeTable("67");
//this.tbLineCode.DisplayMember = "Value";
//this.tbLineCode.ValueMember = "Value";
//this.tbLineCode.DataSource = LstLine;
//SITE
var LstLine = FCOMMON.DBM.getCodeTable("23");
this.cmbSite.DisplayMember = "Value";
this.cmbSite.ValueMember = "Value";
this.cmbSite.DataSource = LstLine;
////구매-담당
//var LstMan = FCOMMON.DBM.getCodeTable("65");
//this.tbManager.DisplayMember = "Value";
//this.tbManager.ValueMember = "Value";
//this.tbManager.DataSource = LstMan;
////구매-승인
//var LstAdm = FCOMMON.DBM.getCodeTable("66");
//this.tbAdmin.DisplayMember = "Value";
//this.tbAdmin.ValueMember = "Value";
//this.tbAdmin.DataSource = LstAdm;
//통화
var LstCur = FCOMMON.DBM.getCodeTable("69");
@@ -242,7 +231,7 @@ namespace FEQ0000
tbSupplyIndex.Text = dr.supplyidx.ToString();
cmbState.Text = dr.state;
tbStorage.Text = dr.place;
cmbSite.Text = dr.site;
tbSC.Text = dr.sc;
tbPO.Text = dr.po;
@@ -401,7 +390,7 @@ namespace FEQ0000
this.tbSID.Text = f.SID;
this.tbSID.Tag = f.SID;
this.tbPumUnit.Text = f.itemUnit; //181214
this.tbStorage.Text = f.Storage;
//''this.tbSite.Text = f.tbsi;
this.tbPumModel.Enabled = this.tbPumModel.Text.isEmpty();
this.tbPumUnit.Enabled = false;
@@ -508,11 +497,11 @@ namespace FEQ0000
}
if (tbStorage.Text.Equals("SPR"))
{
if (FCOMMON.Util.MsgQ("SPR 항목입니다. 저장할까요?") != DialogResult.Yes)
return false;
}
//if (tbSite.Text.Equals("SPR"))
//{
// if (FCOMMON.Util.MsgQ("SPR 항목입니다. 저장할까요?") != DialogResult.Yes)
// return false;
//}
if (chkInDate.Checked)
{
@@ -591,6 +580,7 @@ namespace FEQ0000
dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text);
dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text);
dr.currency = cmbCurrency.Text.Trim();
dr.place = "전자실";
if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal priced))
{
@@ -628,7 +618,7 @@ namespace FEQ0000
dr.pumunit = tbPumUnit.Text;
dr.supply = tbSupply.Text;
dr.place = tbStorage.Text;
dr.site = cmbSite.Text;
if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull();

View File

@@ -191,6 +191,9 @@
<metadata name="label18.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="tbBigo.ToolTip" xml:space="preserve">
<value>* 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등)
* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등)

View File

@@ -59,25 +59,22 @@
this.btFind = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -100,8 +97,10 @@
// tam
//
this.tam.BackupDataSetBeforeUpdate = true;
this.tam.Connection = null;
this.tam.EETGW_PurchaseCRTableAdapter = null;
this.tam.EETGW_PurchaseEBTableAdapter = null;
this.tam.PurchaseTableAdapter = null;
this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// bn
@@ -299,19 +298,16 @@
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pdateDataGridViewTextBoxColumn,
this.requestNameDataGridViewTextBoxColumn,
this.sidDataGridViewTextBoxColumn,
this.requestNameDataGridViewTextBoxColumn,
this.pumnameDataGridViewTextBoxColumn,
this.pumscaleDataGridViewTextBoxColumn,
this.pumunitDataGridViewTextBoxColumn,
this.pumqtyDataGridViewTextBoxColumn,
this.pumqtyReqDataGridViewTextBoxColumn,
this.pumpriceDataGridViewTextBoxColumn,
this.pumamtDataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn,
this.supplyDataGridViewTextBoxColumn,
this.bigo2DataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn});
this.bigo2DataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bs;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
@@ -328,93 +324,6 @@
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
// pdateDataGridViewTextBoxColumn
//
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
//
// requestNameDataGridViewTextBoxColumn
//
this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
//
// sidDataGridViewTextBoxColumn
//
this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
//
// pumnameDataGridViewTextBoxColumn
//
this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
//
// pumscaleDataGridViewTextBoxColumn
//
this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
//
// pumunitDataGridViewTextBoxColumn
//
this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
//
// pumqtyDataGridViewTextBoxColumn
//
this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
//
// pumqtyReqDataGridViewTextBoxColumn
//
this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
//
// pumpriceDataGridViewTextBoxColumn
//
this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
//
// pumamtDataGridViewTextBoxColumn
//
this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
//
// supplyDataGridViewTextBoxColumn
//
this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
//
// bigo2DataGridViewTextBoxColumn
//
this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
//
// bigoDataGridViewTextBoxColumn
//
this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
@@ -479,6 +388,75 @@
//
this.ta.ClearBeforeFill = true;
//
// sidDataGridViewTextBoxColumn
//
this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
//
// requestNameDataGridViewTextBoxColumn
//
this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
this.requestNameDataGridViewTextBoxColumn.HeaderText = "청구자";
this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumnameDataGridViewTextBoxColumn
//
this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.pumnameDataGridViewTextBoxColumn.HeaderText = "품목";
this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
//
// pumscaleDataGridViewTextBoxColumn
//
this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.pumscaleDataGridViewTextBoxColumn.HeaderText = "규격";
this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
//
// pumqtyReqDataGridViewTextBoxColumn
//
this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "수량";
this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
//
// pumpriceDataGridViewTextBoxColumn
//
this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
//
// pumamtDataGridViewTextBoxColumn
//
this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
//
// bigoDataGridViewTextBoxColumn
//
this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.bigoDataGridViewTextBoxColumn.HeaderText = "용도";
this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
//
// supplyDataGridViewTextBoxColumn
//
this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.supplyDataGridViewTextBoxColumn.HeaderText = "업체명";
this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
//
// bigo2DataGridViewTextBoxColumn
//
this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
this.bigo2DataGridViewTextBoxColumn.HeaderText = "구매담당비고";
this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
//
// fPurchaseEB_ConfRequest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -529,19 +507,6 @@
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.RichTextBox richTextBox1;
@@ -549,5 +514,15 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
}
}

View File

@@ -6,14 +6,8 @@ using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
@@ -34,7 +28,7 @@ namespace FEQ0000
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
fn_fpcolsize = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosing += FPurchase_FormClosing;
this.FormClosed += __Closed;
@@ -65,7 +59,7 @@ namespace FEQ0000
else
{
string dt = string.Empty;
if (!util.MakeDateString(input, out dt))
if (!FCOMMON.Util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
@@ -386,7 +380,7 @@ namespace FEQ0000
dr.AcceptChanges();
}
dlg = util.MsgQ("메일 전송을 할까요?");
dlg = FCOMMON.Util.MsgQ("메일 전송을 할까요?");
if (dlg != DialogResult.Yes) return;
@@ -436,89 +430,37 @@ namespace FEQ0000
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
NetOffice.OutlookApi.Application outlookApplication = new NetOffice.OutlookApi.Application();
var newMail = outlookApplication.CreateItem(NetOffice.OutlookApi.Enums.OlItemType.olMailItem) as NetOffice.OutlookApi.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\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
newMail.Attachments.Add(fi.FullName);
//newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
var rows = this.rows;
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
sb.AppendLine($"<td style='text-align:center;background-color: aqua;'>{col.HeaderText}</td>");
}
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
for (int i = 0; i < this.dataGridView1.RowCount; i++)
{
sb.AppendLine("<tr>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
var v = dataGridView1.Rows[i].Cells[col.Index].Value;
string value = "";
if (v != null) value = v.ToString();
if (col.ValueType == typeof(int))
{
var ivalue = (int)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(decimal))
{
var ivalue = (decimal)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(float))
{
var ivalue = (float)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else if (col.ValueType == typeof(double))
{
var ivalue = (double)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else sb.AppendLine($"<td>{getmaxstr(value)}</td>");
}
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}");
form_body = form_body.Replace("{body}", sb.ToString());
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
form_body = form_body.Replace("{body}", tabledata);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
FCOMMON.Util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
@@ -527,7 +469,7 @@ namespace FEQ0000
{
var drv = this.bs.Current as dsPurchase.EETGW_PurchaseEBRow;
if (drv == null) return;
var dlg = util.MsgQ("선택된 줄을 제거 할까요?");
var dlg = FCOMMON.Util.MsgQ("선택된 줄을 제거 할까요?");
if (dlg != DialogResult.Yes) return;
this.rows.Remove(drv);
if (rows.Any())

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using YARTE.UI.Buttons;
namespace FEQ0000.Purchase
{
@@ -18,6 +19,7 @@ namespace FEQ0000.Purchase
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1);
Cate = cate;
}
public fMailForm(string subject, string body, string to, string cc, string bcc)

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1001,7 +1001,7 @@
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
<Name>arControl</Name>
</ProjectReference>
<ProjectReference Include="..\..\Sub\YARTE\YARTE.csproj">
<ProjectReference Include="..\..\Sub\YARTE\YARTE\YARTE\YARTE.csproj">
<Project>{db5ee9c8-eacf-4231-877e-b9dfd7a714de}</Project>
<Name>YARTE</Name>
</ProjectReference>

View File

@@ -89,11 +89,11 @@
this.HolyTimes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cmbCf = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.HolyReason = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.HolyLocation = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.telDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.processsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cmbCf = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.Response = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.HolyBackup = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.remarkDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -497,11 +497,11 @@
this.HolyTimes,
this.stime,
this.etime,
this.cmbCf,
this.HolyReason,
this.HolyLocation,
this.telDataGridViewTextBoxColumn,
this.processsDataGridViewTextBoxColumn,
this.cmbCf,
this.Response,
this.HolyBackup,
this.remarkDataGridViewTextBoxColumn});
@@ -620,6 +620,20 @@
this.etime.Name = "etime";
this.etime.Width = 64;
//
// cmbCf
//
this.cmbCf.DataPropertyName = "conf";
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cmbCf.DefaultCellStyle = dataGridViewCellStyle6;
this.cmbCf.HeaderText = "관리자 승인";
this.cmbCf.Items.AddRange(new object[] {
"선택안함",
"승인",
"거절"});
this.cmbCf.Name = "cmbCf";
this.cmbCf.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.cmbCf.Width = 85;
//
// HolyReason
//
this.HolyReason.DataPropertyName = "HolyReason";
@@ -649,20 +663,6 @@
this.processsDataGridViewTextBoxColumn.ReadOnly = true;
this.processsDataGridViewTextBoxColumn.Width = 64;
//
// cmbCf
//
this.cmbCf.DataPropertyName = "conf";
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cmbCf.DefaultCellStyle = dataGridViewCellStyle6;
this.cmbCf.HeaderText = "관리자 승인";
this.cmbCf.Items.AddRange(new object[] {
"선택안함",
"승인",
"거절"});
this.cmbCf.Name = "cmbCf";
this.cmbCf.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.cmbCf.Width = 85;
//
// Response
//
this.Response.DataPropertyName = "Response";
@@ -768,11 +768,11 @@
private System.Windows.Forms.DataGridViewTextBoxColumn HolyTimes;
private System.Windows.Forms.DataGridViewTextBoxColumn stime;
private System.Windows.Forms.DataGridViewTextBoxColumn etime;
private System.Windows.Forms.DataGridViewComboBoxColumn cmbCf;
private System.Windows.Forms.DataGridViewTextBoxColumn HolyReason;
private System.Windows.Forms.DataGridViewTextBoxColumn HolyLocation;
private System.Windows.Forms.DataGridViewTextBoxColumn telDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn processsDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewComboBoxColumn cmbCf;
private System.Windows.Forms.DataGridViewTextBoxColumn Response;
private System.Windows.Forms.DataGridViewTextBoxColumn HolyBackup;
private System.Windows.Forms.DataGridViewTextBoxColumn remarkDataGridViewTextBoxColumn;

View File

@@ -130,7 +130,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wQAADsEBuJFr7QAAASpJREFUOE9jGDygcNbz/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
@@ -141,7 +141,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
wQAADsEBuJFr7QAAALZJREFUOE9jGDogvP3BfyiTdBDf/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
@@ -150,7 +150,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
wQAADsEBuJFr7QAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -159,7 +159,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
wQAADsEBuJFr7QAAASxJREFUOE9jGFygcNbz/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

View File

@@ -2036,7 +2036,7 @@
this.btSearch.Padding = new System.Windows.Forms.Padding(5, 0, 3, 0);
this.btSearch.Size = new System.Drawing.Size(122, 69);
this.btSearch.TabIndex = 9;
this.btSearch.Text = "새로고침(&R)";
this.btSearch.Text = "새로고침(F5)";
this.btSearch.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btSearch.UseVisualStyleBackColor = true;
this.btSearch.Click += new System.EventHandler(this.button2_Click);

View File

@@ -19,8 +19,17 @@ namespace FPJ0000
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
this.FormClosed += __Closed;
this.KeyPreview = true;
this.KeyDown += (s1, e1) => {
if(e1.KeyCode == Keys.F5)
{
btSearch.PerformClick();
}
};
}
void __Closed(object sender, FormClosedEventArgs e)
{
timer1.Stop();

View File

@@ -223,7 +223,6 @@ namespace FPJ0000
var idinfo = uidinfo.Split('|');
var uid = idinfo[0];
if (dtActUser.Select($"id='{uid}'").Any() == false) continue;
var newdr = this.dSProjectSummary.ProjectCountForUser.NewProjectCountForUserRow();
@@ -243,21 +242,27 @@ namespace FPJ0000
//진행중인자료의 플랜을 확인한다.
var listing = list.Where(t => t.status == "진행").ToList();
newdr.CntNone = listing.Where(t => string.IsNullOrEmpty(t.ddate)).Count();
newdr.Plan01 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-01")).Count();
newdr.Plan02 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-02")).Count();
newdr.Plan03 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-03")).Count();
newdr.Plan04 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-04")).Count();
newdr.Plan05 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-05")).Count();
newdr.Plan06 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-06")).Count();
newdr.Plan07 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-07")).Count();
newdr.Plan08 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-08")).Count();
newdr.Plan09 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-09")).Count();
newdr.Plan10 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-10")).Count();
newdr.Plan11 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-11")).Count();
newdr.Plan12 = listing.Where(t => t.ddate.StartsWith($"{cmbYearS}-12")).Count();
if(uid == "395552")
{
var nextyear = (int.Parse(cmbYearS.Text) + 1).ToString();
}
var yearstr = cmbYearS.Text;
newdr.CntNone = listing.Where(t => string.IsNullOrEmpty(t.ddate)).Count();
newdr.Plan01 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-01")).Count();
newdr.Plan02 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-02")).Count();
newdr.Plan03 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-03")).Count();
newdr.Plan04 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-04")).Count();
newdr.Plan05 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-05")).Count();
newdr.Plan06 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-06")).Count();
newdr.Plan07 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-07")).Count();
newdr.Plan08 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-08")).Count();
newdr.Plan09 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-09")).Count();
newdr.Plan10 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-10")).Count();
newdr.Plan11 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-11")).Count();
newdr.Plan12 = listing.Where(t => t.ddate.StartsWith($"{yearstr}-12")).Count();
var nextyear = (int.Parse(yearstr) + 1).ToString();
newdr.PlanNext = listing.Where(t => t.ddate.StartsWith($"{nextyear}")).Count();
newdr.CntOther = listing.Count - newdr.CntNone - newdr.PlanNext - newdr.Plan01 -
newdr.Plan02 - newdr.Plan03 - newdr.Plan04 - newdr.Plan05 - newdr.Plan06 -