|
|
@@ -268,6 +268,8 @@ namespace UAS_LabelMachine
|
|
|
if (MidLabelAutoPrint.Checked)
|
|
|
AutoPrintMidLabel();
|
|
|
LabelInf.Rows[CurrentRowIndex].Cells["pib_ifpick"].Value = true;
|
|
|
+ //设置变量为已勾选
|
|
|
+ ShowDt.Select("pib_id=" + pib_id)[0]["pib_ifpick"] = -1;
|
|
|
LogicHandler.SendDataToPLC(PLC1, PLCInstruct.FrontDataPass);
|
|
|
LabelInf.Refresh();
|
|
|
}
|
|
|
@@ -364,13 +366,13 @@ namespace UAS_LabelMachine
|
|
|
LoadGridData();
|
|
|
CurrentRowIndex = rownum % PageSize - 1;
|
|
|
if (CurrentRowIndex - 10 > 0)
|
|
|
- LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 10;
|
|
|
+ LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 5;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
CurrentRowIndex = rownum - 1;
|
|
|
if (CurrentRowIndex - 10 > 0)
|
|
|
- LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 10;
|
|
|
+ LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 5;
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
@@ -512,7 +514,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
Item += CheckItem[i].ToString() + " ";
|
|
|
}
|
|
|
- MessageLog.AppendText(Item + "复核不通过\n", Color.Red);
|
|
|
+ ErrorMsg = ">>" + Item + "复核不通过";
|
|
|
return false;
|
|
|
}
|
|
|
LabelInf.Rows[CurrentRowIndex].Cells["pib_ifrecheck"].Value = true;
|
|
|
@@ -647,7 +649,7 @@ namespace UAS_LabelMachine
|
|
|
CurrentRowIndex = CurrentRowIndex + 1;
|
|
|
RefreshProcessData();
|
|
|
if (CurrentRowIndex - 10 > 0)
|
|
|
- LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 10;
|
|
|
+ LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 5;
|
|
|
//如果成功上传了数据
|
|
|
if (LogicHandler.CheckUploadData(pi_inoutno.Text, UploadNum))
|
|
|
{
|
|
|
@@ -855,11 +857,11 @@ namespace UAS_LabelMachine
|
|
|
pi_cardcode.Text = dt.Rows[0]["pi_cardcode"].ToString();
|
|
|
pi_date.Text = dt.Rows[0]["pi_date"].ToString();
|
|
|
PI_ID = dt.Rows[0]["pi_id"].ToString();
|
|
|
- if (dh.GetConfig("AutoBarcode", "ProdInOut!Sale").ToString() != "")
|
|
|
- {
|
|
|
- string[] param = new string[] { PI_ID, "" };
|
|
|
- dh.CallProcedure("GetCustBarcode", ref param);
|
|
|
- }
|
|
|
+ //if (dh.GetConfig("AutoBarcode", "ProdInOut!Sale").ToString() != "")
|
|
|
+ //{
|
|
|
+ string[] param = new string[] { PI_ID, "" };
|
|
|
+ dh.CallProcedure("GetCustBarcode", ref param);
|
|
|
+ //}
|
|
|
//获取客户自定义设置
|
|
|
sql.Clear();
|
|
|
sql.Append("select cu_print_middc,cu_print_outdc,cu_print_midlotno,nvl(cu_print_custprodmatchmodel,'Equal')cu_print_custprodmatchmodel,cu_print_midspec,cu_print_midpo,cu_print_midprod,cu_print_outlotno,cu_print_outspec,cu_print_outpo");
|