pmp 재고 조회 기능 추가
This commit is contained in:
@@ -40,9 +40,23 @@ namespace FPJ0000
|
||||
lvitem.SubItems.Add(dr.ItemSid);
|
||||
lvitem.SubItems.Add(dr.ItemName);
|
||||
lvitem.SubItems.Add(dr.ItemModel);
|
||||
lvitem.SubItems.Add(dr.qty.ToString());
|
||||
lvitem.SubItems.Add(dr.price.ToString());
|
||||
lvitem.SubItems.Add(dr.amt.ToString());
|
||||
lvitem.SubItems.Add(dr.qty.ToString("N0"));
|
||||
lvitem.SubItems.Add(dr.price.ToString("N0"));
|
||||
lvitem.SubItems.Add(dr.amt.ToString("N0"));
|
||||
|
||||
if(dr.qtybuy == dr.qty)
|
||||
{
|
||||
//동일하면 보기 편하게 표시하지 않는다.
|
||||
lvitem.SubItems.Add("--");
|
||||
lvitem.SubItems.Add("--");
|
||||
}
|
||||
else
|
||||
{
|
||||
lvitem.SubItems.Add(dr.qtybuy.ToString("N0"));
|
||||
var amt = dr.qtybuy * dr.price;
|
||||
lvitem.SubItems.Add(amt.ToString("N0"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.listView1.ResumeLayout();
|
||||
@@ -343,10 +357,22 @@ namespace FPJ0000
|
||||
SQL = SQL.Replace("{ItemName}", dr.ItemName.Trim());
|
||||
SQL = SQL.Replace("{Item}", dr.Item.ToString());
|
||||
SQL = SQL.Replace("{ItemModel}", dr.ItemModel);
|
||||
SQL = SQL.Replace("{ItemUnit}", dr.ItemUnit);
|
||||
SQL = SQL.Replace("{qty}", dr.qty.ToString());
|
||||
SQL = SQL.Replace("{ItemUnit}", dr.ItemUnit);
|
||||
SQL = SQL.Replace("{price}", dr.price.ToString());
|
||||
SQL = SQL.Replace("{amt}", dr.amt.ToString());
|
||||
|
||||
|
||||
if(radioButton1.Checked)
|
||||
{
|
||||
SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
|
||||
SQL = SQL.Replace("{amt}", dr.amt.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
//실제 구매에 필요한 수량으로 처리
|
||||
SQL = SQL.Replace("{qty}", dr.qtybuy.ToString()); //일반수량이 아닌 필요수량으로
|
||||
SQL = SQL.Replace("{amt}", (dr.qtybuy * dr.price).ToString());
|
||||
}
|
||||
|
||||
SQL = SQL.Replace("{ItemSupply}", dr.ItemSupply);
|
||||
SQL = SQL.Replace("{ItemSupplyidx}", dr.ItemSupplyidx.ToString());
|
||||
SQL = SQL.Replace("{Project}", dr.Project.ToString());
|
||||
|
||||
Reference in New Issue
Block a user