/// <summary> /// 客户不同意计划 /// </summary> /// <param name="nId"></param> /// <param name="strDisagreeOpinion"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public bool CustomerDisagreeDeliverPlan(long nId, string strDisagreeOpinion, long nOpStaffId, string strOpStaffName, out string strErrText) { try { using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (PlanDAO dao = new PlanDAO()) { if (!dao.CustomerDisagreeDeliverPlan(nId, strDisagreeOpinion, nOpStaffId, strOpStaffName, out strErrText)) { return(false); } } transScope.Complete(); } return(true); } catch (Exception e) { strErrText = e.Message; return(false); } }