..
This commit is contained in:
@@ -360,6 +360,30 @@ namespace FEQ0000
|
||||
|
||||
private void toolStripButton8_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
|
||||
//데이터를 검색한다.
|
||||
foreach (DataGridViewRow row in this.dataGridView1.Rows)
|
||||
{
|
||||
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseCRRow;
|
||||
var qtyreq = 0;
|
||||
var qty = 0;
|
||||
if (dr.IspumqtyReqNull() == false) qtyreq = dr.pumqtyReq;
|
||||
if (dr.IspumqtyNull() == false) qty = dr.pumqty;
|
||||
if (qty < 1)
|
||||
{
|
||||
Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 없습니다");
|
||||
break;
|
||||
}
|
||||
//if(qty > qtyreq)
|
||||
//{
|
||||
// Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 요청 수량보다 많습니다");
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
//승인요청
|
||||
var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
@@ -479,5 +503,24 @@ namespace FEQ0000
|
||||
}
|
||||
this.dataGridView1.Refresh();
|
||||
}
|
||||
|
||||
private void toolStripButton2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
foreach (DataGridViewRow row in this.dataGridView1.Rows)
|
||||
{
|
||||
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseCRRow;
|
||||
if (dr.IspumqtyNull() == false && dr.pumqty > 0)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
dr.pumqty = dr.pumqtyReq;
|
||||
dr.EndEdit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user