|
|
@@ -166,9 +166,16 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
es_field += SQL_.Rows[i]["es_filed"].ToString() + ",";
|
|
|
}
|
|
|
- //首页信息的DataTable
|
|
|
sql.Clear();
|
|
|
- sql.Append("select " + es_field.Substring(0, es_field.Length - 1) + " from FIRSTPAGE_BATCH_VIEW where pi_inoutno='" + inoutno + "'");
|
|
|
+ //首页信息的DataTable
|
|
|
+ if (BoxCode.Checked)
|
|
|
+ {
|
|
|
+ sql.Append("select " + es_field.Substring(0, es_field.Length - 1) + " from FIRSTPAGE_Box_VIEW where pi_inoutno='" + inoutno + "'");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ sql.Append("select " + es_field.Substring(0, es_field.Length - 1) + " from FIRSTPAGE_BATCH_VIEW where pi_inoutno='" + inoutno + "'");
|
|
|
+ }
|
|
|
DataTable dt1 = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
for (int i = 0; i < dt1.Columns.Count; i++)
|
|
|
{
|