업무일지 시간 요약화면에 휴일 데이터를 추가 함.
This commit is contained in:
31
SubProject/FPJ0000/JobReport_/rJobReport.Designer.cs
generated
31
SubProject/FPJ0000/JobReport_/rJobReport.Designer.cs
generated
@@ -32,8 +32,9 @@
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dsReport = new FPJ0000.dsReport();
|
||||
this.ta = new FPJ0000.dsReportTableAdapters.jobReportTableAdapter();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridView1 = new arCtl.arDatagridView();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.tbProcess = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
@@ -61,6 +62,11 @@
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.A_DelCurrentCell = true;
|
||||
this.dataGridView1.A_EnterToTab = true;
|
||||
this.dataGridView1.A_KoreanField = null;
|
||||
this.dataGridView1.A_UpperField = null;
|
||||
this.dataGridView1.A_ViewRownumOnHeader = true;
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
@@ -69,11 +75,12 @@
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(721, 544);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1003, 534);
|
||||
this.dataGridView1.TabIndex = 2;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Controls.Add(this.tbProcess);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.linkLabel1);
|
||||
@@ -83,9 +90,20 @@
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.panel1.Size = new System.Drawing.Size(721, 42);
|
||||
this.panel1.Size = new System.Drawing.Size(1003, 42);
|
||||
this.panel1.TabIndex = 3;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new System.Drawing.Point(848, 5);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 32);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "내보내기";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// tbProcess
|
||||
//
|
||||
this.tbProcess.FormattingEnabled = true;
|
||||
@@ -117,7 +135,7 @@
|
||||
// btRefresh
|
||||
//
|
||||
this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.btRefresh.Location = new System.Drawing.Point(641, 5);
|
||||
this.btRefresh.Location = new System.Drawing.Point(923, 5);
|
||||
this.btRefresh.Name = "btRefresh";
|
||||
this.btRefresh.Size = new System.Drawing.Size(75, 32);
|
||||
this.btRefresh.TabIndex = 2;
|
||||
@@ -138,7 +156,7 @@
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(721, 586);
|
||||
this.ClientSize = new System.Drawing.Size(1003, 576);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "rJobReport";
|
||||
@@ -157,12 +175,13 @@
|
||||
private System.Windows.Forms.BindingSource bs;
|
||||
private dsReport dsReport;
|
||||
private dsReportTableAdapters.jobReportTableAdapter ta;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private arCtl.arDatagridView dataGridView1;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Button btRefresh;
|
||||
private System.Windows.Forms.TextBox tbMon;
|
||||
private System.Windows.Forms.ComboBox tbProcess;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,14 @@ namespace FPJ0000.JobReport_
|
||||
|
||||
void refrehData()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
////휴일데이터가 들어가 있음.
|
||||
//var taH = new dsReportTableAdapters.HolidayLIstTableAdapter();
|
||||
//taH.Fill(this.dsReport.HolidayLIst, tbMon.Text + "%");
|
||||
|
||||
string prcname = tbProcess.SelectedIndex < 1 ? "%" : tbProcess.Text.Trim();
|
||||
this.ta.Fill(this.dsReport.jobReport, tbMon.Text, FCOMMON.info.Login.gcode, prcname);
|
||||
//this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
|
||||
@@ -87,13 +95,27 @@ namespace FPJ0000.JobReport_
|
||||
}
|
||||
else
|
||||
{
|
||||
////모든데이터를 확인해서 휴일이랑 데이터를 분리해야한다.
|
||||
//var sumhr = 0f;
|
||||
//var sumot = 0f;
|
||||
//var sumholy = 0f;
|
||||
//foreach(dsReport.jobReportRow item in userDatas)
|
||||
//{
|
||||
// dsReport.HolidayLIst.Where(t => t.pdate == item.yymm);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
var sumhr = userDatas.Sum(t => t.hrs);
|
||||
var sumot = userDatas.Sum(t => t.ot);
|
||||
var sumhl = userDatas.Sum(t => t.holyot);
|
||||
if (sumot == 0) rowdata.Add(string.Format("{0}", sumhr, sumot));
|
||||
else rowdata.Add(string.Format("{0}+{1}", sumhr, sumot));
|
||||
|
||||
else rowdata.Add(string.Format("{0}+{1}(*{2})", sumhr, sumot,sumhl));
|
||||
|
||||
if (sumhr > basehr) high.Add(true);
|
||||
else high.Add(false);
|
||||
|
||||
if (sumhr < basehr) low.Add(true);
|
||||
else low.Add(false);
|
||||
}
|
||||
@@ -123,5 +145,10 @@ namespace FPJ0000.JobReport_
|
||||
{
|
||||
if (tbProcess.SelectedIndex >= 0) refrehData();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.ExportData(string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,13 +32,14 @@
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dsReport = new FPJ0000.dsReport();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.tbProcess = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.btRefresh = new System.Windows.Forms.Button();
|
||||
this.tbMon = new System.Windows.Forms.TextBox();
|
||||
this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridView1 = new arCtl.arDatagridView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
@@ -57,6 +58,7 @@
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Controls.Add(this.tbProcess);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.linkLabel1);
|
||||
@@ -66,9 +68,20 @@
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.panel1.Size = new System.Drawing.Size(751, 42);
|
||||
this.panel1.Size = new System.Drawing.Size(1041, 42);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new System.Drawing.Point(886, 5);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 32);
|
||||
this.button1.TabIndex = 6;
|
||||
this.button1.Text = "내보내기";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||
//
|
||||
// tbProcess
|
||||
//
|
||||
this.tbProcess.FormattingEnabled = true;
|
||||
@@ -101,7 +114,7 @@
|
||||
// btRefresh
|
||||
//
|
||||
this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.btRefresh.Location = new System.Drawing.Point(671, 5);
|
||||
this.btRefresh.Location = new System.Drawing.Point(961, 5);
|
||||
this.btRefresh.Name = "btRefresh";
|
||||
this.btRefresh.Size = new System.Drawing.Size(75, 32);
|
||||
this.btRefresh.TabIndex = 2;
|
||||
@@ -123,19 +136,27 @@
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.A_DelCurrentCell = true;
|
||||
this.dataGridView1.A_EnterToTab = true;
|
||||
this.dataGridView1.A_KoreanField = null;
|
||||
this.dataGridView1.A_UpperField = null;
|
||||
this.dataGridView1.A_ViewRownumOnHeader = true;
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 42);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(751, 546);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1041, 586);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
//
|
||||
// rJobReportDay
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(751, 588);
|
||||
this.ClientSize = new System.Drawing.Size(1041, 628);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "rJobReportDay";
|
||||
@@ -160,6 +181,7 @@
|
||||
private dsReportTableAdapters.JobReportDayTableAdapter ta;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ComboBox tbProcess;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private arCtl.arDatagridView dataGridView1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
@@ -135,8 +135,9 @@ namespace FPJ0000.JobReport_
|
||||
if (col.Tag.ToString() == "1")
|
||||
{
|
||||
//이날은 휴일이다
|
||||
sumFR += daydata.ot + daydata.hrs;
|
||||
rowdata.Add((daydata.hrs.ToString() + "+" + daydata.ot.ToString()));
|
||||
sumFR += daydata.ot;// + daydata.hrs;
|
||||
//sumOT += daydata.ot;
|
||||
rowdata.Add("*" + daydata.hrs.ToString() + "+" + daydata.ot.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -147,7 +148,7 @@ namespace FPJ0000.JobReport_
|
||||
}
|
||||
else rowdata.Add("--");
|
||||
}
|
||||
rowdata.Add(sum.ToString() + "+" + sumOT.ToString());
|
||||
rowdata.Add(sum.ToString() + "+" + sumOT.ToString() + "(*" + sumFR.ToString() + ")");
|
||||
this.dataGridView1.Rows.Add(rowdata.ToArray());
|
||||
}
|
||||
foreach(DataGridViewRow dvrow in this.dataGridView1.Rows)
|
||||
@@ -205,5 +206,10 @@ namespace FPJ0000.JobReport_
|
||||
{
|
||||
if (tbProcess.SelectedIndex >= 0) refrehData();
|
||||
}
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.ExportData(string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,9 +123,6 @@
|
||||
<metadata name="dsReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dsReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>245, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user