94 lines
4.1 KiB
Plaintext
94 lines
4.1 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>微信用户名:<input type="text" name="txt_userName" style="width:150px" /> </li>
|
||
<li>微信号:<input type="text" name="txt_alias" style="width:120px" /> </li>
|
||
<li>工作微信:@Html.DropDownList("slt_jobWxUser", ViewBag.jobWxUserList as List<SelectListItem>, new { style = "height:20px;" }) </li>
|
||
<li>客户ID:<input type="text" name="txt_resId" style="width: 150px"/> </li>
|
||
@if (ViewBag.IsShowOpenOrderTip == "1")
|
||
{
|
||
<li>
|
||
是否有开通订单:
|
||
<select id="slt_isopen" name="slt_isopen" style="height: 22px;">
|
||
<option value="">全部</option>
|
||
<option value="1">是</option>
|
||
<option value="0">否</option>
|
||
</select>
|
||
</li>
|
||
}
|
||
|
||
<li style="display:none;">昵称:<input type="text" name="txt_nickName" style="width:120px" /> </li>
|
||
<li style="display:none;">备注:<input type="text" name="txt_conreMark" style="width:120px" /> </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 () {
|
||
$('#tablist').tablegrid({
|
||
url: '/WeiXin/WXCustomerInfo/GetHtmlList',
|
||
height: $(window).height() - 110,
|
||
loadNow: true,
|
||
onLoadError: function () {
|
||
$.messager.alert("警告", "信息加载失败!", "error");
|
||
}
|
||
});
|
||
$("#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);
|
||
}
|
||
</script>
|
||
@*ToolBar事件处理*@
|
||
<script type="text/javascript">
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
function Create_Click() {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WXCustomerInfo/Edit"));
|
||
$("#modalwindow").window({ title: '新增', width: 500, height: 400, iconCls: 'icon-add' }).window('open');
|
||
}
|
||
function Edit_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WXCustomerInfo/Edit?id=" + row.PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '编辑', width: 700, height: 430, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getAllHead");
|
||
return columns;
|
||
}
|
||
function Export_Click1() {
|
||
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/WeiXin/WXCustomerInfo/ListExport?" + GetQueryStr())));
|
||
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
||
}
|
||
</script>
|