This commit is contained in:
chi
2022-04-22 14:37:47 +09:00
parent 620c0e6d20
commit ff32598e85
4 changed files with 1508 additions and 1236 deletions

View File

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

View File

@@ -29,10 +29,6 @@ namespace FBS0000.Holiday
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.dtSD = new System.Windows.Forms.TextBox();
this.dtED = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btChk = new System.Windows.Forms.Button();
this.btCorr = new System.Windows.Forms.Button();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
@@ -47,63 +43,57 @@ namespace FBS0000.Holiday
this.label8 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox8 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox8 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.listView1 = new System.Windows.Forms.ListView();
this.lvNG = new System.Windows.Forms.ListView();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.panel4 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.dtSD = new System.Windows.Forms.DateTimePicker();
this.dtED = new System.Windows.Forms.DateTimePicker();
this.lvOK = new System.Windows.Forms.ListView();
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(28, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 0;
this.label1.Text = "기간";
//
// dtSD
//
this.dtSD.Location = new System.Drawing.Point(64, 19);
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(100, 21);
this.dtSD.TabIndex = 1;
//
// dtED
//
this.dtED.Location = new System.Drawing.Point(193, 19);
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(100, 21);
this.dtED.TabIndex = 3;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(172, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(14, 12);
this.label2.TabIndex = 2;
this.label2.Text = "~";
//
// btChk
//
this.btChk.Location = new System.Drawing.Point(472, 10);
this.btChk.Dock = System.Windows.Forms.DockStyle.Top;
this.btChk.Font = new System.Drawing.Font("맑은 고딕", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btChk.Location = new System.Drawing.Point(5, 5);
this.btChk.Name = "btChk";
this.btChk.Size = new System.Drawing.Size(189, 36);
this.btChk.Size = new System.Drawing.Size(734, 82);
this.btChk.TabIndex = 5;
this.btChk.Text = "검사";
this.btChk.UseVisualStyleBackColor = true;
@@ -112,9 +102,9 @@ namespace FBS0000.Holiday
// btCorr
//
this.btCorr.Dock = System.Windows.Forms.DockStyle.Bottom;
this.btCorr.Location = new System.Drawing.Point(5, 566);
this.btCorr.Location = new System.Drawing.Point(5, 879);
this.btCorr.Name = "btCorr";
this.btCorr.Size = new System.Drawing.Size(671, 54);
this.btCorr.Size = new System.Drawing.Size(734, 54);
this.btCorr.TabIndex = 6;
this.btCorr.Text = "오류 수정";
this.btCorr.UseVisualStyleBackColor = true;
@@ -123,19 +113,20 @@ namespace FBS0000.Holiday
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(5, 548);
this.progressBar1.Location = new System.Drawing.Point(5, 861);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(671, 18);
this.progressBar1.Size = new System.Drawing.Size(734, 18);
this.progressBar1.TabIndex = 7;
//
// tbDate
//
this.tbDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.tbDate.Dock = System.Windows.Forms.DockStyle.Top;
this.tbDate.Font = new System.Drawing.Font("맑은 고딕", 48F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbDate.ForeColor = System.Drawing.Color.Lime;
this.tbDate.Location = new System.Drawing.Point(22, 56);
this.tbDate.Location = new System.Drawing.Point(5, 156);
this.tbDate.Name = "tbDate";
this.tbDate.Size = new System.Drawing.Size(639, 93);
this.tbDate.Size = new System.Drawing.Size(734, 93);
this.tbDate.TabIndex = 9;
this.tbDate.Text = "1982-11-23";
this.tbDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@@ -216,9 +207,10 @@ namespace FBS0000.Holiday
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Location = new System.Drawing.Point(22, 161);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(314, 134);
this.groupBox1.Size = new System.Drawing.Size(314, 130);
this.groupBox1.TabIndex = 14;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "입력값(업무일지/휴가신청)";
@@ -234,13 +226,46 @@ namespace FBS0000.Holiday
this.groupBox2.Controls.Add(this.textBox6);
this.groupBox2.Controls.Add(this.label11);
this.groupBox2.Controls.Add(this.label12);
this.groupBox2.Location = new System.Drawing.Point(347, 161);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Right;
this.groupBox2.Location = new System.Drawing.Point(420, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(314, 134);
this.groupBox2.Size = new System.Drawing.Size(314, 130);
this.groupBox2.TabIndex = 14;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "자동생성값(근태입력)";
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(199, 99);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(100, 21);
this.textBox7.TabIndex = 17;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(217, 80);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 12);
this.label3.TabIndex = 16;
this.label3.Text = "발생(시간)";
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(86, 98);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(100, 21);
this.textBox8.TabIndex = 15;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(104, 79);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(51, 12);
this.label10.TabIndex = 14;
this.label10.Text = "발생(일)";
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(199, 48);
@@ -282,62 +307,35 @@ namespace FBS0000.Holiday
this.label12.TabIndex = 10;
this.label12.Text = "사용(일)";
//
// textBox7
// lvNG
//
this.textBox7.Location = new System.Drawing.Point(199, 99);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(100, 21);
this.textBox7.TabIndex = 17;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(217, 80);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 12);
this.label3.TabIndex = 16;
this.label3.Text = "발생(시간)";
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(86, 98);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(100, 21);
this.textBox8.TabIndex = 15;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(104, 79);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(51, 12);
this.label10.TabIndex = 14;
this.label10.Text = "발생(일)";
//
// listView1
//
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.lvNG.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader6,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4,
this.columnHeader5});
this.listView1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.listView1.HideSelection = false;
this.listView1.Location = new System.Drawing.Point(5, 306);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(671, 242);
this.listView1.TabIndex = 15;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
this.lvNG.Dock = System.Windows.Forms.DockStyle.Fill;
this.lvNG.HideSelection = false;
this.lvNG.Location = new System.Drawing.Point(3, 17);
this.lvNG.Name = "lvNG";
this.lvNG.Size = new System.Drawing.Size(728, 278);
this.lvNG.TabIndex = 15;
this.lvNG.UseCompatibleStateImageBehavior = false;
this.lvNG.View = System.Windows.Forms.View.Details;
this.lvNG.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
//
// columnHeader1
//
this.columnHeader1.Text = "일자";
this.columnHeader1.Width = 100;
//
// columnHeader6
//
this.columnHeader6.Text = "구분";
this.columnHeader6.Width = 100;
//
// columnHeader2
//
this.columnHeader2.Text = "발생(일)";
@@ -358,27 +356,198 @@ namespace FBS0000.Holiday
this.columnHeader5.Text = "사용(시간)";
this.columnHeader5.Width = 110;
//
// columnHeader6
// panel1
//
this.columnHeader6.Text = "구분";
this.columnHeader6.Width = 100;
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(5, 389);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(734, 10);
this.panel1.TabIndex = 16;
//
// panel2
//
this.panel2.Controls.Add(this.groupBox2);
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(5, 259);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(734, 130);
this.panel2.TabIndex = 17;
//
// panel3
//
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(5, 249);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(734, 10);
this.panel3.TabIndex = 18;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.dtED);
this.groupBox3.Controls.Add(this.dtSD);
this.groupBox3.Controls.Add(this.button3);
this.groupBox3.Controls.Add(this.button2);
this.groupBox3.Controls.Add(this.button1);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox3.Location = new System.Drawing.Point(5, 97);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(734, 49);
this.groupBox3.TabIndex = 20;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "검사기간";
//
// panel4
//
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(5, 146);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(734, 10);
this.panel4.TabIndex = 21;
//
// panel5
//
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(5, 87);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(734, 10);
this.panel5.TabIndex = 22;
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
this.button1.Location = new System.Drawing.Point(631, 17);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 29);
this.button1.TabIndex = 4;
this.button1.Text = "다음달 >>";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// button2
//
this.button2.Dock = System.Windows.Forms.DockStyle.Right;
this.button2.Location = new System.Drawing.Point(531, 17);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(100, 29);
this.button2.TabIndex = 5;
this.button2.Text = "이번달";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click_1);
//
// button3
//
this.button3.Dock = System.Windows.Forms.DockStyle.Right;
this.button3.Location = new System.Drawing.Point(431, 17);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(100, 29);
this.button3.TabIndex = 6;
this.button3.Text = "<< 이전달";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// dtSD
//
this.dtSD.Location = new System.Drawing.Point(17, 20);
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(200, 21);
this.dtSD.TabIndex = 7;
//
// dtED
//
this.dtED.Location = new System.Drawing.Point(223, 20);
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(200, 21);
this.dtED.TabIndex = 8;
//
// lvOK
//
this.lvOK.BackColor = System.Drawing.Color.Silver;
this.lvOK.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader7,
this.columnHeader8,
this.columnHeader9,
this.columnHeader10,
this.columnHeader11,
this.columnHeader12});
this.lvOK.Dock = System.Windows.Forms.DockStyle.Fill;
this.lvOK.HideSelection = false;
this.lvOK.Location = new System.Drawing.Point(3, 17);
this.lvOK.Name = "lvOK";
this.lvOK.Size = new System.Drawing.Size(728, 144);
this.lvOK.TabIndex = 23;
this.lvOK.UseCompatibleStateImageBehavior = false;
this.lvOK.View = System.Windows.Forms.View.Details;
//
// columnHeader7
//
this.columnHeader7.Text = "일자";
this.columnHeader7.Width = 100;
//
// columnHeader8
//
this.columnHeader8.Text = "구분";
this.columnHeader8.Width = 100;
//
// columnHeader9
//
this.columnHeader9.Text = "발생(일)";
this.columnHeader9.Width = 110;
//
// columnHeader10
//
this.columnHeader10.Text = "발생(시간)";
this.columnHeader10.Width = 110;
//
// columnHeader11
//
this.columnHeader11.Text = "사용(일)";
this.columnHeader11.Width = 110;
//
// columnHeader12
//
this.columnHeader12.Text = "사용(시간)";
this.columnHeader12.Width = 110;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.lvOK);
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox4.Location = new System.Drawing.Point(5, 399);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(734, 164);
this.groupBox4.TabIndex = 24;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "정상";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.lvNG);
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox5.Location = new System.Drawing.Point(5, 563);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(734, 298);
this.groupBox5.TabIndex = 25;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "불량 (불일치 데이터가 있는 날짜 입니다)";
//
// fErrorChk
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(681, 625);
this.Controls.Add(this.listView1);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.ClientSize = new System.Drawing.Size(744, 938);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel3);
this.Controls.Add(this.tbDate);
this.Controls.Add(this.panel4);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.panel5);
this.Controls.Add(this.btChk);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.btCorr);
this.Controls.Add(this.btChk);
this.Controls.Add(this.dtED);
this.Controls.Add(this.label2);
this.Controls.Add(this.dtSD);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fErrorChk";
@@ -390,17 +559,16 @@ namespace FBS0000.Holiday
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.panel2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox dtSD;
private System.Windows.Forms.TextBox dtED;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btChk;
private System.Windows.Forms.Button btCorr;
private System.Windows.Forms.ProgressBar progressBar1;
@@ -424,12 +592,32 @@ namespace FBS0000.Holiday
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ListView lvNG;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.DateTimePicker dtED;
private System.Windows.Forms.DateTimePicker dtSD;
private System.Windows.Forms.ListView lvOK;
private System.Windows.Forms.ColumnHeader columnHeader7;
private System.Windows.Forms.ColumnHeader columnHeader8;
private System.Windows.Forms.ColumnHeader columnHeader9;
private System.Windows.Forms.ColumnHeader columnHeader10;
private System.Windows.Forms.ColumnHeader columnHeader11;
private System.Windows.Forms.ColumnHeader columnHeader12;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox5;
}
}

View File

@@ -16,47 +16,47 @@ namespace FBS0000.Holiday
{
InitializeComponent();
dtSD.KeyDown += dtSD_KeyDown;
dtED.KeyDown += dtSD_KeyDown;
//dtSD.KeyDown += dtSD_KeyDown;
//dtED.KeyDown += dtSD_KeyDown;
}
private void fErrorChk_Load(object sender, EventArgs e)
{
dtSD.Text = DateTime.Now.ToString("yyyy-MM") + "-01";
dtED.Text = DateTime.Now.ToShortDateString();
//기본 이번달 설정한다
button2.PerformClick();
}
void dtSD_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter) return;
var tb = sender as TextBox;
var input = tb.Text.Trim();
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
else
{
string dt = string.Empty;
if (!FCOMMON.Util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
tb.Focus();
return;
}
else
{
tb.Text = dt;
}
}
if (tb == dtSD)
{
dtED.Focus();
dtED.SelectAll();
}
else
{
// btSearch.PerformClick();
tb.SelectAll();
}
}
//void dtSD_KeyDown(object sender, KeyEventArgs e)
//{
// if (e.KeyCode != Keys.Enter) return;
// var tb = sender as TextBox;
// var input = tb.Text.Trim();
// if (input == "") tb.Text = DateTime.Now.ToShortDateString();
// else
// {
// string dt = string.Empty;
// if (!FCOMMON.Util.MakeDateString(input, out dt))
// {
// FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
// tb.SelectAll();
// tb.Focus();
// return;
// }
// else
// {
// tb.Text = dt;
// }
// }
// if (tb == dtSD)
// {
// dtED.Focus();
// dtED.SelectAll();
// }
// else
// {
// // btSearch.PerformClick();
// tb.SelectAll();
// }
//}
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
{
@@ -65,7 +65,7 @@ namespace FBS0000.Holiday
private void button1_Click(object sender, EventArgs e)
{
//검사버튼
this.listView1.CheckBoxes = true;
this.lvNG.CheckBoxes = true;
var sd = DateTime.Parse(dtSD.Text);
var ed = DateTime.Parse(dtED.Text);
var idx = 0;
@@ -79,8 +79,14 @@ namespace FBS0000.Holiday
cmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = gcode;
cmd.Parameters.Add("uid", SqlDbType.VarChar).Value = id;
listView1.Items.Clear();
listView1.FullRowSelect = true;
lvOK.Items.Clear();
lvOK.FullRowSelect = true;
lvOK.CheckBoxes = false;
lvNG.Items.Clear();
lvNG.FullRowSelect = true;
lvNG.CheckBoxes = true;
while (true)
{
var CD = sd.AddDays(idx++);
@@ -158,18 +164,26 @@ namespace FBS0000.Holiday
textBox7.Tag = val_time_dr;// db_jobreport.Sum(t => t.kisulamt);
textBox7.Text = textBox7.Tag.ToString();
var lv = this.listView1.Items.Add(pdate);
bool dataError = false;
if (textBox2.Text.Equals(textBox7.Text) == false) dataError = true;
if (textBox3.Text.Equals(textBox6.Text) == false) dataError = true;
if (textBox4.Text.Equals(textBox5.Text) == false) dataError = true;
ListViewItem lv = dataError ? this.lvNG.Items.Add(pdate) : this.lvOK.Items.Add(pdate);
lv.SubItems.Add("입력/생성");
lv.SubItems.Add($"--/{textBox8.Text}");
lv.SubItems.Add($"{textBox2.Text}/{textBox7.Text}");
lv.SubItems.Add($"{textBox3.Text}/{textBox6.Text}");
lv.SubItems.Add($"{textBox4.Text}/{textBox5.Text}");
if (textBox2.Text.Equals(textBox7.Text) == false) lv.ForeColor = Color.Tomato;
if (textBox3.Text.Equals(textBox6.Text) == false) lv.ForeColor = Color.Tomato;
if (textBox4.Text.Equals(textBox5.Text) == false) lv.ForeColor = Color.Tomato;
if (lv.ForeColor == Color.Tomato) lv.Checked = true;
if (dataError)
{
lv.ForeColor = Color.Tomato;
lv.Checked = true;
}
else lv.ForeColor = Color.Black;
//if (val_jobreport > 0) break;
}
@@ -181,7 +195,7 @@ namespace FBS0000.Holiday
{
//오류수정버튼
if (listView1.CheckedItems.Count < 1)
if (lvNG.CheckedItems.Count < 1)
{
FCOMMON.Util.MsgE("정정할 자료가 선택되지 않았습니다");
return;
@@ -206,8 +220,8 @@ namespace FBS0000.Holiday
cmd.Parameters.Add("pdate", SqlDbType.VarChar).Value = "1982-11-23";
listView1.FullRowSelect = true;
foreach (ListViewItem lv in listView1.CheckedItems)
lvNG.FullRowSelect = true;
foreach (ListViewItem lv in lvNG.CheckedItems)
{
var CD = DateTime.Parse(lv.SubItems[0].Text);
@@ -256,7 +270,24 @@ namespace FBS0000.Holiday
}
private void button2_Click_1(object sender, EventArgs e)
{
dtSD.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM") + "-01");
dtED.Value = dtSD.Value.AddMonths(1).AddDays(-1);
}
private void button3_Click(object sender, EventArgs e)
{
var = DateTime.Parse(dtSD.Value.ToString("yyyy-MM") + "-01");
dtSD.Value = .AddMonths(-1);
dtED.Value = dtSD.Value.AddMonths(1).AddDays(-1);
}
private void button1_Click_1(object sender, EventArgs e)
{
var = DateTime.Parse(dtSD.Value.ToString("yyyy-MM") + "-01");
dtSD.Value = .AddMonths(1);
dtED.Value = dtSD.Value.AddMonths(1).AddDays(-1);
}
}
}

View File

@@ -95,11 +95,11 @@ namespace FBS0000
btDel.Enabled = false;
btAdd.Enabled = false;
this.cmbUser.Text = string.Format("{1}({0})", FCOMMON.info.Login.no, FCOMMON.info.Login.nameK);
//this.cmbUser.Enabled = false; //사용자를 고칠수 없게 한다.
}
this.cmbUser.Text = string.Format("{1}({0})", FCOMMON.info.Login.no, FCOMMON.info.Login.nameK);
RefreshData();
}
@@ -197,6 +197,19 @@ namespace FBS0000
var janh = yjanh + dr.DrTime - dr.CrTime;
this.fpSpread1.ActiveSheet.Cells[i, col_yjand].Value = yjand;
this.fpSpread1.ActiveSheet.Cells[i, col_yjanh].Value = yjanh;
if (dr.extidx > 0 && string.IsNullOrEmpty(dr.extcate) == false)
{
if (dr.cate == "대체")
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Tomato;
else if (dr.cate == "년차")
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
else
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black;
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.LightGray;
this.fpSpread1.ActiveSheet.Rows[i].Locked = true;
}
//this.fpSpread1.ActiveSheet.Cells[i, col_src].Value = dr.ext;
//this.fpSpread1.ActiveSheet.Cells[i, col_janh].Value = janh;
}
@@ -422,6 +435,25 @@ namespace FBS0000
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.HolydayRow;
if (string.IsNullOrEmpty(dr.extcate) == false && dr.extidx > 0)
{
if (dr.extcate == "휴가") FCOMMON.Util.MsgE("이 자료는 휴가신청/승인된 자료 입니다.\n" +
"변경 및 삭제를 하려면 [휴가신청] 화면에서 처리하세요");
else if (dr.extcate == "HO")
FCOMMON.Util.MsgE("이 자료는 OT 신청/승인 된 자료입니다\n" +
"변경 및 삭제를 하려면 [OT승인] 화면에서 처리하세요");
else
FCOMMON.Util.MsgE("이 자료는 외부에서 자동생성된 자료 입니다\n" +
"본래의 데이터를 삭제 하세요\n" +
$"소스:{dr.extcate}:{dr.extidx}");
return;
}
this.bs.RemoveCurrent();
}
@@ -564,6 +596,27 @@ namespace FBS0000
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.HolydayRow;
if (string.IsNullOrEmpty(dr.extcate) == false && dr.extidx > 0)
{
if (dr.extcate == "휴가") FCOMMON.Util.MsgE("이 자료는 휴가신청/승인된 자료 입니다.\n" +
"변경 및 삭제를 하려면 [휴가신청] 화면에서 처리하세요");
else if (dr.extcate == "HO")
FCOMMON.Util.MsgE("이 자료는 OT 신청/승인 된 자료입니다\n" +
"변경 및 삭제를 하려면 [OT승인] 화면에서 처리하세요");
else
FCOMMON.Util.MsgE("이 자료는 외부에서 자동생성된 자료 입니다\n" +
"본래의 데이터를 삭제 하세요\n" +
$"소스:{dr.extcate}:{dr.extidx}");
return;
}
var f = new fHolyday_Add(dr);
if (f.ShowDialog() == DialogResult.OK)
{