업무분포 출력물 오류
This commit is contained in:
@@ -57,6 +57,8 @@ namespace FPJ0000.JobReport_
|
||||
|
||||
//refrehData();
|
||||
binit = true;
|
||||
btSave.Enabled = true;
|
||||
btRefresh.Enabled = true;
|
||||
}
|
||||
void UpdateUserList()
|
||||
{
|
||||
@@ -206,10 +208,21 @@ namespace FPJ0000.JobReport_
|
||||
foreach (var item in baseData.GroupBy(t => t.id)) //사용자별로 그룹을 해서
|
||||
{
|
||||
var dr = item.FirstOrDefault();
|
||||
this.fpSpread1.Sheets[2].Cells[row, 0].Value = dr.name;
|
||||
this.fpSpread1.Sheets[2].Cells[row, 1].Value = dr.id;
|
||||
this.fpSpread1.Sheets[2].Cells[row, 2].Value = item.Sum(t => t.hrs);
|
||||
this.fpSpread1.Sheets[2].Cells[row, 3].Value = item.Sum(t => t.ot);
|
||||
if (row <= this.fpSpread1.Sheets[2].RowCount)
|
||||
this.fpSpread1.Sheets[2].RowCount = Math.Max(100, row);
|
||||
|
||||
if(row < this.fpSpread1.Sheets[2].RowCount)
|
||||
{
|
||||
this.fpSpread1.Sheets[2].Cells[row, 0].Value = dr.name;
|
||||
this.fpSpread1.Sheets[2].Cells[row, 1].Value = dr.id;
|
||||
this.fpSpread1.Sheets[2].Cells[row, 2].Value = item.Sum(t => t.hrs);
|
||||
this.fpSpread1.Sheets[2].Cells[row, 3].Value = item.Sum(t => t.ot);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
row += 1;
|
||||
}
|
||||
fpSpread1.Sheets[1].ColumnCount = 5;
|
||||
|
||||
Reference in New Issue
Block a user