using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.Web.Controls; using EMIS.ViewModel; using EMIS.ViewModel.ChargeManage.ArrearsSituation; using EMIS.CommonLogic.ChargeManage.ArrearsSituation; namespace EMIS.Web.Controllers.ChargeManage.ArrearsSituation { [Authorization] public class ChargeControlController : Controller { public IChargeControlServices ChargeControlServices { get; set; } /// /// 费用控制页面 /// /// public ActionResult List() { var chargeControlView = new ChargeControlView(); chargeControlView = ChargeControlServices.GetChargeControlView(); return View(chargeControlView); } /// /// 费用控制保存 /// /// /// [HttpPost] public ActionResult List(ChargeControlView chargeControlView) { try { ChargeControlServices.ChargeControlSave(chargeControlView); return Json(new ReturnMessage { IsSuccess = true, Message = "保存成功。" }); } catch (Exception ex) { return Json(new ReturnMessage { IsSuccess = false, Message = "保存失败,原因:" + ex.Message }); } } } }