| | |
| | | public bool SaveICMOProductReportBill_ICMO_CLD_Layui(Model.ClsSc_ICMOReportBillMain oMain,string workcode,int HSourceID, string sHSourceType, Pub_Class.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); //建立一个 事务; |
| | | string aa = ""; |
| | | try |
| | | { |
| | | |
| | |
| | | oMain.HGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HGroupID"]); |
| | | oMain.HDeptID = DBUtility.ClsPub.isLong(ds0.Tables[0].Rows[0]["HDeptID"]); |
| | | oMain.HPRDORGID = DBUtility.ClsPub.isLong(ds0.Tables[0].Rows[0]["HPRDORGID"]); |
| | | aa = "aa:" + oMain.HGroupID + "bb:" + oMain.HDeptID + "cc:" + oMain.HPRDORGID; |
| | | //插入子表 |
| | | oCn.RunProc("exec h_p_Sc_ICMOReportBillSub_Insert_WorkQty " + oMain.HInterID.ToString() + ",'" + oMain.HBillNo + "','" + sHSourceType + "'"); |
| | | //插入主表 |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sErrMsg = "生成生产汇报单失败!" + e.Message; |
| | | sErrMsg = "生成生产汇报单失败!" + e.Message+ aa; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |