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

93 lines
3.1 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 = "Vip单列表";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Csvr/VipNumber/GetHtmlList',
height: $(window).height() - 110,
loadNow: true
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
//ifram 返回
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)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>
vip类型
<select name="slt_type" id="slt_type">
<option value="">全部</option>
@foreach (var item in ViewBag.SubComTypeList as List<WX.CRM.Model.Entity.BAS_SUBCOMTYPE>)
{
<option value="@item.SUBTYPECODE">@item.SUBTYPENAME</option>
}
</select>
</li>
<li>客户ID<input type="text" name="txt_ResId" style="width:160px;" />&nbsp;</li>
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
</ul>
</div>
@Html.Raw(ViewBag.List)
</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("/Csvr/VipNumber/Add"));
$("#modalwindow").window({ title: '新增', width: 700, height: 550, iconCls: 'icon-add' }).window('open');
}
function Delete_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$.messager.confirm('提示', '@Suggestion.YouWantToDeleteTheSelectedRecords', function (r) {
if (r) {
$.r_post("/Csvr/VipNumber/Delete?id=" + row.PKID, function (data) {
if (data.type == 1) {
$('#tablist').tablegrid("Load");
$.messageBox5s('提示', data.message);
}
else {
$.messageBox5s('提示', data.message);
}
}, "json");
}
});
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
function Reload_Click() {
frameReturnByReload(true);
}
</script>