Hotel/SM/js/role.js

(开头部分) 26KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


var actionUrl = '../SM/ashx/RoleHandler.ashx';
var RoleForm = '<form id=roleForm><table cellpadding=5 cellspacing=0 width=100% align="center" class="grid" border=0><tr><td align="right">\
                角色名稱:</td><td align="left"><input name=rolename type="text"  required="true" style="width:150px" class="txt01" id="txt_rolename" /></td></tr><tr><td align="right">\
                排序:</td><td align="left"><input name=sortnum type="text" value=0 style="width:100px"  id="txt_sortnum" /></td></tr><tr><td align="right">\
                備註</td><td align="left"><textarea rows="3" name=remark style="width:250px;height:50px;" class="txt01" id="txtremark" /></td></tr>\
                </table></form>';

var SearchUserForm = '<form  id="searchuserForm" ><table><tr>';
SearchUserForm += '<td>用戶名:<input type="text" name="username" id="txt_searchusername" class="txt02" style="width: 60px;" /></td>';
SearchUserForm += '<td>真實姓名:<input type="text" name="truename" id="txt_searchtruename" class="txt02" style="width: 60px;" /></td>';
SearchUserForm += '<td><a id="a_searchuser" style="float:left" href="javascript:;" plain="true" class="easyui-linkbutton" data-options="iconCls:\'icon-search\'"  title="查詢">查詢</a></td></tr></table>';
SearchUserForm += '<div style="padding:2px;overflow:hidden;"><table id="userGrid"></table></div></form>';

$(function () {
var size = { width: $(window).width(), height: $(window).height() };
var layout = {
    init: function (size) {
        $('#layout').layout().layout('resize', { width: (size.width ), height: (size.height ) });
        var center = $('#layout').layout('panel', 'center');
        center.panel({
            onResize: function (w, h) {
                $('#autGrid').datagrid('resize', { width: w, height: h });
            }
        });
    },
    resize: function (size) {
        $('#layout').layout('resize');
        layout.init(size);
    }
};

layout.init(size);
$(window).resize(function () {
    size = { width: $(window).width(), height: $(window).height() };
    layout.resize(size);
});


//角色樹狀圖
Role.bindTree();
autoResize({ dataGrid: '#autGrid', gridType: 'datagrid', callback: autgrid.databind, height: 60, width: 260 });

//simpleSearch();


$('#a_addRole').click(Role.addRole);
$('#a_delRole').click(Role.delRole);
$('#a_editRole').click(Role.editRole);
$('#a_setRole').linkbutton({ text: '權限設定' }).click(authorize.run);
//授權按鈕
$('#a_add').click(autgrid.add);
$('#a_save').click(autgrid.save);
$('#a_delete').click(autgrid.del);
});

console.info($('#a_save').length);

//查詢
/*function simpleSearch() {
后面还有 705 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。