파트리스트, 진행 율 및 색상 관련 수정
sc체크 기능 추가(jbs)
This commit is contained in:
@@ -500,7 +500,22 @@ 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 stR_result = FCOMMON.DBM.ExecuteScalar(sql);
|
||||
if (string.IsNullOrEmpty(stR_result))
|
||||
{
|
||||
tableLayoutPanel3.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
tableLayoutPanel3.Visible = true;
|
||||
var perc = int.Parse(stR_result);
|
||||
this.label17.Text = string.Format("구매 진행율 ({0}%)", perc);
|
||||
this.prb1.ProgressMin = 0;
|
||||
this.prb1.ProgressMax = 100;
|
||||
this.prb1.ProgressValue = perc;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
taHist.Fill(this.dsMSSQL.ProjectsHistory, dr.idx);
|
||||
|
||||
Reference in New Issue
Block a user