|
|
@@ -138,13 +138,14 @@ namespace UAS_MES_NEW.Make
|
|
|
}
|
|
|
}
|
|
|
//限制钢网使用的产品
|
|
|
- String pr_spec = dh.getFieldDataByCondition("product", "pr_spec", "pr_code = '" + ma_prodcode.Text + "'").ToString();
|
|
|
- String st_vendcode = dh.getFieldDataByCondition("STENCIL", "nvl(st_vendcode,'aabbcc')", "st_code = '" + SU_DEVCODE.Text + "'").ToString();
|
|
|
- if (!pr_spec.Contains(st_vendcode))
|
|
|
- {
|
|
|
- MessageBox.Show("钢网编号" + SU_DEVCODE.Text + "不能在产品" + ma_prodcode.Text + "中使用");
|
|
|
- return;
|
|
|
- }
|
|
|
+ //String pr_spec = dh.getFieldDataByCondition("product", "pr_spec", "pr_code = '" + ma_prodcode.Text + "'").ToString();
|
|
|
+ //String st_vendcode = dh.getFieldDataByCondition("STENCIL", "nvl(st_vendcode,'aabbcc')", "st_code = '" + SU_DEVCODE.Text + "'").ToString();
|
|
|
+ //if (!pr_spec.Contains(st_vendcode))
|
|
|
+ //{
|
|
|
+ // MessageBox.Show("钢网编号" + SU_DEVCODE.Text + "不能在产品" + ma_prodcode.Text + "中使用");
|
|
|
+ // return;
|
|
|
+ //}
|
|
|
+
|
|
|
//dt = (DataTable)dh.ExecuteSql("select 1 from STENILCANUSEPRO where sp_stcode='" + SU_DEVCODE.Text + "' and sp_prodcode='" + ma_prodcode.Text + "'", "select");
|
|
|
//if (dt.Rows.Count == 0)
|
|
|
//{
|