12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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; }
- /// <summary>
- /// 费用控制页面
- /// </summary>
- /// <returns></returns>
- public ActionResult List()
- {
- var chargeControlView = new ChargeControlView();
- chargeControlView = ChargeControlServices.GetChargeControlView();
- return View(chargeControlView);
- }
- /// <summary>
- /// 费用控制保存
- /// </summary>
- /// <param name="chargeControlView"></param>
- /// <returns></returns>
- [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
- });
- }
- }
- }
- }
|