Mini.Crm/Mini.Web/Areas/Admin/Views/BasParameter/Index.cshtml

101 lines
4.4 KiB
Plaintext

@using Air.WebHelper
@using Air.Model.AirB2bDomain
@{
ViewBag.Title = "参数配置";
Layout = "~/Areas/Admin/Views/Shared/_EasyUI_Layout.cshtml";
}
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Admin/BasParameter/GetHtmlList',
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);
}
</script>
<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.DropDownList("slt_groupId", ViewBag.SelectList as List<SelectListItem>, new { style = "width:200px" }) &nbsp;</li>
<li>参数键:<input type="text" name="txt_ParaKey" style="width:130px" /></li>
<li>参数名:<input type="text" name="txt_ParaName" style="width:130px" /></li>
<li style="display:none;">参数值:<input type="text" name="txt_ParaValue" style="width:130px" /></li>
<li style="display:none;">参数类型:<input type="text" name="txt_ParaType" style="width:130px" /></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.GroupList)
</div>
<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("/Admin/BasParameter/Edit?Option=add"));
$("#modalwindow").window({ title: '新增', width: 700, height: 450, iconCls: 'icon-add' }).window('open');
}
function Edit_Click() {
var row = $('#tablist').tablegrid('getSelected');
$("#modalwindow").html(GetIframeHtml("/Admin/BasParameter/Edit?Option=update&pkid=" + row.PKID));
$("#modalwindow").window({ title: '编辑', width: 700, height: 430, iconCls: 'icon-edit' }).window('open');
@*if (row != null && (row.url == "" || row.url == null)) {
$("#modalwindow").html(GetIframeHtml("/Admin/BasParameter/Edit?Option=update&pkid=" + row.PKID));
$("#modalwindow").window({ title: '编辑', width: 700, height: 430, iconCls: 'icon-edit' }).window('open');
} else if (row != null && row.url != "" && row.url != null) {
$("#modalwindow").html(GetIframeHtml(row.url + "?pkid=" + row.PKID));
$("#modalwindow").window({ title: '编辑', width: 700, height: 500, iconCls: 'icon-edit' }).window('open');
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }*@
}
function Details_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$("#modalwindow").html(GetIframeHtml("/Admin/BasParameter/Details?pkid=" + row.PKID));
$("#modalwindow").window({ title: '详细', width: 500, height: 420, iconCls: 'icon-details' }).window('open');
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
function Delete_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$.messager.confirm('提示', '@Suggestion.YouWantToDeleteTheSelectedRecords', function (r) {
if (r) {
$.r_post("/Admin/BasParameter/Delete?pkid=" + row.PKID, function (data) {
if (data.type == 1) {
$("#tablist").tablegrid('Load');
}
$.messageBox5s('提示', data.message);
}, "json");
}
});
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
</script>