|
|
@@ -313,7 +313,6 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
private void BackendCheckFunction(string msg, string pib_id)
|
|
|
{
|
|
|
- Console.WriteLine(System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss fff"));
|
|
|
DataTable dtt = LabelInf.DataSource as DataTable;
|
|
|
string[] msgArr = msg.Split('@');
|
|
|
//需要校验2项数据,完成校验后此项的值需要为2则表示校验成功
|
|
|
@@ -484,7 +483,6 @@ namespace UAS_LabelMachine
|
|
|
//如果按盒号采集,所有的此盒的均更新为
|
|
|
LabelInfDataTable.Rows[CurrentRowIndex]["pib_ifpick"] = true;
|
|
|
LogicHandler.UpdateRowPicked(LabelInf.Rows[CurrentRowIndex].Cells["pib_id"].Value);
|
|
|
- LabelInfDataTable.Rows[CurrentRowIndex]["Choose"] = true;
|
|
|
//勾选了单盘自动打印
|
|
|
if (SingleLabelAutoPrint.Checked)
|
|
|
{
|
|
|
@@ -775,7 +773,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
if (!SingleID.Contains(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString()))
|
|
|
SingleID.Add(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString());
|
|
|
- if (LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString() != "True")
|
|
|
+ if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString() != "True")
|
|
|
{
|
|
|
//如果不存在中盒号则进行添加
|
|
|
if (!MidIDAndOutboxcode.ContainsValue(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString()))
|
|
|
@@ -812,7 +810,7 @@ namespace UAS_LabelMachine
|
|
|
for (int i = 0; i < LabelInf.RowCount; i++)
|
|
|
{
|
|
|
//勾选了并且未打印
|
|
|
- if (LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString() != "True")
|
|
|
+ if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() == "True" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString() != "True")
|
|
|
{
|
|
|
CheckedRowCount = CheckedRowCount + 1;
|
|
|
CurrentRowIndex = i;
|
|
|
@@ -896,7 +894,6 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
for (int i = begin - 1; i < end; i++)
|
|
|
{
|
|
|
- LabelInfDataTable.Rows[i]["Choose"] = true;
|
|
|
LabelInfDataTable.Rows[i]["pib_ifpick"] = true;
|
|
|
LabelInfDataTable.Rows[i]["pib_ifprint"] = false;
|
|
|
}
|
|
|
@@ -1031,14 +1028,10 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
for (int i = 0; i < LabelInf.RowCount; i++)
|
|
|
{
|
|
|
- if (LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True")
|
|
|
- {
|
|
|
- string outboxcode2 = LabelInf.Rows[i].Cells["pib_outboxcode2"].Value.ToString();
|
|
|
- //富为使用包装单的逻辑
|
|
|
- //如果不包含该箱号则进行添加
|
|
|
- if (!Outboxcode.Contains(outboxcode2))
|
|
|
- Outboxcode.Add(outboxcode2);
|
|
|
- }
|
|
|
+ string outboxcode2 = LabelInf.Rows[i].Cells["pib_outboxcode2"].Value.ToString();
|
|
|
+ //如果不包含该箱号则进行添加
|
|
|
+ if (!Outboxcode.Contains(outboxcode2))
|
|
|
+ Outboxcode.Add(outboxcode2);
|
|
|
}
|
|
|
//按获取到的箱号列表进行打印
|
|
|
if (Outboxcode.ToArray().Length > 0)
|
|
|
@@ -1241,7 +1234,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
//嵌套查询重置RowNum
|
|
|
sql.Clear();
|
|
|
- sql.Append("select t.*,rownum from (select pd_custprodcode,pib_inoutno,pd_custprodspec,nvl(pib_ifrecheck,0)pib_ifrecheck,nvl(pib_ifupload,0)pib_ifupload,nvl(pib_ifmodify,0)pib_ifmodify,pd_pocode,pib_madein,pib_custbarcode,pib_custoutboxcode,");
|
|
|
+ sql.Append("select t.*,rownum from (select pd_custprodcode,pib_indate,pi_date,pib_inoutno,pd_custprodspec,nvl(pib_ifrecheck,0)pib_ifrecheck,nvl(pib_ifupload,0)pib_ifupload,nvl(pib_ifmodify,0)pib_ifmodify,pd_pocode,pib_madein,pib_custbarcode,pib_custoutboxcode,");
|
|
|
sql.Append("pib_id,pib_pdid,pib_piid,pib_pdno,pib_prodcode,nvl(nvl(pd_brand,pib_brand),pr_brand)pib_brand, pr_vendprodcode,pib_lotno,pib_datecode,pib_qty,pr_spec,pi_title,pr_zxbzs,pr_unit,pib_barcode,pib_outboxcode1,");
|
|
|
sql.Append("pib_outboxcode2,nvl(pib_ifpick,0)pib_ifpick,nvl(pib_ifprint,0)pib_ifprint from prodiobarcode left join prodinout on pib_piid=pi_id left join prodiodetail on pib_piid=pd_piid and pd_pdno=pib_pdno and ");
|
|
|
sql.Append("pd_prodcode=pib_prodcode left join product on pr_code=pib_prodcode left join sale on sa_code=pib_ordercode where pib_piid='" + PI_ID + "' order by to_number(pib_id))t");
|