|
@@ -479,11 +479,11 @@ namespace UAS_MES_NEW.Packing
|
|
|
}
|
|
}
|
|
|
if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == int.Parse(pr_palletqty.Text))
|
|
if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == int.Parse(pr_palletqty.Text))
|
|
|
{
|
|
{
|
|
|
- if (dh.getFieldDataByCondition("package", "PA_PALLETNO", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "")
|
|
|
|
|
- {
|
|
|
|
|
- OperateResult.AppendText(">>卡通箱" + pa_outboxcode.Text + "未绑定卡板号,不允许封箱\n", Color.Black, sn_code);
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ //if (dh.getFieldDataByCondition("package", "PA_PALLETNO", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "")
|
|
|
|
|
+ //{
|
|
|
|
|
+ // OperateResult.AppendText(">>卡通箱" + pa_outboxcode.Text + "未绑定卡板号,不允许封箱\n", Color.Black, sn_code);
|
|
|
|
|
+ // return;
|
|
|
|
|
+ //}
|
|
|
dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "满箱采集完成,封箱成功\n", Color.Green);
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "满箱采集完成,封箱成功\n", Color.Green);
|
|
|
pa_status.Text = "1";
|
|
pa_status.Text = "1";
|