단가($) 작업

This commit is contained in:
chi
2021-07-11 13:26:26 +09:00
parent 5316245ae5
commit 487d2ebe76
24 changed files with 988 additions and 626 deletions

View File

@@ -17,6 +17,7 @@ namespace FCM0000
public int item { get; set; }
public string itemmodel { get; set; }
public decimal itemprice { get; set; }
public decimal itempriceD { get; set; }
public string SID { get; set; }
public string itemUnit { get; set; }
public string itemSupply { get; set; }
@@ -35,6 +36,7 @@ namespace FCM0000
item = -1;
itemmodel = string.Empty;
itemprice = 0;
itempriceD = 0;
SID = string.Empty;
itemUnit = "EA";
itemSupply = string.Empty;
@@ -101,6 +103,7 @@ namespace FCM0000
item = -1;
itemmodel = string.Empty;
itemprice = 0;
itempriceD = 0;
itemSupply = string.Empty;
itemSupplyidx = -1;
itemManu = string.Empty;
@@ -120,6 +123,10 @@ namespace FCM0000
else itemManu = dr.manu;
if (dr.IspriceNull()) itemprice = 0;
else itemprice = dr.price;
if (dr.IspriceDNull()) itempriceD = 0;
else itempriceD = dr.priceD;
if (dr.IssupplyNull()) itemSupply = string.Empty;
else itemSupply = dr.supply;
if (dr.IssupplyidxNull()) itemSupplyidx = -1;
@@ -249,9 +256,23 @@ namespace FCM0000
item = f.newIDX;
itemmodel = f.tbModel.Text.Trim();
itemManu = f.tbManu.Text.Trim();
decimal price;
decimal.TryParse(f.tbPrice.Text.Replace(",", ""), out price);
itemprice = price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",",""));
//decimal price;
//decimal.TryParse(f.tbPrice.Text.Replace(",", ""), out price);
//itemprice = price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",",""));
if (f.tbPrice.Text.Replace(",", "").isEmpty() == false)
{
if (decimal.TryParse(f.tbPrice.Text.Replace(",", "").Trim(), out decimal price))
itemprice = price;
}
else itemprice = 0;
if (f.tbPriceD.Text.Replace(",", "").isEmpty()==false)
{
if (decimal.TryParse(f.tbPriceD.Text.Replace(",", "").Trim(), out decimal priced))
itempriceD = priced;
}
else itempriceD = 0;
SID = f.tbSid.Text.Trim();
itemUnit = f.tbUnit.Text.Trim();
itemSupply = f.tbSupply.Text.Trim();