102 lines
3.3 KiB
Plaintext
102 lines
3.3 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model.Entity;
|
|
@{
|
|
ViewBag.Title = "产品管理";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<style>
|
|
.GreenColor {
|
|
color:green;
|
|
font-weight:bold;
|
|
}
|
|
</style>
|
|
<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_productCode" /> </li>
|
|
<li>渠道产品名称:<input type="text" name="txt_productName" /> </li>
|
|
<li>
|
|
状态:
|
|
<select name="slt_isVaild">
|
|
<option value="">全部</option>
|
|
<option selected value="1">可用</option>
|
|
<option value="0">不可用</option>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
显示:
|
|
<select name="slt_isShow">
|
|
<option value="">全部</option>
|
|
<option selected value="1">显示</option>
|
|
<option value="0">不显示</option>
|
|
</select>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/WeiXin/SubProduct/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onLoadError: function () {
|
|
$.messager.alert("警告", "信息加载失败!", "error");
|
|
}
|
|
});
|
|
$(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);
|
|
}
|
|
|
|
</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 Edit_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/SubProduct/Edit?subProductId=" + row.SUBPRODUCTID + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '编辑', width: 500, height: 500, iconCls: 'icon-edit' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|