TG.WXCRM.V4/WEB/Views/Soft/Soft_Customer/SoftUser_Search.cshtml

69 lines
2.1 KiB
Plaintext

@using WX.CRM.WebHelper
@{
ViewBag.Title = "注册用户查询";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
</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" />&nbsp;</li>
<li>手机号码:<input type="text" name="txt_phone" style="width: 160px" />&nbsp;</li>
</ul>
</div>
@Html.Raw(ViewBag.GroupList)
</div>
<script type="text/javascript">
function onLoadSucced() {
$('#tablist').tablegrid("Search");
}
$(function () {
$('#tablist').tablegrid({
url: '/Soft/Soft_Customer/SoftUser_SearchGetHtmlList',
height: $(window).height() - 130,
loadNow: true,
isPage: true,
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
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 ShowResDetial(resid) {
$("#modalwindow").html(GetIframeHtml("/Level2/Leve2Order/CreateOrderApply?CustomerId=" + resid));
$("#modalwindow").window({ title: '开通', width: 600, height: 500, iconCls: '' }).window('open');
}
function ShowTDDetial(resid) {
$("#modalwindow").html(GetIframeHtml("/WeiXin/TDOrder/AddByRes?CustomerId=" + resid));
$("#modalwindow").window({ title: '开通', width: 800, height: 500, iconCls: '' }).window('open');
}
</script>