간트차트 변경

This commit is contained in:
chi
2022-02-01 15:36:13 +09:00
parent 4a43b30973
commit f2114194d3
15 changed files with 939 additions and 380 deletions

View File

@@ -44,7 +44,6 @@ namespace FPJ0000.OtConfirm
this.radTime = new System.Windows.Forms.RadioButton();
this.tbTimes = new System.Windows.Forms.TextBox();
this.tbDays = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.tbBackup = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
@@ -62,10 +61,15 @@ namespace FPJ0000.OtConfirm
this.tbResponse = new System.Windows.Forms.RichTextBox();
this.button1 = new System.Windows.Forms.Button();
this.ta = new FPJ0000.DSKuntaeTableAdapters.EETGW_HolydayRequestTableAdapter();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dSKuntae)).BeginInit();
this.grpUser.SuspendLayout();
this.grpAdmin.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label1
@@ -80,11 +84,11 @@ namespace FPJ0000.OtConfirm
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(38, 130);
this.label2.Location = new System.Drawing.Point(526, 84);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(93, 27);
this.label2.Size = new System.Drawing.Size(33, 27);
this.label2.TabIndex = 4;
this.label2.Text = "종료일";
this.label2.Text = "~";
//
// tbCate
//
@@ -93,9 +97,9 @@ namespace FPJ0000.OtConfirm
"년차",
"하기",
"대체"});
this.tbCate.Location = new System.Drawing.Point(143, 173);
this.tbCate.Location = new System.Drawing.Point(143, 123);
this.tbCate.Name = "tbCate";
this.tbCate.Size = new System.Drawing.Size(429, 35);
this.tbCate.Size = new System.Drawing.Size(381, 35);
this.tbCate.TabIndex = 7;
//
// bs
@@ -112,37 +116,33 @@ namespace FPJ0000.OtConfirm
//
this.tbSD.Location = new System.Drawing.Point(143, 79);
this.tbSD.Name = "tbSD";
this.tbSD.Size = new System.Drawing.Size(627, 38);
this.tbSD.Size = new System.Drawing.Size(381, 38);
this.tbSD.TabIndex = 3;
//
// tbED
//
this.tbED.Location = new System.Drawing.Point(143, 126);
this.tbED.Location = new System.Drawing.Point(565, 79);
this.tbED.Name = "tbED";
this.tbED.Size = new System.Drawing.Size(627, 38);
this.tbED.Size = new System.Drawing.Size(381, 38);
this.tbED.TabIndex = 5;
this.tbED.ValueChanged += new System.EventHandler(this.tbED_ValueChanged);
//
// tbRemark
//
this.tbRemark.Font = new System.Drawing.Font("굴림", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbRemark.Location = new System.Drawing.Point(143, 337);
this.tbRemark.Location = new System.Drawing.Point(144, 246);
this.tbRemark.Name = "tbRemark";
this.tbRemark.Size = new System.Drawing.Size(629, 84);
this.tbRemark.Size = new System.Drawing.Size(578, 133);
this.tbRemark.TabIndex = 16;
this.tbRemark.Text = "";
//
// grpUser
//
this.grpUser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.grpUser.Controls.Add(this.richTextBox1);
this.grpUser.Controls.Add(this.groupBox1);
this.grpUser.Controls.Add(this.cmbUser);
this.grpUser.Controls.Add(this.radioButton2);
this.grpUser.Controls.Add(this.radTime);
this.grpUser.Controls.Add(this.tbTimes);
this.grpUser.Controls.Add(this.tbDays);
this.grpUser.Controls.Add(this.label11);
this.grpUser.Controls.Add(this.label10);
this.grpUser.Controls.Add(this.tbBackup);
this.grpUser.Controls.Add(this.label9);
@@ -157,12 +157,14 @@ namespace FPJ0000.OtConfirm
this.grpUser.Controls.Add(this.tbSD);
this.grpUser.Controls.Add(this.label4);
this.grpUser.Controls.Add(this.tbCate);
this.grpUser.Location = new System.Drawing.Point(12, 12);
this.grpUser.Dock = System.Windows.Forms.DockStyle.Top;
this.grpUser.Location = new System.Drawing.Point(3, 3);
this.grpUser.Name = "grpUser";
this.grpUser.Size = new System.Drawing.Size(788, 487);
this.grpUser.Size = new System.Drawing.Size(957, 471);
this.grpUser.TabIndex = 0;
this.grpUser.TabStop = false;
this.grpUser.Text = "신청자";
this.grpUser.Enter += new System.EventHandler(this.grpUser_Enter);
//
// cmbUser
//
@@ -170,14 +172,15 @@ namespace FPJ0000.OtConfirm
this.cmbUser.FormattingEnabled = true;
this.cmbUser.Location = new System.Drawing.Point(143, 34);
this.cmbUser.Name = "cmbUser";
this.cmbUser.Size = new System.Drawing.Size(627, 35);
this.cmbUser.Size = new System.Drawing.Size(803, 35);
this.cmbUser.TabIndex = 1;
this.cmbUser.SelectedIndexChanged += new System.EventHandler(this.cmbUser_SelectedIndexChanged);
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Checked = true;
this.radioButton2.Location = new System.Drawing.Point(53, 173);
this.radioButton2.Location = new System.Drawing.Point(53, 123);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(84, 31);
this.radioButton2.TabIndex = 6;
@@ -189,7 +192,7 @@ namespace FPJ0000.OtConfirm
// radTime
//
this.radTime.AutoSize = true;
this.radTime.Location = new System.Drawing.Point(578, 174);
this.radTime.Location = new System.Drawing.Point(565, 127);
this.radTime.Name = "radTime";
this.radTime.Size = new System.Drawing.Size(192, 31);
this.radTime.TabIndex = 8;
@@ -201,34 +204,26 @@ namespace FPJ0000.OtConfirm
// tbTimes
//
this.tbTimes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbTimes.Location = new System.Drawing.Point(272, 430);
this.tbTimes.Location = new System.Drawing.Point(78, 81);
this.tbTimes.Name = "tbTimes";
this.tbTimes.Size = new System.Drawing.Size(116, 38);
this.tbTimes.Size = new System.Drawing.Size(130, 38);
this.tbTimes.TabIndex = 19;
this.tbTimes.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbDays
//
this.tbDays.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbDays.Location = new System.Drawing.Point(143, 430);
this.tbDays.Location = new System.Drawing.Point(78, 37);
this.tbDays.Name = "tbDays";
this.tbDays.Size = new System.Drawing.Size(116, 38);
this.tbDays.Size = new System.Drawing.Size(130, 38);
this.tbDays.TabIndex = 18;
this.tbDays.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(29, 433);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(102, 27);
this.label11.TabIndex = 17;
this.label11.Text = "사용 일";
this.tbDays.TextChanged += new System.EventHandler(this.tbDays_TextChanged);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(11, 300);
this.label10.Location = new System.Drawing.Point(12, 209);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(120, 27);
this.label10.TabIndex = 13;
@@ -241,19 +236,20 @@ namespace FPJ0000.OtConfirm
"년차",
"하기",
"대체"});
this.tbBackup.Location = new System.Drawing.Point(143, 296);
this.tbBackup.Location = new System.Drawing.Point(144, 205);
this.tbBackup.Name = "tbBackup";
this.tbBackup.Size = new System.Drawing.Size(627, 35);
this.tbBackup.Size = new System.Drawing.Size(802, 35);
this.tbBackup.TabIndex = 14;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(38, 258);
this.label9.Location = new System.Drawing.Point(467, 167);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(93, 27);
this.label9.TabIndex = 11;
this.label9.Text = "행선지";
this.label9.Click += new System.EventHandler(this.label9_Click);
//
// tbLocation
//
@@ -262,15 +258,16 @@ namespace FPJ0000.OtConfirm
"년차",
"하기",
"대체"});
this.tbLocation.Location = new System.Drawing.Point(143, 255);
this.tbLocation.Location = new System.Drawing.Point(565, 164);
this.tbLocation.Name = "tbLocation";
this.tbLocation.Size = new System.Drawing.Size(627, 35);
this.tbLocation.Size = new System.Drawing.Size(381, 35);
this.tbLocation.TabIndex = 12;
this.tbLocation.SelectedIndexChanged += new System.EventHandler(this.tbLocation_SelectedIndexChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(65, 217);
this.label8.Location = new System.Drawing.Point(66, 167);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(66, 27);
this.label8.TabIndex = 9;
@@ -283,10 +280,11 @@ namespace FPJ0000.OtConfirm
"년차",
"하기",
"대체"});
this.tbReason.Location = new System.Drawing.Point(143, 214);
this.tbReason.Location = new System.Drawing.Point(144, 164);
this.tbReason.Name = "tbReason";
this.tbReason.Size = new System.Drawing.Size(627, 35);
this.tbReason.Size = new System.Drawing.Size(310, 35);
this.tbReason.TabIndex = 10;
this.tbReason.SelectedIndexChanged += new System.EventHandler(this.tbReason_SelectedIndexChanged);
//
// label5
//
@@ -300,7 +298,7 @@ namespace FPJ0000.OtConfirm
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(65, 340);
this.label4.Location = new System.Drawing.Point(66, 249);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(66, 27);
this.label4.TabIndex = 15;
@@ -308,25 +306,25 @@ namespace FPJ0000.OtConfirm
//
// grpAdmin
//
this.grpAdmin.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.grpAdmin.Controls.Add(this.chkSendMail);
this.grpAdmin.Controls.Add(this.cmbPreset);
this.grpAdmin.Controls.Add(this.rad2);
this.grpAdmin.Controls.Add(this.rad1);
this.grpAdmin.Controls.Add(this.rad0);
this.grpAdmin.Controls.Add(this.tbResponse);
this.grpAdmin.Location = new System.Drawing.Point(12, 503);
this.grpAdmin.Dock = System.Windows.Forms.DockStyle.Fill;
this.grpAdmin.Location = new System.Drawing.Point(3, 474);
this.grpAdmin.Name = "grpAdmin";
this.grpAdmin.Size = new System.Drawing.Size(788, 179);
this.grpAdmin.Size = new System.Drawing.Size(957, 296);
this.grpAdmin.TabIndex = 1;
this.grpAdmin.TabStop = false;
this.grpAdmin.Text = "관리자";
//
// chkSendMail
//
this.chkSendMail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkSendMail.AutoSize = true;
this.chkSendMail.Location = new System.Drawing.Point(631, 37);
this.chkSendMail.Location = new System.Drawing.Point(806, 34);
this.chkSendMail.Name = "chkSendMail";
this.chkSendMail.Size = new System.Drawing.Size(139, 31);
this.chkSendMail.TabIndex = 7;
@@ -335,6 +333,8 @@ namespace FPJ0000.OtConfirm
//
// cmbPreset
//
this.cmbPreset.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbPreset.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cate", true));
this.cmbPreset.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbPreset.FormattingEnabled = true;
@@ -342,16 +342,16 @@ namespace FPJ0000.OtConfirm
"년차",
"하기",
"대체"});
this.cmbPreset.Location = new System.Drawing.Point(26, 74);
this.cmbPreset.Location = new System.Drawing.Point(10, 74);
this.cmbPreset.Name = "cmbPreset";
this.cmbPreset.Size = new System.Drawing.Size(744, 35);
this.cmbPreset.Size = new System.Drawing.Size(936, 35);
this.cmbPreset.TabIndex = 6;
this.cmbPreset.SelectedIndexChanged += new System.EventHandler(this.cmbPreset_SelectedIndexChanged);
//
// rad2
//
this.rad2.AutoSize = true;
this.rad2.Location = new System.Drawing.Point(269, 37);
this.rad2.Location = new System.Drawing.Point(269, 34);
this.rad2.Name = "rad2";
this.rad2.Size = new System.Drawing.Size(84, 31);
this.rad2.TabIndex = 2;
@@ -362,7 +362,7 @@ namespace FPJ0000.OtConfirm
// rad1
//
this.rad1.AutoSize = true;
this.rad1.Location = new System.Drawing.Point(179, 37);
this.rad1.Location = new System.Drawing.Point(179, 34);
this.rad1.Name = "rad1";
this.rad1.Size = new System.Drawing.Size(84, 31);
this.rad1.TabIndex = 1;
@@ -374,7 +374,7 @@ namespace FPJ0000.OtConfirm
//
this.rad0.AutoSize = true;
this.rad0.Checked = true;
this.rad0.Location = new System.Drawing.Point(26, 37);
this.rad0.Location = new System.Drawing.Point(26, 34);
this.rad0.Name = "rad0";
this.rad0.Size = new System.Drawing.Size(147, 31);
this.rad0.TabIndex = 0;
@@ -384,17 +384,21 @@ namespace FPJ0000.OtConfirm
//
// tbResponse
//
this.tbResponse.Location = new System.Drawing.Point(26, 115);
this.tbResponse.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbResponse.Location = new System.Drawing.Point(10, 115);
this.tbResponse.Name = "tbResponse";
this.tbResponse.Size = new System.Drawing.Size(744, 57);
this.tbResponse.Size = new System.Drawing.Size(936, 116);
this.tbResponse.TabIndex = 3;
this.tbResponse.Text = "";
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 688);
this.button1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.button1.Location = new System.Drawing.Point(3, 720);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(788, 50);
this.button1.Size = new System.Drawing.Size(957, 50);
this.button1.TabIndex = 2;
this.button1.Text = "확인";
this.button1.UseVisualStyleBackColor = true;
@@ -404,10 +408,55 @@ namespace FPJ0000.OtConfirm
//
this.ta.ClearBeforeFill = true;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.tbDays);
this.groupBox1.Controls.Add(this.tbTimes);
this.groupBox1.Location = new System.Drawing.Point(728, 249);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(218, 130);
this.groupBox1.TabIndex = 20;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "사용";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(35, 40);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(39, 27);
this.label3.TabIndex = 20;
this.label3.Text = "일";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(8, 84);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(66, 27);
this.label6.TabIndex = 21;
this.label6.Text = "시간";
//
// richTextBox1
//
this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.richTextBox1.Font = new System.Drawing.Font("굴림", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.richTextBox1.Location = new System.Drawing.Point(143, 385);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ReadOnly = true;
this.richTextBox1.Size = new System.Drawing.Size(803, 78);
this.richTextBox1.TabIndex = 21;
this.richTextBox1.Text = "";
//
// fHolyRequestAdd
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(812, 746);
this.ClientSize = new System.Drawing.Size(963, 773);
this.Controls.Add(this.button1);
this.Controls.Add(this.grpAdmin);
this.Controls.Add(this.grpUser);
@@ -415,6 +464,7 @@ namespace FPJ0000.OtConfirm
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fHolyRequestAdd";
this.Padding = new System.Windows.Forms.Padding(3);
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fHolyRequestAdd";
this.Load += new System.EventHandler(this.fHolyRequestAdd_Load);
@@ -424,6 +474,8 @@ namespace FPJ0000.OtConfirm
this.grpUser.PerformLayout();
this.grpAdmin.ResumeLayout(false);
this.grpAdmin.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
@@ -456,11 +508,14 @@ namespace FPJ0000.OtConfirm
private System.Windows.Forms.ComboBox tbBackup;
private System.Windows.Forms.TextBox tbTimes;
private System.Windows.Forms.TextBox tbDays;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.ComboBox cmbPreset;
private System.Windows.Forms.CheckBox chkSendMail;
private System.Windows.Forms.RadioButton radTime;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.ComboBox cmbUser;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.RichTextBox richTextBox1;
}
}

View File

@@ -46,7 +46,7 @@ namespace FPJ0000.OtConfirm
{
this.Text = "휴가신청 추가";
cmbUser.Text = $"{FCOMMON.info.Login.nameK}({FCOMMON.info.Login.no})";
//tbProcess.Text = FCOMMON.info.Login.process;
//tbTel.Text = FCOMMON.info.Login.tel;
}
@@ -54,10 +54,10 @@ namespace FPJ0000.OtConfirm
{
this.Text = "휴가신청 편집";
cmbUser.Text = $"{dr.name}({dr.uid})"; //dr.name;
////.Text = dr.processs;
// tbTel.Text = dr.tel;
////.Text = dr.processs;
// tbTel.Text = dr.tel;
}
if (dr.conf == 1) rad1.Checked = true;
else if (dr.conf == 2) rad2.Checked = true;
else rad0.Checked = true;
@@ -73,7 +73,7 @@ namespace FPJ0000.OtConfirm
tbDays.Text = dr.HolyDays.ToString(); //211224
tbTimes.Text = dr.HolyTimes.ToString();
if(dr.cate == "대체")
if (dr.cate == "대체")
{
tbTimes.Enabled = true;
tbDays.Enabled = false;
@@ -94,7 +94,7 @@ namespace FPJ0000.OtConfirm
{
curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyreq));
//관리자라면 관리자패널을 활성해준다.
if (dr.RowState == DataRowState.Detached)
{
@@ -107,7 +107,7 @@ namespace FPJ0000.OtConfirm
{
cmbUser.Enabled = false;
grpAdmin.Enabled = curLevel >= 5;
if(curLevel >= 5)
if (curLevel >= 5)
{
grpUser.Text = "신청자(편집상태에서는 사용자를 변경할 수 없습니다)";
}
@@ -118,7 +118,7 @@ namespace FPJ0000.OtConfirm
cmbPreset.SelectedIndex = 0;
}
binit = true;
}
@@ -147,8 +147,8 @@ namespace FPJ0000.OtConfirm
if (tbDays.Enabled == false) tbDays.Text = string.Empty;
if (tbTimes.Enabled == false) tbTimes.Text = string.Empty;
if (double.TryParse( tbDays.Text,out double val_days)) vDay = int.Parse(tbDays.Text.Trim());
if (double.TryParse( tbTimes.Text, out double val_times)) vTime = float.Parse(tbTimes.Text.Trim());
if (double.TryParse(tbDays.Text, out double val_days)) vDay = int.Parse(tbDays.Text.Trim());
if (double.TryParse(tbTimes.Text, out double val_times)) vTime = float.Parse(tbTimes.Text.Trim());
//라디오버튼에 따른 시간 값 할당
if (radTime.Checked) vDay = 0;
@@ -168,7 +168,7 @@ namespace FPJ0000.OtConfirm
}
//하나도 입력안했다면 경고한다
if(String.IsNullOrEmpty(tbReason.Text) && String.IsNullOrEmpty(tbLocation.Text) && String.IsNullOrEmpty(tbBackup.Text) && String.IsNullOrEmpty(tbRemark.Text))
if (String.IsNullOrEmpty(tbReason.Text) && String.IsNullOrEmpty(tbLocation.Text) && String.IsNullOrEmpty(tbBackup.Text) && String.IsNullOrEmpty(tbRemark.Text))
{
FCOMMON.Util.MsgE("비고를 입력해주세요");
tbRemark.Focus();
@@ -203,7 +203,7 @@ namespace FPJ0000.OtConfirm
dr.HolyLocation = tbLocation.Text.Trim();
dr.HolyBackup = tbBackup.Text.Trim();
dr.cate = cate;// tbCate.Text.Trim();
dr.Remark = tbRemark.Text.Trim();
dr.Remark = tbRemark.Text.Trim() + "\r\n" + this.richTextBox1.Text;
dr.Response = tbResponse.Text.Trim();
dr.sdate = tbSD.Value.ToShortDateString();
dr.edate = tbED.Value.ToShortDateString();
@@ -275,7 +275,7 @@ namespace FPJ0000.OtConfirm
tbTimes.Enabled = true;
tbDays.BackColor = Color.DimGray;
tbTimes.BackColor = Color.Gold;
label11.Text = "사용시간";
groupBox1.Text = "사용시간";
}
else
{
@@ -284,10 +284,69 @@ namespace FPJ0000.OtConfirm
tbTimes.Enabled = false;
tbTimes.BackColor = Color.DimGray;
tbDays.BackColor = Color.Gold;
label11.Text = "사용일";
groupBox1.Text = "사용일";
}
if (binit)
UpdateStatus();
}
private void label11_Click(object sender, EventArgs e)
{
}
private void tbDays_TextChanged(object sender, EventArgs e)
{
}
private void grpUser_Enter(object sender, EventArgs e)
{
}
private void tbLocation_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void tbReason_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label9_Click(object sender, EventArgs e)
{
}
private void cmbUser_SelectedIndexChanged(object sender, EventArgs e)
{
var uiddt = this.cmbUser.SelectedValue;
if (uiddt == null) return;
var uid = uiddt.ToString();
var lst = FCOMMON.DBM.GetUserHolidayJan(FCOMMON.info.Login.gcode, uid, DateTime.Now.AddDays(-1).ToShortDateString());
this.richTextBox1.Clear();
foreach (var item in lst)
{
var val = item.Value.Split('|');
if (val[2] != "0")
{
var perc = 0f;
if (val[0] != "0") perc = float.Parse(val[1]) / float.Parse(val[0]);
if (richTextBox1.TextLength > 0) richTextBox1.AppendText(",");
richTextBox1.AppendText($"[{item.Key}] {val[2]}일 남음({perc:N1}%사용)");
}
else if (val[5] != "0")
{
var perc = 0f;
if (val[3] != "0") perc = float.Parse(val[4]) / float.Parse(val[3]);
if (richTextBox1.TextLength > 0) richTextBox1.AppendText(",");
richTextBox1.AppendText($"[{item.Key}] {val[5]}시간 남음({perc:N1}%사용)");
}
}
if(binit)
UpdateStatus();
}
}
}