주문내역 엑셀 업로드기능에서 공백제거 추가, 주문내역에서 품목정보 생성하는 기능 추가(관리자)
This commit is contained in:
@@ -123,22 +123,22 @@ namespace FCM0000.Item
|
||||
newdr.barcode = tbBarcode.Text.Trim();
|
||||
|
||||
//21711
|
||||
if (tbPriceD.Text.isEmpty() == false)
|
||||
{
|
||||
if (decimal.TryParse(tbPriceD.Text, out decimal priced))
|
||||
{
|
||||
newdr.priceD = priced;
|
||||
if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false)
|
||||
{
|
||||
var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon);
|
||||
tbPrice.Text = ConvertedPrice.ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
FCOMMON.Util.MsgE("입력값이 숫자가 아닙니다. 단가($)를 사용할 수 없습니다");
|
||||
}
|
||||
}
|
||||
//if (tbPriceD.Text.isEmpty() == false)
|
||||
//{
|
||||
// if (decimal.TryParse(tbPriceD.Text, out decimal priced))
|
||||
// {
|
||||
// newdr.priceD = priced;
|
||||
// if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false)
|
||||
// {
|
||||
// var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon);
|
||||
// tbPrice.Text = ConvertedPrice.ToString();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("입력값이 숫자가 아닙니다. 단가($)를 사용할 수 없습니다");
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
int price;
|
||||
|
||||
@@ -137,23 +137,23 @@ namespace FCM0000.Item
|
||||
dr.Storage = tbStorage.Text.Trim();
|
||||
dr.barcode = tbBarcode.Text.Trim();
|
||||
|
||||
//21711
|
||||
if (tbPriceD.Text.isEmpty() == false)
|
||||
{
|
||||
if (decimal.TryParse(tbPriceD.Text, out decimal priced))
|
||||
{
|
||||
dr.priceD = priced;
|
||||
if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false)
|
||||
{
|
||||
var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon);
|
||||
tbPrice.Text = ConvertedPrice.ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
FCOMMON.Util.MsgE("입력값이 숫자가 아닙니다. 단가($)를 사용할 수 없습니다");
|
||||
}
|
||||
}
|
||||
////21711
|
||||
//if (tbPriceD.Text.isEmpty() == false)
|
||||
//{
|
||||
// if (decimal.TryParse(tbPriceD.Text, out decimal priced))
|
||||
// {
|
||||
// dr.priceD = priced;
|
||||
// if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false)
|
||||
// {
|
||||
// var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon);
|
||||
// tbPrice.Text = ConvertedPrice.ToString();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("입력값이 숫자가 아닙니다. 단가($)를 사용할 수 없습니다");
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
int price;
|
||||
|
||||
Reference in New Issue
Block a user