Esempio n. 1
0
        public IHttpActionResult SearchPaymentRecord(PaymentSearchRequest model)
        {
            GetRecordListResponse <PaymentRecordResponse> response = new GetRecordListResponse <PaymentRecordResponse>()
            {
                IsSuccess      = true,
                MessageCode    = (int)ApiBaseErrorCode.API_SUCCESS,
                MessageContent = ApiBaseErrorCode.API_SUCCESS.ToString()
            };

            if (string.IsNullOrWhiteSpace(model.ParkingCode))
            {
                response.IsSuccess      = false;
                response.MessageCode    = (int)ApiBaseErrorCode.API_PARAM_ERROR;
                response.MessageContent = "车场编码不能为空,请检查";
                return(Ok(response));
            }
            GetRecordListResponse <PaymentRecordResponse> opengatereasonlistmodel = _reportManager.SearchPaymentRecord(model);

            if (opengatereasonlistmodel != null)
            {
                response = opengatereasonlistmodel;
            }
            else
            {
                response.IsSuccess      = false;
                response.MessageCode    = (int)ApiPersonnelErrorCode.API_DATA_NULL_ERROR;
                response.MessageContent = ApiPersonnelErrorCode.API_DATA_NULL_ERROR.ToString();
            }
            return(Ok(response));
        }
Esempio n. 2
0
        /// <summary>
        /// 读取异常开闸列表(报表)
        /// </summary>
        /// <param name="parkCode"></param>
        /// <returns></returns>
        public GetRecordListResponse <OpenGateRecordResponse> GetOpenGateRecordList(OpenGateSearchRequest model)
        {
            GetRecordListResponse <OpenGateRecordResponse> responseModel = null;
            RequestFujicaReportStatistical requestFujica = new RequestFujicaReportStatistical();
            //请求方法
            string servername = "SearchRecord/SearchOpenGateRecord";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["ParkingCode"]       = model.ParkingCode;
            dicParam["EntranceType"]      = model.EntranceType;
            dicParam["OpenGateStartTime"] = model.OpenGateStartTime;
            dicParam["OpenGateEndTime"]   = model.OpenGateEndTime;
            dicParam["OpenGateOperator"]  = model.OpenGateOperator;
            dicParam["NextToken"]         = model.NextToken; //就是第一次查询,需要制定当前页  页大小 ,需要下一页的时候,直接给这个nexttoken就可以了
            dicParam["PageIndex"]         = model.PageIndex;
            dicParam["PageSize"]          = model.PageSize;
            dicParam["Sort"]      = model.Sort;
            dicParam["FieldSort"] = model.FieldSort;
            bool falg = requestFujica.RequestFujicaReport(servername, dicParam);

            if (falg)
            {
                string fujicaResult = requestFujica.FujicaResult;
                if (!string.IsNullOrEmpty(fujicaResult))
                {
                    //解析返回参数json字符串
                    GetRecordListResponse <OpenGateRecordResponse> response = m_serializer.Deserialize <GetRecordListResponse <OpenGateRecordResponse> >(fujicaResult);
                    responseModel = response;
                }
            }
            return(responseModel);
        }
Esempio n. 3
0
        /// <summary>
        /// 查询充值记录(报表)
        /// </summary>
        /// <param name="parkCode"></param>
        /// <returns></returns>
        public GetRecordListResponse <RechargeRecordResponse> SearchRechargeRecord(RechargeSearchRequest model)
        {
            GetRecordListResponse <RechargeRecordResponse> responseModel = null;
            RequestFujicaReportStatistical requestFujica = new RequestFujicaReportStatistical();
            //请求方法
            string servername = "SearchRecord/SearchRechargeRecord";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["Id"]                   = model.Id;
            dicParam["ParkingCode"]          = model.ParkingCode;
            dicParam["LicensePlate"]         = model.LicensePlate;
            dicParam["TransactionCode"]      = model.TransactionCode;
            dicParam["UserCode"]             = model.UserCode;
            dicParam["OpenId"]               = model.OpenId;
            dicParam["OwnerName"]            = model.OwnerName;
            dicParam["PhoneNumber"]          = model.PhoneNumber;
            dicParam["GroupParkingCode"]     = model.GroupParkingCode;
            dicParam["RechargeOperator"]     = model.RechargeOperator;
            dicParam["InvoiceCode"]          = model.InvoiceCode;
            dicParam["RenewalType"]          = model.RenewalType;
            dicParam["PaymentType"]          = model.PaymentType;
            dicParam["OrderType"]            = model.OrderType;
            dicParam["CardType"]             = model.CardType;
            dicParam["CarType"]              = model.CarType;
            dicParam["OrderStauts"]          = model.OrderStauts;
            dicParam["OperatType"]           = model.OperatType;
            dicParam["InvoiceState"]         = model.InvoiceState;
            dicParam["TransactionStartTime"] = model.TransactionStartTime;
            dicParam["TransactionEndTime"]   = model.TransactionEndTime;
            dicParam["ExpirationStartTime"]  = model.ExpirationStartTime;
            dicParam["ExpirationEndTime"]    = model.ExpirationEndTime;
            dicParam["CreateStartTime"]      = model.CreateStartTime;
            dicParam["CreateEndTime"]        = model.CreateEndTime;
            dicParam["InvoiceStartTime"]     = model.InvoiceStartTime;
            dicParam["InvoiceEndTime"]       = model.InvoiceEndTime;
            dicParam["NextToken"]            = model.NextToken; //就是第一次查询,需要制定当前页  页大小 ,需要下一页的时候,直接给这个nexttoken就可以了
            dicParam["PageIndex"]            = model.PageIndex;
            dicParam["PageSize"]             = model.PageSize;
            dicParam["Sort"]                 = model.Sort;
            dicParam["FieldSort"]            = model.FieldSort;
            bool falg = requestFujica.RequestFujicaReport(servername, dicParam);

            if (falg)
            {
                string fujicaResult = requestFujica.FujicaResult;
                if (!string.IsNullOrEmpty(fujicaResult))
                {
                    //解析返回参数json字符串
                    GetRecordListResponse <RechargeRecordResponse> response = m_serializer.Deserialize <GetRecordListResponse <RechargeRecordResponse> >(fujicaResult);
                    //List<MCoupon> ls = m_serializer.Deserialize<List<MCoupon>>(dicFujicaResult["CouponList"].ToString());
                    //responseModel.CouponList = ls;
                    responseModel = response;
                }
            }
            return(responseModel);
        }
Esempio n. 4
0
        /// <summary>
        /// 查询缴费记录(报表)
        /// </summary>
        /// <param name="parkCode"></param>
        /// <returns></returns>
        public GetRecordListResponse <PaymentRecordResponse> SearchPaymentRecord(PaymentSearchRequest model)
        {
            GetRecordListResponse <PaymentRecordResponse> responseModel = null;
            RequestFujicaReportStatistical requestFujica = new RequestFujicaReportStatistical();
            //请求方法
            string servername = "SearchRecord/SearchPaymentRecord";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["Id"] = model.Id;
            dicParam["ParkingRecordCode"]  = model.ParkingRecordCode;
            dicParam["ParkingCode"]        = model.ParkingCode;
            dicParam["LicensePlate"]       = model.LicensePlate;
            dicParam["CarType"]            = model.CarType;
            dicParam["DealNo"]             = model.DealNo;
            dicParam["UserCode"]           = model.UserCode;
            dicParam["OpenId"]             = model.OpenId;
            dicParam["PhoneNumber"]        = model.PhoneNumber;
            dicParam["Subject"]            = model.Subject;
            dicParam["TollOperator"]       = model.TollOperator;
            dicParam["InvoiceCode"]        = model.InvoiceCode;
            dicParam["InvoiceState"]       = model.InvoiceState;
            dicParam["PaymentType"]        = model.PaymentType;
            dicParam["OrderType"]          = model.OrderType;
            dicParam["AdmissionStartDate"] = model.AdmissionStartDate;
            dicParam["AdmissionEndDate"]   = model.AdmissionEndDate;
            dicParam["BillingStartTime"]   = model.BillingStartTime;
            dicParam["BillingDeadline"]    = model.BillingDeadline;
            dicParam["PaymentStartDate"]   = model.PaymentStartDate;
            dicParam["PaymentEndDate"]     = model.PaymentEndDate;
            dicParam["InvoiceStartTime"]   = model.InvoiceStartTime;
            dicParam["InvoiceEndTime"]     = model.InvoiceEndTime;
            dicParam["NextToken"]          = model.NextToken; //就是第一次查询,需要制定当前页  页大小 ,需要下一页的时候,直接给这个nexttoken就可以了
            dicParam["PageIndex"]          = model.PageIndex;
            dicParam["PageSize"]           = model.PageSize;
            dicParam["Sort"]      = model.Sort;
            dicParam["FieldSort"] = model.FieldSort;
            bool falg = requestFujica.RequestFujicaReport(servername, dicParam);

            if (falg)
            {
                string fujicaResult = requestFujica.FujicaResult;
                if (!string.IsNullOrEmpty(fujicaResult))
                {
                    //解析返回参数json字符串
                    GetRecordListResponse <PaymentRecordResponse> response = m_serializer.Deserialize <GetRecordListResponse <PaymentRecordResponse> >(fujicaResult);
                    //List<MCoupon> ls = m_serializer.Deserialize<List<MCoupon>>(dicFujicaResult["CouponList"].ToString());
                    //responseModel.CouponList = ls;
                    responseModel = response;
                }
            }
            return(responseModel);
        }
Esempio n. 5
0
        /// <summary>
        ///   查询停车记录(报表)
        /// </summary>
        /// <param name="parkCode"></param>
        /// <returns></returns>
        public GetRecordListResponse <ParkingRecordResponse> SearchParkingRecord(ParkingSearchRequest model)
        {
            GetRecordListResponse <ParkingRecordResponse> responseModel = null;
            RequestFujicaReportStatistical requestFujica = new RequestFujicaReportStatistical();
            //请求方法
            string servername = "SearchRecord/SearchParkingRecord";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["Id"]          = model.Id;
            dicParam["ParkingCode"] = model.ParkingCode;
            if (model.LicensePlate != null)
            {
                dicParam["LicensePlate"] = model.LicensePlate;
            }
            if (model.Entrance != null)
            {
                dicParam["Entrance"] = model.Entrance;
            }
            if (model.Export != null)
            {
                dicParam["Export"] = model.Export;
            }
            if (model.CarType != null)
            {
                dicParam["CarType"] = model.CarType;
            }
            if (model.CardType != null)
            {
                dicParam["CardType"] = model.CardType;
            }
            if (model.InThroughType != null)
            {
                dicParam["InThroughType"] = model.InThroughType;
            }
            if (model.OutThroughType != null)
            {
                dicParam["OutThroughType"] = model.OutThroughType;
            }
            if (model.OutParkingOperator != null)
            {
                dicParam["OutParkingOperator"] = model.OutParkingOperator;
            }
            if (model.SpecialCar != null)
            {
                dicParam["SpecialCar"] = model.SpecialCar;
            }
            if (model.AdmissionStartDate != null)
            {
                dicParam["AdmissionStartDate"] = model.AdmissionStartDate;
            }
            if (model.AppearanceStartDate != null)
            {
                dicParam["AppearanceStartDate"] = model.AppearanceStartDate;
            }
            if (model.AdmissionEndDate != null)
            {
                dicParam["AdmissionEndDate"] = model.AdmissionEndDate;
            }
            if (model.AppearanceEndDate != null)
            {
                dicParam["AppearanceEndDate"] = model.AppearanceEndDate;
            }
            if (model.NextToken != null)
            {
                dicParam["NextToken"] = model.NextToken;                          //就是第一次查询,需要制定当前页  页大小 ,需要下一页的时候,直接给这个nexttoken就可以了
            }
            dicParam["PageIndex"] = model.PageIndex;
            dicParam["PageSize"]  = model.PageSize;
            dicParam["Sort"]      = model.Sort;
            dicParam["FieldSort"] = model.FieldSort;
            bool falg = requestFujica.RequestFujicaReport(servername, dicParam);

            if (falg)
            {
                string fujicaResult = requestFujica.FujicaResult;
                if (!string.IsNullOrEmpty(fujicaResult))
                {
                    //解析返回参数json字符串
                    GetRecordListResponse <ParkingRecordResponse> response = m_serializer.Deserialize <GetRecordListResponse <ParkingRecordResponse> >(fujicaResult);
                    responseModel = response;
                }
            }
            return(responseModel);
        }