示例#1
0
        public static int AddOperFunction(OperFunction operFunction)
        {
            int ret = 0;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                ret = auth.AddOperFunction(operFunction);
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
            }
            return(ret);
        }
示例#2
0
        public static DataTable GetOneOperFunctionList(string strOperID)
        {
            DataTable dtRet = null;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                dtRet = auth.GetOneOperFunctionList(strOperID);
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
            }
            return(dtRet);
        }
示例#3
0
        //获取操作员列表
        public static DataTable GetAllOper()
        {
            DataTable dtRet = null;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                dtRet = auth.GetAllOper();
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
            }

            return(dtRet);
        }
示例#4
0
 public static void AddDept(Dept dept, BusiLog busiLog)
 {
     try
     {
         BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
         auth.AddDept(dept, busiLog);
     }
     catch (SqlException sex)
     {
         LogAdapter.WriteDatabaseException(sex);
         throw new Exception("数据库访问异常。");
     }
     catch (Exception ex)
     {
         LogAdapter.WriteFeaturesException(ex);
         throw new Exception("业务规则层异常。");
     }
 }
示例#5
0
        public static string GetDeptID(string strParentDeptID)
        {
            string strDeptID = "";

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                strDeptID = auth.GetDeptID(strParentDeptID);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }
            return(strDeptID);
        }
示例#6
0
        public static int AddOilPrice(OilPrice price, BusiLog busiLog)
        {
            int ret = 0;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                ret = auth.AddOilPrice(price, busiLog);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }
            return(ret);
        }
示例#7
0
        public static Oper GetOper(Oper oper)
        {
            Oper OldOper = null;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                OldOper = auth.GetOper(oper);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }
            return(OldOper);
        }
示例#8
0
        public static int DeleteOperFunc(OperFunc operFunc, BusiLog busiLog)
        {
            int ret = 0;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                ret = auth.DeleteOperFunc(operFunc, busiLog);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }
            return(ret);
        }
示例#9
0
        public static DataTable GetOneOperFuncList(string strOperID)
        {
            DataTable dtRet = null;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                dtRet = auth.GetOneOperFuncList(strOperID);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }
            return(dtRet);
        }
示例#10
0
        public static Dept GetDept(Dept dept)
        {
            Dept retDept = null;

            try
            {
                BusinessRules.SysManage.Authorization auth = new BusinessRules.SysManage.Authorization();
                retDept = auth.GetDept(dept);
            }
            catch (SqlException sex)
            {
                LogAdapter.WriteDatabaseException(sex);
                throw new Exception("数据库访问异常。");
            }
            catch (Exception ex)
            {
                LogAdapter.WriteFeaturesException(ex);
                throw new Exception("业务规则层异常。");
            }

            return(retDept);
        }