72 lines
2.9 KiB
Plaintext
72 lines
2.9 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "Index";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
|
||
<div class="mvctool">
|
||
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
||
@*@Html.ToolButton("btnExport", "icon-export", "导出", "Export_Click", true)*@
|
||
</div>
|
||
<div class="bas_datagrid">
|
||
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
||
<ul class="toolBar_ul">
|
||
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", isShowDismiss = "1", type = "0", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid, currentRight = WX.CRM.WebHelper.InitRights.CONST_收藏客户历史查询 })</li>
|
||
<li>收藏类型:@Html.DropDownList("slt_subcomgroupId", new WX.CRM.WEB.Handler.ControlResource().GetBas_subcomTypeList(0)) </li>
|
||
<li>客户ID:@Html.TextBox("txt_resId")</li>
|
||
<li>
|
||
@{ List<WX.CRM.Model.Entity.BAS_BUSINESSLINES> list = ViewBag.deptList; }
|
||
事业部:
|
||
<select name="slt_deptlineid">
|
||
<option value="">全部</option>
|
||
@foreach (var item in list)
|
||
{
|
||
<option value="@item.BUSINESSID">@item.BUSINESSNAME</option>
|
||
}
|
||
</select>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.List)
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: '/Csvr/FavoriteCustomer/His',
|
||
height: $(window).height() - 110,
|
||
loadNow: false,
|
||
data: GetControlValue,
|
||
});
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
|
||
});
|
||
function GetControlValue() {
|
||
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
||
}
|
||
function onLoadSucced() {
|
||
$('#tablist').tablegrid("Search");
|
||
}
|
||
//ifram 返回
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
function Export_Click() {
|
||
var qls = "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val();
|
||
window.open("/csvr/FavoriteCustomer/ExportFavoriteCustomerHis?Ieguid=" + GetGuid() + qls + "&" + GetQueryStr());
|
||
}
|
||
</script>
|