...
This commit is contained in:
@@ -38,14 +38,18 @@ namespace FEQ0000.Purchase
|
||||
var dr = dt.First();
|
||||
prestatus = dr.state;
|
||||
|
||||
textBox15.Text = dr.pumname;
|
||||
tbPumname.Text = dr.pumname;
|
||||
textBox16.Text = dr.pumidx.ToString();
|
||||
textBox13.Text = dr.pumscale;
|
||||
textBox11.Text = dr.pumunit;
|
||||
textBox3.Text = dr.pumqty.ToString();
|
||||
textBox8.Text = dr.pumprice.ToString();
|
||||
textBox9.Text = (dr.pumqty * dr.pumprice).ToString();
|
||||
textBox10.Text = dr.bigo;
|
||||
tbModel.Text = dr.pumscale;
|
||||
tbUnit.Text = dr.pumunit;
|
||||
tbQty.Text = dr.pumqty.ToString();
|
||||
tbPriceO.Text = dr.pumprice.ToString();
|
||||
tbInPrice.Text = dr.pumprice.ToString();
|
||||
tbAmt.Text = (dr.pumqty * dr.pumprice).ToString();
|
||||
tbRemarkO.Text = dr.bigo;
|
||||
tbPO.Text = dr.po;
|
||||
tbSC.Text = dr.sc;
|
||||
tbSCRCF.Text = dr.orderno;
|
||||
|
||||
//프로젝트정보 찾는다
|
||||
var tap = new DSPrjTableAdapters.ProjectsTableAdapter();
|
||||
@@ -90,14 +94,15 @@ namespace FEQ0000.Purchase
|
||||
else dtInDate.Value = DateTime.Now;
|
||||
chkInDate.Checked = true;
|
||||
tbInQty.Text = dr.inqty.ToString();
|
||||
tbInRemar.Text = dr.inremark;
|
||||
tbInRemark.Text = dr.inremark;
|
||||
}
|
||||
else
|
||||
{
|
||||
//설정정보가 없다면 비활성화해준다
|
||||
cmbReceive.Text = FCOMMON.DBM.GetcurrentUserNoName();
|
||||
cmbReceive.Text = $"[{dr.request}] {dr.requestName}";//FCOMMON.DBM.GetcurrentUserNoName();
|
||||
dtInDate.Value = DateTime.Now;
|
||||
chkInDate.Checked = false;
|
||||
tbInQty.Text = dr.pumqty.ToString();
|
||||
chkInDate_CheckedChanged(null, null);
|
||||
}
|
||||
|
||||
@@ -138,7 +143,7 @@ namespace FEQ0000.Purchase
|
||||
}
|
||||
else
|
||||
{
|
||||
if (qty > int.Parse(textBox3.Text))
|
||||
if (qty > int.Parse(tbQty.Text))
|
||||
{
|
||||
if (FCOMMON.Util.MsgQ("입고수량이 주문수량보다 많습니다 입력 할까요?") != DialogResult.Yes)
|
||||
return;
|
||||
@@ -146,7 +151,7 @@ namespace FEQ0000.Purchase
|
||||
dr.inqty = qty;
|
||||
}
|
||||
dr.state = "Received";
|
||||
dr.inremark = tbInRemar.Text.Trim();
|
||||
dr.inremark = tbInRemark.Text.Trim();
|
||||
}
|
||||
|
||||
dr.EndEdit();
|
||||
@@ -159,10 +164,10 @@ namespace FEQ0000.Purchase
|
||||
dtInDate.Enabled = chkInDate.Checked;
|
||||
cmbReceive.Enabled = chkInDate.Checked;
|
||||
tbInQty.Enabled = chkInDate.Checked;
|
||||
tbInRemar.Enabled = chkInDate.Checked;
|
||||
if (chkInDate.Checked == false)
|
||||
cmbReceive.SelectedIndex = -1;
|
||||
else cmbReceive.Text = FCOMMON.DBM.GetcurrentUserNoName();
|
||||
tbInRemark.Enabled = chkInDate.Checked;
|
||||
//if (chkInDate.Checked == false)
|
||||
// cmbReceive.SelectedIndex = -1;
|
||||
//else cmbReceive.Text = FCOMMON.DBM.GetcurrentUserNoName();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user