/// <summary> /// 提交发货计划数据 /// </summary> /// <param name="nId"></param> /// <param name="bIsAgreed"></param> /// <param name="strApproveComment"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strMessage"></param> /// <returns></returns> public bool SubmitDeliverPlan(long nId, bool bIsAgreed, string strApproveComment, long nOpStaffId, string strOpStaffName, out string strMessage) { try { using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (PlanDAO dao = new PlanDAO()) { if (!dao.SubmitDeliverPlan(nId, bIsAgreed, strApproveComment, nOpStaffId, strOpStaffName, out strMessage)) { return(false); } } transScope.Complete(); } return(true); } catch (Exception e) { strMessage = e.Message; return(false); } }