/// <summary> /// 合并调度单 /// </summary> /// <param name="strIds"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="bShipmentBillMerged"></param> /// <param name="bDeliverBillMerged"></param> /// <param name="strErrText"></param> /// <returns></returns> public long MergeDispatchBills(string strIds, long nOpStaffId, string strOpStaffName, out bool bShipmentBillMerged, out bool bDeliverBillMerged, out string strErrText) { long nNewId = 0; try { using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (DispatchDAO dao = new DispatchDAO()) { nNewId = dao.MergeDispatchBills(strIds, nOpStaffId, strOpStaffName, out bShipmentBillMerged, out bDeliverBillMerged, out strErrText); if (nNewId <= 0) { return(0); } } transScope.Complete(); } return(nNewId); } catch (Exception e) { bShipmentBillMerged = false; bDeliverBillMerged = false; strErrText = e.Message; return(0); } }