public ActionResult Index(JobPayWay JobPayWay, EFPagingInfo <JobPayWay> p) { p.PageSize = 9999; p.OrderByList.Add("Sort", "ASC"); IPageOfItems <JobPayWay> JobPayWayList = Entity.Selects <JobPayWay>(p); ViewBag.JobPayWayList = JobPayWayList.OrderByDescending(o => o.State).ThenBy(o => o.Sort).ToList(); ViewBag.JobPayWay = JobPayWay; ViewBag.Edit = this.checkPower("Edit"); ViewBag.Save = this.checkPower("Save"); return(View()); }
public ActionResult Index(PayConfig PayConfig, EFPagingInfo <PayConfig> p) { if (!PayConfig.Name.IsNullOrEmpty()) { p.SqlWhere.Add(f => f.Name.Contains(PayConfig.Name)); } if (!PayConfig.State.IsNullOrEmpty()) { p.SqlWhere.Add(f => f.State == PayConfig.State); } p.PageSize = 9999; p.OrderByList.Add("Sort", "ASC"); IPageOfItems <PayConfig> PayConfigList = Entity.Selects <PayConfig>(p); ViewBag.PayConfigList = PayConfigList.OrderByDescending(o => o.State).ThenBy(o => o.Sort).ToList(); ViewBag.PayConfig = PayConfig; ViewBag.Save = this.checkPower("Save"); return(View()); }
public ActionResult Index(FastPayWay FastPayWay, EFPagingInfo <FastPayWay> p) { if (!FastPayWay.Title.IsNullOrEmpty()) { p.SqlWhere.Add(f => f.Title.Contains(FastPayWay.Title)); } if (!FastPayWay.State.IsNullOrEmpty()) { p.SqlWhere.Add(f => f.State == FastPayWay.State); } p.PageSize = 9999; p.OrderByList.Add("State", "DESC"); IPageOfItems <FastPayWay> FastPayWayList = Entity.Selects <FastPayWay>(p); ViewBag.FastPayWayList = FastPayWayList.OrderByDescending(o => o.State).ThenBy(o => o.Sort).ToList(); ViewBag.FastPayWay = FastPayWay; ViewBag.Save = this.checkPower("Save"); ViewBag.SetManE = this.checkPower("SetManE"); ViewBag.Remove = this.checkPower("Remove"); return(View()); }