Exemple #1
0
        public JsonResult AddPre()
        {
            string cunit = Request.QueryString["cunit"];
            string cnum  = Request.QueryString["cnum"];
            string cfee  = Request.QueryString["cfee"];

            PreCharging prechg = new PreCharging {
                CycleUnit = (EnmCycleUnit)Convert.ToInt16(cunit),
                CycleNum  = Convert.ToInt32(cnum),
                Fee       = Convert.ToSingle(cfee)
            };
            Response resp = new CWTariff().AddPreCharge(prechg);

            return(Json(resp, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
 /// <summary>
 /// 添加实体
 /// </summary>
 public Response AddPreCharge(PreCharging pre)
 {
     return(preChgManager.Add(pre));
 }
Exemple #3
0
 /// <summary>
 ///  更新
 /// </summary>
 /// <param name="chg"></param>
 /// <returns></returns>
 public Response UpdatePreCharge(PreCharging chg)
 {
     return(preChgManager.Update(chg));
 }