...
This commit is contained in:
@@ -13,9 +13,11 @@ namespace FEQ0000.Purchase
|
||||
public partial class fPurchaseCR_Ipgo : Form
|
||||
{
|
||||
int idx = -1;
|
||||
public fPurchaseCR_Ipgo(int purchaseIdx)
|
||||
string po = string.Empty;
|
||||
public fPurchaseCR_Ipgo(int purchaseIdx,string po_)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.po = po_;
|
||||
this.idx = purchaseIdx;
|
||||
this.KeyPreview = true;
|
||||
this.KeyDown += (s1, e1) =>
|
||||
@@ -49,6 +51,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;
|
||||
|
||||
@@ -176,7 +179,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