This commit is contained in:
chi
2023-12-04 08:29:58 +09:00
parent 6e88e7bdb4
commit 69495927b9
3 changed files with 27 additions and 26 deletions

View File

@@ -819,7 +819,7 @@ namespace FEQ0000
{
if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal vpriced) == true)
{
applyDollerToWon();
//applyDollerToWon();
}
}
@@ -1183,29 +1183,29 @@ namespace FEQ0000
{
//단가에 금액이 없는경우에는 환율을 곱해준다.
//if ( decimal.TryParse(tbPumPrice.Text, out decimal result) == false || result == 0)
if (binit)
{
if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal priced) == true)
{
applyDollerToWon();
}
else
{
//달러입력값도 이상하니 처리 못함
tbPumPrice.Text = "0";
}
}
//if (binit)
//{
// if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal priced) == true)
// {
// applyDollerToWon();
// }
// else
// {
// //달러입력값도 이상하니 처리 못함
// tbPumPrice.Text = "0";
// }
//}
}
void applyDollerToWon()
{
if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal priced))
{
var price = FCOMMON.info.dollertowon * (double)priced;
tbPumPrice.Text = (Math.Ceiling(price)).ToString();
}
else tbPumPrice.Text = "0";
}
//void applyDollerToWon()
//{
// if (decimal.TryParse(tbPumPriceD.Text.Replace(",", ""), out decimal priced))
// {
// var price = FCOMMON.info.dollertowon * (double)priced;
// tbPumPrice.Text = (Math.Ceiling(price)).ToString();
// }
// else tbPumPrice.Text = "0";
//}
private void btSIDChk_Click(object sender, EventArgs e)
{