WorkM/Á÷ת¿¨¹ÜÀí/MES_StationEntrustInBill.cs
@@ -1192,6 +1192,7 @@
            if (e.KeyCode == Keys.Enter)
            {
                cmdOK.Select();
                txtHWWWorkOrderBillNo.Focus();
            }
        }
@@ -1342,23 +1343,23 @@
                    MessageBox.Show("没有录入流转卡号或者流水号");
                    return;
                }
                //根据工号获取委外工单 åŠå†…码,子内码
                SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
                DataSet ds;
                ds = oCn.RunProcReturn("exec  h_p_WW_GetWWWorkBillInfoByNo '" + txtHWWWorkOrderBillNo.Text + "'," + lngBillKey.ToString() + "," + lngBillSubKey.ToString(), "h_p_WW_GetWWWorkBillInfoByNo");
                if (ds == null)
                {
                    MessageBox.Show("没有找到对应的委外工单!");
                    return;
                }
                if (ds.Tables[0].Rows.Count > 0)
                {
                    txtHWWWorkOrderBillNo.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBillNo"]);
                    lngBillKey_WW = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HInterID"]);
                    lngBillSubKey_WW = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HEntryID"]);
                    txtHWWWorkOrderBillNo.Enabled = false;
                }
                ////根据工号获取委外工单 åŠå†…码,子内码
                //SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
                //DataSet ds;
                //ds = oCn.RunProcReturn("exec  h_p_WW_GetWWWorkBillInfoByNo '" + txtHWWWorkOrderBillNo.Text + "'," + lngBillKey.ToString() + "," + lngBillSubKey.ToString(), "h_p_WW_GetWWWorkBillInfoByNo");
                //if (ds == null)
                //{
                //    MessageBox.Show("没有找到对应的委外工单!");
                //    return;
                //}
                //if (ds.Tables[0].Rows.Count > 0)
                //{
                //    txtHWWWorkOrderBillNo.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBillNo"]);
                //    lngBillKey_WW = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HInterID"]);
                //    lngBillSubKey_WW = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HEntryID"]);
                //    txtHWWWorkOrderBillNo.Enabled = false;
                //}
                txtHRemark.Focus();
            }
        }