示例#1
0
 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));
 }
示例#2
0
 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));
 }
示例#3
0
 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));
 }
示例#4
0
 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));
 }
示例#5
0
 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());
 }
示例#6
0
 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));
 }
示例#7
0
 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));
 }
示例#8
0
 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));
 }
示例#9
0
 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>());
 }
示例#10
0
 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));
 }
示例#11
0
 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));
 }
示例#12
0
 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));
 }
示例#13
0
 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));
 }
示例#14
0
 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));
 }
示例#15
0
 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));
 }
示例#16
0
 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"));
 }
示例#17
0
 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));
 }
示例#18
0
 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));
 }
示例#19
0
 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));
 }
示例#20
0
 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));
 }
示例#21
0
 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));
 }
示例#22
0
 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));
 }
示例#23
0
 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));
 }
示例#24
0
 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));
 }
示例#25
0
 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));
 }
示例#26
0
 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));
 }
示例#27
0
 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));
 }
示例#28
0
 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));
 }
示例#29
0
 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));
 }
示例#30
0
 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));
 }