|
|
@@ -69,9 +69,9 @@ namespace UAS_MES.Make
|
|
|
cd_stepcode.DbChange += Cd_stepcode_DbChange;
|
|
|
|
|
|
bd_soncode.FormName = Name;
|
|
|
- bd_soncode.TableName = "bom left join bomdetail on bd_bomid=bo_id";
|
|
|
+ bd_soncode.TableName = "bom left join bomdetail on bd_bomid=bo_id left join product on bd_soncode=pr_code";
|
|
|
bd_soncode.SetValueField = new string[] { "bd_soncode" };
|
|
|
- bd_soncode.SelectField = "bd_soncode # 子件编号";
|
|
|
+ bd_soncode.SelectField = "bd_soncode # 子件编号,pr_detail # 物料名称,pr_spec # 物料规格";
|
|
|
bd_soncode.DBTitle = "不良零件";
|
|
|
bd_soncode.DbChange += Prodcode_DbChange;
|
|
|
|
|
|
@@ -88,7 +88,7 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
if (mbr_id != "")
|
|
|
{
|
|
|
- if (!dh.CheckExist("makebadrspart", "mbp_sncode='"+GetSNCode.Text+"' and mbp_part='"+bd_soncode.Text+"'"))
|
|
|
+ if (!dh.CheckExist("makebadrspart", "mbp_sncode='" + GetSNCode.Text + "' and mbp_part='" + bd_soncode.Text + "'"))
|
|
|
{
|
|
|
sql.Clear();
|
|
|
sql.Append("insert into makebadrspart(mbp_id,mbp_mbrid,mbp_part,mbp_badcode,");
|