관리 누락 파일 추가
This commit is contained in:
1
SubProject/FEQ0000/Properties/licenses.licx
Normal file
1
SubProject/FEQ0000/Properties/licenses.licx
Normal file
@@ -0,0 +1 @@
|
||||
FarPoint.Win.Spread.FpSpread, FarPoint.Win.Spread, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457
|
||||
120
SubProject/FEQ0000/Purchase/fInputSC.resx
Normal file
120
SubProject/FEQ0000/Purchase/fInputSC.resx
Normal 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>
|
||||
820
SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs
generated
Normal file
820
SubProject/FEQ0000/Purchase/fPurchase_Add.Designer.cs
generated
Normal file
@@ -0,0 +1,820 @@
|
||||
namespace FEQ0000
|
||||
{
|
||||
partial class fPurchase_Add
|
||||
{
|
||||
/// <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();
|
||||
System.Windows.Forms.Label processLabel;
|
||||
System.Windows.Forms.Label receiveLabel;
|
||||
System.Windows.Forms.Label scLabel;
|
||||
System.Windows.Forms.Label sidLabel;
|
||||
System.Windows.Forms.Label pumnameLabel;
|
||||
System.Windows.Forms.Label pumscaleLabel;
|
||||
System.Windows.Forms.Label pumqtyLabel;
|
||||
System.Windows.Forms.Label pumpriceLabel;
|
||||
System.Windows.Forms.Label pumamtLabel;
|
||||
System.Windows.Forms.Label supplyLabel;
|
||||
System.Windows.Forms.Label projectLabel;
|
||||
System.Windows.Forms.Label assetLabel;
|
||||
System.Windows.Forms.Label poLabel;
|
||||
System.Windows.Forms.Label deptLabel;
|
||||
System.Windows.Forms.Label label1;
|
||||
System.Windows.Forms.Label stateLabel;
|
||||
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();
|
||||
this.tbPumModel = new System.Windows.Forms.TextBox();
|
||||
this.tbPumUnit = new System.Windows.Forms.TextBox();
|
||||
this.tbPumQty = new System.Windows.Forms.TextBox();
|
||||
this.tbPumPrice = new System.Windows.Forms.TextBox();
|
||||
this.tbPumAmt = new System.Windows.Forms.TextBox();
|
||||
this.tbSupply = new System.Windows.Forms.TextBox();
|
||||
this.tbSupplyIndex = new System.Windows.Forms.TextBox();
|
||||
this.tbProject = new System.Windows.Forms.TextBox();
|
||||
this.tbProjectIndex = new System.Windows.Forms.TextBox();
|
||||
this.tbPO = new System.Windows.Forms.TextBox();
|
||||
this.tbBigo = new System.Windows.Forms.TextBox();
|
||||
this.dtPdate = new System.Windows.Forms.DateTimePicker();
|
||||
this.btSave = new System.Windows.Forms.Button();
|
||||
this.cmbState = new System.Windows.Forms.ComboBox();
|
||||
this.cmbProcess = new System.Windows.Forms.ComboBox();
|
||||
this.cmbRequest = new System.Windows.Forms.ComboBox();
|
||||
this.cmbReceive = new System.Windows.Forms.ComboBox();
|
||||
this.tbPumIDX = new System.Windows.Forms.TextBox();
|
||||
this.tbPumStock = new System.Windows.Forms.TextBox();
|
||||
this.dtInDate = new System.Windows.Forms.DateTimePicker();
|
||||
this.chkInDate = new System.Windows.Forms.CheckBox();
|
||||
this.dtExpDate = new System.Windows.Forms.DateTimePicker();
|
||||
this.chkExp = new System.Windows.Forms.CheckBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.btSaveAdd = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.linkLabel4 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel3 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.dsPurchase = new FEQ0000.dsPurchase();
|
||||
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
|
||||
this.tbDept = new System.Windows.Forms.ComboBox();
|
||||
this.tbAsset = new System.Windows.Forms.ComboBox();
|
||||
processLabel = new System.Windows.Forms.Label();
|
||||
receiveLabel = new System.Windows.Forms.Label();
|
||||
scLabel = new System.Windows.Forms.Label();
|
||||
sidLabel = new System.Windows.Forms.Label();
|
||||
pumnameLabel = new System.Windows.Forms.Label();
|
||||
pumscaleLabel = new System.Windows.Forms.Label();
|
||||
pumqtyLabel = new System.Windows.Forms.Label();
|
||||
pumpriceLabel = new System.Windows.Forms.Label();
|
||||
pumamtLabel = new System.Windows.Forms.Label();
|
||||
supplyLabel = new System.Windows.Forms.Label();
|
||||
projectLabel = new System.Windows.Forms.Label();
|
||||
assetLabel = new System.Windows.Forms.Label();
|
||||
poLabel = new System.Windows.Forms.Label();
|
||||
deptLabel = new System.Windows.Forms.Label();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
stateLabel = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// processLabel
|
||||
//
|
||||
processLabel.AutoSize = true;
|
||||
processLabel.Location = new System.Drawing.Point(57, 99);
|
||||
processLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
processLabel.Name = "processLabel";
|
||||
processLabel.Size = new System.Drawing.Size(39, 20);
|
||||
processLabel.TabIndex = 4;
|
||||
processLabel.Text = "공정";
|
||||
//
|
||||
// receiveLabel
|
||||
//
|
||||
receiveLabel.AutoSize = true;
|
||||
receiveLabel.Location = new System.Drawing.Point(42, 64);
|
||||
receiveLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
receiveLabel.Name = "receiveLabel";
|
||||
receiveLabel.Size = new System.Drawing.Size(54, 20);
|
||||
receiveLabel.TabIndex = 2;
|
||||
receiveLabel.Text = "수령인";
|
||||
//
|
||||
// scLabel
|
||||
//
|
||||
scLabel.AutoSize = true;
|
||||
scLabel.Location = new System.Drawing.Point(69, 129);
|
||||
scLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
scLabel.Name = "scLabel";
|
||||
scLabel.Size = new System.Drawing.Size(27, 20);
|
||||
scLabel.TabIndex = 6;
|
||||
scLabel.Text = "SC";
|
||||
//
|
||||
// sidLabel
|
||||
//
|
||||
sidLabel.AutoSize = true;
|
||||
sidLabel.Location = new System.Drawing.Point(54, 68);
|
||||
sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
sidLabel.Name = "sidLabel";
|
||||
sidLabel.Size = new System.Drawing.Size(32, 20);
|
||||
sidLabel.TabIndex = 3;
|
||||
sidLabel.Text = "SID";
|
||||
//
|
||||
// pumnameLabel
|
||||
//
|
||||
pumnameLabel.AutoSize = true;
|
||||
pumnameLabel.Location = new System.Drawing.Point(47, 105);
|
||||
pumnameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumnameLabel.Name = "pumnameLabel";
|
||||
pumnameLabel.Size = new System.Drawing.Size(39, 20);
|
||||
pumnameLabel.TabIndex = 7;
|
||||
pumnameLabel.Text = "품명";
|
||||
//
|
||||
// pumscaleLabel
|
||||
//
|
||||
pumscaleLabel.AutoSize = true;
|
||||
pumscaleLabel.Location = new System.Drawing.Point(47, 142);
|
||||
pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumscaleLabel.Name = "pumscaleLabel";
|
||||
pumscaleLabel.Size = new System.Drawing.Size(39, 20);
|
||||
pumscaleLabel.TabIndex = 10;
|
||||
pumscaleLabel.Text = "모델";
|
||||
//
|
||||
// pumqtyLabel
|
||||
//
|
||||
pumqtyLabel.AutoSize = true;
|
||||
pumqtyLabel.Location = new System.Drawing.Point(47, 179);
|
||||
pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumqtyLabel.Name = "pumqtyLabel";
|
||||
pumqtyLabel.Size = new System.Drawing.Size(39, 20);
|
||||
pumqtyLabel.TabIndex = 13;
|
||||
pumqtyLabel.Text = "수량";
|
||||
//
|
||||
// pumpriceLabel
|
||||
//
|
||||
pumpriceLabel.AutoSize = true;
|
||||
pumpriceLabel.Location = new System.Drawing.Point(280, 179);
|
||||
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumpriceLabel.Name = "pumpriceLabel";
|
||||
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
|
||||
pumpriceLabel.TabIndex = 16;
|
||||
pumpriceLabel.Text = "단가";
|
||||
//
|
||||
// pumamtLabel
|
||||
//
|
||||
pumamtLabel.AutoSize = true;
|
||||
pumamtLabel.Location = new System.Drawing.Point(47, 215);
|
||||
pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumamtLabel.Name = "pumamtLabel";
|
||||
pumamtLabel.Size = new System.Drawing.Size(39, 20);
|
||||
pumamtLabel.TabIndex = 16;
|
||||
pumamtLabel.Text = "합계";
|
||||
//
|
||||
// supplyLabel
|
||||
//
|
||||
supplyLabel.AutoSize = true;
|
||||
supplyLabel.Location = new System.Drawing.Point(32, 251);
|
||||
supplyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
supplyLabel.Name = "supplyLabel";
|
||||
supplyLabel.Size = new System.Drawing.Size(54, 20);
|
||||
supplyLabel.TabIndex = 20;
|
||||
supplyLabel.Text = "공급처";
|
||||
//
|
||||
// projectLabel
|
||||
//
|
||||
projectLabel.AutoSize = true;
|
||||
projectLabel.Location = new System.Drawing.Point(17, 287);
|
||||
projectLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
projectLabel.Name = "projectLabel";
|
||||
projectLabel.Size = new System.Drawing.Size(69, 20);
|
||||
projectLabel.TabIndex = 23;
|
||||
projectLabel.Text = "프로젝트";
|
||||
//
|
||||
// assetLabel
|
||||
//
|
||||
assetLabel.AutoSize = true;
|
||||
assetLabel.Location = new System.Drawing.Point(27, 194);
|
||||
assetLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
assetLabel.Name = "assetLabel";
|
||||
assetLabel.Size = new System.Drawing.Size(69, 20);
|
||||
assetLabel.TabIndex = 10;
|
||||
assetLabel.Text = "적용장비";
|
||||
//
|
||||
// poLabel
|
||||
//
|
||||
poLabel.AutoSize = true;
|
||||
poLabel.Location = new System.Drawing.Point(66, 159);
|
||||
poLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
poLabel.Name = "poLabel";
|
||||
poLabel.Size = new System.Drawing.Size(30, 20);
|
||||
poLabel.TabIndex = 8;
|
||||
poLabel.Text = "PO";
|
||||
//
|
||||
// deptLabel
|
||||
//
|
||||
deptLabel.AutoSize = true;
|
||||
deptLabel.Location = new System.Drawing.Point(41, 396);
|
||||
deptLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
deptLabel.Name = "deptLabel";
|
||||
deptLabel.Size = new System.Drawing.Size(39, 20);
|
||||
deptLabel.TabIndex = 10;
|
||||
deptLabel.Text = "비고";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(32, 35);
|
||||
label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(54, 20);
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "입력일";
|
||||
//
|
||||
// stateLabel
|
||||
//
|
||||
stateLabel.AutoSize = true;
|
||||
stateLabel.Location = new System.Drawing.Point(27, 33);
|
||||
stateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
stateLabel.Name = "stateLabel";
|
||||
stateLabel.Size = new System.Drawing.Size(69, 20);
|
||||
stateLabel.TabIndex = 0;
|
||||
stateLabel.Text = "구매상태";
|
||||
//
|
||||
// tbSC
|
||||
//
|
||||
this.tbSC.Location = new System.Drawing.Point(104, 125);
|
||||
this.tbSC.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSC.Name = "tbSC";
|
||||
this.tbSC.Size = new System.Drawing.Size(286, 27);
|
||||
this.tbSC.TabIndex = 7;
|
||||
//
|
||||
// tbSID
|
||||
//
|
||||
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.tbSID.Location = new System.Drawing.Point(93, 66);
|
||||
this.tbSID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSID.Name = "tbSID";
|
||||
this.tbSID.Size = new System.Drawing.Size(176, 27);
|
||||
this.tbSID.TabIndex = 4;
|
||||
//
|
||||
// tbPumName
|
||||
//
|
||||
this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbPumName.Location = new System.Drawing.Point(93, 102);
|
||||
this.tbPumName.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumName.Name = "tbPumName";
|
||||
this.tbPumName.Size = new System.Drawing.Size(311, 27);
|
||||
this.tbPumName.TabIndex = 8;
|
||||
//
|
||||
// tbPumModel
|
||||
//
|
||||
this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.tbPumModel.Location = new System.Drawing.Point(93, 139);
|
||||
this.tbPumModel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumModel.Name = "tbPumModel";
|
||||
this.tbPumModel.Size = new System.Drawing.Size(311, 27);
|
||||
this.tbPumModel.TabIndex = 11;
|
||||
//
|
||||
// tbPumUnit
|
||||
//
|
||||
this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
|
||||
this.tbPumUnit.Location = new System.Drawing.Point(410, 139);
|
||||
this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumUnit.Name = "tbPumUnit";
|
||||
this.tbPumUnit.Size = new System.Drawing.Size(64, 27);
|
||||
this.tbPumUnit.TabIndex = 12;
|
||||
this.tbPumUnit.TabStop = false;
|
||||
this.tbPumUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbPumQty
|
||||
//
|
||||
this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbPumQty.Location = new System.Drawing.Point(94, 175);
|
||||
this.tbPumQty.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumQty.Name = "tbPumQty";
|
||||
this.tbPumQty.Size = new System.Drawing.Size(111, 27);
|
||||
this.tbPumQty.TabIndex = 13;
|
||||
this.tbPumQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbPumQty.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged);
|
||||
//
|
||||
// tbPumPrice
|
||||
//
|
||||
this.tbPumPrice.Location = new System.Drawing.Point(327, 175);
|
||||
this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumPrice.Name = "tbPumPrice";
|
||||
this.tbPumPrice.Size = new System.Drawing.Size(148, 27);
|
||||
this.tbPumPrice.TabIndex = 15;
|
||||
this.tbPumPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tbPumPrice.TextChanged += new System.EventHandler(this.tbPumQty_TextChanged);
|
||||
//
|
||||
// tbPumAmt
|
||||
//
|
||||
this.tbPumAmt.Location = new System.Drawing.Point(93, 212);
|
||||
this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumAmt.Name = "tbPumAmt";
|
||||
this.tbPumAmt.ReadOnly = true;
|
||||
this.tbPumAmt.Size = new System.Drawing.Size(382, 27);
|
||||
this.tbPumAmt.TabIndex = 17;
|
||||
this.tbPumAmt.TabStop = false;
|
||||
this.tbPumAmt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
//
|
||||
// tbSupply
|
||||
//
|
||||
this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbSupply.Location = new System.Drawing.Point(93, 248);
|
||||
this.tbSupply.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSupply.Name = "tbSupply";
|
||||
this.tbSupply.Size = new System.Drawing.Size(311, 27);
|
||||
this.tbSupply.TabIndex = 21;
|
||||
//
|
||||
// tbSupplyIndex
|
||||
//
|
||||
this.tbSupplyIndex.Location = new System.Drawing.Point(410, 248);
|
||||
this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSupplyIndex.Name = "tbSupplyIndex";
|
||||
this.tbSupplyIndex.ReadOnly = true;
|
||||
this.tbSupplyIndex.Size = new System.Drawing.Size(64, 27);
|
||||
this.tbSupplyIndex.TabIndex = 22;
|
||||
this.tbSupplyIndex.TabStop = false;
|
||||
this.tbSupplyIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbProject
|
||||
//
|
||||
this.tbProject.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbProject.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbProject.Location = new System.Drawing.Point(93, 285);
|
||||
this.tbProject.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbProject.Name = "tbProject";
|
||||
this.tbProject.Size = new System.Drawing.Size(311, 27);
|
||||
this.tbProject.TabIndex = 24;
|
||||
//
|
||||
// tbProjectIndex
|
||||
//
|
||||
this.tbProjectIndex.Location = new System.Drawing.Point(410, 285);
|
||||
this.tbProjectIndex.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbProjectIndex.Name = "tbProjectIndex";
|
||||
this.tbProjectIndex.ReadOnly = true;
|
||||
this.tbProjectIndex.Size = new System.Drawing.Size(64, 27);
|
||||
this.tbProjectIndex.TabIndex = 25;
|
||||
this.tbProjectIndex.TabStop = false;
|
||||
this.tbProjectIndex.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbPO
|
||||
//
|
||||
this.tbPO.Location = new System.Drawing.Point(104, 156);
|
||||
this.tbPO.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPO.Name = "tbPO";
|
||||
this.tbPO.Size = new System.Drawing.Size(286, 27);
|
||||
this.tbPO.TabIndex = 9;
|
||||
//
|
||||
// tbBigo
|
||||
//
|
||||
this.tbBigo.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbBigo.Location = new System.Drawing.Point(93, 390);
|
||||
this.tbBigo.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbBigo.MaxLength = 500;
|
||||
this.tbBigo.Multiline = true;
|
||||
this.tbBigo.Name = "tbBigo";
|
||||
this.tbBigo.Size = new System.Drawing.Size(381, 91);
|
||||
this.tbBigo.TabIndex = 11;
|
||||
this.tbBigo.TabStop = false;
|
||||
//
|
||||
// dtPdate
|
||||
//
|
||||
this.dtPdate.Location = new System.Drawing.Point(93, 29);
|
||||
this.dtPdate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dtPdate.Name = "dtPdate";
|
||||
this.dtPdate.Size = new System.Drawing.Size(238, 27);
|
||||
this.dtPdate.TabIndex = 1;
|
||||
//
|
||||
// btSave
|
||||
//
|
||||
this.btSave.Location = new System.Drawing.Point(11, 540);
|
||||
this.btSave.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btSave.Name = "btSave";
|
||||
this.btSave.Size = new System.Drawing.Size(492, 51);
|
||||
this.btSave.TabIndex = 3;
|
||||
this.btSave.Text = "저장(&S)";
|
||||
this.btSave.UseVisualStyleBackColor = true;
|
||||
this.btSave.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// cmbState
|
||||
//
|
||||
this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.cmbState.FormattingEnabled = true;
|
||||
this.cmbState.Location = new System.Drawing.Point(104, 28);
|
||||
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbState.Name = "cmbState";
|
||||
this.cmbState.Size = new System.Drawing.Size(286, 28);
|
||||
this.cmbState.TabIndex = 1;
|
||||
this.cmbState.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// cmbProcess
|
||||
//
|
||||
this.cmbProcess.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.cmbProcess.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.cmbProcess.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.cmbProcess.FormattingEnabled = true;
|
||||
this.cmbProcess.Location = new System.Drawing.Point(104, 94);
|
||||
this.cmbProcess.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbProcess.Name = "cmbProcess";
|
||||
this.cmbProcess.Size = new System.Drawing.Size(286, 28);
|
||||
this.cmbProcess.TabIndex = 5;
|
||||
//
|
||||
// cmbRequest
|
||||
//
|
||||
this.cmbRequest.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.cmbRequest.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.cmbRequest.FormattingEnabled = true;
|
||||
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cmbRequest.Location = new System.Drawing.Point(336, 29);
|
||||
this.cmbRequest.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbRequest.Name = "cmbRequest";
|
||||
this.cmbRequest.Size = new System.Drawing.Size(139, 28);
|
||||
this.cmbRequest.TabIndex = 2;
|
||||
//
|
||||
// cmbReceive
|
||||
//
|
||||
this.cmbReceive.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.cmbReceive.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.cmbReceive.FormattingEnabled = true;
|
||||
this.cmbReceive.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cmbReceive.Location = new System.Drawing.Point(104, 62);
|
||||
this.cmbReceive.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbReceive.Name = "cmbReceive";
|
||||
this.cmbReceive.Size = new System.Drawing.Size(286, 28);
|
||||
this.cmbReceive.TabIndex = 3;
|
||||
//
|
||||
// tbPumIDX
|
||||
//
|
||||
this.tbPumIDX.Location = new System.Drawing.Point(410, 102);
|
||||
this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumIDX.Name = "tbPumIDX";
|
||||
this.tbPumIDX.ReadOnly = true;
|
||||
this.tbPumIDX.Size = new System.Drawing.Size(64, 27);
|
||||
this.tbPumIDX.TabIndex = 9;
|
||||
this.tbPumIDX.TabStop = false;
|
||||
this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbPumStock
|
||||
//
|
||||
this.tbPumStock.Location = new System.Drawing.Point(208, 175);
|
||||
this.tbPumStock.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumStock.Name = "tbPumStock";
|
||||
this.tbPumStock.ReadOnly = true;
|
||||
this.tbPumStock.Size = new System.Drawing.Size(64, 27);
|
||||
this.tbPumStock.TabIndex = 14;
|
||||
this.tbPumStock.TabStop = false;
|
||||
this.tbPumStock.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// dtInDate
|
||||
//
|
||||
this.dtInDate.Location = new System.Drawing.Point(93, 355);
|
||||
this.dtInDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dtInDate.Name = "dtInDate";
|
||||
this.dtInDate.Size = new System.Drawing.Size(193, 27);
|
||||
this.dtInDate.TabIndex = 15;
|
||||
//
|
||||
// chkInDate
|
||||
//
|
||||
this.chkInDate.AutoSize = true;
|
||||
this.chkInDate.Location = new System.Drawing.Point(13, 357);
|
||||
this.chkInDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.chkInDate.Name = "chkInDate";
|
||||
this.chkInDate.Size = new System.Drawing.Size(73, 24);
|
||||
this.chkInDate.TabIndex = 14;
|
||||
this.chkInDate.Text = "입고일";
|
||||
this.chkInDate.UseVisualStyleBackColor = true;
|
||||
this.chkInDate.CheckedChanged += new System.EventHandler(this.chkInDate_CheckedChanged);
|
||||
//
|
||||
// dtExpDate
|
||||
//
|
||||
this.dtExpDate.Location = new System.Drawing.Point(93, 320);
|
||||
this.dtExpDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dtExpDate.Name = "dtExpDate";
|
||||
this.dtExpDate.Size = new System.Drawing.Size(193, 27);
|
||||
this.dtExpDate.TabIndex = 13;
|
||||
this.dtExpDate.TabStop = false;
|
||||
//
|
||||
// chkExp
|
||||
//
|
||||
this.chkExp.AutoSize = true;
|
||||
this.chkExp.Location = new System.Drawing.Point(13, 324);
|
||||
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 = 12;
|
||||
this.chkExp.TabStop = false;
|
||||
this.chkExp.Text = "예상일";
|
||||
this.chkExp.UseVisualStyleBackColor = true;
|
||||
this.chkExp.CheckedChanged += new System.EventHandler(this.chkExp_CheckedChanged);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.BackColor = System.Drawing.Color.White;
|
||||
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.label3.Location = new System.Drawing.Point(0, 0);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(934, 29);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "--";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// btSaveAdd
|
||||
//
|
||||
this.btSaveAdd.Location = new System.Drawing.Point(511, 540);
|
||||
this.btSaveAdd.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btSaveAdd.Name = "btSaveAdd";
|
||||
this.btSaveAdd.Size = new System.Drawing.Size(410, 51);
|
||||
this.btSaveAdd.TabIndex = 0;
|
||||
this.btSaveAdd.Text = "저장 및 추가(&A)";
|
||||
this.btSaveAdd.UseVisualStyleBackColor = true;
|
||||
this.btSaveAdd.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.dtPdate);
|
||||
this.groupBox1.Controls.Add(this.tbPumStock);
|
||||
this.groupBox1.Controls.Add(this.linkLabel1);
|
||||
this.groupBox1.Controls.Add(this.tbPumAmt);
|
||||
this.groupBox1.Controls.Add(this.chkExp);
|
||||
this.groupBox1.Controls.Add(this.tbBigo);
|
||||
this.groupBox1.Controls.Add(deptLabel);
|
||||
this.groupBox1.Controls.Add(this.tbSupplyIndex);
|
||||
this.groupBox1.Controls.Add(this.dtExpDate);
|
||||
this.groupBox1.Controls.Add(pumamtLabel);
|
||||
this.groupBox1.Controls.Add(this.tbPumIDX);
|
||||
this.groupBox1.Controls.Add(this.chkInDate);
|
||||
this.groupBox1.Controls.Add(projectLabel);
|
||||
this.groupBox1.Controls.Add(this.tbSID);
|
||||
this.groupBox1.Controls.Add(this.dtInDate);
|
||||
this.groupBox1.Controls.Add(this.tbPumQty);
|
||||
this.groupBox1.Controls.Add(supplyLabel);
|
||||
this.groupBox1.Controls.Add(pumqtyLabel);
|
||||
this.groupBox1.Controls.Add(sidLabel);
|
||||
this.groupBox1.Controls.Add(this.tbProject);
|
||||
this.groupBox1.Controls.Add(this.tbProjectIndex);
|
||||
this.groupBox1.Controls.Add(this.tbPumPrice);
|
||||
this.groupBox1.Controls.Add(this.tbSupply);
|
||||
this.groupBox1.Controls.Add(pumpriceLabel);
|
||||
this.groupBox1.Controls.Add(label1);
|
||||
this.groupBox1.Controls.Add(this.tbPumName);
|
||||
this.groupBox1.Controls.Add(this.cmbRequest);
|
||||
this.groupBox1.Controls.Add(pumnameLabel);
|
||||
this.groupBox1.Controls.Add(pumscaleLabel);
|
||||
this.groupBox1.Controls.Add(this.tbPumUnit);
|
||||
this.groupBox1.Controls.Add(this.tbPumModel);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 36);
|
||||
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox1.Size = new System.Drawing.Size(492, 496);
|
||||
this.groupBox1.TabIndex = 2;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "필수입력";
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(350, 325);
|
||||
this.linkLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(124, 20);
|
||||
this.linkLabel1.TabIndex = 16;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "견적서 폴더 열기";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.groupBox2.Controls.Add(this.tbAsset);
|
||||
this.groupBox2.Controls.Add(this.tbDept);
|
||||
this.groupBox2.Controls.Add(label2);
|
||||
this.groupBox2.Controls.Add(this.linkLabel4);
|
||||
this.groupBox2.Controls.Add(this.linkLabel3);
|
||||
this.groupBox2.Controls.Add(this.linkLabel2);
|
||||
this.groupBox2.Controls.Add(this.pictureBox1);
|
||||
this.groupBox2.Controls.Add(this.cmbState);
|
||||
this.groupBox2.Controls.Add(this.tbPO);
|
||||
this.groupBox2.Controls.Add(poLabel);
|
||||
this.groupBox2.Controls.Add(this.tbSC);
|
||||
this.groupBox2.Controls.Add(scLabel);
|
||||
this.groupBox2.Controls.Add(receiveLabel);
|
||||
this.groupBox2.Controls.Add(assetLabel);
|
||||
this.groupBox2.Controls.Add(this.cmbReceive);
|
||||
this.groupBox2.Controls.Add(processLabel);
|
||||
this.groupBox2.Controls.Add(this.cmbProcess);
|
||||
this.groupBox2.Controls.Add(stateLabel);
|
||||
this.groupBox2.Location = new System.Drawing.Point(512, 38);
|
||||
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.groupBox2.Size = new System.Drawing.Size(409, 494);
|
||||
this.groupBox2.TabIndex = 4;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "추가정보";
|
||||
//
|
||||
// linkLabel4
|
||||
//
|
||||
this.linkLabel4.AutoSize = true;
|
||||
this.linkLabel4.Location = new System.Drawing.Point(57, 340);
|
||||
this.linkLabel4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel4.Name = "linkLabel4";
|
||||
this.linkLabel4.Size = new System.Drawing.Size(39, 20);
|
||||
this.linkLabel4.TabIndex = 16;
|
||||
this.linkLabel4.TabStop = true;
|
||||
this.linkLabel4.Text = "촬영";
|
||||
this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel4_LinkClicked);
|
||||
//
|
||||
// linkLabel3
|
||||
//
|
||||
this.linkLabel3.AutoSize = true;
|
||||
this.linkLabel3.Location = new System.Drawing.Point(27, 304);
|
||||
this.linkLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel3.Name = "linkLabel3";
|
||||
this.linkLabel3.Size = new System.Drawing.Size(69, 20);
|
||||
this.linkLabel3.TabIndex = 15;
|
||||
this.linkLabel3.TabStop = true;
|
||||
this.linkLabel3.Text = "붙여넣기";
|
||||
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.imgpase_LinkClicked);
|
||||
//
|
||||
// linkLabel2
|
||||
//
|
||||
this.linkLabel2.AutoSize = true;
|
||||
this.linkLabel2.Location = new System.Drawing.Point(22, 268);
|
||||
this.linkLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.linkLabel2.Name = "linkLabel2";
|
||||
this.linkLabel2.Size = new System.Drawing.Size(74, 20);
|
||||
this.linkLabel2.TabIndex = 14;
|
||||
this.linkLabel2.TabStop = true;
|
||||
this.linkLabel2.Text = "그림 선택";
|
||||
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(104, 268);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(286, 216);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.pictureBox1.TabIndex = 17;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Tag = "A";
|
||||
//
|
||||
// dsPurchase
|
||||
//
|
||||
this.dsPurchase.DataSetName = "dsPurchase";
|
||||
this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// purchaseBindingSource
|
||||
//
|
||||
this.purchaseBindingSource.DataMember = "Purchase";
|
||||
this.purchaseBindingSource.DataSource = this.dsPurchase;
|
||||
//
|
||||
// purchaseTableAdapter
|
||||
//
|
||||
this.purchaseTableAdapter.ClearBeforeFill = true;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(27, 228);
|
||||
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(69, 20);
|
||||
label2.TabIndex = 12;
|
||||
label2.Text = "적용위치";
|
||||
//
|
||||
// tbDept
|
||||
//
|
||||
this.tbDept.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.tbDept.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.tbDept.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.tbDept.FormattingEnabled = true;
|
||||
this.tbDept.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbDept.Location = new System.Drawing.Point(104, 225);
|
||||
this.tbDept.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbDept.Name = "tbDept";
|
||||
this.tbDept.Size = new System.Drawing.Size(286, 28);
|
||||
this.tbDept.TabIndex = 13;
|
||||
//
|
||||
// tbAsset
|
||||
//
|
||||
this.tbAsset.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.tbAsset.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
|
||||
this.tbAsset.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.tbAsset.FormattingEnabled = true;
|
||||
this.tbAsset.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tbAsset.Location = new System.Drawing.Point(104, 191);
|
||||
this.tbAsset.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbAsset.Name = "tbAsset";
|
||||
this.tbAsset.Size = new System.Drawing.Size(286, 28);
|
||||
this.tbAsset.TabIndex = 11;
|
||||
//
|
||||
// fPurchase_Add
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(934, 602);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btSaveAdd);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.btSave);
|
||||
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "fPurchase_Add";
|
||||
this.Text = "Purchase ADD/EDIT";
|
||||
this.Load += new System.EventHandler(this.@__Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.purchaseBindingSource)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox tbSC;
|
||||
private System.Windows.Forms.TextBox tbSID;
|
||||
private System.Windows.Forms.TextBox tbPumName;
|
||||
private System.Windows.Forms.TextBox tbPumModel;
|
||||
private System.Windows.Forms.TextBox tbPumUnit;
|
||||
private System.Windows.Forms.TextBox tbPumQty;
|
||||
private System.Windows.Forms.TextBox tbPumPrice;
|
||||
private System.Windows.Forms.TextBox tbPumAmt;
|
||||
private System.Windows.Forms.TextBox tbSupply;
|
||||
private System.Windows.Forms.TextBox tbSupplyIndex;
|
||||
private System.Windows.Forms.TextBox tbProject;
|
||||
private System.Windows.Forms.TextBox tbProjectIndex;
|
||||
private System.Windows.Forms.TextBox tbPO;
|
||||
private System.Windows.Forms.TextBox tbBigo;
|
||||
private System.Windows.Forms.DateTimePicker dtPdate;
|
||||
private System.Windows.Forms.Button btSave;
|
||||
private System.Windows.Forms.ComboBox cmbState;
|
||||
private System.Windows.Forms.ComboBox cmbProcess;
|
||||
private System.Windows.Forms.ComboBox cmbRequest;
|
||||
private System.Windows.Forms.ComboBox cmbReceive;
|
||||
private System.Windows.Forms.TextBox tbPumStock;
|
||||
private System.Windows.Forms.TextBox tbPumIDX;
|
||||
private System.Windows.Forms.DateTimePicker dtInDate;
|
||||
private System.Windows.Forms.CheckBox chkInDate;
|
||||
private System.Windows.Forms.DateTimePicker dtExpDate;
|
||||
private System.Windows.Forms.CheckBox chkExp;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Button btSaveAdd;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel2;
|
||||
public System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel3;
|
||||
private System.Windows.Forms.LinkLabel linkLabel4;
|
||||
private dsPurchase dsPurchase;
|
||||
private System.Windows.Forms.BindingSource purchaseBindingSource;
|
||||
private dsPurchaseTableAdapters.PurchaseTableAdapter purchaseTableAdapter;
|
||||
private System.Windows.Forms.ComboBox tbDept;
|
||||
private System.Windows.Forms.ComboBox tbAsset;
|
||||
}
|
||||
}
|
||||
607
SubProject/FEQ0000/Purchase/fPurchase_Add.cs
Normal file
607
SubProject/FEQ0000/Purchase/fPurchase_Add.cs
Normal file
@@ -0,0 +1,607 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchase_Add : Form
|
||||
{
|
||||
dsPurchase.PurchaseRow dr;
|
||||
public Boolean repeatAdd = false;
|
||||
public fPurchase_Add(dsPurchase.PurchaseRow dr_)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.dr = dr_;
|
||||
this.KeyPreview = true;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape) this.Close();
|
||||
};
|
||||
|
||||
foreach (Control ctl in groupBox1.Controls)
|
||||
{
|
||||
if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox))
|
||||
{
|
||||
ctl.KeyDown += ctl_KeyDown;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsPurchase.Purchase' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
|
||||
// this.Show();
|
||||
// Application.DoEvents();
|
||||
|
||||
//statelist
|
||||
var stateList = FCOMMON.DBM.getCodeTable("04");
|
||||
this.cmbState.DisplayMember = "Value";
|
||||
this.cmbState.ValueMember = "Value";
|
||||
this.cmbState.DataSource = stateList;
|
||||
|
||||
//적용위치
|
||||
var dt_dept = FCOMMON.DBM.getCodeTable("06");
|
||||
this.tbDept.DisplayMember = "Value";
|
||||
this.tbDept.ValueMember = "Value";
|
||||
this.tbDept.DataSource = dt_dept;
|
||||
|
||||
//적용장비
|
||||
var dt_asset = FCOMMON.DBM.getCodeTable("07");
|
||||
this.tbAsset.DisplayMember = "Value";
|
||||
this.tbAsset.ValueMember = "Value";
|
||||
this.tbAsset.DataSource = dt_asset;
|
||||
|
||||
//processlist
|
||||
var procList = FCOMMON.DBM.getGroupTable("process", "Purchase", "process <> ''");
|
||||
this.cmbProcess.DisplayMember = "Value";
|
||||
this.cmbProcess.ValueMember = "Key";
|
||||
this.cmbProcess.DataSource = new BindingSource(procList, "");
|
||||
|
||||
//juserlist
|
||||
var userList = FCOMMON.DBM.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
|
||||
foreach (var user in userList)
|
||||
{
|
||||
this.cmbReceive.Items.Add(user);
|
||||
this.cmbRequest.Items.Add(user);
|
||||
}
|
||||
|
||||
dtPdate.Value = DateTime.Parse(dr.pdate);
|
||||
|
||||
if(dr.IsindateNull() || dr.indate.isEmpty())
|
||||
{
|
||||
this.chkInDate.Checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.chkInDate.Checked = true;
|
||||
dtInDate.Value = DateTime.Parse(dr.indate);
|
||||
}
|
||||
|
||||
if (dr.IsedateNull() || dr.edate.isEmpty())
|
||||
{
|
||||
this.chkExp.Checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.chkExp.Checked = true;
|
||||
dtExpDate.Value = DateTime.Parse(dr.edate);
|
||||
}
|
||||
|
||||
///입력된 데이터를 적용한다.
|
||||
dtPdate.Value = DateTime.Parse(dr.pdate);
|
||||
cmbRequest.Text = dr.request;
|
||||
tbSID.Text = dr.sid;
|
||||
tbAsset.Text = dr.asset;
|
||||
tbDept.Text = dr.dept;
|
||||
tbPumName.Text = dr.pumname;
|
||||
tbPumModel.Text = dr.pumscale;
|
||||
tbPumQty.Text = dr.pumqty.ToString();
|
||||
tbPumStock.Text = "--";
|
||||
if (dr.IspumidxNull()) tbPumIDX.Text = "-1";
|
||||
else tbPumIDX.Text = dr.pumidx.ToString();
|
||||
tbPumPrice.Text = dr.pumprice.ToString();
|
||||
tbPumAmt.Text = dr.pumamt.ToString("N0"); //천단위 구분기호 추가 181222
|
||||
tbPumUnit.Text = dr.pumunit;
|
||||
tbSupply.Text = dr.supply;
|
||||
tbSupplyIndex.Text = dr.supplyidx.ToString();
|
||||
tbProject.Text = dr.project;
|
||||
tbProjectIndex.Text = dr.projectidx.ToString();
|
||||
|
||||
cmbState.Text = dr.state;
|
||||
cmbReceive.Text = dr.receive;
|
||||
cmbProcess.Text = dr.process;
|
||||
if(cmbProcess.Text == "")
|
||||
{
|
||||
//181203
|
||||
var lastprocess = FCOMMON.DBM.getFirstValue("process", "purchase", "request like '%" + this.cmbRequest.Text + "%'", "pdate desc");
|
||||
if (lastprocess != "") cmbProcess.Text = lastprocess;
|
||||
|
||||
}
|
||||
tbSC.Text = dr.sc;
|
||||
tbPO.Text = dr.po;
|
||||
tbBigo.Text = dr.bigo;
|
||||
dtInDate.Text = dr.indate;
|
||||
dtExpDate.Text = dr.edate;
|
||||
|
||||
//chkInDate.Checked = !dr.IsindateNull();
|
||||
//chkExp.Checked = !dr.IsedateNull();
|
||||
|
||||
this.dtExpDate.Enabled = chkExp.Checked;
|
||||
this.dtInDate.Enabled = chkInDate.Checked;
|
||||
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth( FCOMMON.DBM.eAutoType.purchase));
|
||||
if (curLevel < 5)
|
||||
{
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
|
||||
cmbReceive.Enabled = false;
|
||||
|
||||
cmbState.Enabled = false;
|
||||
if (cmbRequest.Text != "") cmbRequest.Enabled = false;
|
||||
|
||||
//데이터가 편집 상태인데 요청자가 내가 아닌경우에도 편집 불가
|
||||
Boolean enb = true;
|
||||
if (dr.RowState == DataRowState.Unchanged && dr.request != FCOMMON.info.Login.nameK)
|
||||
enb = false;
|
||||
if (tbSC.Text.Trim() != "") enb = false;
|
||||
|
||||
if (enb==false) //일반 사용자는 쇼핑, 카드 잇으면 수정 불가
|
||||
{
|
||||
btSave.Enabled = false;
|
||||
btSaveAdd.Enabled = false;
|
||||
groupBox1.Enabled = false;
|
||||
groupBox2.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
tbSID.Focus();
|
||||
|
||||
//이미지를 불러온다.
|
||||
if(dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Deleted && dr.RowState != DataRowState.Added)
|
||||
{
|
||||
if (dr.IspumidxNull() == false && dr.pumidx != -1)
|
||||
{
|
||||
var img = FCOMMON.DBM.GetImageData("Items", "image", dr.pumidx);
|
||||
if (img != null)
|
||||
{
|
||||
this.pictureBox1.Image = img;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
string sidTrim(string sid)
|
||||
{
|
||||
return sid.Replace(" ", "").Replace("-", "").Replace("_", "").Trim();
|
||||
}
|
||||
|
||||
void ctl_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
|
||||
Control ctl = sender as Control;
|
||||
string nm = ctl.Name.ToLower();
|
||||
string search = ctl.Text.Trim();
|
||||
|
||||
Console.WriteLine("inner keydown " + nm + ":" +search);
|
||||
|
||||
switch (nm)
|
||||
{
|
||||
case "cmbrequest":
|
||||
//요청자가 마지막으로 입력한 자료의 process 를 찾아서 기입해준다.
|
||||
var lastprocess = FCOMMON.DBM.getFirstValue("process", "purchase", "request like '%" + this.cmbRequest.Text + "%'", "pdate desc");
|
||||
if (lastprocess != "") cmbProcess.Text = lastprocess;
|
||||
tbSID.Focus();
|
||||
break;
|
||||
case "tbsid":
|
||||
if (search != "" && search != "신규")
|
||||
{
|
||||
//if (search.Length == 9 && search.IndexOf('-') == -1)
|
||||
//{
|
||||
// search = string.Format("{0}-{1}-{2}",
|
||||
// search.Substring(0, 3),
|
||||
// search.Substring(3, 3),
|
||||
// search.Substring(6, 3));
|
||||
// tbSID.Text = search;
|
||||
//}
|
||||
var f = new FCM0000.fLovItem("%" + sidTrim(search) + "%");
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
tbSID.Text = sidTrim(f.SID);
|
||||
tbPumIDX.Text = f.item.ToString();
|
||||
tbPumName.Text = f.itemName;
|
||||
tbPumModel.Text = f.itemmodel;
|
||||
tbPumPrice.Text = f.itemprice.ToString();
|
||||
tbPumQty.Text = "1";
|
||||
tbPumUnit.Text = f.itemUnit; //181214
|
||||
//pumamtTextBox.Text = tbPumPrice.Text;\
|
||||
//이 제품의 마지막 구매기록을 찾아서 업데이트 해준다.
|
||||
var pcInfo = FCOMMON.DBM.getLastPurchaseInfo(f.item);
|
||||
if(pcInfo.idx != -1)
|
||||
{
|
||||
tbSupply.Text = pcInfo.supply;
|
||||
tbSupplyIndex.Text = pcInfo.supplyidx.ToString();
|
||||
if(pcInfo.project !="" && tbProject.Text == "")
|
||||
tbProject.Text = pcInfo.project;
|
||||
}
|
||||
else
|
||||
{
|
||||
tbSupply.Text = f.itemSupply;
|
||||
tbSupplyIndex.Text = f.itemSupplyidx.ToString();
|
||||
}
|
||||
|
||||
if (tbPumIDX.Text != "")
|
||||
{
|
||||
var image = FCOMMON.DBM.GetImageData("Items", "image", int.Parse(tbPumIDX.Text));
|
||||
var oimage = this.pictureBox1.Image;
|
||||
this.pictureBox1.Image = image;
|
||||
if (oimage != null) oimage.Dispose();
|
||||
}
|
||||
|
||||
|
||||
//이름을 선택되었으므로 모델을 선택한다.
|
||||
tbPumModel.Focus();
|
||||
this.Invalidate();
|
||||
return;
|
||||
}
|
||||
}
|
||||
tbPumName.Focus();
|
||||
break;
|
||||
case "tbpumname":
|
||||
if (search != "")
|
||||
{
|
||||
var f = new FCM0000.fLovItem("%" + search + "%");
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
|
||||
tbPumName.Text = f.itemName;
|
||||
if (this.tbPumIDX.Text != f.item.ToString())
|
||||
{
|
||||
this.tbPumIDX.Text = f.item.ToString();
|
||||
this.tbPumModel.Text = f.itemmodel;
|
||||
this.tbPumPrice.Text = f.itemprice.ToString();
|
||||
this.tbSID.Text = f.SID;
|
||||
this.tbPumUnit.Text = f.itemUnit; //181214
|
||||
|
||||
//제품을 찾앗다면 suppy 등을 업데이트 해준다.
|
||||
var pcInfo = FCOMMON.DBM.getLastPurchaseInfo(f.item);
|
||||
if (pcInfo.idx != -1)
|
||||
{
|
||||
tbSupply.Text = pcInfo.supply;
|
||||
tbSupplyIndex.Text = pcInfo.supplyidx.ToString();
|
||||
if (pcInfo.project != "" && tbProject.Text == "")
|
||||
tbProject.Text = pcInfo.project;
|
||||
}
|
||||
else
|
||||
{
|
||||
tbSupply.Text = f.itemSupply;
|
||||
tbSupplyIndex.Text = f.itemSupplyidx.ToString();
|
||||
}
|
||||
}
|
||||
if(tbPumIDX.Text != "")
|
||||
{
|
||||
var image = FCOMMON.DBM.GetImageData("Items", "image", int.Parse(tbPumIDX.Text));
|
||||
var oimage = this.pictureBox1.Image;
|
||||
this.pictureBox1.Image = image;
|
||||
if (oimage != null) oimage.Dispose();
|
||||
}
|
||||
}
|
||||
else this.tbPumIDX.Text = "-1";
|
||||
}
|
||||
tbPumModel.Focus();
|
||||
break;
|
||||
case "tbproject":
|
||||
if (search != "")
|
||||
{
|
||||
FCM0000.fLovProject f = new FCM0000.fLovProject("%" + search + "%");
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.tbProject.Text = f.Title;
|
||||
this.tbProjectIndex.Text = f.Index.ToString();
|
||||
}
|
||||
}
|
||||
this.btSaveAdd.Focus();
|
||||
break;
|
||||
|
||||
case "tbsupply":
|
||||
if (search != "")
|
||||
{
|
||||
FCM0000.fLovSupply f = new FCM0000.fLovSupply(search);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
tbSupply.Text = f.Title;
|
||||
tbSupplyIndex.Text = f.Index.ToString();
|
||||
this.tbProject.Focus();
|
||||
|
||||
}
|
||||
}
|
||||
tbProject.Focus();
|
||||
break;
|
||||
default:
|
||||
SendKeys.Send("{TAB}");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private bool saveData()
|
||||
{
|
||||
this.Validate();
|
||||
|
||||
tbSID.Text = sidTrim(tbSID.Text);
|
||||
|
||||
if(cmbProcess.Text.Trim() == "")
|
||||
{
|
||||
FCOMMON.Util.MsgE("프로세스를 선택하세요.");
|
||||
cmbProcess.Focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tbPumName.Text.isEmpty())
|
||||
{
|
||||
FCOMMON.Util.MsgE("품명이 없습니다.");
|
||||
tbPumName.Focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(tbPumModel.Text=="")
|
||||
{
|
||||
FCOMMON.Util.MsgE("제품 모델을 입력하세요.");
|
||||
tbPumModel.Focus();
|
||||
return false;
|
||||
}
|
||||
if(tbPumQty.Text =="")
|
||||
{
|
||||
FCOMMON.Util.MsgE("수량을 입력하세요.");
|
||||
tbPumQty.Focus();
|
||||
return false;
|
||||
}
|
||||
if (tbProject.Text == "")
|
||||
{
|
||||
FCOMMON.Util.MsgE("프로젝트 정보를 입력하세요.");
|
||||
tbProject.Focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(dr.RowState != DataRowState.Detached && dr.RowState != DataRowState.Added )
|
||||
{
|
||||
if(dr.sc != tbSC.Text.Trim() && tbSC.Text != "")
|
||||
{
|
||||
dtPdate.Value = DateTime.Now;
|
||||
this.cmbState.SelectedValue = "Approving";
|
||||
//if (dr.state == "00") dr.state = "01"; //approv 변경
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//수령을 했는데. 현재 상태가 04 미만이면 04(수령)으로 변경 한다.
|
||||
if(chkInDate.Checked)
|
||||
{
|
||||
var curState = this.cmbState.Text.Trim();
|
||||
if(curState.ToLower() == "po" || curState.ToLower() == "pr" ||
|
||||
curState.ToLower() == "approving")
|
||||
{
|
||||
this.cmbState.SelectedValue = "Received";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0";
|
||||
if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0";
|
||||
dr.pumqty = int.Parse(tbPumQty.Text);
|
||||
dr.pumprice = decimal.Parse(tbPumPrice.Text);
|
||||
dr.pumamt = dr.pumqty * dr.pumprice;
|
||||
if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") dr.SetpumidxNull();
|
||||
else dr.pumidx = int.Parse(tbPumIDX.Text);
|
||||
|
||||
var sid = this.tbSID.Text.Replace("-", "").Replace(" ", "").Replace("-","").Trim();
|
||||
//if (sid.Length == 9) sid = sid.Substring(0, 3) + "-" + sid.Substring(3, 3) + "-" + sid.Substring(6, 3);
|
||||
dr.sid = sid;
|
||||
|
||||
if (chkExp.Checked) dr.edate = this.dtExpDate.Value.ToShortDateString();
|
||||
else dr.SetedateNull();
|
||||
if (chkInDate.Checked) dr.indate = this.dtInDate.Value.ToShortDateString();
|
||||
else dr.SetindateNull();
|
||||
dr.pdate = this.dtPdate.Value.ToShortDateString();
|
||||
|
||||
|
||||
dr.request = cmbRequest.Text;
|
||||
dr.sid = tbSID.Text;
|
||||
dr.asset = tbAsset.Text;
|
||||
dr.dept = tbDept.Text;
|
||||
dr.pumname = tbPumName.Text;
|
||||
dr.pumname = dr.pumname.Replace("*", "x"); //181031
|
||||
|
||||
dr.pumscale = tbPumModel.Text;
|
||||
dr.pumscale = dr.pumscale.Replace("*", "x"); //181031
|
||||
dr.pumunit = tbPumUnit.Text;
|
||||
|
||||
dr.supply = tbSupply.Text;
|
||||
|
||||
if (tbSupplyIndex.Text == "") dr.SetsupplyidxNull();
|
||||
else dr.supplyidx = int.Parse(tbSupplyIndex.Text);
|
||||
|
||||
dr.project = tbProject.Text;
|
||||
if (tbProjectIndex.Text == "") dr.SetprojectidxNull();
|
||||
else dr.projectidx = int.Parse(tbProjectIndex.Text);
|
||||
|
||||
dr.state = cmbState.Text.Trim();
|
||||
dr.receive = cmbReceive.Text;
|
||||
dr.process = cmbProcess.Text;
|
||||
dr.sc = tbSC.Text;
|
||||
dr.po = tbPO.Text;
|
||||
dr.bigo = tbBigo.Text;
|
||||
|
||||
//품정보가 업데이트 되어있으면 해당 데이터의 이미지를 업데이트 한다.(크기비교)
|
||||
//품정보가 없다면 그대로 생성을 해준다.
|
||||
if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1")
|
||||
{
|
||||
|
||||
//아이템을 추가해야하낟.
|
||||
byte[] pic = null;
|
||||
if(this.pictureBox1.Image !=null && this.pictureBox1.Tag.ToString() == "U")
|
||||
{
|
||||
//이미지를 변경해줘야 한다.
|
||||
pic = FCOMMON.DBM.getImagByteArray(this.pictureBox1.Image);
|
||||
}
|
||||
var newidx = FCOMMON.DBM.addItem(dr.pumname, dr.sid, dr.pumscale, dr.pumprice, dr.supply, dr.supplyidx, pic);
|
||||
if(newidx != null && newidx != -1)
|
||||
{
|
||||
dr.pumidx = newidx;
|
||||
Console.WriteLine("new pumidx set = " +dr.pumidx.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//아이템을 추가해야한다(변경된 이름은
|
||||
if (this.pictureBox1.Image != null && this.pictureBox1.Tag.ToString() == "U")
|
||||
{
|
||||
//이미지를 변경해줘야 한다.
|
||||
FCOMMON.DBM.setImageData(this.pictureBox1.Image, "Items", "image", dr.pumidx);
|
||||
}
|
||||
}
|
||||
|
||||
dr.EndEdit();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!saveData()) return;
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
private void chkInDate_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.dtInDate.Enabled = chkInDate.Checked;
|
||||
}
|
||||
|
||||
private void chkExp_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.dtExpDate.Enabled = chkExp.Checked;
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string code = "";
|
||||
if (cmbState.SelectedIndex < 0) label3.Text = "--";
|
||||
else
|
||||
{
|
||||
//var value = cmbState.DataSource as BindingSource;
|
||||
//var list = value.DataSource as Dictionary<string, string>;
|
||||
//var item = list.Values
|
||||
if (cmbState.Text.StartsWith("[") == false) return;
|
||||
code = cmbState.Text.ToString().Substring(1,2);
|
||||
var desc = FCOMMON.DBM.getCodeSavlue("04", code);
|
||||
label3.Text = desc;
|
||||
|
||||
}
|
||||
switch (code)
|
||||
{
|
||||
case "01":
|
||||
label3.BackColor = Color.LightBlue;
|
||||
break;
|
||||
case "02":
|
||||
label3.BackColor = Color.SkyBlue;
|
||||
break;
|
||||
case "03":
|
||||
label3.BackColor = Color.Yellow;
|
||||
break;
|
||||
case "04":
|
||||
label3.BackColor = Color.Green;
|
||||
break;
|
||||
case "06":
|
||||
case "05":
|
||||
label3.BackColor = Color.Red;
|
||||
break;
|
||||
case "07":
|
||||
label3.BackColor = Color.Magenta;
|
||||
break;
|
||||
default:
|
||||
label3.BackColor = Color.LightGray;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!saveData()) return;
|
||||
this.repeatAdd = true;
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
private void tbPumQty_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
var strQty = this.tbPumQty.Text;
|
||||
var strPrice = this.tbPumPrice.Text;
|
||||
|
||||
int qty = 0;
|
||||
double price = 0;
|
||||
if (strQty.IsNumeric()) qty = int.Parse(strQty);
|
||||
if (strPrice.IsNumeric()) price = double.Parse(strPrice);
|
||||
double amt = price * qty;
|
||||
tbPumAmt.Text = amt.ToString("N0");
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
string path ="\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년";
|
||||
FCOMMON.Util.RunExplorer(path);
|
||||
}
|
||||
|
||||
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
OpenFileDialog od = new OpenFileDialog();
|
||||
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
|
||||
var image = Image.FromFile(od.FileName);
|
||||
var oimage = this.pictureBox1.Image;
|
||||
this.pictureBox1.Image = image;
|
||||
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
this.pictureBox1.Tag = "U";
|
||||
if (oimage != null) oimage.Dispose();
|
||||
}
|
||||
|
||||
private void imgpase_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
if (!Clipboard.ContainsImage())
|
||||
{
|
||||
FCOMMON.Util.MsgE("이미지를 먼저 클립보드에 복사 하세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
var image = Clipboard.GetImage();
|
||||
var oimage = this.pictureBox1.Image;
|
||||
this.pictureBox1.Image = image;
|
||||
this.pictureBox1.Tag = "U";
|
||||
if (oimage != null) oimage.Dispose();
|
||||
}
|
||||
|
||||
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
FCOMMON.fWebCamera f = new FCOMMON.fWebCamera(FCOMMON.info.camIndex);
|
||||
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
var bmp = f.bmp.Clone();
|
||||
Application.DoEvents();
|
||||
var oimag = this.pictureBox1.Image;
|
||||
this.pictureBox1.Image = (Image)bmp;
|
||||
if (oimag != null) oimag.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
180
SubProject/FEQ0000/Purchase/fPurchase_Add.resx
Normal file
180
SubProject/FEQ0000/Purchase/fPurchase_Add.resx
Normal file
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="processLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="receiveLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="scLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="pumnameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="pumscaleLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="pumqtyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="pumpriceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="pumamtLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="projectLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="assetLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="poLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="deptLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="stateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="purchaseBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>131, 17</value>
|
||||
</metadata>
|
||||
<metadata name="purchaseTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>313, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
BIN
SubProject/FEQ0000/Resources/action_save.gif
Normal file
BIN
SubProject/FEQ0000/Resources/action_save.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 B |
Reference in New Issue
Block a user