155 lines
5.5 KiB
C#
155 lines
5.5 KiB
C#
using YLErp.Modules.SystemModule;
|
|
using YLErp.Modules.TradeModule.QueryModule;
|
|
|
|
namespace YLErp.Web.Controllers
|
|
{
|
|
public class DatatraceController : OtcTradeControllerBase
|
|
{
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult ClientInfoChange()
|
|
{
|
|
ViewBag.PageType = "客户变更";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult TradeInfoChange()
|
|
{
|
|
ViewBag.PageType = "交易变更";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult TradeInfoDelete()
|
|
{
|
|
ViewBag.PageType = "交易删除";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult ClientCashChange()
|
|
{
|
|
ViewBag.PageType = "资金变更";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult ClientCashDelete()
|
|
{
|
|
ViewBag.PageType = "资金删除";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult DividendrateChange()
|
|
{
|
|
ViewBag.PageType = "设置模型参数";
|
|
return View();
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult ClientInfoChangeSearch(TradeChangeReq req)
|
|
{
|
|
return Json(new DatatraceQueryService(CurUser).GetClientInfoChangeRep(req));
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult TradeInfoChangeSearch(TradeChangeReq req)
|
|
{
|
|
return Json(new DatatraceQueryService(CurUser).GetTradeInfoChangeRep(req));
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public ActionResult ClientCashChangeSearch(TradeChangeReq req)
|
|
{
|
|
return Json(new DatatraceQueryService(CurUser).GetClientCashChangeRep(req));
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public JsonResult ClientCashDeleteSearch(TradeChangeReq req)
|
|
{
|
|
//if (!CurUser.结算管理_出入金删除)
|
|
//{
|
|
// return JsonError("没有权限");
|
|
//}
|
|
var sList = new DatatraceQueryService(CurUser).GetClientCashDeleteSearch(req);
|
|
return Json(sList);
|
|
}
|
|
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public JsonResult DividendrateChangeSearch(DividendrateChangereq req)
|
|
{
|
|
if (!CurUser.结算管理_出入金删除)
|
|
{
|
|
return JsonError("没有权限");
|
|
}
|
|
var sList = new DividendrateRecordService(CurUser).GetDividendrateChangeSearch(req);
|
|
return Json(sList);
|
|
}
|
|
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportClientInfoChange(TradeChangeReq req)
|
|
{
|
|
var bytes = new DatatraceQueryService(CurUser).ExportClientInfoChange(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录_客户信息变更.xlsx");
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportTradeInfoChange(TradeChangeReq req)
|
|
{
|
|
var bytes = new DatatraceQueryService(CurUser).ExportTradeInfoChange(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录模板_交易信息变更.xlsx");
|
|
}
|
|
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportTradeInfoDelete(TradeChangeReq req)
|
|
{
|
|
req.ShowAllTrades = ShowAllTrades;
|
|
req.UserAssetUnits = ShowAllTrades ? null : GetUserAssetunitIds();
|
|
var bytes = new DatatraceQueryService(CurUser).ExportTradeInfoDelete(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录模板_交易删除.xlsx");
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportClientCashDelete(TradeChangeReq req)
|
|
{
|
|
var bytes = new DatatraceQueryService(CurUser).ExportClientCashDelete(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录模板_资金删除.xlsx");
|
|
}
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportClientCashChange(TradeChangeReq req)
|
|
{
|
|
var bytes = new DatatraceQueryService(CurUser).ExportClientCashChange(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录模板_资金修改.xlsx");
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询交易变更记录
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public JsonResult TradeInfoDeleteSearch(TradeChangeReq req)
|
|
{
|
|
req.ShowAllTrades = ShowAllTrades;
|
|
req.UserAssetUnits = ShowAllTrades ? null : GetUserAssetunitIds();
|
|
var result = new DatatraceQueryService(CurUser).GetTradeInfoDeleteRepList(req);
|
|
return Json(result);
|
|
}
|
|
|
|
|
|
[MyAuthorize("基础参数管理-变更记录")]
|
|
public FileContentResult ExportDividendrateChange(DividendrateChangereq req)
|
|
{
|
|
var bytes = new DividendrateRecordService(CurUser).ExportClientCashChange(req);
|
|
return File(bytes, xlsxMimeType, $"变更记录模板_设置模型参数.xlsx");
|
|
}
|
|
|
|
}
|
|
} |