106 lines
4.3 KiB
Plaintext
106 lines
4.3 KiB
Plaintext
@using WX.CRM.WebHelper
|
|
|
|
@{
|
|
ViewBag.Title = "客户信息查询";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<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("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = "" })</li>
|
|
<li>
|
|
房间名称:@*<input type="text" name="txt_roomName" />*@
|
|
@Html.DropDownList("slt_roomCode", ViewBag.RoomList as List<SelectListItem>,new {style="width:200px"})
|
|
|
|
</li>
|
|
<li>软件用户名:<input type="text" name="txt_softUserName" /> </li>
|
|
<li>交易商代码:<input type="text" name="txt_TradeCode" style="width: 160px" /> </li>
|
|
<li>
|
|
软件在线状态:
|
|
<select name="slt_userNameStatus">
|
|
<option value="-1" selected="selected">全部</option>
|
|
<option value="1">是</option>
|
|
<option value="0">否</option>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
房间在线状态:
|
|
<select name="slt_roomStatus">
|
|
<option value="-1" selected="selected">全部</option>
|
|
<option value="1">是</option>
|
|
<option value="0">否</option>
|
|
</select>
|
|
</li>
|
|
<li style="display:none;">
|
|
审核状态:
|
|
<select name="slt_status">
|
|
<option value="" selected="selected">全部</option>
|
|
<option value="100">未审核</option>
|
|
<option value="200">审核通过</option>
|
|
<option value="60">审核未通过</option>
|
|
</select>
|
|
</li>
|
|
<li style="display:none;">
|
|
申请日期:@Html.WdatePickerText("txt_applySdate", "")-@Html.WdatePickerText("txt_applyEdate", "")
|
|
</li>
|
|
<li style="display:none;">
|
|
授权起止日期:@Html.WdatePickerText("txt_stime", "")-@Html.WdatePickerText("txt_etime", "")
|
|
</li>
|
|
<li>
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/TZGW/RoomCustomerList/GetHtmlList',
|
|
height: $(window).height() - 130,
|
|
loadNow: false,
|
|
isPage: true,
|
|
data: GetControlValue
|
|
});
|
|
$("#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 frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
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_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/TZGW/RoomCustomerList/RoomCustomerExport?" + GetQueryStr() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|