|
|
@@ -87,13 +87,13 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
sql.Clear();
|
|
|
sql.Append("select pa_makecode,pa_standardqty,pa_packageqty,pa_prodcode,pa_outboxcode,pa_totalqty,pa_currentqty,pa_custcode,pa_salecode ");
|
|
|
- sql.Append("from package where pa_outboxcode='" + bigoutboxcode.Text + "' and pa_type =2");
|
|
|
- dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
+ sql.Append("from package where pa_outboxcode='" + pa_outboxcode.Text + "' and pa_type =2");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
BaseUtil.SetFormValue(Controls, dt);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
LoadGridData();
|
|
|
- dt = dh.getFieldsDataByCondition("Package", new string[] { "pa_id", "pa_standardqty" }, "pa_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
+ dt = dh.getFieldsDataByCondition("Package", new string[] { "pa_id", "pa_standardqty" }, "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
pa_stanqty = int.Parse(dt.Rows[0]["pa_standardqty"].ToString());
|
|
|
pa_id = dt.Rows[0]["pa_id"].ToString();
|
|
|
FillPrintLabel();
|
|
|
@@ -116,13 +116,19 @@ namespace UAS_MES.Make
|
|
|
return;
|
|
|
}
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pd_makecode pa_makecode,pa_id,pd_prodcode pa_prodcode,pa_status,pa_nextstep,nvl(pr_bigboxinnerqty,0) pa_standardqty from packagedetail ");
|
|
|
+ sql.Append("select pd_makecode pa_makecode,pa_id,pd_prodcode pa_prodcode,pa_status,pa_mothercode,pa_nextstep,nvl(pr_bigboxinnerqty,0) pa_standardqty from packagedetail ");
|
|
|
sql.Append("left join package on pd_paid=pa_id left join product on pd_prodcode=pr_code where pd_outboxcode='" + outboxcode.Text + "'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
//判断采集的卡通箱是否有明细
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
BaseUtil.SetFormValue(this.Controls, dt);
|
|
|
+ //之前装过箱加载明细
|
|
|
+ if (dt.Rows[0]["pa_mothercode"].ToString() != "")
|
|
|
+ {
|
|
|
+ pa_outboxcode.Text = dt.Rows[0]["pa_mothercode"].ToString();
|
|
|
+ palletcode_KeyDown(sender, e);
|
|
|
+ }
|
|
|
pa_nextstep = dt.Rows[0]["pa_nextstep"].ToString();
|
|
|
pa_stanqty = int.Parse(dt.Rows[0]["pa_standardqty"].ToString());
|
|
|
if (pa_stanqty == 0)
|
|
|
@@ -132,7 +138,7 @@ namespace UAS_MES.Make
|
|
|
}
|
|
|
if (pa_nextstep != User.CurrentStepCode && pa_nextstep != "")
|
|
|
{
|
|
|
- OperateResult.AppendText(">>箱号" + outboxcode.Text + "的下一工序不是当前岗位资源对应工序\n", Color.Red, outboxcode);
|
|
|
+ OperateResult.AppendText(">>卡通箱号" + outboxcode.Text + "的下一工序不是当前岗位资源对应工序\n", Color.Red, outboxcode);
|
|
|
return;
|
|
|
}
|
|
|
//未空表示线外
|
|
|
@@ -159,43 +165,42 @@ namespace UAS_MES.Make
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- OperateResult.AppendText(">>箱号" + outboxcode.Text + "未采集内容或不存在,不允许装大箱\n", Color.Red, outboxcode);
|
|
|
+ OperateResult.AppendText(">>卡通箱号" + outboxcode.Text + "未采集内容或不存在,不允许装大箱\n", Color.Red, outboxcode);
|
|
|
return;
|
|
|
}
|
|
|
- pa_status.Text = dh.getFieldDataByCondition("package", "nvl(pa_status,0)pa_status", "pa_outboxcode='" + bigoutboxcode.Text + "'").ToString();
|
|
|
+ pa_status.Text = dh.getFieldDataByCondition("package", "nvl(pa_status,0)pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString();
|
|
|
if (pa_standardqty.Text == pa_currentqty.Text && pa_status.Text == "0")
|
|
|
{
|
|
|
- dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + bigoutboxcode.Text + "'", "update");
|
|
|
+ dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
pa_status.Text = "1";
|
|
|
}
|
|
|
//如果箱号为空的时候并且勾选了自动生成
|
|
|
- if (bigoutboxcode.Text == "" && AutoOutBoxCode.Checked || pa_status.Text == "1")
|
|
|
+ if (pa_outboxcode.Text == "" && AutoOutBoxCode.Checked || pa_status.Text == "1")
|
|
|
{
|
|
|
//箱已采集满并且未勾选自动生成
|
|
|
if (pa_standardqty.Text == pa_currentqty.Text && !AutoOutBoxCode.Checked)
|
|
|
{
|
|
|
- OperateResult.AppendText(">>大箱" + pa_outboxcode.Text + "已采集满\n", Color.Red);
|
|
|
+ OperateResult.AppendText(">>大箱" + pa_outboxcode.Text + "已采集满\n", Color.Red, outboxcode);
|
|
|
return;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- bigoutboxcode.Text = LogicHandler.GetOutBoxCode("BIGBOX", "", pa_prodcode.Text, User.UserCode);
|
|
|
+ pa_outboxcode.Text = LogicHandler.GetOutBoxCode("BIGBOX", "", pa_prodcode.Text, User.UserCode);
|
|
|
}
|
|
|
}
|
|
|
- else if (bigoutboxcode.Text == "")
|
|
|
+ else if (pa_outboxcode.Text == "")
|
|
|
{
|
|
|
OperateResult.AppendText(">>大箱号不能为空\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
- pa_outboxcode.Text = bigoutboxcode.Text;
|
|
|
//箱号不存在进行插入
|
|
|
- dt = (DataTable)dh.ExecuteSql("select pa_id from package where pa_outboxcode='" + bigoutboxcode.Text + "'", "select");
|
|
|
+ dt = (DataTable)dh.ExecuteSql("select pa_id from package where pa_outboxcode='" + pa_outboxcode.Text + "'", "select");
|
|
|
if (dt.Rows.Count == 0)
|
|
|
{
|
|
|
pa_id = dh.GetSEQ("package_seq");
|
|
|
sql.Clear();
|
|
|
sql.Append("insert into package (pa_id,pa_outboxcode,pa_makecode,pa_indate,pa_packageqty,pa_type,pa_prodcode,pa_level,PA_STATUS,pa_standardqty,pa_sccode,pa_currentstep)values");
|
|
|
- sql.Append("(" + pa_id + ",'" + bigoutboxcode.Text + "','" + pa_makecode.Text + "',sysdate,'0',2,'" + pa_prodcode.Text + "',0,'','" + pa_standardqty.Text + "','" + User.UserSourceCode + "','" + User.CurrentStepCode + "')");
|
|
|
+ sql.Append("(" + pa_id + ",'" + pa_outboxcode.Text + "','" + pa_makecode.Text + "',sysdate,'0',2,'" + pa_prodcode.Text + "',0,'','" + pa_standardqty.Text + "','" + User.UserSourceCode + "','" + User.CurrentStepCode + "')");
|
|
|
dh.ExecuteSql(sql.GetString(), "insert");
|
|
|
}
|
|
|
else
|
|
|
@@ -205,7 +210,7 @@ namespace UAS_MES.Make
|
|
|
//如果未装满的话
|
|
|
CollectBox();
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, outboxcode);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -214,8 +219,8 @@ namespace UAS_MES.Make
|
|
|
sql.Clear();
|
|
|
sql.Append("select pa_prodcode,nvl(pd_barcode,PD_INNERBOXCODE) code ,pd_innerqty,pa_salecode");
|
|
|
sql.Append(",pa_makecode,pa_custcode,pa_packageqty from packagedetail left join package on pd_paid=pa_id left ");
|
|
|
- sql.Append("join product on pr_code=pa_prodcode where pa_outboxcode ='" + bigoutboxcode.Text + "' and pa_type=2");
|
|
|
- dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
+ sql.Append("join product on pr_code=pa_prodcode where pa_outboxcode ='" + pa_outboxcode.Text + "' and pa_type=2");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
BaseUtil.FillDgvWithDataTable(PackageInf, dt);
|
|
|
}
|
|
|
|
|
|
@@ -223,7 +228,7 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
sql.Clear();
|
|
|
sql.Append("select count(0) cn from packagedetail left join package on pa_id=pd_paid where ");
|
|
|
- sql.Append("pa_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
+ sql.Append("pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
int packageqty = int.Parse((dh.ExecuteSql(sql.GetString(), "select") as DataTable).Rows[0][0].ToString());
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql("select nvl(pa_status,1) pa_status,pa_mothercode from package where pa_outboxcode='" + outboxcode.Text + "' and pa_type=1", "select");
|
|
|
//采集的卡通箱号存在
|
|
|
@@ -237,24 +242,24 @@ namespace UAS_MES.Make
|
|
|
//插入大箱明细
|
|
|
sql.Clear();
|
|
|
sql.Append("insert into packagedetail(pd_id, pd_paid, pd_outboxcode,pd_innerboxcode, pd_innerqty,pd_makecode,pd_prodcode,pd_builddate)");
|
|
|
- sql.Append("select packagedetail_seq.nextval,'" + pa_id + "','" + bigoutboxcode.Text + "','" + outboxcode.Text + "'");
|
|
|
+ sql.Append("select packagedetail_seq.nextval,'" + pa_id + "','" + pa_outboxcode.Text + "','" + outboxcode.Text + "'");
|
|
|
sql.Append(",pa_packageqty,'" + pa_makecode.Text + "','" + pa_prodcode.Text + "',sysdate from package where pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
dh.ExecuteSql(sql.GetString(), "insert");
|
|
|
//箱内计数+1
|
|
|
- dh.UpdateByCondition("package", "PA_CURRENTQTY=PA_CURRENTQTY+1,PA_PACKAGEQTY=PA_PACKAGEQTY+1,PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + bigoutboxcode.Text + "')", "pa_outboxcode='" + bigoutboxcode.Text + "' and pa_type=2");
|
|
|
+ dh.UpdateByCondition("package", "PA_CURRENTQTY=PA_CURRENTQTY+1,PA_PACKAGEQTY=PA_PACKAGEQTY+1,PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + pa_outboxcode.Text + "')", "pa_outboxcode='" + pa_outboxcode.Text + "' and pa_type=2");
|
|
|
//更新采集的子箱记录母箱号
|
|
|
- dh.UpdateByCondition("package", "pa_mothercode='" + bigoutboxcode.Text + "'", "pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
- if (dh.getFieldDataByCondition("package", "pa_makecode", "pa_outboxcode='" + bigoutboxcode.Text + "'").ToString() == "")
|
|
|
+ dh.UpdateByCondition("package", "pa_mothercode='" + pa_outboxcode.Text + "'", "pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
+ if (dh.getFieldDataByCondition("package", "pa_makecode", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "")
|
|
|
{
|
|
|
string carton_macode = dh.getFieldDataByCondition("package", "pa_makecode", "pa_outboxcode='" + outboxcode.Text + "'").ToString();
|
|
|
pa_makecode.Text = carton_macode;
|
|
|
- dh.ExecuteSql("update package set pa_makecode='" + carton_macode + "' where pa_outboxcode='" + bigoutboxcode.Text + "'", "update");
|
|
|
+ dh.ExecuteSql("update package set pa_makecode='" + carton_macode + "' where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
}
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "大箱采集", "卡通箱" + outboxcode.Text + "采集成功", outboxcode.Text, "");
|
|
|
//记录卡通箱所有序列号操作日志
|
|
|
if (pa_nextstep != "")
|
|
|
{
|
|
|
- LogicHandler.OutBoxStepPass(outboxcode.Text, pa_makecode.Text, User.UserSourceCode, User.UserCode, "大箱采集成功,大箱号:" + bigoutboxcode.Text, "大箱采集");
|
|
|
+ LogicHandler.OutBoxStepPass(outboxcode.Text, pa_makecode.Text, User.UserSourceCode, User.UserCode, "大箱采集成功,大箱号:" + pa_outboxcode.Text, "大箱采集");
|
|
|
}
|
|
|
LoadGridData();
|
|
|
LoadCollectNum();
|
|
|
@@ -262,12 +267,12 @@ namespace UAS_MES.Make
|
|
|
if (pa_currentqty.Text == "1")
|
|
|
{
|
|
|
string nextstepcode = dh.getFieldDataByCondition("mes_package_view left join makeserial on ms_sncode=v_barcode", "ms_nextstepcode", "v_outboxcode='" + outboxcode.Text + "'").ToString();
|
|
|
- dh.UpdateByCondition("package", "pa_nextstep='" + nextstepcode + "'", "pa_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
+ dh.UpdateByCondition("package", "pa_nextstep='" + nextstepcode + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
}
|
|
|
OperateResult.AppendText(">>卡通箱号" + outboxcode.Text + "采集成功!\n", Color.Green, outboxcode);
|
|
|
if (packageqty + 1 == pa_stanqty)
|
|
|
{
|
|
|
- dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + bigoutboxcode.Text + "'", "update");
|
|
|
+ dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
if (AutoPrint.Checked)
|
|
|
{
|
|
|
OperateResult.AppendText(">>箱已装满,自动打印!\n", Color.Green);
|
|
|
@@ -296,7 +301,7 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void LoadCollectNum()
|
|
|
{
|
|
|
- pa_currentqty.Text = dh.getFieldDataByCondition("package", "PA_CURRENTQTY", "pa_outboxcode='" + bigoutboxcode.Text + "' and pa_type=2").ToString();
|
|
|
+ pa_currentqty.Text = dh.getFieldDataByCondition("package", "PA_CURRENTQTY", "pa_outboxcode='" + pa_outboxcode.Text + "' and pa_type=2").ToString();
|
|
|
}
|
|
|
|
|
|
private void 栈板称重_SizeChanged(object sender, EventArgs e)
|
|
|
@@ -314,7 +319,7 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void Make_BigBoxCollection_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- bigoutboxcode.Text = NewBigBox.OutBoxCode;
|
|
|
+ pa_outboxcode.Text = NewBigBox.OutBoxCode;
|
|
|
palletcode_KeyDown(new object(), new KeyEventArgs(Keys.Enter));
|
|
|
}
|
|
|
|
|
|
@@ -322,9 +327,9 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
if (PrintLabel.Items.Count != 0)
|
|
|
{
|
|
|
- if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + bigoutboxcode.Text + "'").ToString() == "1")
|
|
|
+ if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "1")
|
|
|
{
|
|
|
- OperateResult.AppendText(">>打印箱号" + bigoutboxcode.Text + "\n", Color.Black);
|
|
|
+ OperateResult.AppendText(">>打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text));
|
|
|
}
|
|
|
@@ -335,32 +340,32 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void ReleasePallet_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- if (dh.getRowCount("packagedetail", "pd_outboxcode='" + bigoutboxcode.Text + "'") > 0)
|
|
|
+ if (dh.getRowCount("packagedetail", "pd_outboxcode='" + pa_outboxcode.Text + "'") > 0)
|
|
|
{
|
|
|
- if (dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + bigoutboxcode.Text + "'").ToString() == "")
|
|
|
+ if (dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "")
|
|
|
{
|
|
|
string Delete = MessageBox.Show(this.ParentForm, "是否确认拆箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
if (Delete == "Yes")
|
|
|
{
|
|
|
- if (dh.getFieldDataByCondition("package", "pa_nextstep", "pa_mothercode='" + bigoutboxcode.Text + "'").ToString() != "")
|
|
|
- LogicHandler.OutBoxDrawStepPass(bigoutboxcode.Text, pa_makecode.Text, User.UserSourceCode);
|
|
|
+ if (dh.getFieldDataByCondition("package", "pa_nextstep", "pa_mothercode='" + pa_outboxcode.Text + "'").ToString() != "")
|
|
|
+ LogicHandler.OutBoxDrawStepPass(pa_outboxcode.Text, pa_makecode.Text, User.UserSourceCode);
|
|
|
else
|
|
|
{
|
|
|
List<string> SQLS = new List<string>();
|
|
|
- SQLS.Add("delete from packagedetail where pd_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
- SQLS.Add("update package set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
- SQLS.Add("update package set pa_mothercode='' where pa_mothercode='" + bigoutboxcode.Text + "'");
|
|
|
+ SQLS.Add("delete from packagedetail where pd_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
+ SQLS.Add("update package set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
+ SQLS.Add("update package set pa_mothercode='' where pa_mothercode='" + pa_outboxcode.Text + "'");
|
|
|
dh.ExecuteSQLTran(SQLS.ToArray());
|
|
|
}
|
|
|
//将子箱的母箱编号置成空
|
|
|
- OperateResult.AppendText(">>箱号" + bigoutboxcode.Text + "解除成功\n", Color.Green);
|
|
|
- LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "大箱采集", "解除大箱" + bigoutboxcode.Text + "成功", bigoutboxcode.Text, "");
|
|
|
+ OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "解除成功\n", Color.Green);
|
|
|
+ LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "大箱采集", "解除大箱" + pa_outboxcode.Text + "成功", pa_outboxcode.Text, "");
|
|
|
palletcode_KeyDown(new object(), new KeyEventArgs(Keys.Enter));
|
|
|
}
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>箱号" + bigoutboxcode.Text + "已装箱,不能取消解除装箱\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已装箱,不能取消解除装箱\n", Color.Red);
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>箱号" + bigoutboxcode.Text + "未采集箱\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "未采集箱\n", Color.Red);
|
|
|
}
|
|
|
|
|
|
private void Make_BigBoxCollection_FormClosed(object sender, FormClosedEventArgs e)
|
|
|
@@ -370,11 +375,11 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void Packing_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- if (bigoutboxcode.Text != "")
|
|
|
+ if (pa_outboxcode.Text != "")
|
|
|
{
|
|
|
sql.Clear();
|
|
|
sql.Append("select nvl(pa_status,0) pa_status from packagedetail left join package ");
|
|
|
- sql.Append("on pa_id=pd_paid where pd_outboxcode='" + bigoutboxcode.Text + "'");
|
|
|
+ sql.Append("on pa_id=pd_paid where pd_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
@@ -383,15 +388,15 @@ namespace UAS_MES.Make
|
|
|
string Seal = MessageBox.Show(this.ParentForm, "是否确认封箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
if (Seal == "Yes")
|
|
|
{
|
|
|
- OperateResult.AppendText(">>大箱号" + bigoutboxcode.Text + "装大箱成功\n", Color.Green);
|
|
|
- LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "大箱采集", "装箱" + bigoutboxcode.Text + "成功", outboxcode.Text, "");
|
|
|
- dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + bigoutboxcode.Text + "'", "update");
|
|
|
+ OperateResult.AppendText(">>大箱号" + pa_outboxcode.Text + "装大箱成功\n", Color.Green);
|
|
|
+ LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "大箱采集", "卡通箱装箱" + pa_outboxcode.Text + "成功", outboxcode.Text, "");
|
|
|
+ dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
pa_status.Text = "1";
|
|
|
}
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>大箱号" + bigoutboxcode.Text + "已封大箱\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>大箱号" + pa_outboxcode.Text + "已封大箱\n", Color.Red);
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>大箱号" + bigoutboxcode.Text + "未采集内容\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>大箱号" + pa_outboxcode.Text + "未采集内容\n", Color.Red);
|
|
|
}
|
|
|
else OperateResult.AppendText(">>大箱号不能为空\n", Color.Red);
|
|
|
}
|