업무분포 출력물 오류

This commit is contained in:
chi
2024-06-27 17:28:00 +09:00
parent 88ebe5bedf
commit 8d610f5262
3 changed files with 21 additions and 7 deletions

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("24.06.26.0000")]
[assembly: AssemblyFileVersion("24.06.26.0000")]
[assembly: AssemblyVersion("24.06.27.0000")]
[assembly: AssemblyFileVersion("24.06.27.0000")]

View File

@@ -96,6 +96,7 @@
// btSave
//
this.btSave.Dock = System.Windows.Forms.DockStyle.Right;
this.btSave.Enabled = false;
this.btSave.Location = new System.Drawing.Point(947, 5);
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(75, 48);
@@ -176,6 +177,7 @@
// btRefresh
//
this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right;
this.btRefresh.Enabled = false;
this.btRefresh.Location = new System.Drawing.Point(1022, 5);
this.btRefresh.Name = "btRefresh";
this.btRefresh.Size = new System.Drawing.Size(75, 48);
@@ -217,7 +219,6 @@
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.panel1);
this.Name = "fJobChartMenu";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "작업 분포 확인";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.fJobChartMenu_Load);

View File

@@ -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;