|
|
@@ -362,9 +362,9 @@ namespace UAS_MES.Make
|
|
|
sql.Append("cm_dropsccode='" + User.UserSourceCode + "' where cm_id='" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "'");
|
|
|
dh.ExecuteSql(sql.GetString(), "update");
|
|
|
|
|
|
- //将新批号绑定到序列号中
|
|
|
- dt = (DataTable)dh.ExecuteSql("select sp_id from stepproduct where sp_mothercode='" + ms_prodcode.Text + "'", "select");
|
|
|
- string sp_id = dt.Rows[0]["sp_id"].ToString();
|
|
|
+ ////将新批号绑定到序列号中
|
|
|
+ //dt = (DataTable)dh.ExecuteSql("select sp_id from stepproduct where sp_mothercode='" + LabelDataGridView.Rows[i].Cells["cm_maprodcode"].Value + "'", "select");
|
|
|
+ //string sp_id = dt.Rows[0]["sp_id"].ToString();
|
|
|
sql.Clear();
|
|
|
sql.Append("insert into craftmaterial (cm_id, cm_makecode,cm_maid,cm_maprodcode,cm_soncode,cm_mscode,cm_sncode,cm_stepcode,cm_stepname,");
|
|
|
sql.Append("cm_craftcode,cm_craftname,cm_barcode,cm_inqty,cm_indate,cm_inman,cm_linecode,cm_wccode,cm_sourcecode,cm_spid, cm_materialtype,cm_status,cm_fsoncode,cm_firstsn)");
|