|
|
@@ -276,7 +276,7 @@ namespace UAS_MES.Make
|
|
|
OperatResult.AppendText(">>回流工序不在回流工艺中\n", Color.Red);
|
|
|
else
|
|
|
{
|
|
|
- string ms_ifrework = dh.getFieldDataByCondition("makeserial", "ms_ifrework", "ms_sncode='" + ms_sncode.Text + "' and ms_makecode='" + macode + "'").ToString();
|
|
|
+ string ms_ifrework = dh.getFieldDataByCondition("makeserial", "nvl(ms_ifrework,0)", "ms_sncode='" + ms_sncode.Text + "' and ms_makecode='" + macode + "'").ToString();
|
|
|
if (ms_ifrework == "0")
|
|
|
{
|
|
|
dh.UpdateByCondition("makeserial", "ms_paststep = ms_paststep ||'," + User.CurrentStepCode + "',ms_nextstepcode='" + cd_stepcode.Text + "',ms_craftcode='" + cr_code.Text + "',ms_stepcode='" + User.CurrentStepCode + "',ms_status=1", "ms_sncode='" + ms_sncode.Text + "'");
|
|
|
@@ -308,7 +308,7 @@ namespace UAS_MES.Make
|
|
|
string confirm = MessageBox.Show(this.ParentForm, "此操作不可撤销,是否确认报废", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk).ToString();
|
|
|
if (confirm == "Yes")
|
|
|
{
|
|
|
- string ms_ifrework = dh.getFieldDataByCondition("makeserial", "ms_ifrework", "ms_sncode='" + ms_sncode.Text + "' and ms_makecode='" + macode + "'").ToString();
|
|
|
+ string ms_ifrework = dh.getFieldDataByCondition("makeserial", "nvl(ms_ifrework,0)", "ms_sncode='" + ms_sncode.Text + "' and ms_makecode='" + macode + "'").ToString();
|
|
|
if (ms_ifrework == "0")
|
|
|
{
|
|
|
dh.UpdateByCondition("makeserial", "ms_paststep = ms_paststep ||'," + User.CurrentStepCode + "',ms_status=4,ms_nextstepcode='',ms_stepcode='" + User.CurrentStepCode + "'", "ms_sncode='" + ms_sncode.Text + "' and ms_makecode='" + macode + "'");
|