Ejemplo n.º 1
0
 public virtual bool EditSupplierCommissionCategory(SupplierCommissionCategoryInfo entity, RBACUserInfo UserPrivilege)
 {
     if (RBAC.CheckPrivilege(UserPrivilege, "deaa9168-3ffc-42c3-bb94-829fbf7f2e22"))
     {
         return(MyDAL.EditSupplierCommissionCategory(entity));
     }
     else
     {
         throw new TradePrivilegeException("没有权限");
     }
 }
Ejemplo n.º 2
0
 public virtual bool AddSupplierCommissionCategory(SupplierCommissionCategoryInfo entity, RBACUserInfo UserPrivilege)
 {
     if (RBAC.CheckPrivilege(UserPrivilege, "fca14348-91f1-4522-8063-98ff215d5dab"))
     {
         return(MyDAL.AddSupplierCommissionCategory(entity));
     }
     else
     {
         throw new TradePrivilegeException("没有权限");
     }
 }