@using WX.CRM.WebHelper;
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
@{
var roles = ViewBag.roleCodes;
@*if (roles.IndexOf("[ZJZL]") >= 0 || roles.IndexOf("[GLY]") >= 0 || roles.IndexOf("[BMZG]") >= 0)
{
@Html.ToolButton("btnExport", "icon-export", "导出", "Export_Click", true)
@Html.ToolButton("btnChange", "icon-settings", "收藏调整", true)
}
if (roles.IndexOf("[ZJZL]") >= 0 || roles.IndexOf("[GLY]") >= 0)
{
@Html.ToolButton("btnSetting", "icon-settings", "设置", true)
}*@
}
@{ var enableText = "已关闭"; var enableColor = "red"; var favCustomerEnableCanCall = ViewBag.FavCustomerEnableCanCall as string; if (favCustomerEnableCanCall == "false") { enableText = "已开启"; enableColor = "green"; } }
收藏客户禁止他人外呼:@enableText
@if (roles.IndexOf("[ZJZL]") >= 0 || roles.IndexOf("[GLY]") >= 0)
{
(点击设置按钮更改状态)
}
@*ToolBar事件处理*@