|
|
@@ -134,6 +134,15 @@ namespace UAS_LabelMachine.PublicMethod
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
dh.CallProcedure("sp_uploadbarcode", dt, out pibid);
|
|
|
+ dt = (DataTable)dh.ExecuteSql("select count(1) from prodiobarcode where pib_inoutno='" + iInoutno + "' and pib_ifupload=0", "select");
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ //全部数据上传之后更新单据状态
|
|
|
+ if (int.Parse(dt.Rows[0][0].ToString()) == 0)
|
|
|
+ {
|
|
|
+ dh.ExecuteSql("update prodinout set pi_pdastatus='已复核' where pi_inoutno='" + iInoutno + "'", "update");
|
|
|
+ }
|
|
|
+ }
|
|
|
//更新本地数据为已上传
|
|
|
if (adh.UpdateByCondition("prodiobarcode", "pib_ifupload=-1", "pib_id in (" + pibid + ")") > 0)
|
|
|
{
|