|
|
@@ -978,7 +978,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
CurrentPage = 1;
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pi_id,pi_cardcode,to_char(pi_date,'yyyymmdd')pi_date from prodinout where pi_inoutno='" + pi_inoutno.Text + "'");
|
|
|
+ sql.Append("select pi_id,pi_cardcode,to_char(pi_date,'yyyymmdd')pi_date from prodinout where pi_inoutno='" + pi_inoutno.Text + "' and pi_pdastatus='已捡料'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
@@ -1020,7 +1020,7 @@ namespace UAS_LabelMachine
|
|
|
LogManager.DoLog("输入单号【" + pi_inoutno.Text + "】");
|
|
|
}
|
|
|
else
|
|
|
- MessageBox.Show("当前出入库单号不存在!");
|
|
|
+ MessageBox.Show("当前出入库单号" + pi_inoutno.Text + "不存在或未完成捡料!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1607,7 +1607,7 @@ namespace UAS_LabelMachine
|
|
|
LabelInfDataTable = (DataTable)adh.ExecuteSql(sql.ToString(), "select");
|
|
|
if (LabelInfDataTable.Rows.Count == 0)
|
|
|
{
|
|
|
- //嵌套查询重置RowNum
|
|
|
+ //查询Oracle数据库
|
|
|
sql.Clear();
|
|
|
sql.Append("select t.*,rownum from prodiobarcode_view t where pib_inoutno='" + pi_inoutno.Text + "'");
|
|
|
LabelInfDataTable = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|