//// GET: /EoMenuFun/ //public ActionResult Index() //{ // return View(); //} // GET: /EoMenuFun/CodeQuery public ActionResult CodeQuery(FormCollection collection) { var qm = new EoMenuFunQryModel(); var bln = this.TryUpdateModel(qm); ViewBag.RequestKey = qm.RequestKey; return(View()); }
public EO_MenuFunDataTable EoMenuFun_getList(EoMenuFunQryModel qm) { var dt = NsDmHelper.EO_MenuFun .selectAll(t => t.AllExt) .where (t => t.EOMF_FunctionCode == qm.Q_FunctionCode.toConstOpt1() & t.EOMF_ItemNo == qm.Q_ItemNo.toConstOpt1() & t.EOMF_ToolbarLevel == qm.Q_ToolbarLevel.toConstOpt1() & t.EOMF_FunctionName.contains(qm.Q_FunctionName.toConstOpt1()) ) .orderby(t => new[] { t.EOMF_ItemNo.Asc, t.EOMF_SeqNo.Asc }) .query(); return(dt); }
public ActionResult List(FormCollection collection, int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null) { //查詢參數 var qm = new EoMenuFunQryModel(); var isOK = this.TryUpdateModel(qm); var token = collection["__RequestVerificationToken"]; var dt = EoDataService.Instance.EoMenuFun_getList(qm); //排序 var dtSorted = dt.sort(jtSorting); if (Request.IsAjaxRequest()) { return(converToJTableSource(dtSorted, jtStartIndex, jtPageSize)); } else { return(View(dt)); } }