This commit is contained in:
chi
2024-01-22 13:53:54 +09:00
parent 16822747af
commit 1acbb5bc3c
10 changed files with 592 additions and 358 deletions

View File

@@ -130,7 +130,7 @@ namespace FEQ0000
void showSummary()
{
decimal sum = 0;
sum = rows.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
@@ -266,7 +266,7 @@ namespace FEQ0000
private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//sc
@@ -353,8 +353,27 @@ namespace FEQ0000
private void toolStripButton8_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
this.bs.EndEdit();
//데이터를 검색한다.
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow;
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("현재 자료를 승인 요청 할까요?");
@@ -436,12 +455,12 @@ namespace FEQ0000
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
//newMail.Attachments.Add(fi.FullName);
}
var rows = this.rows;
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
@@ -475,5 +494,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_PurchaseEBRow;
if (dr.IspumqtyNull() == false && dr.pumqty > 0)
{
}
else
{
dr.pumqty = dr.pumqtyReq;
dr.EndEdit();
}
}
}
}
}