54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using YLErp.DBModels.Consts;
|
|
using YLErp.Modules.SwapModule;
|
|
using YLErp.Modules.SwapModule.Dto;
|
|
|
|
namespace YLErp.Web.Controllers
|
|
{
|
|
public class TrsAccountManageController : BaseController
|
|
{
|
|
/// <summary>
|
|
/// 做市账户
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[MyAuthorize("系统管理-做市账户")]
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="enid"></param>
|
|
/// <returns></returns>
|
|
public ActionResult Edit(string enid)
|
|
{
|
|
if (string.IsNullOrEmpty(enid))
|
|
{
|
|
var addmodel = new TrsAccountManageDto();
|
|
return View(addmodel);
|
|
}
|
|
var intid = DecryptInt(enid);
|
|
var model = new TrsAccountManageService(CurUser).GetDetial(intid);
|
|
return View(model);
|
|
}
|
|
public JsonResult GetList(TrsAccountManageRequest req)
|
|
{
|
|
var list = new TrsAccountManageService(CurUser).SearchList(req);
|
|
return Json(list);
|
|
}
|
|
public JsonResult SaveAccountManage(TrsAccountManageSaveRequest req)
|
|
{
|
|
new TrsAccountManageService(CurUser).SaveAccountManage(req);
|
|
return JsonSuccess("");
|
|
}
|
|
public JsonResult DeleteAccountManage(string enid)
|
|
{
|
|
var intid = DecryptInt(enid);
|
|
new TrsAccountManageService(CurUser).DeleteAccountManage(intid);
|
|
return JsonSuccess("");
|
|
}
|
|
}
|
|
}
|