public List <LinkMans> LoadLinkMans(int cusID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 8)) { return(null); } return(LinkMansDAL.LoadByCusID(cusID)); }
public List <MenuV2> LoadPowers(int RoleID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 17)) { return(null); } return(PowerDAL.SelectPowers(RoleID)); }
public int UpdateUser(Users u) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 15)) { return(-1001); } return(UsersDAL.UpdateUser(u)); }
public int Remove(int chanID) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 5)) { return(-1001); } return(BaseDAL.Delete <Chances>(chanID)); }
public List <Role> LoadRole() { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 15)) { return(null); } return(RoleDAL.LoadRole()); }
public int UpdateChanState(int chanID, int chanState, string chanError) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 7)) { return(-1001); } return(PlansDAL.UpdateChanState(chanID, chanState, chanError, (Session["user"] as Users).UserID)); }
public Chances Find(int chanID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 5)) { return(null); } return(BaseDAL.Find <Chances>(chanID)); }
public PagingList <v_CustomServices> LoadServiceDetailPaging(int pageSize, int pageIndex, string cusName, string STID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 14)) { return(null); } return(CustomServicesDAL.LoadServiceDetailPaging(pageSize, pageIndex, cusName, STID)); }
public List <ServiceType> LoadServiceType() { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 10)) { return(null); } return(BaseDAL.SelectAll <ServiceType>()); }
public int SaveCSDeal(string csDeal, int csID) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 12)) { return(-1001); } return(CustomServicesDAL.SaveCSDeal(csDeal, csID)); }
public int SaveCSResult(string csResult, int csSatisfy, int csID) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 13)) { return(-1001); } return(CustomServicesDAL.SaveCSResult(csResult, csSatisfy, csID)); }
public v_CustomServices LoadServiceByID(int csID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 12)) { return(null); } return(CustomServicesDAL.LoadServiceByID(csID)); }
public LinkMans FindLinkMan(int id) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 8)) { return(null); } return(LinkMansDAL.Find(id)); }
public int InsertLinkMan(LinkMans linkMan) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 8)) { return(-1001); } return(LinkMansDAL.Insert(linkMan)); }
public int InsertPlanContent(int chanID, string planContent) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 7)) { return(-1001); } return(PlansDAL.InsertPlanContent(chanID, planContent)); }
public List <customers> Loadcustomers() { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 10)) { return(null); } return(BaseDAL.Select <customers>("select * from customers where CusState=1")); }
public int UpdatePlan(int planID, string planResult) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 7)) { return(-1001); } return(PlansDAL.UpdatePlan(planID, planResult)); }
public int InsertService(CustomServices cusser) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 10)) { return(-1001); } return(CustomServicesDAL.InsertService(cusser, (Session["user"] as Users).UserID)); }
public PagingList <Chances> LoadSalePading(int pageIndex, int pageSize) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 5)) { return(null); } return(ChancesDAL.PadingSaleChance(pageSize, pageIndex)); }
public PagingList <v_CustomServices> LoadServiceAllotPaging(int pageSize, int pageIndex) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 11)) { return(null); } return(CustomServicesDAL.LoadServiceAllotPaging(pageSize, pageIndex)); }
public int UpdatePart(Chances chance) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 5)) { return(-1001); } return(ChancesDAL.UpdateSaleChance(chance)); }
public int UpdateCSDueMan(int?csDueID, int csID) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 11)) { return(-1001); } return(CustomServicesDAL.UpdateCSDueMan(csDueID, csID)); }
public PagingList <v_chances> LoadSaleAllotPading(int pageSize, int pageIndex, string chanName, string chanLinkMan, string chanCreateManName, string chanDueManName) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 6)) { return(null); } return(ChancesDAL.PadingSaleAllot(pageSize, pageIndex, chanName, chanLinkMan, chanCreateManName, chanDueManName)); }
public List <Users> LoadChanDueManNameList(string nameCode) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 11)) { return(null); } return(UsersDAL.LoadUsersByName(nameCode)); }
public int UpdateRole(Role r) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 16)) { return(-1001); } return(RoleDAL.UpdateRole(r)); }
public int UpdateChanDueMan(int?chanDueMan, int chanID) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 6)) { return(-1001); } return(ChancesDAL.UpdateChanDueMan(chanDueMan, chanID)); }
public bool UpdatePowers(int RoleID, int[] Powers) { if (Session["user"] == null) { return(false); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 17)) { return(false); } return(PowerDAL.UpdatePowers(RoleID, Powers)); }
public List <Plans> LoadPlansByChanID(int chanID) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 7)) { return(null); } return(PlansDAL.LoadByChanID(chanID)); }
public PagingList <Role> LoadRolePaging(int pageSize, int pageIndex) { if (Session["user"] == null) { return(null); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 16)) { return(null); } return(RoleDAL.LoadRolePaging(pageSize, pageIndex)); }
public int UpdateCustomer(Customers cus) { if (Session["user"] == null) { return(-1000); } if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 8)) { return(-1001); } return(CustomersDAL.Update(cus)); }