...
This commit is contained in:
@@ -13,9 +13,11 @@ namespace FEQ0000.Purchase
|
||||
public partial class fPurchaseNR_Ipgo : Form
|
||||
{
|
||||
int idx = -1;
|
||||
public fPurchaseNR_Ipgo(int purchaseIdx)
|
||||
string po = string.Empty;
|
||||
public fPurchaseNR_Ipgo(int purchaseIdx,string po_)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.po = po_;
|
||||
this.idx = purchaseIdx;
|
||||
this.KeyPreview = true;
|
||||
this.KeyDown += (s1, e1) => {
|
||||
@@ -48,6 +50,7 @@ namespace FEQ0000.Purchase
|
||||
tbAmt.Text = (dr.pumqty * dr.pumprice).ToString();
|
||||
tbRemarkO.Text = dr.bigo;
|
||||
tbPO.Text = dr.po;
|
||||
if (string.IsNullOrEmpty(tbPO.Text)) tbPO.Text = this.po;
|
||||
tbSC.Text = dr.sc;
|
||||
tbSCRCF.Text = dr.orderno;
|
||||
|
||||
@@ -153,7 +156,9 @@ namespace FEQ0000.Purchase
|
||||
dr.state = "Received";
|
||||
dr.inremark = tbInRemark.Text.Trim();
|
||||
}
|
||||
|
||||
dr.windate = DateTime.Now;
|
||||
dr.winuid = FCOMMON.info.Login.no;
|
||||
dr.po = this.tbPO.Text.Trim();
|
||||
dr.EndEdit();
|
||||
var cnt = ta.Update(dr);
|
||||
DialogResult = DialogResult.OK;
|
||||
|
||||
Reference in New Issue
Block a user