// GET: /EoDepartment/CodeQuery public ActionResult CodeQuery(FormCollection collection) { var qm = new EoDepartmentQryModel(); var bln = this.TryUpdateModel(qm); ViewBag.RequestKey = qm.RequestKey; return(View()); }
// GET: /EoDepartment/CodeQuery_Multi public ActionResult CodeQuery_Multi(FormCollection collection) //string Value, string Name, string Ownership) { var qm = new EoDepartmentQryModel(); var isOK = this.TryUpdateModel(qm); ViewBag.RequestKey = qm.RequestKey; return(View()); }
public EO_DepartmentDataTable EoDepartment_getList(EoDepartmentQryModel qm) { var dt = NsDmHelper.EO_Department .selectAll(t => t.AllExt) .where (t => t.EOD_DepartmentCode == qm.Q_DepartmentCode.toConstOpt1() & t.EOD_DepartmentName.contains(qm.Q_DepartmentName.toConstOpt1()) ) .query(); return(dt); }
public ActionResult CodeQuery_Multi(FormCollection collection, int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null) { //查詢參數 var token = collection["__RequestVerificationToken"]; var qm = new EoDepartmentQryModel(); var isOK = this.TryUpdateModel(qm); var dt = EoDataService.Instance.EoDepartment_getList(qm); var dtSorted = dt.sort(jtSorting); if (Request.IsAjaxRequest()) { return(converToJTableSource(dtSorted, jtStartIndex, jtPageSize)); } else { return(View(dt)); } }