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