|
|
@@ -265,7 +265,7 @@ namespace UAS_MES.OQC
|
|
|
if (oi_itemcode_insert.Count > 0)
|
|
|
{
|
|
|
string[] id = new string[oi_itemcode_insert.Count];
|
|
|
- id = dh.GetSEQ("OQCItemSamples_SEQ", "OQCItemSamples", id.Length);
|
|
|
+ id = dh.GetSEQ("OQCItemSamples_SEQ", id.Length);
|
|
|
sql.Clear();
|
|
|
sql.Append("insert when (not exists (select ois_id from OQCItemSamples where ois_checkno='" + ob_checkno.Text + "' and ois_sncode='" + sncode.Text + "' and ois_itemcode =:ois_itemcode)) then ");
|
|
|
sql.Append("into OQCItemSamples (ois_id,ois_checkno,ois_makecode, ois_sncode,ois_projectcode,ois_itemcode,");
|
|
|
@@ -298,7 +298,7 @@ namespace UAS_MES.OQC
|
|
|
sql.Append(",mb_sourcecode,mb_badcode,mb_bgcode,mb_badtable,mb_soncode,mb_status)");
|
|
|
sql.Append("select makebad_seq.nextval,ma_code,ms_code,ms_sncode,'" + User.UserCode + "',sysdate,'" + User.CurrentStepCode + "',ms_sourcecode,:bc_code,:bg_code,'',");
|
|
|
sql.Append("sp_soncode,'0' from make left join makeSerial on ms_makecode=ma_code left join stepProduct on ");
|
|
|
- sql.Append("sp_mothercode=ma_prodcode and sp_stepcode=ms_nextstepcode where ms_sncode='" + sncode.Text + "' and ms_makecode='"+ob_makecode.Text+"'");
|
|
|
+ sql.Append("sp_mothercode=ma_prodcode and sp_stepcode=ms_nextstepcode where ms_sncode='" + sncode.Text + "' and ms_makecode='" + ob_makecode.Text + "'");
|
|
|
dh.BatchInsert(sql.GetString(), new string[] { "bc_code", "bg_code" }, bc_code.ToArray(), bg_code.ToArray());
|
|
|
}
|
|
|
//更新项目编号中的抽检数、不合格数,根据采样项目记录
|