타 부서 로그인 가능 상태 해제
This commit is contained in:
@@ -164,7 +164,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.grpUser.TabIndex = 0;
|
||||
this.grpUser.TabStop = false;
|
||||
this.grpUser.Text = "신청자";
|
||||
this.grpUser.Enter += new System.EventHandler(this.grpUser_Enter);
|
||||
//
|
||||
// cmbUser
|
||||
//
|
||||
@@ -218,7 +217,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.tbDays.Size = new System.Drawing.Size(130, 38);
|
||||
this.tbDays.TabIndex = 18;
|
||||
this.tbDays.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbDays.TextChanged += new System.EventHandler(this.tbDays_TextChanged);
|
||||
//
|
||||
// label10
|
||||
//
|
||||
@@ -249,7 +247,6 @@ namespace FPJ0000.OtConfirm
|
||||
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,7 +259,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.tbLocation.Name = "tbLocation";
|
||||
this.tbLocation.Size = new System.Drawing.Size(381, 35);
|
||||
this.tbLocation.TabIndex = 12;
|
||||
this.tbLocation.SelectedIndexChanged += new System.EventHandler(this.tbLocation_SelectedIndexChanged);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
@@ -284,7 +280,6 @@ namespace FPJ0000.OtConfirm
|
||||
this.tbReason.Name = "tbReason";
|
||||
this.tbReason.Size = new System.Drawing.Size(310, 35);
|
||||
this.tbReason.TabIndex = 10;
|
||||
this.tbReason.SelectedIndexChanged += new System.EventHandler(this.tbReason_SelectedIndexChanged);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace FPJ0000.OtConfirm
|
||||
|
||||
//사용시간여부 확인
|
||||
var minmsg = "해당 항목 [{0}]의 신청 가능 일(시간)이 없습니다\n\n남은 일(시간) : {1} \n\n관리자 문의 하세요";
|
||||
if(IsAdmin)
|
||||
if (IsAdmin)
|
||||
minmsg = "해당 항목 [{0}]의 신청 가능 일(시간)이 없습니다\n\n남은 일(시간) : {1} \n\n관리자 권한으로 기록은 진행 됩니다";
|
||||
|
||||
bool oktime = false;
|
||||
@@ -236,8 +236,8 @@ namespace FPJ0000.OtConfirm
|
||||
}
|
||||
if (oktime == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE(minmsg);
|
||||
if (IsAdmin == false) return;
|
||||
//FCOMMON.Util.MsgE(minmsg);
|
||||
//if (IsAdmin == false) return;
|
||||
}
|
||||
|
||||
// return;
|
||||
@@ -396,35 +396,6 @@ namespace FPJ0000.OtConfirm
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Dictionary<string, string> holydata = new Dictionary<string, string>();
|
||||
|
||||
@@ -437,9 +408,11 @@ namespace FPJ0000.OtConfirm
|
||||
if (uid.isEmpty()) return;
|
||||
|
||||
|
||||
holydata = FCOMMON.DBM.GetUserHolidayJan(FCOMMON.info.Login.gcode, uid, DateTime.Now.AddDays(-1).ToShortDateString());
|
||||
var basedate = DateTime.Now.AddDays(-1).ToShortDateString();
|
||||
holydata = FCOMMON.DBM.GetUserHolidayJan(FCOMMON.info.Login.gcode, uid, basedate);
|
||||
|
||||
this.richTextBox1.Clear();
|
||||
if (holydata.Any()) richTextBox1.AppendText($"[기준:{basedate}] => ");
|
||||
foreach (var item in holydata)
|
||||
{
|
||||
var val = item.Value.Split('|');
|
||||
|
||||
Reference in New Issue
Block a user