This commit is contained in:
chi
2023-03-07 23:11:45 +09:00
parent 70fc4f6857
commit 8b6b25830e
62 changed files with 20345 additions and 11651 deletions

View File

@@ -549,22 +549,22 @@ namespace FPJ0000
button2.BackColor = dr.jasmin > 0 ? Color.Lime : SystemColors.Control;
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}" +
$" and isnull(qtybuy,0) <> 0";
var stR_result = FCOMMON.DBM.ExecuteScalar(sql);
if (string.IsNullOrEmpty(stR_result))
var progress = FCOMMON.DBM.GetProjectBuyInfo(dr.idx);
//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}" +
// $" and isnull(qtybuy,0) <> 0";
//var stR_result = FCOMMON.DBM.ExecuteScalar(sql);
if (progress < 0.1f)
{
tableLayoutPanel3.Visible = false;
}
else
{
tableLayoutPanel3.Visible = true;
var perc = float.Parse(stR_result);
this.label17.Text = string.Format("구매 완료({0:N0}%)", perc);
this.label17.Text = string.Format("구매 완료({0:N0}%)", progress);
this.prb1.ProgressMin = 0;
this.prb1.ProgressMax = 100;
this.prb1.ProgressValue = perc;
this.prb1.ProgressValue = progress;
}
try