示例#1
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));
 }
示例#2
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));
 }
示例#3
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));
 }
示例#4
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));
 }
示例#5
0
 public int Insert(Chances chance)
 {
     if (Session["user"] == null)
     {
         return(-1000);
     }
     if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 5))
     {
         return(-1001);
     }
     chance.ChanCreateMan = (Session["user"] as Users).UserID;
     return(ChancesDAL.InsertSaleChance(chance));
 }