예제 #1
0
        private void FilLReport()
        {
            var result = BillReportBusinessLogic.GetBillPartyWiseReport(int.Parse(cbPartyWise.SelectedValue.ToString()), ddlStartDate.Value, ddlEndDate.Value);
            BRCTransport.Window.ReportFiles.BillReport myDataReport = new BRCTransport.Window.ReportFiles.BillReport();

            BillReportDTO bill = new BillReportDTO();

            myDataReport.SetDataSource(result);

            crystalReportViewer.ReportSource = myDataReport;
        }
예제 #2
0
        public async Task <ResultModel <BillReportDTO> > GetBillReport(QueryBillReportFilterRequestModel requestModel)
        {
            try
            {
                Guid userID = _userService.GetUserID(requestModel.Token);
                var  model  = _mapper.Map <QueryBillReportFilterModel>(requestModel);
                model.UserID = userID;
                BillReportDTO result = await _billService.GetBillReportAsync(model);

                return(ResultModel <BillReportDTO> .Success(result, "查询成功"));
            }
            catch (InvalidOperationException ex)
            {
                return(ResultModel <BillReportDTO> .Fail(null, ex.Message));
            }
        }