주문내역 엑셀 업로드기능에서 공백제거 추가, 주문내역에서 품목정보 생성하는 기능 추가(관리자)

This commit is contained in:
chi
2024-01-26 11:33:04 +09:00
parent 5d7945d5c9
commit d2c5ed6bd4
39 changed files with 1198 additions and 968 deletions

View File

@@ -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;

View File

@@ -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;