diff --git a/YLErpWeb/App_Data/FunctionRight.xml b/YLErpWeb/App_Data/FunctionRight.xml index 397e458d..03ee9a6a 100644 --- a/YLErpWeb/App_Data/FunctionRight.xml +++ b/YLErpWeb/App_Data/FunctionRight.xml @@ -12,7 +12,7 @@ - + diff --git a/YLErpWeb/Common/UserInfoRight.cs b/YLErpWeb/Common/UserInfoRight.cs index 5db38dd8..cf0989bd 100644 --- a/YLErpWeb/Common/UserInfoRight.cs +++ b/YLErpWeb/Common/UserInfoRight.cs @@ -407,9 +407,9 @@ namespace YLErp.Web public bool 交易管理_交易新增 => HasRight("交易管理-交易新增"); /// - /// 交易管理-交易续做 + /// 交易管理-交易续作 /// - public bool 交易管理_交易续做 => HasRight("交易管理-交易续做"); + public bool 交易管理_交易续作 => HasRight("交易管理-交易续作"); /// /// 交易管理-交易编辑 diff --git a/YLErpWeb/Controllers/SwapTrade2Controller.cs b/YLErpWeb/Controllers/SwapTrade2Controller.cs index c8c78e65..699e370a 100644 --- a/YLErpWeb/Controllers/SwapTrade2Controller.cs +++ b/YLErpWeb/Controllers/SwapTrade2Controller.cs @@ -48,9 +48,9 @@ namespace YLErp.Web.Controllers public ActionResult TradeEdit(string enid, string renewEnid = null, bool isUseApproval = false) { ViewBag.isUseApproval = isUseApproval; - if (!string.IsNullOrWhiteSpace(renewEnid) && !CurUser.交易管理_交易续做) + if (!string.IsNullOrWhiteSpace(renewEnid) && !CurUser.交易管理_交易续作) { - return ShowError("没有续做交易权限"); + return ShowError("没有续作交易权限"); } // The new/renew flow uses the literal "0" to indicate that no trade exists yet. var intid = enid == "0" ? 0 : DecryptInt(enid); diff --git a/YLErpWeb/Views/SwapTrade2/header.cshtml b/YLErpWeb/Views/SwapTrade2/header.cshtml index 333c8915..54a70d94 100644 --- a/YLErpWeb/Views/SwapTrade2/header.cshtml +++ b/YLErpWeb/Views/SwapTrade2/header.cshtml @@ -157,7 +157,7 @@ { @MyControls.Btn("收益结算", string.Format("unWindLongShortSwap('{0}')", tradeModel.EncryptId)) } - @if (CurUser.交易管理_交易续做) + @if (CurUser.交易管理_交易续作) { @MyControls.Btn("续作", string.Format("renewTrade('{0}')", tradeModel.EncryptId)) }