public EO_UserEventDataTable EoUserEvent_getList(EoUserEventQryModel qm) { var dt = NsDmHelper.EO_UserEvent .selectAll(t => t.AllExt) .where (t => t.EOUE_EventCode == qm.Q_EventCode.toConstOpt1() & t.EOUE_KindName == qm.Q_KindName.toConstOpt1() & t.EOUE_Description == qm.Q_Description.toConstOpt1() ) .query(); return(dt); }
public ActionResult List(FormCollection collection, int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null) { //查詢參數 var qm = new EoUserEventQryModel(); var isOK = this.TryUpdateModel(qm); var token = collection["__RequestVerificationToken"]; var dt = EoDataService.Instance.EoUserEvent_getList(qm); //排序 var dtSorted = dt.sort(jtSorting); if (Request.IsAjaxRequest()) { return(converToJTableSource(dtSorted, jtStartIndex, jtPageSize)); } else { return(View(dt)); } }