MvcBug/obj/Release/Package/PackageTmp/Views/Employ/Index.cshtml
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<script type="text/javascript">
$(function () {
GetEmployDataGrid();
})
function GetEmployDataGrid() {
$("#dgEmploy").datagrid({ //初始化datagrid
url: "/Employ/GetDataGridJson",
striped: true, rownumbers: true, pagination: true, singleSelect: true,
columns: [[
{ field: 'Id', title: '序号', sortable: true, width: 80 },
{ field: 'Code', title: '员工编码', sortable: true, width: 100 },
{ field: 'Name', title: '员工名称', sortable: true, width: 100 },
{ field: 'DepartmentName', title: '部门名称', sortable: true, width: 100 },
{
field: 'Showallbug', title: '允许查看所有', sortable: true, width: 100,
formatter: function (value, row, index) {
var val = '';
switch (value) {
case 0:
val = "<input type='checkbox' />";
break;
case 1:
val = "<input type='checkbox' checked='checked' />";
break;
}
return val;
}
}
]],
toolbar: [{
text: '添加',
iconCls: 'icon-add',
handler: function () { addEmploy(); }
}, {
text: '编辑',
iconCls: 'icon-edit',
handler: function () { editEmploy(); }
}, '-', {
text: '删除',
iconCls: 'icon-remove',
handler: function () { removeEmploy(); }
}]
});
}
//操作
function addEmploy() {
$('#ddEmploy').dialog('open').dialog('setTitle', '添加员工');
$('#formEmploy').form('clear');
}
function saveEmploy() {
$('#formEmploy').form('submit', {
onSubmit: function () {
return $(this).form('validate');
},
success: function (result) {
var result = eval('(' + result + ')');
后面还有 104 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。