구매 sid 검사 기능 추가
This commit is contained in:
@@ -1238,8 +1238,8 @@ namespace FEQ0000
|
||||
//if (fi.Directory.Exists == false) fi.Directory.Create();
|
||||
|
||||
|
||||
var xlsrow = 0;
|
||||
var xlscol = 0;
|
||||
// var xlsrow = 0;
|
||||
// var xlscol = 0;
|
||||
var sb = new System.Text.StringBuilder();
|
||||
Dictionary<string, int> userlist = new Dictionary<string, int>();
|
||||
foreach (var idx in selidx)
|
||||
@@ -1249,7 +1249,7 @@ namespace FEQ0000
|
||||
if (row == null || row.RowState == DataRowState.Deleted) continue;
|
||||
//데이터를 찾았다
|
||||
var sid = row.sid;
|
||||
var deliver = 20;
|
||||
//var deliver = 20;
|
||||
var requestname = row.requestName;
|
||||
var rquestid = row.request;
|
||||
var tel = FCOMMON.DBM.GetUserTel(FCOMMON.info.Login.gcode, rquestid);
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
this.dsPurchase = new FEQ0000.dsPurchase();
|
||||
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
|
||||
this.btSIDChk = new System.Windows.Forms.Button();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
receiveLabel = new System.Windows.Forms.Label();
|
||||
scLabel = new System.Windows.Forms.Label();
|
||||
sidLabel = new System.Windows.Forms.Label();
|
||||
@@ -135,7 +137,7 @@
|
||||
// sidLabel
|
||||
//
|
||||
sidLabel.AutoSize = true;
|
||||
sidLabel.Location = new System.Drawing.Point(288, 251);
|
||||
sidLabel.Location = new System.Drawing.Point(54, 245);
|
||||
sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
sidLabel.Name = "sidLabel";
|
||||
sidLabel.Size = new System.Drawing.Size(32, 20);
|
||||
@@ -145,7 +147,7 @@
|
||||
// pumscaleLabel
|
||||
//
|
||||
pumscaleLabel.AutoSize = true;
|
||||
pumscaleLabel.Location = new System.Drawing.Point(10, 142);
|
||||
pumscaleLabel.Location = new System.Drawing.Point(10, 121);
|
||||
pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumscaleLabel.Name = "pumscaleLabel";
|
||||
pumscaleLabel.Size = new System.Drawing.Size(75, 20);
|
||||
@@ -155,7 +157,7 @@
|
||||
// pumqtyLabel
|
||||
//
|
||||
pumqtyLabel.AutoSize = true;
|
||||
pumqtyLabel.Location = new System.Drawing.Point(47, 179);
|
||||
pumqtyLabel.Location = new System.Drawing.Point(47, 151);
|
||||
pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumqtyLabel.Name = "pumqtyLabel";
|
||||
pumqtyLabel.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -165,7 +167,7 @@
|
||||
// pumpriceLabel
|
||||
//
|
||||
pumpriceLabel.AutoSize = true;
|
||||
pumpriceLabel.Location = new System.Drawing.Point(280, 179);
|
||||
pumpriceLabel.Location = new System.Drawing.Point(280, 151);
|
||||
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumpriceLabel.Name = "pumpriceLabel";
|
||||
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -175,7 +177,7 @@
|
||||
// pumamtLabel
|
||||
//
|
||||
pumamtLabel.AutoSize = true;
|
||||
pumamtLabel.Location = new System.Drawing.Point(47, 251);
|
||||
pumamtLabel.Location = new System.Drawing.Point(47, 209);
|
||||
pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
pumamtLabel.Name = "pumamtLabel";
|
||||
pumamtLabel.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -226,7 +228,7 @@
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(46, 69);
|
||||
label3.Location = new System.Drawing.Point(46, 62);
|
||||
label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -236,7 +238,7 @@
|
||||
// label6
|
||||
//
|
||||
label6.AutoSize = true;
|
||||
label6.Location = new System.Drawing.Point(280, 69);
|
||||
label6.Location = new System.Drawing.Point(280, 62);
|
||||
label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label6.Name = "label6";
|
||||
label6.Size = new System.Drawing.Size(39, 20);
|
||||
@@ -247,7 +249,7 @@
|
||||
//
|
||||
label8.AutoSize = true;
|
||||
label8.ForeColor = System.Drawing.Color.Blue;
|
||||
label8.Location = new System.Drawing.Point(29, 214);
|
||||
label8.Location = new System.Drawing.Point(29, 179);
|
||||
label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label8.Name = "label8";
|
||||
label8.Size = new System.Drawing.Size(57, 20);
|
||||
@@ -259,7 +261,7 @@
|
||||
label9.AutoSize = true;
|
||||
label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
label9.ForeColor = System.Drawing.Color.Blue;
|
||||
label9.Location = new System.Drawing.Point(285, 218);
|
||||
label9.Location = new System.Drawing.Point(285, 183);
|
||||
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label9.Name = "label9";
|
||||
label9.Size = new System.Drawing.Size(163, 15);
|
||||
@@ -269,7 +271,7 @@
|
||||
// label10
|
||||
//
|
||||
label10.AutoSize = true;
|
||||
label10.Location = new System.Drawing.Point(287, 286);
|
||||
label10.Location = new System.Drawing.Point(287, 209);
|
||||
label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
label10.Name = "label10";
|
||||
label10.Size = new System.Drawing.Size(75, 20);
|
||||
@@ -307,17 +309,18 @@
|
||||
// tbSID
|
||||
//
|
||||
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.tbSID.Location = new System.Drawing.Point(327, 248);
|
||||
this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 15F);
|
||||
this.tbSID.Location = new System.Drawing.Point(93, 242);
|
||||
this.tbSID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSID.Name = "tbSID";
|
||||
this.tbSID.Size = new System.Drawing.Size(148, 27);
|
||||
this.tbSID.Size = new System.Drawing.Size(179, 34);
|
||||
this.tbSID.TabIndex = 20;
|
||||
//
|
||||
// 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.Location = new System.Drawing.Point(93, 88);
|
||||
this.tbPumName.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumName.Name = "tbPumName";
|
||||
this.tbPumName.Size = new System.Drawing.Size(311, 27);
|
||||
@@ -329,7 +332,7 @@
|
||||
//
|
||||
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.Location = new System.Drawing.Point(93, 118);
|
||||
this.tbPumModel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumModel.Name = "tbPumModel";
|
||||
this.tbPumModel.Size = new System.Drawing.Size(311, 27);
|
||||
@@ -338,7 +341,7 @@
|
||||
// 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.Location = new System.Drawing.Point(410, 118);
|
||||
this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumUnit.Name = "tbPumUnit";
|
||||
this.tbPumUnit.Size = new System.Drawing.Size(64, 27);
|
||||
@@ -350,7 +353,7 @@
|
||||
// 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.Location = new System.Drawing.Point(94, 147);
|
||||
this.tbPumQty.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumQty.Name = "tbPumQty";
|
||||
this.tbPumQty.Size = new System.Drawing.Size(111, 27);
|
||||
@@ -360,7 +363,7 @@
|
||||
//
|
||||
// tbPumPrice
|
||||
//
|
||||
this.tbPumPrice.Location = new System.Drawing.Point(326, 175);
|
||||
this.tbPumPrice.Location = new System.Drawing.Point(326, 147);
|
||||
this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumPrice.Name = "tbPumPrice";
|
||||
this.tbPumPrice.Size = new System.Drawing.Size(148, 27);
|
||||
@@ -370,7 +373,7 @@
|
||||
//
|
||||
// tbPumAmt
|
||||
//
|
||||
this.tbPumAmt.Location = new System.Drawing.Point(93, 248);
|
||||
this.tbPumAmt.Location = new System.Drawing.Point(93, 206);
|
||||
this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumAmt.Name = "tbPumAmt";
|
||||
this.tbPumAmt.ReadOnly = true;
|
||||
@@ -385,12 +388,12 @@
|
||||
this.tbSupply.Location = new System.Drawing.Point(93, 283);
|
||||
this.tbSupply.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSupply.Name = "tbSupply";
|
||||
this.tbSupply.Size = new System.Drawing.Size(112, 27);
|
||||
this.tbSupply.Size = new System.Drawing.Size(311, 27);
|
||||
this.tbSupply.TabIndex = 22;
|
||||
//
|
||||
// tbSupplyIndex
|
||||
//
|
||||
this.tbSupplyIndex.Location = new System.Drawing.Point(208, 283);
|
||||
this.tbSupplyIndex.Location = new System.Drawing.Point(410, 283);
|
||||
this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbSupplyIndex.Name = "tbSupplyIndex";
|
||||
this.tbSupplyIndex.ReadOnly = true;
|
||||
@@ -468,7 +471,7 @@
|
||||
//
|
||||
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(327, 66);
|
||||
this.cmbState.Location = new System.Drawing.Point(327, 59);
|
||||
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbState.Name = "cmbState";
|
||||
this.cmbState.Size = new System.Drawing.Size(148, 28);
|
||||
@@ -482,7 +485,7 @@
|
||||
this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbRequest.FormattingEnabled = true;
|
||||
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.cmbRequest.Location = new System.Drawing.Point(93, 66);
|
||||
this.cmbRequest.Location = new System.Drawing.Point(93, 59);
|
||||
this.cmbRequest.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cmbRequest.Name = "cmbRequest";
|
||||
this.cmbRequest.Size = new System.Drawing.Size(179, 28);
|
||||
@@ -503,7 +506,7 @@
|
||||
//
|
||||
// tbPumIDX
|
||||
//
|
||||
this.tbPumIDX.Location = new System.Drawing.Point(410, 102);
|
||||
this.tbPumIDX.Location = new System.Drawing.Point(410, 88);
|
||||
this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumIDX.Name = "tbPumIDX";
|
||||
this.tbPumIDX.ReadOnly = true;
|
||||
@@ -515,7 +518,7 @@
|
||||
//
|
||||
// tbPumStock
|
||||
//
|
||||
this.tbPumStock.Location = new System.Drawing.Point(208, 175);
|
||||
this.tbPumStock.Location = new System.Drawing.Point(208, 147);
|
||||
this.tbPumStock.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumStock.Name = "tbPumStock";
|
||||
this.tbPumStock.ReadOnly = true;
|
||||
@@ -583,6 +586,7 @@
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.btSIDChk);
|
||||
this.groupBox1.Controls.Add(this.tbStorage);
|
||||
this.groupBox1.Controls.Add(label10);
|
||||
this.groupBox1.Controls.Add(label9);
|
||||
@@ -627,7 +631,7 @@
|
||||
// tbStorage
|
||||
//
|
||||
this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.tbStorage.Location = new System.Drawing.Point(370, 283);
|
||||
this.tbStorage.Location = new System.Drawing.Point(370, 206);
|
||||
this.tbStorage.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbStorage.Name = "tbStorage";
|
||||
this.tbStorage.Size = new System.Drawing.Size(104, 27);
|
||||
@@ -636,7 +640,7 @@
|
||||
// tbPumPriceD
|
||||
//
|
||||
this.tbPumPriceD.ForeColor = System.Drawing.Color.Blue;
|
||||
this.tbPumPriceD.Location = new System.Drawing.Point(94, 211);
|
||||
this.tbPumPriceD.Location = new System.Drawing.Point(94, 176);
|
||||
this.tbPumPriceD.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tbPumPriceD.Name = "tbPumPriceD";
|
||||
this.tbPumPriceD.Size = new System.Drawing.Size(178, 27);
|
||||
@@ -667,7 +671,7 @@
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(9, 102);
|
||||
this.button1.Location = new System.Drawing.Point(9, 88);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(80, 27);
|
||||
this.button1.TabIndex = 32;
|
||||
@@ -744,6 +748,22 @@
|
||||
//
|
||||
this.purchaseTableAdapter.ClearBeforeFill = true;
|
||||
//
|
||||
// btSIDChk
|
||||
//
|
||||
this.btSIDChk.BackColor = System.Drawing.Color.Gray;
|
||||
this.btSIDChk.Location = new System.Drawing.Point(279, 242);
|
||||
this.btSIDChk.Name = "btSIDChk";
|
||||
this.btSIDChk.Size = new System.Drawing.Size(196, 34);
|
||||
this.btSIDChk.TabIndex = 41;
|
||||
this.btSIDChk.Text = "SID 검사(SPR/NR)";
|
||||
this.btSIDChk.UseVisualStyleBackColor = false;
|
||||
this.btSIDChk.Click += new System.EventHandler(this.btSIDChk_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 250;
|
||||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||
//
|
||||
// fPurchaseCR_Add
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
@@ -817,5 +837,7 @@
|
||||
private System.Windows.Forms.TextBox tbStorage;
|
||||
private System.Windows.Forms.TextBox tbInQty;
|
||||
private System.Windows.Forms.TextBox tbInRemar;
|
||||
private System.Windows.Forms.Button btSIDChk;
|
||||
private System.Windows.Forms.Timer timer1;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using FEQ0000.Purchase;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -16,6 +18,8 @@ namespace FEQ0000
|
||||
dsPurchase.EETGW_PurchaseCRRow dr;
|
||||
public Boolean repeatAdd = false;
|
||||
Boolean binit = false;
|
||||
string sidchk = string.Empty;
|
||||
|
||||
public fPurchaseCR_Add(dsPurchase.EETGW_PurchaseCRRow dr_)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -278,6 +282,12 @@ namespace FEQ0000
|
||||
//}
|
||||
binit = true;
|
||||
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
|
||||
sidchk = string.Empty;
|
||||
else
|
||||
sidchk = tbSID.Text;
|
||||
|
||||
timer1.Start();
|
||||
|
||||
|
||||
}
|
||||
@@ -443,6 +453,21 @@ namespace FEQ0000
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(this.sidchk))
|
||||
{
|
||||
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요");
|
||||
btSIDChk.Focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
|
||||
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
|
||||
{
|
||||
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요");
|
||||
sidchk = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
//if (cbProcess.Text.Trim() == "")
|
||||
//{
|
||||
// FCOMMON.Util.MsgE("추가정보내의 [공정]을 선택하세요.");
|
||||
@@ -914,5 +939,56 @@ namespace FEQ0000
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (tbSID.TextLength != 9)
|
||||
{
|
||||
if (btSIDChk.BackColor == Color.Gray)
|
||||
btSIDChk.BackColor = Color.Tomato;
|
||||
else
|
||||
btSIDChk.BackColor = Color.Gray;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(sidchk))
|
||||
{
|
||||
if (btSIDChk.BackColor == Color.Lime)
|
||||
btSIDChk.BackColor = Color.White;
|
||||
else
|
||||
btSIDChk.BackColor = Color.Lime;
|
||||
}
|
||||
else btSIDChk.BackColor = SystemColors.Control;
|
||||
}
|
||||
}
|
||||
|
||||
private void btSIDChk_Click(object sender, EventArgs e)
|
||||
{
|
||||
var sid = tbSID.Text.Trim();
|
||||
if (sid.Length != 9)
|
||||
{
|
||||
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");
|
||||
tbSID.Focus();
|
||||
tbSID.SelectAll();
|
||||
return;
|
||||
}
|
||||
|
||||
var dt = Amkor.RestfulService.SPMSIDSearch(sid);
|
||||
if (dt.Complete)
|
||||
{
|
||||
var f = new fSIDListSelect(sid, dt.Result);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
this.sidchk = sid;
|
||||
else
|
||||
{
|
||||
FCOMMON.Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
FCOMMON.Util.MsgI("SPM/NR 에서 검색된 정보가 없습니다\n저장이 가능 합니다");
|
||||
this.sidchk = sid;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,6 +197,9 @@
|
||||
<metadata name="purchaseTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>313, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>674, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>58</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user