87 lines
3.3 KiB
Plaintext
87 lines
3.3 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "活跃风险客户评估";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Quality/RumorCheck/GetRumorCheckList',
|
|
height: $(window).height() - 110,
|
|
loadNow: false,
|
|
data: GetControlValue
|
|
});
|
|
//function GetControlValue() {
|
|
// return { groupId: user.getGroups(), userId: user.getUser() };
|
|
//}
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
}
|
|
$(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);
|
|
}
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function Detaile_Click(tradecode) {
|
|
$("#modalwindow").html(GetIframeHtml("/Quality/RumorCheck/Detail?tradecode=" + tradecode));
|
|
$("#modalwindow").window({ title: '明细查询', width: 700, height: 400, iconCls: 'icon-details' }).window('open');
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function Export() {
|
|
var columns = getDataGridHeader();
|
|
var checkedFilds = "";
|
|
var checkedTitle = "";
|
|
$.each(columns, function (i, ex) {
|
|
checkedFilds += "[" + ex.field + "]";
|
|
checkedTitle += ex.title + ',';
|
|
});
|
|
var url = '/Quality/RumorCheck/RumorCheckExport?checkedFilds=' + checkedFilds + "&checkedTitle=" + checkedTitle + '&' + GetQueryStr();
|
|
this.window.open(url);
|
|
}
|
|
|
|
|
|
|
|
</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>交易商码:<input type="text" name="txt_TradeCode" style="width:120px;" /> </li>
|
|
<li>评估时间:@Html.WdatePickerText("txt_ctime", "")~@Html.WdatePickerText("txt_etime", "")</li>
|
|
<li>评估类型:@Html.DropDownList("slt_type", ViewBag.Quality as List<SelectListItem>)</li>
|
|
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "ComBox", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.List)
|
|
</div>
|
|
|