116 lines
4.6 KiB
Plaintext
116 lines
4.6 KiB
Plaintext
@using WX.CRM.WebHelper
|
||
@{
|
||
ViewBag.Title = "开户列表";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
|
||
<div class="mvctool">
|
||
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
||
@if (Request.QueryString["type"] == null)
|
||
{
|
||
@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>客户ID:<input type="text" name="txt_resid" /> </li>
|
||
@*<li>客户编号:<input type="text" name="txt_resid" /> </li>*@
|
||
<li>状态:@Html.DropDownList("slt_status", new List<SelectListItem>() {
|
||
new SelectListItem(){ Text="全部",Value="-1"},
|
||
new SelectListItem(){ Text="未审核",Value="0"},
|
||
new SelectListItem(){ Text="录音合规",Value="1"},
|
||
new SelectListItem(){ Text="审核通过",Value="2"}
|
||
}) </li>
|
||
|
||
<li>
|
||
创建时间:
|
||
@Html.WdatePickerText("txt_stime", "")~@Html.WdatePickerText("txt_etime", "")
|
||
</li>
|
||
<li>
|
||
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
|
||
@* @Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")*@
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
|
||
|
||
$(function () {
|
||
|
||
$('#tablist').tablegrid({
|
||
url: '/QH/AccountApply/AccountListGetHtmlList',
|
||
height: $(window).height() - 110,
|
||
loadNow: true,
|
||
isPage: true
|
||
});
|
||
$("#btnQuery").click(function () {//搜索按钮点击事件
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
});
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
function getPageOptions(gridID) {
|
||
var option = $("#tablist").tablepage('getPagination');
|
||
var str = "rows=" + option.rows + "&page=" + option.page + "&order=" + option.order + "&sort=" + option.sort;
|
||
return str;
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getHead");
|
||
return columns;
|
||
}
|
||
|
||
</script>
|
||
@*ToolBar事件处理*@
|
||
<script type="text/javascript">
|
||
function GetIframeHtml(src) {
|
||
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
function completeWindControl_click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
if (row.status_2 == 1) {
|
||
$.messageBox5s('提示', '状态已是【风控审核中】不能再选择风控录音');
|
||
return;
|
||
} else if (row.status_2 == 2) {
|
||
$.messageBox5s('提示', '状态已是【审核通过】不能再选择风控录音');
|
||
return;
|
||
}
|
||
$("#modalwindow").html(GetIframeHtml("/QH/AccountApply/RecordList?resid=" + row.resid));
|
||
$("#modalwindow").window({ title: '选择风控录音', width: 700, height: 400, iconCls: 'icon-lookup' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
function completeCheck_click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
if (row.status_2 == 0) {
|
||
$.messageBox5s('提示', '状态还是【已注册】不能进行审核');
|
||
return;
|
||
} else if (row.status_2 == 2) {
|
||
$.messageBox5s('提示', '状态已是【审核通过】不能进行审核');
|
||
return;
|
||
}
|
||
$("#modalwindow").html(GetIframeHtml("/QH/AccountApply/Check?resid=" + row.resid));
|
||
$("#modalwindow").window({ title: '选择风控录音', width: 450, height: 300, iconCls: 'icon-yes' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
</script>
|
||
|