/// <summary> /// 读取所有系统功能记录 /// </summary> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List <SysFunction> LoadFunctions(long nOpStaffId, string strOpStaffName, out string strErrText) { try { List <SysFunction> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (PermissionDAO dao = new PermissionDAO()) { dataResult = dao.LoadFunctions(nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return(dataResult); } catch (Exception e) { strErrText = e.Message; return(null); } }