public async Task <JsonResult> WebEvtSelect(string EventId) { var Selects = new LookupParameters { EventType = await BaseService.GetEvtType(), Priority = await BaseService.GetRefLib("Priority"), Status = await BaseService.GetRefLib("Status"), Scope = await BaseService.GetRefLib("Scope"), Owner = await BaseService.GetRefLib("NtfEventOwner"), Frequency = await BaseService.GetRefLib("NtfEventPeriodType"), Languages = await BaseService.GetRefLib("Language") }; var models = (await NotifSearchService.GetEventSelect(EventId)).lookupParameters; return(Json(new { Model = models, Selects = Selects }, JsonRequestBehavior.AllowGet)); }
public async Task <ActionResult> FillData(string Prefix, string Id) { //EventConfigMaint _EventConfigMaint = new EventConfigMaint(); var _LookupParameters = new LookupParameters { EventInd = await BaseService.GetEvtInd(), //WebGetEvtInd(), RefTo = await BaseService.GetEvtRef("I"), //await WebGetEvtRef("I"), EventType = await BaseService.GetEvtType(), //await _EventConfigMaint.WebGetEvtType(), Priority = await BaseService.GetRefLib("Priority"), //await WebGetRefLib("Priority"), Status = await BaseService.GetRefLib("Status"), //await WebGetRefLib("Status"), Scope = await BaseService.GetRefLib("Scope"), //await WebGetRefLib("Scope"), Owner = await BaseService.GetRefLib("NtfEventOwner"), //await WebGetRefLib("NtfEventOwner"), Frequency = await BaseService.GetRefLib("NtfEventPeriodType"), //await WebGetRefLib("NtfEventPeriodType"), Languages = await BaseService.GetRefLib("Language"), //await WebGetRefLib("Language"), }; switch (Prefix) { case "lis": return(Json(new { Selects = _LookupParameters, Model = new LookupParameters() }, JsonRequestBehavior.AllowGet)); case "det": var Info = (await NotifSearchService.GetEventSelect(Id)).lookupParameters; return(Json(new { Selects = _LookupParameters, Model = Info }, JsonRequestBehavior.AllowGet)); default: return(Json(new { }, JsonRequestBehavior.AllowGet)); } }
public async Task <ActionResult> WebEventSelect(String EventId) { var list = (await NotifSearchService.GetEventSelect(EventId)).lookupParameters; return(Json(list, JsonRequestBehavior.AllowGet)); }