/// <summary> /// Get auto transfer bank file list (csv) /// </summary> /// <param name="cond"></param> /// <returns></returns> public ActionResult BLS080_SearchResponse(BLS080_SearchCondition cond) { ObjectResultData res = new ObjectResultData(); res.MessageType = MessageModel.MESSAGE_TYPE.WARNING; List <dtDownloadAutoTransferBankFile> list = new List <dtDownloadAutoTransferBankFile>(); try { // Check required field. //if (ModelState.IsValid == false) //{ // ValidatorUtil.BuildErrorMessage(res, this); // if (res.IsError) // return Json(res); //} if (CommonUtil.IsNullAllField(cond)) { res.AddErrorMessage(MessageUtil.MODULE_COMMON, MessageUtil.MessageList.MSG0006); } IBillingHandler handlerBilling = ServiceContainer.GetService <IBillingHandler>() as IBillingHandler; list = handlerBilling.GetDownloadAutoTransferBankFile(cond.SecomAccountID, cond.AutoTranferDateFrom, cond.AutoTranferDateTo, cond.GeneateDateFrom, cond.GeneateDateTo); } catch (Exception ex) { res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION; res.AddErrorMessage(ex); } res.ResultData = CommonUtil.ConvertToXml <dtDownloadAutoTransferBankFile>(list, "Billing\\BLS080_SearchResult", CommonUtil.GRID_EMPTY_TYPE.SEARCH); return(Json(res)); }