示例#1
0
        /// <summary>
        /// 缴费
        /// </summary>
        /// <param name="reqChargeFee"></param>
        /// <returns></returns>
        public static ResChargeFee_DS ChargeFee(ReqChargeFee reqChargeFee)
        {
            ResChargeFee_DS ds = new ResChargeFee_DS();

            int pint = Login();

            TryStart(pint, InterfaceHNConst.FUN_BIZC131104);

            TryPutData <ReqChargeFee>(pint, 1, reqChargeFee, InterfaceHNConst.FUN_BIZC131104);
            long ret = setresultset(pint, InterfaceHNConst.DS_FEEINFO);
            int  row = 1;

            foreach (var item in reqChargeFee.feeinfo)
            {
                TryPutData <ReqChargeFeeDetail>(pint, row, item, InterfaceHNConst.FUN_BIZC131104);
                row++;
            }

            ret = TryRun(pint, InterfaceHNConst.FUN_BIZC131104);

            List <ResBizInfo> bizInfoList = TrySetData <ResBizInfo>(pint, InterfaceHNConst.DS_BIZINFO);

            ds.BizInfoList = bizInfoList;

            List <ResPayInfo> payInfoList = TrySetData <ResPayInfo>(pint, InterfaceHNConst.DS_PAYINFO);

            ds.PayInfoList = payInfoList;

            List <ResDetailPay> detailPayList = TrySetData <ResDetailPay>(pint, InterfaceHNConst.DS_DETAILPAY);

            ds.DetailPayList = detailPayList;

            DestoryPint(pint);
            return(ds);
        }
示例#2
0
        public IActionResult Charge([FromBody] ReqChargeFee req)
        {
            var    validator = new ReqChargeFeeValidator();
            string validInfo = CommonUtil.Validate(req, validator);

            ResChargeFee_DS data = InterfaceHNUtil.ChargeFee(req);

            return(RetData.SuccessData(data));
        }