This commit is contained in:
chi
2023-11-20 08:31:49 +09:00
parent 1eef8e0303
commit 38bc5bf07e
17 changed files with 1023 additions and 839 deletions

View File

@@ -160,6 +160,17 @@ namespace FEQ0000
dtInDate.Value = DateTime.Parse(dr.indate);
}
if (dr.IsprdateNull() || dr.prdate.isEmpty())
{
this.chkprdate.Checked = false;
}
else
{
this.chkprdate.Checked = true;
dtPrdate.Value = DateTime.Parse(dr.prdate);
}
if (dr.IsedateNull() || dr.edate.isEmpty())
{
this.chkExp.Checked = false;
@@ -287,6 +298,8 @@ namespace FEQ0000
dtInDate.Text = dr.indate;
dtExpDate.Text = dr.edate;
dtPrdate.Text = dr.prdate;
if (dr.IsinqtyNull() == false)
tbInQty.Text = dr.inqty.ToString();
//else tbInQty.Text = "0";
@@ -296,6 +309,7 @@ namespace FEQ0000
this.dtExpDate.Enabled = chkExp.Checked;
this.dtInDate.Enabled = chkInDate.Checked;
this.dtPrdate.Enabled = chkprdate.Checked;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
@@ -849,6 +863,9 @@ namespace FEQ0000
else dr.SetedateNull();
if (chkInDate.Checked) dr.indate = this.dtInDate.Value.ToShortDateString();
else dr.SetindateNull();
if (chkprdate.Checked) dr.prdate = this.dtPrdate.Value.ToShortDateString();
else dr.SetprdateNull();
dr.pdate = this.dtPdate.Value.ToShortDateString();
dr.gcode = FCOMMON.info.Login.gcode;
@@ -955,6 +972,14 @@ namespace FEQ0000
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if(cmbState.Text == "PR" || cmbState.Text == "PO")
{
if(chkprdate.Checked==false)
{
chkprdate.Checked = true;
dtPrdate.Value = DateTime.Now;
}
}
//string code = "";
//if (cmbState.SelectedIndex < 0) label3.Text = "--";
//else
@@ -1335,5 +1360,10 @@ namespace FEQ0000
}
}
private void chkprdate_CheckedChanged(object sender, EventArgs e)
{
this.dtPrdate.Enabled = chkprdate.Checked;
}
}
}