103 lines
4.2 KiB
Plaintext
103 lines
4.2 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
|
|
@{
|
|
ViewBag.Title = "SalesGroup";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Res/SalesGroup/GetHtmlList',
|
|
height: $(window).height() - 130,
|
|
loadNow: true,
|
|
isPage: true
|
|
});
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$("#set").click(function () {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/Res/SalesRule/List?sgid=" + row.GROUPID + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '设置规则', width: 900, height: 600, iconCls: 'icon-details' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
});
|
|
});
|
|
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
</script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" id="set">
|
|
<span class="csicon2 icon-edit"></span>
|
|
<span class="csicontitle">设置规则</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>客服资源组名称:<input type="text" name="txt_Name" style="width:200px" /></li>
|
|
<li>创建时间:@Html.WdatePickerText("txt_STime", "")-@Html.WdatePickerText("txt_ETime", "")</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.GroupList)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
|
|
function Create_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Res/SalesGroup/Edit?Option=add"));
|
|
$("#modalwindow").window({ title: '新增', width: 700, height: 430, iconCls: 'icon-add' }).window('open');
|
|
}
|
|
|
|
function Edit_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/Res/SalesGroup/Edit?Option=update&id=" + row.GROUPID + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '编辑', width: 700, height: 430, iconCls: 'icon-edit' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
|
|
function Details_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
//$("#modalwindow").html(GetIframeHtml("/Res/SalesGroup/SalesGroupDetails?id=" + row.GROUPID + "&Ieguid=" + GetGuid()));
|
|
//$("#modalwindow").html(GetIframeHtml("/Res/SalesGroup/set?id=" + row.GROUPID + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").html(GetIframeHtml("/Res/SalesGroup/Guide?id=" + row.GROUPID + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '分组明细', width: 900, height: 600, iconCls: 'icon-details' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
|
|
function Delete_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$.messager.confirm('提示', '@Suggestion.YouWantToDeleteTheSelectedRecords', function (r) {
|
|
if (r) {
|
|
$.r_post("/Res/SalesGroup/Delete?id=" + row.GROUPID, function (data) {
|
|
if (data.type == 1) {
|
|
$("#tablist").tablegrid('Load');
|
|
}
|
|
$.messageBox5s('提示', data.message);
|
|
}, "json");
|
|
}
|
|
});
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
</script>
|