// // GET: /Monitoring/ActionProfile/SearchActionList/ public ActionResult SearchActionList(JQueryDataTableParamModel param, string txtActionProfile, string txtEmail, string txtSms) { //JQueryDataTableParamModel param = new JQueryDataTableParamModel(); //param.sEcho = String.IsNullOrEmpty(Context.Request["sEcho"]) ? "0" : Context.Request["sEcho"]; //param.sSearch = String.IsNullOrEmpty(Context.Request["sSearch"]) ? "" : Context.Request["sSearch"]; //param.iDisplayStart = String.IsNullOrEmpty(Context.Request["iDisplayStart"]) ? 0 : Convert.ToInt32(Context.Request["iDisplayStart"]); //param.iDisplayLength = String.IsNullOrEmpty(Context.Request["iDisplayLength"]) ? 0 : Convert.ToInt32(Context.Request["iDisplayLength"]); ActionProfileServiceClient apClient = new ActionProfileServiceClient(); var searchResult = apClient.Search(param, txtActionProfile, txtEmail, txtSms); int?totalRecords = 0; totalRecords = searchResult.TotalRecords; var data = new { sEcho = param.sEcho, iTotalRecords = totalRecords, iTotalDisplayRecords = totalRecords, aaData = searchResult.ListActionProfile }; return(Json(data, JsonRequestBehavior.AllowGet));; }
public ActionProfileService(string urlWebService) { try { _actionProfileService = new ActionProfileServiceClient(); Initialize(urlWebService); } catch (Exception ex) { _actionProfileService = null; throw new RMSWebException(this, "0500", "ActionProfileService ctor failed. " + ex.Message, ex, false); } }