pmp제거, ot 시간 없으면 null로 입력

This commit is contained in:
chi
2021-07-28 14:03:16 +09:00
parent 978e1e489e
commit 12a33f174b
19 changed files with 204 additions and 537 deletions

View File

@@ -118,8 +118,8 @@ namespace FPJ0000.JobReport_
dts.Value = DateTime.Parse(dr.pdate); //일자선택
this.checkBox1.Checked = !dr.edate.isEmpty();
if(this.checkBox1.Checked) dte.Value = DateTime.Parse(dr.edate);
if (this.checkBox1.Checked) dte.Value = DateTime.Parse(dr.edate);
cmbUser.SelectedValue = dr.uid;
tbProject.Text = dr.projectName;
@@ -372,6 +372,25 @@ namespace FPJ0000.JobReport_
this.dr.tag = tbTag.Text.Trim();
if (tbHrs.Text != "") this.dr.hrs = double.Parse(tbHrs.Text);
else this.dr.hrs = 0;
//ot 시간을 초기화한다. -- 210728 김윤선
if (double.TryParse(tbOt.Text, out double ot))
{
if (ot == 0.0)
{
this.dr.SetotNull();
}
else
{
this.dr.ot = ot;
}
}
else
{
this.dr.SetotNull();
}
if (tbOt.Text != "") this.dr.ot = double.Parse(tbOt.Text);
else this.dr.ot = 0;
//this.dr.description = richTextBox1.Text.Trim();