|
|
@@ -303,6 +303,11 @@ namespace UAS_MES_NEW.OQC
|
|
|
"'" + User.UserCode + "',sysdate,'" + ms_stepcode + "','" + User.UserSourceCode + "','QCError','QCError','抽检不良','客户抽检不良'," +
|
|
|
"to_char(sysdate,'yyyymmdd'),'" + User.UserLineCode + "','Client','" + pcd_ngretuenstep + "')", "insert");
|
|
|
|
|
|
+ //打不良时自动拆解B_LINK1-B_LINK5上的在制物料:未拆解的记录置-1并记录拆解时间/拆解人
|
|
|
+ dh.ExecuteSql("update craftmaterial set cm_status=-1,CM_DROPDATE=sysdate,CM_DROPMAN='不良自动拆解'" +
|
|
|
+ " where cm_sncode='" + ms_sncode.Text + "'" +
|
|
|
+ " and cm_stepcode in ('B_LINK1','B_LINK2','B_LINK3','B_LINK4','B_LINK5') and cm_status<>-1", "update");
|
|
|
+
|
|
|
if (ReturnStep.Checked)
|
|
|
{
|
|
|
sql.Clear();
|