....
This commit is contained in:
435
SubProject/FBS0000/Holiday/fErrorChk.Designer.cs
generated
Normal file
435
SubProject/FBS0000/Holiday/fErrorChk.Designer.cs
generated
Normal file
@@ -0,0 +1,435 @@
|
||||
|
||||
namespace FBS0000.Holiday
|
||||
{
|
||||
partial class fErrorChk
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </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();
|
||||
this.tbDate = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
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.columnHeader1 = ((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.groupBox1.SuspendLayout();
|
||||
this.groupBox2.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.Name = "btChk";
|
||||
this.btChk.Size = new System.Drawing.Size(189, 36);
|
||||
this.btChk.TabIndex = 5;
|
||||
this.btChk.Text = "검사";
|
||||
this.btChk.UseVisualStyleBackColor = true;
|
||||
this.btChk.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// btCorr
|
||||
//
|
||||
this.btCorr.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btCorr.Location = new System.Drawing.Point(5, 566);
|
||||
this.btCorr.Name = "btCorr";
|
||||
this.btCorr.Size = new System.Drawing.Size(671, 54);
|
||||
this.btCorr.TabIndex = 6;
|
||||
this.btCorr.Text = "오류 수정";
|
||||
this.btCorr.UseVisualStyleBackColor = true;
|
||||
this.btCorr.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.progressBar1.Location = new System.Drawing.Point(5, 548);
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(671, 18);
|
||||
this.progressBar1.TabIndex = 7;
|
||||
//
|
||||
// tbDate
|
||||
//
|
||||
this.tbDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
|
||||
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.Name = "tbDate";
|
||||
this.tbDate.Size = new System.Drawing.Size(639, 93);
|
||||
this.tbDate.TabIndex = 9;
|
||||
this.tbDate.Text = "1982-11-23";
|
||||
this.tbDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(198, 98);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox2.TabIndex = 9;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(216, 79);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(63, 12);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "발생(시간)";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(15, 101);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(53, 12);
|
||||
this.label5.TabIndex = 8;
|
||||
this.label5.Text = "업무일지";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(85, 47);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox3.TabIndex = 11;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(103, 28);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(51, 12);
|
||||
this.label6.TabIndex = 10;
|
||||
this.label6.Text = "사용(일)";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(15, 51);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(53, 12);
|
||||
this.label7.TabIndex = 8;
|
||||
this.label7.Text = "휴가신청";
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(198, 48);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox4.TabIndex = 13;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(216, 29);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(63, 12);
|
||||
this.label8.TabIndex = 12;
|
||||
this.label8.Text = "사용(시간)";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.textBox4);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.label8);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.textBox3);
|
||||
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.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(314, 134);
|
||||
this.groupBox1.TabIndex = 14;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "입력값(업무일지/휴가신청)";
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.textBox7);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Controls.Add(this.textBox8);
|
||||
this.groupBox2.Controls.Add(this.label10);
|
||||
this.groupBox2.Controls.Add(this.textBox5);
|
||||
this.groupBox2.Controls.Add(this.label9);
|
||||
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.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(314, 134);
|
||||
this.groupBox2.TabIndex = 14;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "자동생성값(근태입력)";
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(199, 48);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox5.TabIndex = 13;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(217, 29);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(63, 12);
|
||||
this.label9.TabIndex = 12;
|
||||
this.label9.Text = "사용(시간)";
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(86, 47);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox6.TabIndex = 11;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(19, 51);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(53, 12);
|
||||
this.label11.TabIndex = 8;
|
||||
this.label11.Text = "근태입력";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(104, 28);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(51, 12);
|
||||
this.label12.TabIndex = 10;
|
||||
this.label12.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 = "발생(일)";
|
||||
//
|
||||
// listView1
|
||||
//
|
||||
this.listView1.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);
|
||||
//
|
||||
// columnHeader1
|
||||
//
|
||||
this.columnHeader1.Text = "일자";
|
||||
this.columnHeader1.Width = 100;
|
||||
//
|
||||
// columnHeader2
|
||||
//
|
||||
this.columnHeader2.Text = "발생(일)";
|
||||
this.columnHeader2.Width = 110;
|
||||
//
|
||||
// columnHeader3
|
||||
//
|
||||
this.columnHeader3.Text = "발생(시간)";
|
||||
this.columnHeader3.Width = 110;
|
||||
//
|
||||
// columnHeader4
|
||||
//
|
||||
this.columnHeader4.Text = "사용(일)";
|
||||
this.columnHeader4.Width = 110;
|
||||
//
|
||||
// columnHeader5
|
||||
//
|
||||
this.columnHeader5.Text = "사용(시간)";
|
||||
this.columnHeader5.Width = 110;
|
||||
//
|
||||
// columnHeader6
|
||||
//
|
||||
this.columnHeader6.Text = "구분";
|
||||
this.columnHeader6.Width = 100;
|
||||
//
|
||||
// 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.Controls.Add(this.tbDate);
|
||||
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";
|
||||
this.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "근태 자료 오류 확인";
|
||||
this.Load += new System.EventHandler(this.fErrorChk_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
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;
|
||||
private System.Windows.Forms.TextBox tbDate;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.TextBox textBox7;
|
||||
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.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;
|
||||
}
|
||||
}
|
||||
262
SubProject/FBS0000/Holiday/fErrorChk.cs
Normal file
262
SubProject/FBS0000/Holiday/fErrorChk.cs
Normal file
@@ -0,0 +1,262 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000.Holiday
|
||||
{
|
||||
public partial class fErrorChk : Form
|
||||
{
|
||||
public fErrorChk()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
//검사버튼
|
||||
this.listView1.CheckBoxes = true;
|
||||
var sd = DateTime.Parse(dtSD.Text);
|
||||
var ed = DateTime.Parse(dtED.Text);
|
||||
var idx = 0;
|
||||
|
||||
var gcode = FCOMMON.info.Login.gcode;
|
||||
var id = FCOMMON.info.Login.no;
|
||||
|
||||
var cn = FCOMMON.DBM.getCn();
|
||||
cn.Open();
|
||||
var cmd = new System.Data.SqlClient.SqlCommand("", cn);
|
||||
cmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = gcode;
|
||||
cmd.Parameters.Add("uid", SqlDbType.VarChar).Value = id;
|
||||
|
||||
listView1.Items.Clear();
|
||||
listView1.FullRowSelect = true;
|
||||
while (true)
|
||||
{
|
||||
var CD = sd.AddDays(idx++);
|
||||
if (CD > ed) break;
|
||||
var pdate = CD.ToShortDateString();
|
||||
tbDate.Text = pdate;
|
||||
Application.DoEvents();
|
||||
|
||||
//이날짜의 업무일지 발생데이터를 확인
|
||||
cmd.CommandText = "select sum(isnull(ot2,0)) from jobreport where gcode = @gcode and pdate='{0}' and isnull(ot,0) >0 and isnull(ot2,0) > 0";
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
|
||||
|
||||
var obj_jobreport = cmd.ExecuteScalar().ToString();
|
||||
double val_jobreport = 0.0;
|
||||
if (string.IsNullOrEmpty(obj_jobreport) == false) val_jobreport = double.Parse(obj_jobreport);
|
||||
textBox2.Tag = val_jobreport;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox2.Text = textBox2.Tag.ToString();
|
||||
|
||||
|
||||
|
||||
|
||||
//휴가신청확인
|
||||
cmd.CommandText = "select sum(HolyDays),sum(HolyTimes) from EETGW_HolydayRequest where gcode = @gcode and sdate = '{0}' and isnull(conf,0) = 1";
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
var dar = cmd.ExecuteReader();
|
||||
double val_day = 0;
|
||||
double val_time = 0;
|
||||
while (dar.Read())
|
||||
{
|
||||
var str_day = dar[0].ToString();
|
||||
var str_time = dar[1].ToString();
|
||||
if (string.IsNullOrEmpty(str_day) == false) val_day = double.Parse(str_day);
|
||||
if (string.IsNullOrEmpty(str_time) == false) val_time = double.Parse(str_time);
|
||||
}
|
||||
textBox3.Tag = val_day;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox3.Text = textBox3.Tag.ToString();
|
||||
textBox4.Tag = val_time;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox4.Text = textBox4.Tag.ToString();
|
||||
dar.Close();
|
||||
|
||||
|
||||
//근태입력자료확인
|
||||
cmd.CommandText = "select sum(term) ,sum(crtime),sum(termdr),sum(drtime)" +
|
||||
" from Holyday " +
|
||||
" where gcode = @gcode and sdate = '{0}' and isnull(extidx,-1) <> -1";
|
||||
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
dar = cmd.ExecuteReader();
|
||||
val_day = 0;
|
||||
val_time = 0;
|
||||
double val_day_dr = 0;
|
||||
double val_time_dr = 0;
|
||||
while (dar.Read())
|
||||
{
|
||||
var str_day_cr = dar[0].ToString();
|
||||
var str_time_cr = dar[1].ToString();
|
||||
var str_day_dr = dar[2].ToString();
|
||||
var str_time_dr = dar[3].ToString();
|
||||
|
||||
if (string.IsNullOrEmpty(str_day_cr) == false) val_day = double.Parse(str_day_cr);
|
||||
if (string.IsNullOrEmpty(str_time_cr) == false) val_time = double.Parse(str_time_cr);
|
||||
|
||||
if (string.IsNullOrEmpty(str_day_dr) == false) val_day_dr = double.Parse(str_day_dr);
|
||||
if (string.IsNullOrEmpty(str_time_dr) == false) val_time_dr = double.Parse(str_time_dr);
|
||||
}
|
||||
dar.Close();
|
||||
textBox6.Tag = val_day;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox6.Text = textBox6.Tag.ToString();
|
||||
textBox5.Tag = val_time;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox5.Text = textBox5.Tag.ToString();
|
||||
|
||||
textBox8.Tag = val_day_dr;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox8.Text = textBox8.Tag.ToString();
|
||||
textBox7.Tag = val_time_dr;// db_jobreport.Sum(t => t.kisulamt);
|
||||
textBox7.Text = textBox7.Tag.ToString();
|
||||
|
||||
var lv = this.listView1.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 (val_jobreport > 0) break;
|
||||
}
|
||||
cn.Dispose();
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
//오류수정버튼
|
||||
|
||||
if (listView1.CheckedItems.Count < 1)
|
||||
{
|
||||
FCOMMON.Util.MsgE("정정할 자료가 선택되지 않았습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
if (FCOMMON.Util.MsgQ("재 생성 할까요?") != DialogResult.Yes) return;
|
||||
|
||||
|
||||
//검사버튼
|
||||
var sd = DateTime.Parse(dtSD.Text);
|
||||
var ed = DateTime.Parse(dtED.Text);
|
||||
// var idx = 0;
|
||||
|
||||
var gcode = FCOMMON.info.Login.gcode;
|
||||
var id = FCOMMON.info.Login.no;
|
||||
|
||||
var cn = FCOMMON.DBM.getCn();
|
||||
cn.Open();
|
||||
var cmd = new System.Data.SqlClient.SqlCommand("", cn);
|
||||
cmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = gcode;
|
||||
cmd.Parameters.Add("uid", SqlDbType.VarChar).Value = id;
|
||||
cmd.Parameters.Add("pdate", SqlDbType.VarChar).Value = "1982-11-23";
|
||||
|
||||
|
||||
listView1.FullRowSelect = true;
|
||||
foreach (ListViewItem lv in listView1.CheckedItems)
|
||||
{
|
||||
var CD = DateTime.Parse(lv.SubItems[0].Text);
|
||||
|
||||
//if (CD > ed) break;
|
||||
var pdate = CD.ToShortDateString();
|
||||
cmd.Parameters["pdate"].Value = pdate;
|
||||
tbDate.Text = pdate;
|
||||
Application.DoEvents();
|
||||
|
||||
|
||||
if (FCOMMON.Util.MsgQ(pdate + "를 재생성 할까요?") != DialogResult.Yes) break;
|
||||
|
||||
//근태-업무일지자료삭제
|
||||
cmd.CommandText = "delete from Holyday where gcode = @gcode and extcate = 'HO' and sdate=@pdate and isnull(extidx,-1) <> -1";
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
var cnt1 = cmd.ExecuteNonQuery();
|
||||
Console.WriteLine($"{cnt1}건의 근태자료가 삭제 되었습니다");
|
||||
|
||||
//근태-업무일지자료생성
|
||||
cmd.CommandText = "insert into Holyday(gcode, cate, sdate, edate, term, crtime, termdr, DrTime, contents, [uid], wdate, wuid, extcate, extidx) ";
|
||||
cmd.CommandText += "select gcode,'대체',pdate,pdate,0,0,0,isnull(ot2,0),projectname,uid,GETDATE(),@uid + '-ERR','HO',idx from jobreport where gcode = @gcode and pdate = @pdate and isnull(ot2,0) > 0 and isnull(ot,0) > 0";
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
var cnt2 = cmd.ExecuteNonQuery();
|
||||
Console.WriteLine($"{cnt2}건의 근태자료가 생성 되었습니다");
|
||||
|
||||
|
||||
|
||||
//근태-휴가신청자료삭제
|
||||
cmd.CommandText = "delete from Holyday where gcode = @gcode and extcate = '휴가' and sdate=@pdate and isnull(extidx,-1) <> -1";
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
cnt1 = cmd.ExecuteNonQuery();
|
||||
Console.WriteLine($"{cnt1}건의 근태자료가 삭제 되었습니다");
|
||||
|
||||
//근태-휴가신청자료생성(승인완료된자료대상)
|
||||
cmd.CommandText = "insert into Holyday(gcode, cate, sdate, edate, term, crtime, termdr, DrTime, contents, [uid], wdate, wuid, extcate, extidx) ";
|
||||
cmd.CommandText += "select gcode,cate,sdate,edate,isnull(holydays,0),isnull(holytimes,0),0,0,HolyReason,uid,GETDATE(),@uid + '-ERR','휴가',idx " +
|
||||
" from EETGW_HolydayRequest " +
|
||||
" where gcode = @gcode and sdate = @pdate and isnull(conf,0) = 1";
|
||||
|
||||
cmd.CommandText = string.Format(cmd.CommandText, pdate);
|
||||
cnt2 = cmd.ExecuteNonQuery();
|
||||
Console.WriteLine($"{cnt2}건의 근태자료가 생성 되었습니다");
|
||||
|
||||
}
|
||||
cn.Dispose();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
120
SubProject/FBS0000/Holiday/fErrorChk.resx
Normal file
120
SubProject/FBS0000/Holiday/fErrorChk.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
100
SubProject/FBS0000/Holiday/fHolyday.Designer.cs
generated
100
SubProject/FBS0000/Holiday/fHolyday.Designer.cs
generated
@@ -45,6 +45,8 @@
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
|
||||
@@ -69,6 +71,7 @@
|
||||
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton7 = new System.Windows.Forms.ToolStripButton();
|
||||
this.dsMSSQL = new FBS0000.dsMSSQL();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.lbStt = new System.Windows.Forms.ToolStripLabel();
|
||||
@@ -89,20 +92,19 @@
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.복사ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.현재사원원장보기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
|
||||
this.taUser = new FBS0000.dsMSSQLTableAdapters.EETGW_WorkTableUserTableAdapter();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.toolStripButton7 = new System.Windows.Forms.ToolStripButton();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
this.bn.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
|
||||
this.cmO.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// bn
|
||||
@@ -331,6 +333,16 @@
|
||||
this.toolStripButton3.Text = "붙여넣기";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click_1);
|
||||
//
|
||||
// toolStripButton7
|
||||
//
|
||||
this.toolStripButton7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
|
||||
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton7.Name = "toolStripButton7";
|
||||
this.toolStripButton7.Size = new System.Drawing.Size(79, 24);
|
||||
this.toolStripButton7.Text = "원장출력";
|
||||
this.toolStripButton7.Click += new System.EventHandler(this.toolStripButton7_Click);
|
||||
//
|
||||
// dsMSSQL
|
||||
//
|
||||
this.dsMSSQL.DataSetName = "dsMSSQL";
|
||||
@@ -353,6 +365,7 @@
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1465, 31);
|
||||
this.toolStrip1.TabIndex = 3;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStrip1_ItemClicked);
|
||||
//
|
||||
// lbStt
|
||||
//
|
||||
@@ -439,7 +452,7 @@
|
||||
this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick);
|
||||
this.fpSpread1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.fpSpread1_KeyDown);
|
||||
this.fpSpread1.SetViewportLeftColumn(0, 0, 1);
|
||||
this.fpSpread1.SetActiveViewport(0, -1, -1);
|
||||
this.fpSpread1.SetActiveViewport(0, 0, -1);
|
||||
//
|
||||
// cmO
|
||||
//
|
||||
@@ -515,13 +528,36 @@
|
||||
this.현재사원원장보기ToolStripMenuItem.Text = "현재 사원 원장 보기";
|
||||
this.현재사원원장보기ToolStripMenuItem.Click += new System.EventHandler(this.현재사원원장보기ToolStripMenuItem_Click);
|
||||
//
|
||||
// bs
|
||||
//
|
||||
this.bs.DataMember = "Holyday";
|
||||
this.bs.DataSource = this.dsMSSQL;
|
||||
this.bs.Sort = "";
|
||||
//
|
||||
// ta
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// taUser
|
||||
//
|
||||
this.taUser.ClearBeforeFill = true;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.textBox1.Location = new System.Drawing.Point(0, 801);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(1465, 21);
|
||||
this.textBox1.TabIndex = 5;
|
||||
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
|
||||
//
|
||||
// fpSpread1_Sheet1
|
||||
//
|
||||
this.fpSpread1_Sheet1.Reset();
|
||||
this.fpSpread1_Sheet1.SheetName = "WorkTable";
|
||||
// Formulas and custom names must be loaded with R1C1 reference style
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
|
||||
this.fpSpread1_Sheet1.ColumnCount = 15;
|
||||
this.fpSpread1_Sheet1.ColumnCount = 17;
|
||||
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
|
||||
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
|
||||
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
|
||||
@@ -540,6 +576,8 @@
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "잔량(H)";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "전일(일)";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "전일(H)";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "소스";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "등록";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 31F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "cate";
|
||||
@@ -549,7 +587,7 @@
|
||||
dateTimeCellType1.Calendar = new System.Globalization.GregorianCalendar(System.Globalization.GregorianCalendarTypes.Localized);
|
||||
dateTimeCellType1.CalendarSurroundingDaysColor = System.Drawing.SystemColors.GrayText;
|
||||
dateTimeCellType1.MaximumTime = System.TimeSpan.Parse("23:59:59.9999999");
|
||||
dateTimeCellType1.TimeDefault = new System.DateTime(2022, 2, 2, 13, 41, 42, 241);
|
||||
dateTimeCellType1.TimeDefault = new System.DateTime(2022, 2, 3, 1, 27, 37, 403);
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = dateTimeCellType1;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "sdate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).Label = "시작일";
|
||||
@@ -666,6 +704,19 @@
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).Label = "전일(H)";
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).Tag = "yjanh";
|
||||
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType7;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "extcate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).Label = "소스";
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).Tag = "src";
|
||||
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType8;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "wuid";
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).Label = "등록";
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(16).Width = 108F;
|
||||
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
|
||||
this.fpSpread1_Sheet1.DataSource = this.bs;
|
||||
this.fpSpread1_Sheet1.FrozenColumnCount = 1;
|
||||
@@ -675,39 +726,6 @@
|
||||
this.fpSpread1_Sheet1.ShowRowSelector = true;
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
|
||||
//
|
||||
// bs
|
||||
//
|
||||
this.bs.DataMember = "Holyday";
|
||||
this.bs.DataSource = this.dsMSSQL;
|
||||
this.bs.Sort = "";
|
||||
//
|
||||
// ta
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// taUser
|
||||
//
|
||||
this.taUser.ClearBeforeFill = true;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.textBox1.Location = new System.Drawing.Point(0, 801);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(1465, 21);
|
||||
this.textBox1.TabIndex = 5;
|
||||
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
|
||||
//
|
||||
// toolStripButton7
|
||||
//
|
||||
this.toolStripButton7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
|
||||
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton7.Name = "toolStripButton7";
|
||||
this.toolStripButton7.Size = new System.Drawing.Size(79, 24);
|
||||
this.toolStripButton7.Text = "원장출력";
|
||||
this.toolStripButton7.Click += new System.EventHandler(this.toolStripButton7_Click);
|
||||
//
|
||||
// fHolyday
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -729,8 +747,8 @@
|
||||
this.toolStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
|
||||
this.cmO.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -785,8 +803,8 @@
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 복사ToolStripMenuItem;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton7;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,7 @@ namespace FBS0000
|
||||
var col_yjand = this.fpSpread1.ActiveSheet.Columns["yjand"].Index;
|
||||
var col_janh = this.fpSpread1.ActiveSheet.Columns["janh"].Index;
|
||||
var col_yjanh = this.fpSpread1.ActiveSheet.Columns["yjanh"].Index;
|
||||
var col_src = this.fpSpread1.ActiveSheet.Columns["src"].Index;
|
||||
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
|
||||
{
|
||||
var drindex = this.fpSpread1.ActiveSheet.GetModelRowFromViewRow(i);
|
||||
@@ -196,7 +197,7 @@ 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;
|
||||
//this.fpSpread1.ActiveSheet.Cells[i, col_jand].Value = jand;
|
||||
//this.fpSpread1.ActiveSheet.Cells[i, col_src].Value = dr.ext;
|
||||
//this.fpSpread1.ActiveSheet.Cells[i, col_janh].Value = janh;
|
||||
}
|
||||
|
||||
@@ -637,5 +638,10 @@ namespace FBS0000
|
||||
var f = new fHolyDayData(tbED.Text, seluid != "%" ? cmbUser.Text : string.Empty );
|
||||
f.Show();
|
||||
}
|
||||
|
||||
private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,35 +214,35 @@
|
||||
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ6SURBVDhPjZNdSFNhHMa7kK7rqquopc4uIogougsKQlGi
|
||||
Dwoi+hibk66iJmYZjewiqItAolKH2JZkacqcuo+Y22wf+HGifWBrHnVLXXMuhe2cdqYbT+85y2PDXfjC
|
||||
j8N74P+8v/Occ3bwi6KoytHnCow0VsEiOwhy6/g22c8PH3a5XMy4xwnK44DpRgWy2ey2EELUavVOvV5/
|
||||
0/y0Dq62OpiuVyCdThfAsiwYhhFJJpNYX1/PBxQa2GG8Kt0SsBGyQSqVwtraWqGB8UkdnK1KGK9IwXGc
|
||||
wIOuCBp1EdwjNGjDaOgMo57AW4gBooE7bzB0WYpMJiPAD+vscWgJb21xdI7EcadjTgjgrQoMhpqV+PKq
|
||||
FoOXyoV0nv9PVZHBuxoat9tpoYNQKJQrajBwoVwoiA/guDQcvgh63SF02iJ471zEMDWP1d9LWFlZYUjA
|
||||
0U0DdS1GXyowcL7s3zAHrXUag9QSpn+xmEtwGJtJwvRtGebxWSQSiSIduO3Qny0VAvgOPrqjmFpIYTz8
|
||||
B+5ZFi6CP8qhezQMr9eLkpKSE6KB4aECjhY5+qtLxRI7rGHQcQ7uGQZOmoE1mAL1k8M7xwJisdhWg0li
|
||||
0Fd1QCyxmzzz1CILRyg/zDM5z6Ft+MfWL9FwXw7bCxn6zmwG2L1RjNFJfCVDnnAaE+R0gzeFVt0A5ilj
|
||||
cYPe0xLkcjnhTSyvsvB8j6OHdPHBFYXGMofXumH4TRpMtCnRULOvSTBQqVSSrupD6L92DD2nJKBpGsFg
|
||||
EIFAAD6fTyjM7/cLV8enNxhrv4VZcwv6myvTxCK/ZGW7Tj46suexXLpbQbbFfl2R+pq9TZ/VFznLs3P4
|
||||
CwfIyAm42h5cAAAAAElFTkSuQmCC
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ6SURBVDhPjZNbSFNxHMd7kJ7rqaeopc4eIogoegsKQlGi
|
||||
CwURXcam0lPUxCylkT0E9RBIVE6RtSVZmjJvm4bu0i54OdE2cUuPc0tdc64J2zntuAvf/ucsjw334B8+
|
||||
HP4Hft//53zPObv4RVFUufWFAuMNFRiVHQa5dXKHHOSHj9rtdmbSaQPltMB4qwyZTGZHCCEqlWq3Xq+/
|
||||
PfKsFnZ1LYw3y5BMJvNgWRYMw4jE43Gk0+lcQL6BGYbr0m0BmyGbJBIJpFKpfAPD01rYWmtguCYFx3EC
|
||||
jzqDaNAF8YBQrw2gXhNAHYG3EANEA0fOYOiqFBsbGwL8sM4cgZbwzhSBZjyCex2LQgBvlWcw1FyDr6+r
|
||||
MXilVEjn+f9UJRm8307jbhstdOD1erMFDfovlQoF8QEcl4TFHUSPYw4aUxAfbCsYppaw/nsVsViMIQHH
|
||||
twxU1bC+UqD/Ysm/YQ7asXkMUquY/8ViMcphYiEO4/c1jEz6EY1GC3TgMEN/vlgI4Dv45AhhdjmBycAf
|
||||
OPws7ARPiEOXNQCXy4WioqJTosFAkwKWFjn6KovFEjvGAqAjHBwLDGw0gzFfAtRPDu8tywiHw9sNpolB
|
||||
b8UhscQu8syzKywsc7lhnuklDurhH9u/xIGHcpheytB7bivA7Aphgo7jGxlyBpKYIqcPuBJo1fVjiTIU
|
||||
Nug5K0E2mxXexNo6C6c3gm7SxUd7CO2ji3ijG4bH2I4pdQ3qqw40CgZKpVLSWXkEfTdOoPuMBDRNw+fz
|
||||
YWZmBm63WyjM4/EIV8vnt5houwP/SAv6msuTxCK3ZCV7Tj8+tu+JXLpXQbaFfl2Ruqr9jV9Ul7nR5xfw
|
||||
F/LpyADMWHdSAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ7SURBVDhPjZNdSFNhHMa7kK7rqquopc4uIogougsKQlGi
|
||||
Dwoi+hCno6uoybKURnYR1EUgUTmHmEuyNGV+bNPQ7ax94MeJtoltepxb6tK5JmzntDN1PL3nLI+N7cIX
|
||||
fhzeA//n/Z3nnLNLWDRNl9peKDBaV4bhysMgt07ukIPC8FGHw8GOu+ygXRTMt0qwubm5I8QQjUaz22Aw
|
||||
3B56poRDq4T5ZgmSyWQWHMeBZVmJeDyOjY2NTEC2gRWm6/KcgK2QLRKJBNbX17MNTE+VsDfXwHRNDp7n
|
||||
RR51hFCnD+EBQd0ehLotiFqCYCEFSAbOjMHgVTlSqZSIMKy3RtBOeGeJoG00gnut82KAYJVlMNhYg6+v
|
||||
qzFwpVhMF/j/VBUZvK9jcLeFETvw+/3pvAZ9l4rFgoQAnk+C8oTQ7ZxBmyWED/YlGOkFrP1eQSwWY0nA
|
||||
8W0DTTVsrxTou1j0b5hH+8gsBugVzP7iMB/lMTYXh/n7KobGA4hGo3k6cFphOF8oBggdfHKGMb2YwHjw
|
||||
D5wBDg6CN8yj0xaE2+1GQUHBKcmgv0EBqqkKveWFUomtI0EwER7OORZ2hsWILwH6J4/31CKWl5dzDSaJ
|
||||
QU/ZIanETvLM00scqJnMsMDkAg+t0Z/7JfY/rILlZSV6zm0HWN1hjDFxfCNDrmASE+T0fncCzfo+LNCm
|
||||
/AbdZ2VIp9Pim1hd4+D6EUEX6eKjIwzd8Dze6I3wmnWY0NZAXXGgXjRQqVSyjvIj6L1xAl1nZGAYBj6f
|
||||
D1NTU/B4PGJhXq9XvFKf32Ks5Q4CQ03obSxNEovMqizac/rxsX1PquR7FWSb79eVqK3YX/9Fc5kffn4B
|
||||
fwEA2MgGIGjT1AAAAABJRU5ErkJggg==
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ6SURBVDhPjZNdSFNhHMa7GF3XVVdRps4uIogougsKQlGi
|
||||
Dwoi+hDnpKuoiVlGI7sI6iKQqJxDzCVZmjKn7iPmNtsHTk+0D9bSo9tSl86lsJ3TzjbH03vO8thwF77w
|
||||
4/Ae+D/v7zznnB38oiiqcvy5DGPNVTDVHgS5dXyb7OeHDzscDsbtsoNy2WC4UYH19fVtIYQolcqdWq32
|
||||
pvFpAxyqBhiuVyCVShXAsiwYhhFJJBLIZrP5gEIDK/RXpVsCNkI2SCaTyGQyhQb6Jw2wt8uhvyIFx3EC
|
||||
D3oiaNZEcI/Q1B1GU1cYjQTeQgwQDZx5g5HLUqTTaQF+WGONoZvw1hJD11gMdzpDQgBvVWAw0irHl1f1
|
||||
GL5ULqTz/H+qggzeVdO43UELHQQCgVxRg6EL5UJBfADHpWDzRtDvnEaXJYL39kWMUvNY+72M1dVVhgQc
|
||||
3TRQ1mP8pQxD58v+DXPoNs9gmFrGzC8WoTiHidkEDN9WYHTPIR6PF+nAaYX2bKkQwHfw0RlFYCEJd/gP
|
||||
nHMsHARflEPveBgejwcSieSEaKB7KIOtrQ6D1aViiZ3mMOgYB+csAzvNwBxMgvrJ4Z1tAUtLS1sNpojB
|
||||
QNUBscRe8syBRRa26fwwz9Q8B9Xoj61fou5+HSwvajFwZjPA6oligk7gKxlyhVOYJKfrPEm0a4YwT+mL
|
||||
G/SfLkEulxPexMoaC9f3GPpIFx8cUahNIbzWjMJnUGNSJUdTzb4WwUChUJT0VB/C4LVj6DtVApqmEQwG
|
||||
4ff74fV6hcJ8Pp9wtX16g4mOW5gztmGwtTJFLPKrtmzXyUdH9jyuk+6WkW2xX1eksWZvy2flRc707Bz+
|
||||
Auv5x/1fRd3rAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
@@ -297,7 +297,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="cmO.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>659, 17</value>
|
||||
<value>507, 17</value>
|
||||
</metadata>
|
||||
<data name="toolStripMenuItem3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -339,7 +339,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>737, 17</value>
|
||||
<value>585, 17</value>
|
||||
</metadata>
|
||||
<data name="dateTimeCellType1.Calendar" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
@@ -348,7 +348,7 @@
|
||||
cnJlbnRFcmFWYWx1ZRVDYWxlbmRhcittX2lzUmVhZE9ubHkYQ2FsZW5kYXIrdHdvRGlnaXRZZWFyTWF4
|
||||
AwAAAAAAK1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMICAgBCAT+////
|
||||
K1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMBAAAAB3ZhbHVlX18ACAEA
|
||||
AAD///////////////8A/////ws=
|
||||
AAD/////AQgAAP////8AAQgAAAs=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
|
||||
Reference in New Issue
Block a user