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

View File

@@ -14,13 +14,14 @@ namespace FEQ0000.Purchase
{
int idx = -1;
string po = string.Empty;
public fPurchaseNR_Ipgo(int purchaseIdx,string po_)
public fPurchaseNR_Ipgo(int purchaseIdx, string po_)
{
InitializeComponent();
this.po = po_;
this.idx = purchaseIdx;
this.KeyPreview = true;
this.KeyDown += (s1, e1) => {
this.KeyDown += (s1, e1) =>
{
if (e1.KeyCode == Keys.Escape) this.Close();
};
}
@@ -122,16 +123,24 @@ namespace FEQ0000.Purchase
cmbReceive.Focus();
return;
}
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter ();
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter();
var dr = ta.GetByIdx(this.idx).First();
if (chkInDate.Checked == false)
{
if (dr.IsindateNull() == false)
{
if (dr.indate.isEmpty() == false)
{
if (FCOMMON.Util.MsgQ("입고정보를 삭제할까요? 상태는 [PR]로 전환됩니다.") != DialogResult.Yes) return;
}
}
dr.indate = string.Empty;
dr.receive = string.Empty;
// dr.receiveName = string.Empty;
dr.inqty = 0;
dr.inremark = string.Empty;
if (prestatus == "Received") dr.state = "---";
if (prestatus == "Received") dr.state = "PO";
else dr.state = prestatus;
}
else