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 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 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 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 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)); }