This commit is contained in:
chi
2021-06-25 15:55:26 +09:00
parent acc368d065
commit 48b67ec89d
7 changed files with 140 additions and 93 deletions

View File

@@ -506,7 +506,7 @@ namespace FPJ0000
var dr = drv.Row as dsPRJ.ProjectsRow;
this.label1.Text = string.Format("[{0}] {1}", dr.name, dr.memo);
var sql = "select (sum((case bbuy when 1 then( case qtybuy when qtyin then 1 else 0 end) else 0 end)) *100 / count(*)) from ProjectsPart where project = " + dr.idx.ToString();
var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 from ProjectsPart where project = " + dr.idx.ToString();
var stR_result = FCOMMON.DBM.ExecuteScalar(sql);
if (string.IsNullOrEmpty(stR_result))
{
@@ -515,8 +515,8 @@ namespace FPJ0000
else
{
tableLayoutPanel3.Visible = true;
var perc = int.Parse(stR_result);
this.label17.Text = string.Format("구매 완료({0}%)", perc);
var perc = float.Parse(stR_result);
this.label17.Text = string.Format("구매 완료({0:N0}%)", perc);
this.prb1.ProgressMin = 0;
this.prb1.ProgressMax = 100;
this.prb1.ProgressValue = perc;