91 lines
2.6 KiB
Plaintext
91 lines
2.6 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<style>
|
|
.txt-expand {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.expand-activity {
|
|
background: url("/Content/Images/tools.png") no-repeat scroll 0 0;
|
|
}
|
|
|
|
.close-activity {
|
|
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
|
|
}
|
|
</style>
|
|
|
|
<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>@Html.Action("UserSSOComBox", "Control")</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: 'Assign',
|
|
height: $(window).height() - 110,
|
|
loadNow: false,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
|
|
});
|
|
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
|
|
function frameReturnByClose()
|
|
{
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag)
|
|
{
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes)
|
|
{
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function ShowResDetial(url) {
|
|
window.parent.ChildAddTab("客户详细", url, "");
|
|
}
|
|
|
|
</script>
|
|
<script type="text/javascript">
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function ExportHis_Click() {
|
|
var qls = "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val();
|
|
window.open("/Res/Distribute/ExportDistributeHisCount?Ieguid=" + GetGuid() + qls + "&" + GetQueryStr());
|
|
}
|
|
</script> |