This commit is contained in:
chi
2023-12-08 16:56:58 +09:00
parent 81a3fd83fc
commit 8e384da8ff
3 changed files with 290 additions and 56 deletions

View File

@@ -278,6 +278,25 @@ namespace FPJ0000
sbSumO.Text = this.dsMSSQL.Projects.Sum(t => t.costo).ToString("N2");
sbSumI.Text = this.dsMSSQL.Projects.Sum(t => t.costn).ToString("N2");
lbcnt1.Text = "--";
lbcnt2.Text = "--";
lbcnt3.Text = "--";
lbcnt4.Text = "--";
lbcnt5.Text = "--";
lbcnt6.Text = "--";
var grps = this.dsMSSQL.Projects.GroupBy(t => t.status);
foreach (var grp in grps)
{
var cnt = grp.Count();
if (grp.Key == "검토") lbcnt1.Text = cnt.ToString();
else if (grp.Key == "진행") lbcnt2.Text = cnt.ToString();
else if (grp.Key == "보류") lbcnt3.Text = cnt.ToString();
else if (grp.Key == "취소") lbcnt4.Text = cnt.ToString();
else if (grp.Key == "완료") lbcnt5.Text = cnt.ToString();
else if (grp.Key == "완료(보고)") lbcnt6.Text = cnt.ToString();
}
FormattingData();
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}