/// <summary> /// Generate xml for invoice list of specific billing target code of screen session /// </summary> /// <returns></returns> public ActionResult ICS082_GetInvoiceGrid() { List <doUnpaidInvoice> doUnpaidInvoice = new List <doUnpaidInvoice>(); ObjectResultData res = new ObjectResultData(); res.MessageType = MessageModel.MESSAGE_TYPE.WARNING; try { if (ICS082_ScreenData != null && !string.IsNullOrEmpty(ICS082_ScreenData.BillingTargetCode)) { //Get Data IIncomeHandler handler = ServiceContainer.GetService <IIncomeHandler>() as IIncomeHandler; doUnpaidInvoice = handler.GetUnpaidInvoiceByBillingTarget(ICS082_ScreenData.BillingTargetCode); } } catch (Exception ex) { res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION; res.AddErrorMessage(ex); return(Json(res)); } res.ResultData = CommonUtil.ConvertToXml <doUnpaidInvoice>(doUnpaidInvoice, "Income\\ICS082", CommonUtil.GRID_EMPTY_TYPE.SEARCH); return(Json(res)); }