...
This commit is contained in:
@@ -51,7 +51,9 @@ namespace FPJ0000
|
||||
this.dtED.Text = DateTime.Now.AddMonths(1).ToShortDateString();// sdate.AddMonths(1).AddDays(-1).ToShortDateString();
|
||||
this.dtSD.Text = DateTime.Now.AddMonths(-3).ToShortDateString();
|
||||
|
||||
btSave.Visible = curLevel >= 5;
|
||||
this.dv1.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||
|
||||
btSave.Visible = false;// curLevel >= 5;
|
||||
btEdit.Text = curLevel >= 5 ? "승인(&E)" : "편집(&E)";
|
||||
binit = true;
|
||||
refreshData();
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace FPJ0000.OtConfirm
|
||||
public partial class fHolyRequestAdd : Form
|
||||
{
|
||||
DSKuntae.EETGW_HolydayRequestRow dr;
|
||||
Boolean binit = false;
|
||||
public fHolyRequestAdd(DSKuntae.EETGW_HolydayRequestRow dr_)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -101,7 +102,7 @@ namespace FPJ0000.OtConfirm
|
||||
cmbPreset.Items.AddRange(관리자사전멘트.Select(t => t.Value).ToArray());
|
||||
cmbPreset.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
binit = true;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
@@ -132,6 +133,10 @@ namespace FPJ0000.OtConfirm
|
||||
if (tbDays.Text.IsNumeric()) vDay = int.Parse(tbDays.Text.Trim());
|
||||
if (tbTimes.Text.IsNumeric()) vTime = float.Parse(tbTimes.Text.Trim());
|
||||
|
||||
//라디오버튼에 따른 시간 값 할당
|
||||
if (radTime.Checked) vDay = 0;
|
||||
else vTime = 0;
|
||||
|
||||
if (vDay > 0 && vTime > 0)
|
||||
{
|
||||
FCOMMON.Util.MsgE("사용일/시간을 동시에 입력할 수는 없습니다.\r\n" +
|
||||
@@ -262,7 +267,7 @@ namespace FPJ0000.OtConfirm
|
||||
tbTimes.BackColor = Color.DimGray;
|
||||
tbDays.BackColor = Color.Gold;
|
||||
}
|
||||
|
||||
if(binit)
|
||||
UpdateStatus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user