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); }
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); }
//获取操作员列表 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); }
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("业务规则层异常。"); } }
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); }
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); }
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); }
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); }
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); }
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); }