..
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user