This commit is contained in:
chi
2022-01-10 10:58:37 +09:00
parent b398298b80
commit d99c0638b1
3 changed files with 12 additions and 5 deletions

View File

@@ -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();
}
}