Exemplo n.º 1
0
        /// <summary>
        /// 额度核销执行完毕确认
        /// </summary>
        /// <returns></returns>
        public string SaveHXgo()
        {
            long    id            = Convert.ToInt64(System.Web.HttpContext.Current.Request.Params["id"]);
            Decimal FPlayamount   = Convert.ToDecimal(System.Web.HttpContext.Current.Request.Params["FPlayamount"]);
            Decimal FReturnamount = Convert.ToDecimal(System.Web.HttpContext.Current.Request.Params["FReturnamount"]);
            string  dtldata       = System.Web.HttpContext.Current.Request.Params["dtldata"];

            var dtls = JsonConvert.DeserializeObject <List <ExpenseDtlModel> >(dtldata);

            CommonResult savedresult = new CommonResult();

            savedresult = ExpenseMstService.SaveHXgo(id, FPlayamount, FReturnamount, dtls);
            return(DataConverterHelper.SerializeObject(savedresult));
        }
Exemplo n.º 2
0
 public string PostSaveHXgo([FromBody] ExpenseAllRequestModel ExpenseAllData)
 {
     if (ExpenseAllData.ExpenseMst == null || ExpenseAllData.ExpenseMst.PhId == 0)
     {
         return(DCHelper.ErrorMessage("参数传递有误!"));
     }
     try
     {
         CommonResult savedresult = new CommonResult();
         savedresult = ExpenseMstService.SaveHXgo(ExpenseAllData.ExpenseMst.PhId, ExpenseAllData.ExpenseMst.FPlayamount, ExpenseAllData.ExpenseMst.FReturnamount, ExpenseAllData.ExpenseDtls);
         return(DataConverterHelper.SerializeObject(savedresult));
     }
     catch (Exception ex)
     {
         return(DCHelper.ErrorMessage(ex.Message));
     }
 }