NFine.Web/Areas/SystemManage/Views/ItemsType/Index.cshtml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index.cshtml";
}
<script>
$(function () {
gridList();
})
function gridList() {
$("#gridList").dataGrid({
treeGrid: true,
treeGridModel: "adjacency",
ExpandColumn: "F_EnCode",
url: "/SystemManage/ItemsType/GetTreeGridJson",
height: $(window).height() - 90,
colModel: [
{ label: "主键", name: "F_Id", hidden: true, key: true },
{ label: '名称', name: 'F_FullName', width: 200, align: 'left' },
{ label: '编号', name: 'F_EnCode', width: 150, align: 'left' },
{ label: '排序', name: 'F_SortCode', width: 80, align: 'center' },
{
label: "有效", name: "F_EnabledMark", width: 60, align: "center",
formatter: function (cellvalue) {
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
{ label: "备注", name: "F_Description", index: "F_Description", width: 200, align: "left" }
]
});
}
function btn_add() {
$.modalOpen({
id: "Form",
title: "新增分类",
url: "/SystemManage/ItemsType/Form",
width: "450px",
height: "380px",
callBack: function (iframeId) {
top.frames[iframeId].submitForm();
}
});
}
function btn_edit() {
var keyValue = $("#gridList").jqGridRowValue().F_Id;
$.modalOpen({
id: "Form",
title: "修改分类",
url: "/SystemManage/ItemsType/Form?keyValue=" + keyValue,
width: "450px",
height: "380px",
callBack: function (iframeId) {
top.frames[iframeId].submitForm();
}
});
}
function btn_delete() {
$.deleteForm({
url: "/SystemManage/ItemsType/DeleteForm",
param: { keyValue: $("#gridList").jqGridRowValue().F_Id },
success: function () {
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
