ComplianceServer/oldcode/WEB/Views/WeiXin/UserIMEI/Index.cshtml

83 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@using WX.CRM.Model.Entity;
@{
ViewBag.Title = "手机IMEI";
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>手机IMEI<input type="text" name="txt_imei" style="width:150px" />&nbsp;</li>
<li>员工编号:<input type="text" name="txt_eid" style="width:150px" /></li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
loadtablegrid();
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function loadtablegrid() {
$('#tablist').tablegrid({
url: '/WeiXin/UserIMEI/GetHtmlList',
height: $(window).height() - 110,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
}
</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/UserIMEI/Add"));
$("#modalwindow").window({ title: '新增', width: 500, height: 500, iconCls: 'icon-add' }).window('open');
}
//获取datagrid头部及字段
function getDataGridHeader() {
var columns = $('#tablist').tablegrid("getAllHead");
return columns;
}
function UpdateEid_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$("#modalwindow").html(GetIframeHtml("/WeiXin/UserIMEI/Edit?imei=" + row.IMEI + "&Ieguid=" + GetGuid()));
$("#modalwindow").window({ title: '编辑', width: 500, height: 500, iconCls: 'icon-edit' }).window('open');
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
</script>