コード例 #1
0
        public IHttpActionResult GetFeeRecords(int feeNo, DateTime st, DateTime et)
        {
            var response = _costService.QueryCommonRec(new BaseRequest <ServiceRecordFilter>()
            {
                PageSize    = 999999,
                CurrentPage = 1,
                Data        = new ServiceRecordFilter()
                {
                    FeeNo = feeNo
                }
            });

            //TODO, 改进转义方式
            foreach (var fee in response.Data)
            {
                if (fee.RecordType == "S")
                {
                    fee.RecordType = "服务";
                }
                else if (fee.RecordType == "M")
                {
                    fee.RecordType = "耗材";
                }
                else if (fee.RecordType == "D")
                {
                    fee.RecordType = "药品";
                }
            }
            return(Ok(response));
        }
コード例 #2
0
        public IHttpActionResult Get(int currentPage, int pageSize, long feeNo)
        {
            var response = new BaseResponse <IList <CommonRecord> >();
            BaseRequest <ServiceRecordFilter> request = new BaseRequest <ServiceRecordFilter>
            {
                CurrentPage = currentPage,
                PageSize    = pageSize,
                Data        = new ServiceRecordFilter
                {
                    FeeNo = feeNo,
                }
            };

            response = service.QueryCommonRec(request);
            return(Ok(response));
        }