외출입력시 빈값 00:00 이 보이지 않게 수정(정봉석p)
This commit is contained in:
@@ -41,8 +41,16 @@ namespace FPJ0000.OtConfirm
|
||||
this.cmbUser.ValueMember = "id";
|
||||
this.cmbUser.DisplayMember = "dispname";
|
||||
|
||||
this.textBox1.Text = dr.stime;
|
||||
this.textBox2.Text = dr.etime;
|
||||
if (dr.IsstimeNull() == false)
|
||||
this.textBox1.Text = dr.stime;
|
||||
else
|
||||
this.textBox1.Text = "00:00";
|
||||
|
||||
if (dr.IsetimeNull() == false)
|
||||
this.textBox2.Text = dr.etime;
|
||||
else
|
||||
this.textBox2.Text = "00:00";
|
||||
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
this.Text = "(휴가/외출)신청 추가";
|
||||
@@ -215,7 +223,7 @@ namespace FPJ0000.OtConfirm
|
||||
}
|
||||
|
||||
//추가시에는 종료시간을 입력하지 않게한다.
|
||||
if(dr.RowState == DataRowState.Detached)
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
if (textBox2.Text.IndexOf(":") == -1 || textBox2.Text.Equals("00:00"))
|
||||
{
|
||||
@@ -245,7 +253,7 @@ namespace FPJ0000.OtConfirm
|
||||
return;
|
||||
}
|
||||
|
||||
if(textBox2.Text.Equals("00:00")==false)
|
||||
if (textBox2.Text.Equals("00:00") == false)
|
||||
{
|
||||
var st = DateTime.Parse(tbSD.Value.ToShortDateString() + " " + textBox1.Text + ":00");
|
||||
var et = DateTime.Parse(tbED.Value.ToShortDateString() + " " + textBox2.Text + ":00");
|
||||
@@ -380,12 +388,15 @@ namespace FPJ0000.OtConfirm
|
||||
dr.Remark = tbRemark.Text.Trim();
|
||||
|
||||
dr.Response = tbResponse.Text.Trim();
|
||||
|
||||
dr.sdate = tbSD.Value.ToShortDateString();
|
||||
dr.edate = tbED.Value.ToShortDateString();
|
||||
dr.sendmail = chkSendMail.Checked; //220104
|
||||
|
||||
dr.stime = textBox1.Text.Trim();
|
||||
dr.etime = textBox2.Text.Trim();
|
||||
if (textBox1.Text.isEmpty() == false && textBox1.Text.Equals("00:00") == false)
|
||||
dr.stime = textBox1.Text.Trim();
|
||||
if (textBox2.Text.isEmpty() == false && textBox2.Text.Equals("00:00") == false)
|
||||
dr.etime = textBox2.Text.Trim();
|
||||
|
||||
dr.HolyDays = vDay;
|
||||
dr.HolyTimes = vTime;//
|
||||
|
||||
Reference in New Issue
Block a user