This commit is contained in:
chi
2024-11-11 12:51:18 +09:00
parent 8d610f5262
commit a1cb35070e
23 changed files with 2672 additions and 2298 deletions

View File

@@ -32,6 +32,7 @@ namespace FPJ0000
dv1.CellEndEdit += Dv1_CellEndEdit;
Col_Price = dv1.Columns["dvc_price"].Index;
Col_PriceD = dv1.Columns["dvc_priced"].Index;
Col_Qty = dv1.Columns["dvc_qty"].Index;
Col_amt = dv1.Columns["dvc_amt"].Index;
this.Text = isCR ? "파트리스트 CR등록" : "파트리스트 NR등록";
@@ -52,6 +53,7 @@ namespace FPJ0000
}
int Col_Price = -1;
int Col_PriceD = -1;
int Col_Qty = -1;
int Col_amt = -1;
private void Dv1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
@@ -105,6 +107,7 @@ namespace FPJ0000
row.Cells[col++].Value = dr.ItemName;
row.Cells[col++].Value = dr.ItemModel;
row.Cells[col++].Value = dr.price;
row.Cells[col++].Value = dr.priceD;
row.Cells[col].Tag = dr.qty;
row.Cells[col++].Value = dr.qty;
row.Cells[col++].Value = dr.qty;
@@ -395,10 +398,13 @@ namespace FPJ0000
var sid = dr.ItemSid.Replace(" ", "").Trim();
var o_price = item.Cells[Col_Price].Value;
var o_priceD = item.Cells[Col_PriceD].Value;
var o_qty = item.Cells[Col_Qty].Value;
decimal v_price = 0;
decimal v_priceD = 0;
int v_qty = 0;
if (o_price != null) v_price = decimal.Parse(o_price.ToString());
if (o_priceD != null) v_priceD = decimal.Parse(o_priceD.ToString());
if (o_qty != null) v_qty = int.Parse(o_qty.ToString());
if (v_qty < 1)
@@ -438,6 +444,7 @@ namespace FPJ0000
newdr.pumscale = dr.ItemModel;
newdr.pumunit = dr.ItemUnit;
newdr.pumprice = v_price;// (decimal)item.Cells[Col_Price].Value;//dr.price;
newdr.pumpriceD = v_priceD;
newdr.pumqtyReq = v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt = v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
newdr.supply = dr.ItemSupply.Trim();
@@ -514,6 +521,7 @@ namespace FPJ0000
newdr.pumscale = dr.ItemModel;
newdr.pumunit = dr.ItemUnit;
newdr.pumprice = v_price;// (decimal)item.Cells[Col_Price].Value;//dr.price;
newdr.pumpriceD = v_priceD;
newdr.pumqtyReq = v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt = v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
newdr.supply = dr.ItemSupply.Trim();