....
This commit is contained in:
@@ -147,8 +147,8 @@ namespace FPJ0000.OtConfirm
|
||||
if (tbDays.Enabled == false) tbDays.Text = string.Empty;
|
||||
if (tbTimes.Enabled == false) tbTimes.Text = string.Empty;
|
||||
|
||||
if (tbDays.Text.IsNumeric()) vDay = int.Parse(tbDays.Text.Trim());
|
||||
if (tbTimes.Text.IsNumeric()) 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(tbReason.Text.isEmpty() && tbLocation.Text.isEmpty() && tbBackup.Text.isEmpty() && tbRemark.Text.isEmpty())
|
||||
if(String.IsNullOrEmpty(tbReason.Text) && String.IsNullOrEmpty(tbLocation.Text) && String.IsNullOrEmpty(tbBackup.Text) && String.IsNullOrEmpty(tbRemark.Text))
|
||||
{
|
||||
FCOMMON.Util.MsgE("비고를 입력해주세요");
|
||||
tbRemark.Focus();
|
||||
|
||||
Reference in New Issue
Block a user