출근부 엑셀 저장 기능 추가
This commit is contained in:
214
SubProject/FPJ0000/OtConfirm/fHolyRequestAdd.Designer.cs
generated
214
SubProject/FPJ0000/OtConfirm/fHolyRequestAdd.Designer.cs
generated
@@ -39,6 +39,8 @@ namespace FPJ0000.OtConfirm
|
||||
this.tbED = new System.Windows.Forms.DateTimePicker();
|
||||
this.tbRemark = new System.Windows.Forms.RichTextBox();
|
||||
this.grpUser = new System.Windows.Forms.GroupBox();
|
||||
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
||||
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();
|
||||
@@ -48,11 +50,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.tbLocation = new System.Windows.Forms.ComboBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.tbReason = new System.Windows.Forms.ComboBox();
|
||||
this.tbTel = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.tbProcess = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tbName = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.grpAdmin = new System.Windows.Forms.GroupBox();
|
||||
@@ -64,8 +61,7 @@ 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.radTime = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
||||
this.cmbUser = new System.Windows.Forms.ComboBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dSKuntae)).BeginInit();
|
||||
this.grpUser.SuspendLayout();
|
||||
@@ -75,19 +71,19 @@ namespace FPJ0000.OtConfirm
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(35, 44);
|
||||
this.label1.Location = new System.Drawing.Point(38, 84);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(93, 27);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "시작일";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(35, 90);
|
||||
this.label2.Location = new System.Drawing.Point(38, 130);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(93, 27);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "종료일";
|
||||
//
|
||||
// tbCate
|
||||
@@ -98,10 +94,10 @@ namespace FPJ0000.OtConfirm
|
||||
"년차",
|
||||
"하기",
|
||||
"대체"});
|
||||
this.tbCate.Location = new System.Drawing.Point(140, 133);
|
||||
this.tbCate.Location = new System.Drawing.Point(143, 173);
|
||||
this.tbCate.Name = "tbCate";
|
||||
this.tbCate.Size = new System.Drawing.Size(153, 35);
|
||||
this.tbCate.TabIndex = 5;
|
||||
this.tbCate.Size = new System.Drawing.Size(429, 35);
|
||||
this.tbCate.TabIndex = 7;
|
||||
//
|
||||
// bs
|
||||
//
|
||||
@@ -116,32 +112,36 @@ namespace FPJ0000.OtConfirm
|
||||
// tbSD
|
||||
//
|
||||
this.tbSD.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "sdate", true));
|
||||
this.tbSD.Location = new System.Drawing.Point(140, 39);
|
||||
this.tbSD.Location = new System.Drawing.Point(143, 79);
|
||||
this.tbSD.Name = "tbSD";
|
||||
this.tbSD.Size = new System.Drawing.Size(358, 38);
|
||||
this.tbSD.TabIndex = 1;
|
||||
this.tbSD.Size = new System.Drawing.Size(627, 38);
|
||||
this.tbSD.TabIndex = 3;
|
||||
//
|
||||
// tbED
|
||||
//
|
||||
this.tbED.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "edate", true));
|
||||
this.tbED.Location = new System.Drawing.Point(140, 86);
|
||||
this.tbED.Location = new System.Drawing.Point(143, 126);
|
||||
this.tbED.Name = "tbED";
|
||||
this.tbED.Size = new System.Drawing.Size(358, 38);
|
||||
this.tbED.TabIndex = 3;
|
||||
this.tbED.Size = new System.Drawing.Size(627, 38);
|
||||
this.tbED.TabIndex = 5;
|
||||
this.tbED.ValueChanged += new System.EventHandler(this.tbED_ValueChanged);
|
||||
//
|
||||
// tbRemark
|
||||
//
|
||||
this.tbRemark.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "Remark", true));
|
||||
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(140, 297);
|
||||
this.tbRemark.Location = new System.Drawing.Point(143, 337);
|
||||
this.tbRemark.Name = "tbRemark";
|
||||
this.tbRemark.Size = new System.Drawing.Size(358, 169);
|
||||
this.tbRemark.TabIndex = 13;
|
||||
this.tbRemark.Size = new System.Drawing.Size(629, 84);
|
||||
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.cmbUser);
|
||||
this.grpUser.Controls.Add(this.radioButton2);
|
||||
this.grpUser.Controls.Add(this.radTime);
|
||||
this.grpUser.Controls.Add(this.tbTimes);
|
||||
@@ -153,11 +153,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.grpUser.Controls.Add(this.tbLocation);
|
||||
this.grpUser.Controls.Add(this.label8);
|
||||
this.grpUser.Controls.Add(this.tbReason);
|
||||
this.grpUser.Controls.Add(this.tbTel);
|
||||
this.grpUser.Controls.Add(this.label7);
|
||||
this.grpUser.Controls.Add(this.tbProcess);
|
||||
this.grpUser.Controls.Add(this.label6);
|
||||
this.grpUser.Controls.Add(this.tbName);
|
||||
this.grpUser.Controls.Add(this.label5);
|
||||
this.grpUser.Controls.Add(this.tbRemark);
|
||||
this.grpUser.Controls.Add(this.label1);
|
||||
@@ -173,40 +168,65 @@ namespace FPJ0000.OtConfirm
|
||||
this.grpUser.TabStop = false;
|
||||
this.grpUser.Text = "신청자";
|
||||
//
|
||||
// radioButton2
|
||||
//
|
||||
this.radioButton2.AutoSize = true;
|
||||
this.radioButton2.Checked = true;
|
||||
this.radioButton2.Location = new System.Drawing.Point(53, 173);
|
||||
this.radioButton2.Name = "radioButton2";
|
||||
this.radioButton2.Size = new System.Drawing.Size(84, 31);
|
||||
this.radioButton2.TabIndex = 6;
|
||||
this.radioButton2.TabStop = true;
|
||||
this.radioButton2.Text = "일반";
|
||||
this.radioButton2.UseVisualStyleBackColor = true;
|
||||
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
||||
//
|
||||
// radTime
|
||||
//
|
||||
this.radTime.AutoSize = true;
|
||||
this.radTime.Location = new System.Drawing.Point(578, 174);
|
||||
this.radTime.Name = "radTime";
|
||||
this.radTime.Size = new System.Drawing.Size(192, 31);
|
||||
this.radTime.TabIndex = 8;
|
||||
this.radTime.TabStop = true;
|
||||
this.radTime.Text = "대체시간사용";
|
||||
this.radTime.UseVisualStyleBackColor = true;
|
||||
this.radTime.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
||||
//
|
||||
// tbTimes
|
||||
//
|
||||
this.tbTimes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbTimes.Location = new System.Drawing.Point(653, 428);
|
||||
this.tbTimes.Location = new System.Drawing.Point(272, 430);
|
||||
this.tbTimes.Name = "tbTimes";
|
||||
this.tbTimes.Size = new System.Drawing.Size(116, 38);
|
||||
this.tbTimes.TabIndex = 23;
|
||||
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(518, 428);
|
||||
this.tbDays.Location = new System.Drawing.Point(143, 430);
|
||||
this.tbDays.Name = "tbDays";
|
||||
this.tbDays.Size = new System.Drawing.Size(116, 38);
|
||||
this.tbDays.TabIndex = 21;
|
||||
this.tbDays.TabIndex = 18;
|
||||
this.tbDays.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(513, 394);
|
||||
this.label11.Location = new System.Drawing.Point(29, 433);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(167, 27);
|
||||
this.label11.TabIndex = 20;
|
||||
this.label11.Text = "사용 일/시간";
|
||||
this.label11.Size = new System.Drawing.Size(102, 27);
|
||||
this.label11.TabIndex = 17;
|
||||
this.label11.Text = "사용 일";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(8, 260);
|
||||
this.label10.Location = new System.Drawing.Point(11, 300);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(120, 27);
|
||||
this.label10.TabIndex = 10;
|
||||
this.label10.TabIndex = 13;
|
||||
this.label10.Text = "백업인원";
|
||||
//
|
||||
// tbBackup
|
||||
@@ -217,18 +237,18 @@ namespace FPJ0000.OtConfirm
|
||||
"년차",
|
||||
"하기",
|
||||
"대체"});
|
||||
this.tbBackup.Location = new System.Drawing.Point(140, 256);
|
||||
this.tbBackup.Location = new System.Drawing.Point(143, 296);
|
||||
this.tbBackup.Name = "tbBackup";
|
||||
this.tbBackup.Size = new System.Drawing.Size(358, 35);
|
||||
this.tbBackup.TabIndex = 11;
|
||||
this.tbBackup.Size = new System.Drawing.Size(627, 35);
|
||||
this.tbBackup.TabIndex = 14;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(35, 218);
|
||||
this.label9.Location = new System.Drawing.Point(38, 258);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(93, 27);
|
||||
this.label9.TabIndex = 8;
|
||||
this.label9.TabIndex = 11;
|
||||
this.label9.Text = "행선지";
|
||||
//
|
||||
// tbLocation
|
||||
@@ -239,18 +259,18 @@ namespace FPJ0000.OtConfirm
|
||||
"년차",
|
||||
"하기",
|
||||
"대체"});
|
||||
this.tbLocation.Location = new System.Drawing.Point(140, 215);
|
||||
this.tbLocation.Location = new System.Drawing.Point(143, 255);
|
||||
this.tbLocation.Name = "tbLocation";
|
||||
this.tbLocation.Size = new System.Drawing.Size(358, 35);
|
||||
this.tbLocation.TabIndex = 9;
|
||||
this.tbLocation.Size = new System.Drawing.Size(627, 35);
|
||||
this.tbLocation.TabIndex = 12;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(62, 177);
|
||||
this.label8.Location = new System.Drawing.Point(65, 217);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(66, 27);
|
||||
this.label8.TabIndex = 6;
|
||||
this.label8.TabIndex = 9;
|
||||
this.label8.Text = "사유";
|
||||
//
|
||||
// tbReason
|
||||
@@ -261,73 +281,33 @@ namespace FPJ0000.OtConfirm
|
||||
"년차",
|
||||
"하기",
|
||||
"대체"});
|
||||
this.tbReason.Location = new System.Drawing.Point(140, 174);
|
||||
this.tbReason.Location = new System.Drawing.Point(143, 214);
|
||||
this.tbReason.Name = "tbReason";
|
||||
this.tbReason.Size = new System.Drawing.Size(358, 35);
|
||||
this.tbReason.TabIndex = 7;
|
||||
//
|
||||
// tbTel
|
||||
//
|
||||
this.tbTel.Location = new System.Drawing.Point(518, 247);
|
||||
this.tbTel.Name = "tbTel";
|
||||
this.tbTel.ReadOnly = true;
|
||||
this.tbTel.Size = new System.Drawing.Size(251, 38);
|
||||
this.tbTel.TabIndex = 19;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(513, 214);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(66, 27);
|
||||
this.label7.TabIndex = 18;
|
||||
this.label7.Text = "전화";
|
||||
//
|
||||
// tbProcess
|
||||
//
|
||||
this.tbProcess.Location = new System.Drawing.Point(518, 154);
|
||||
this.tbProcess.Name = "tbProcess";
|
||||
this.tbProcess.ReadOnly = true;
|
||||
this.tbProcess.Size = new System.Drawing.Size(251, 38);
|
||||
this.tbProcess.TabIndex = 17;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(513, 121);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(66, 27);
|
||||
this.label6.TabIndex = 16;
|
||||
this.label6.Text = "공정";
|
||||
//
|
||||
// tbName
|
||||
//
|
||||
this.tbName.Location = new System.Drawing.Point(518, 66);
|
||||
this.tbName.Name = "tbName";
|
||||
this.tbName.ReadOnly = true;
|
||||
this.tbName.Size = new System.Drawing.Size(251, 38);
|
||||
this.tbName.TabIndex = 15;
|
||||
this.tbReason.Size = new System.Drawing.Size(627, 35);
|
||||
this.tbReason.TabIndex = 10;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(513, 32);
|
||||
this.label5.Location = new System.Drawing.Point(38, 37);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(66, 27);
|
||||
this.label5.TabIndex = 14;
|
||||
this.label5.Text = "성명";
|
||||
this.label5.Size = new System.Drawing.Size(93, 27);
|
||||
this.label5.TabIndex = 0;
|
||||
this.label5.Text = "담당자";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(62, 300);
|
||||
this.label4.Location = new System.Drawing.Point(65, 340);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(66, 27);
|
||||
this.label4.TabIndex = 12;
|
||||
this.label4.TabIndex = 15;
|
||||
this.label4.Text = "비고";
|
||||
//
|
||||
// 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);
|
||||
@@ -423,30 +403,14 @@ namespace FPJ0000.OtConfirm
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// radTime
|
||||
// cmbUser
|
||||
//
|
||||
this.radTime.AutoSize = true;
|
||||
this.radTime.Location = new System.Drawing.Point(306, 134);
|
||||
this.radTime.Name = "radTime";
|
||||
this.radTime.Size = new System.Drawing.Size(192, 31);
|
||||
this.radTime.TabIndex = 24;
|
||||
this.radTime.TabStop = true;
|
||||
this.radTime.Text = "대체시간사용";
|
||||
this.radTime.UseVisualStyleBackColor = true;
|
||||
this.radTime.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
||||
//
|
||||
// radioButton2
|
||||
//
|
||||
this.radioButton2.AutoSize = true;
|
||||
this.radioButton2.Checked = true;
|
||||
this.radioButton2.Location = new System.Drawing.Point(50, 133);
|
||||
this.radioButton2.Name = "radioButton2";
|
||||
this.radioButton2.Size = new System.Drawing.Size(84, 31);
|
||||
this.radioButton2.TabIndex = 25;
|
||||
this.radioButton2.TabStop = true;
|
||||
this.radioButton2.Text = "일반";
|
||||
this.radioButton2.UseVisualStyleBackColor = true;
|
||||
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
||||
this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
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.TabIndex = 1;
|
||||
//
|
||||
// fHolyRequestAdd
|
||||
//
|
||||
@@ -489,11 +453,6 @@ namespace FPJ0000.OtConfirm
|
||||
private System.Windows.Forms.BindingSource bs;
|
||||
private DSKuntaeTableAdapters.EETGW_HolydayRequestTableAdapter ta;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox tbProcess;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox tbName;
|
||||
private System.Windows.Forms.TextBox tbTel;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.RadioButton rad0;
|
||||
private System.Windows.Forms.RadioButton rad2;
|
||||
private System.Windows.Forms.RadioButton rad1;
|
||||
@@ -510,5 +469,6 @@ namespace FPJ0000.OtConfirm
|
||||
private System.Windows.Forms.CheckBox chkSendMail;
|
||||
private System.Windows.Forms.RadioButton radTime;
|
||||
private System.Windows.Forms.RadioButton radioButton2;
|
||||
private System.Windows.Forms.ComboBox cmbUser;
|
||||
}
|
||||
}
|
||||
@@ -36,20 +36,28 @@ namespace FPJ0000.OtConfirm
|
||||
foreach (var item in 백업목록) tbBackup.Items.Add(item.Value);
|
||||
|
||||
|
||||
var userlist = FCOMMON.DBM.getUserTable();
|
||||
this.cmbUser.DataSource = userlist;
|
||||
this.cmbUser.ValueMember = "id";
|
||||
this.cmbUser.DisplayMember = "dispname";
|
||||
|
||||
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
this.Text = "휴가신청 추가";
|
||||
tbName.Text = FCOMMON.info.Login.nameK;
|
||||
tbProcess.Text = FCOMMON.info.Login.process;
|
||||
tbTel.Text = FCOMMON.info.Login.tel;
|
||||
cmbUser.Text = $"{FCOMMON.info.Login.nameK}({FCOMMON.info.Login.no})";
|
||||
|
||||
//tbProcess.Text = FCOMMON.info.Login.process;
|
||||
//tbTel.Text = FCOMMON.info.Login.tel;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Text = "휴가신청 편집";
|
||||
tbName.Text = dr.name;
|
||||
tbProcess.Text = dr.processs;
|
||||
tbTel.Text = dr.tel;
|
||||
cmbUser.Text = $"{dr.name}({dr.uid})"; //dr.name;
|
||||
////.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;
|
||||
@@ -86,22 +94,31 @@ namespace FPJ0000.OtConfirm
|
||||
{
|
||||
curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyreq));
|
||||
|
||||
|
||||
|
||||
//관리자라면 관리자패널을 활성해준다.
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
cmbUser.Enabled = curLevel >= 5;
|
||||
grpAdmin.Enabled = false;
|
||||
grpAdmin.Text = "관리자(추가작업시에는 사용할 수 없습니다)";
|
||||
UpdateStatus();
|
||||
}
|
||||
else
|
||||
{
|
||||
cmbUser.Enabled = false;
|
||||
grpAdmin.Enabled = curLevel >= 5;
|
||||
if(curLevel >= 5)
|
||||
{
|
||||
grpUser.Text = "신청자(편집상태에서는 사용자를 변경할 수 없습니다)";
|
||||
}
|
||||
var 관리자사전멘트 = FCOMMON.DBM.getCodeList("54");
|
||||
cmbPreset.Items.Clear();
|
||||
cmbPreset.Items.Add(" -- 저장된 문구를 선택하세요(공용:54) --");
|
||||
cmbPreset.Items.AddRange(관리자사전멘트.Select(t => t.Value).ToArray());
|
||||
cmbPreset.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
binit = true;
|
||||
}
|
||||
|
||||
@@ -158,6 +175,12 @@ namespace FPJ0000.OtConfirm
|
||||
return;
|
||||
}
|
||||
|
||||
var uid = this.cmbUser.SelectedValue;
|
||||
if (uid == null)
|
||||
{
|
||||
FCOMMON.Util.MsgE("사용자가 선택되지 않았습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
@@ -175,8 +198,7 @@ namespace FPJ0000.OtConfirm
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
dr.uid = uid.ToString();
|
||||
dr.HolyReason = tbReason.Text.Trim();
|
||||
dr.HolyLocation = tbLocation.Text.Trim();
|
||||
dr.HolyBackup = tbBackup.Text.Trim();
|
||||
@@ -258,6 +280,7 @@ namespace FPJ0000.OtConfirm
|
||||
tbTimes.Enabled = true;
|
||||
tbDays.BackColor = Color.DimGray;
|
||||
tbTimes.BackColor = Color.Gold;
|
||||
label11.Text = "사용시간";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -266,6 +289,7 @@ namespace FPJ0000.OtConfirm
|
||||
tbTimes.Enabled = false;
|
||||
tbTimes.BackColor = Color.DimGray;
|
||||
tbDays.BackColor = Color.Gold;
|
||||
label11.Text = "사용일";
|
||||
}
|
||||
if(binit)
|
||||
UpdateStatus();
|
||||
|
||||
@@ -120,9 +120,6 @@
|
||||
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>122, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>122, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dSKuntae.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user