|
|
@@ -180,19 +180,11 @@ namespace UAS_MES_NEW.Make
|
|
|
//打印类型为卡通箱
|
|
|
else if (CartonBox.Checked)
|
|
|
{
|
|
|
- dt = (DataTable)dh.ExecuteSql("select ms_outboxcode from makeserial where ms_outboxcode='" + inputText.Text + "' or ms_imei2='" + inputText.Text + "' or ms_imei1='" + inputText.Text + "' order by ms_id desc", "select");
|
|
|
+ dt = (DataTable)dh.ExecuteSql("select ms_outboxcode from makeserial where ms_sncode='" + inputText.Text + "' or ms_imei2='" + inputText.Text + "' or ms_imei1='" + inputText.Text + "' order by ms_id desc", "select");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
inputText.Text = dt.Rows[0]["ms_outboxcode"].ToString();
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- dt = (DataTable)dh.ExecuteSql("select ms_outboxcode from makeserial where ms_imei2='" + inputText.Text + "' order by ms_id desc", "select");
|
|
|
- if (dt.Rows.Count > 0)
|
|
|
- {
|
|
|
- inputText.Text = dt.Rows[0]["ms_outboxcode"].ToString();
|
|
|
- }
|
|
|
- }
|
|
|
//查询箱号是否存在
|
|
|
dt = (DataTable)dh.ExecuteSql("select pa_id,pa_prodcode pr_code,pa_makecode ms_makecode,pr_detail from package left join product on pr_code=pa_prodcode where pa_outboxcode='" + inputText.Text + "' and pa_type=1", "select");
|
|
|
if (dt.Rows.Count == 0)
|