TG.WXCRM.V4/WEB/Views/Csvr/ApplyVip/Index.cshtml

122 lines
4.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "bas_agent";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<script src="~/Scripts/op/tablegrid.sort.js"></script>
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>
状态:
<select name="slt_showCheck" id="slt_showCheck">
<option value="False">未审核VIP</option>
<option value="True">已审核VIP</option>
</select>
</li>
<li>
客户ID
<input type="text" name="txt_resid" id="txt_resid" style="width:200px" />
</li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Csvr/ApplyVip/GetHtmlList',
height: $(window).height() - 110,
loadNow: true,
onLoadSuccess: function (data) {
//成功
}, onLoadError: function (ex) {
//失败
}
});
$("#btnQuery").click(function () {//搜索按钮点击事件
$('#tablist').tablegrid("Search");
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#slt_showCheck").change(function () {
if ($(this).val() == "True") {
$("#Other1").css("display", "none");
$("#Other1").next().css("display", "none");
$("#Other2").css("display", "none");
$("#Other2").next().css("display", "none");
} else {
$("#Other1").css("display", "block");
$("#Other1").next().css("display", "block");
$("#Other2").css("display", "block");
$("#Other2").next().css("display", "block");
}
$("#tablist").tablegrid("Search");
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
</script>
@*ToolBar事件处理*@
<script type="text/javascript">
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function Check_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
if (row.STATUS == "未审核") {
var deptCode = '@ViewBag.DeptCode';
if (deptCode === "BCCF01") {
$("#modalwindow").html(GetIframeHtml("/Csvr/ApplyVip/BCHCheck?resid=" + row.RESID + "&pkid=" + row.PKID + "&reson=" + row.MEMO + "&Ieguid=" + GetGuid()));
}
else {
$("#modalwindow").html(GetIframeHtml("/Csvr/ApplyVip/Check?id=" + row.RESID + "&pkid=" + row.PKID + "&phone=" + row.PHONE + "&Ieguid=" + GetGuid()));
}
$("#modalwindow").window({ title: '确认', width: 500, height: 330, iconCls: 'icon-edit' }).window('open');
} else {
$.messageBox5s('提示', "只有‘未审核’的才能进行【确认审核】操作");
}
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
function DelCheck_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$.messager.confirm('提示', '您确定要删除审核吗?', function (r) {
if (r) {
if (row.STATUS == "未审核") {
$.r_post("/Csvr/ApplyVip/DelCheck?id=" + row.PKID, function (data) {
if (data.type == 1) {
$("#tablist").tablegrid('Load');
}
$.messageBox5s('提示', data.message);
}, "json");
} else {
$.messageBox5s('提示', "只有‘未审核’的才能进行【删除审核】操作");
}
}
});
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
</script>