def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "add", "icon16_tab_add", "" if PublicController.IsAuthorized( response, request, "ModuleManagement.Add") else "disabled=\"True\"", "新增模块(菜单)", "新增") sb = sb + linkbtnTemplate.format( "edit", "icon16_tab_edit", "" if PublicController.IsAuthorized( response, request, "ModuleManagement.Edit") else "disabled=\"True\"", "修改选中的模块(菜单)", "修改") sb = sb + linkbtnTemplate.format( "delete", "icon16_tab_delete", "" if PublicController.IsAuthorized( response, request, "ModuleManagement.Delete") else "disabled=\"True\"", "删除选中的模块(菜单)", "删除") #sb = sb + "<div class='datagrid-btn-separator'></div> " #sb = sb + linkbtnTemplate.format("export", "icon16_tab_go", "" if PublicController.IsAuthorized(response, request, "ModuleManagement.Export") else "disabled=\"True\"", "导出模块(菜单)数据", "导出") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "setusermodulepermission", "icon16_user_gladiator", "" if PublicController.IsAuthorized( response, request, "ModuleManagement.UserModulePermission") else "disabled=\"True\"", "设置用户的模块(菜单)访问权限", "用户模块权限") sb = sb + linkbtnTemplate.format( "setrolemodulepermission", "icon16_group_key", "" if PublicController.IsAuthorized( response, request, "ModuleManagement.RoleModulePermission") else "disabled=\"True\"", "设置角色的模块(菜单)访问权限", "角色模块权限") sb = sb + "<div class='datagrid-btn-separator'></div> " #sb = sb + linkbtnTemplate.format("moduleconfig", "icon16_tab_content_vertical", "" if PublicController.IsAuthorized(response, request, "ModuleManagement.Edit") else "disabled=\"True\"", "设置模块的可用性", "模块配置") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a>" sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "sendMessage", "icon16_comment_edit", "" if PublicController.IsAuthorized( response, request, "MessageAdmin.SendMessage") else "disabled=\"True\"", "发送消息", "发消息") if CommonUtils.Current(response, request).IsAdministrator: sb = sb + linkbtnTemplate.format( "broadcastMessage", "icon16_comments_add", "" if PublicController.IsAuthorized( response, request, "MessageAdmin.BroadcastMessage") else "disabled=\"True\"", "广播消息", "广播消息") sb = sb + linkbtnTemplate.format( "readMessage", "icon16_email_at_sign", "" if PublicController.IsAuthorized( response, request, "MessageAdmin.ReadMessage") else "disabled=\"True\"", "标志为已读", "已读") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "delMessage", "icon16_comment_delete", "" if PublicController.IsAuthorized( response, request, "MessageAdmin.DeleteMessage") else "disabled=\"True\"", "删除选中的消息", "删除") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"btn{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"btnRefresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "AddStaff", "icon16_vcard_add", "" if PublicController.IsAuthorized( response, request, "StaffAdmin.Add") else "disabled=\"True\"", "添加员工", "添加") sb = sb + linkbtnTemplate.format( "EditStaff", "icon16_vcard_edit", "" if PublicController.IsAuthorized( response, request, "StaffAdmin.Edit") else "disabled=\"True\"", "修改员工", "修改") sb = sb + linkbtnTemplate.format( "DeleteStaff", "icon16_vcard_delete", "" if PublicController.IsAuthorized(response, request, "StaffAdmin.Delete") else "disabled=\"True\"", "删除员工", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "MoveTo", "icon16_arrow_switch", "" if PublicController.IsAuthorized( response, request, "StaffAdmin.Move") else "disabled=\"True\"", "移动选中的员工", "移动") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "Export", "icon16_user_go", "" if PublicController.IsAuthorized( response, request, "StaffAdmin.Export") else "disabled=\"True\"", "导出员工数据", "导出") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("itemdetailadd", "icon16_table_add", "" if PublicController.IsAuthorized(response, request, "DictionaryDetail.Add") else "disabled=\"True\"", "新增字典明细项", "新增") sb = sb + linkbtnTemplate.format("itemdetailedit", "icon16_table_edit", "" if PublicController.IsAuthorized(response, request, "DictionaryDetail.Edit") else "disabled=\"True\"", "修改选中的字典明细项", "修改") sb = sb + linkbtnTemplate.format("itemdetaildelete", "icon16_table_delete", "" if PublicController.IsAuthorized(response, request, "DictionaryDetail.Delete") else "disabled=\"True\"", "删除选中的字典明细项", "删除") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"btn{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"btnRefresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("ViewDetail", "icon16_table_export", "" if PublicController.IsAuthorized(response, request, "ExceptionAdmin.Query") else "disabled=\"True\"", "查看异常详情", "查看异常详情") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("Export", "icon16_table_export", "" if PublicController.IsAuthorized(response, request, "ExceptionAdmin.Export") else "disabled=\"True\"", "导出系统异常数据", "导出") sb = sb + linkbtnTemplate.format("Delete", "icon16_table_delete", "" if PublicController.IsAuthorized(response, request, "ExceptionAdmin.Delete") else "disabled=\"True\"", "删除系统异常", "删除") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("add", "icon16_cog_add", "" if PublicController.IsAuthorized(response, request, "ParameterAdmin.Add") else "disabled=\"True\"", "新增序列", "新增") sb = sb + linkbtnTemplate.format("edit", "icon16_cog_edit", "" if PublicController.IsAuthorized(response, request, "ParameterAdmin.Edit") else "disabled=\"True\"", "修改选中序列", "修改") sb = sb + linkbtnTemplate.format("del", "icon16_cog_delete", "" if PublicController.IsAuthorized(response, request, "ParameterAdmin.Delete") else "disabled=\"True\"", "删除选中序列", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("export", "icon16_cog_go", "" if PublicController.IsAuthorized(response, request, "ParameterAdmin.Export") else "disabled=\"True\"", "导出序列数据", "导出") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("add", "icon16_layout_add", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.Add") else "disabled=\"True\"", "新增操作权限", "新增") sb = sb + linkbtnTemplate.format("edit", "icon16_layout_edit", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.Edit") else "disabled=\"True\"", "修改操作权限", "修改") sb = sb + linkbtnTemplate.format("delete", "icon16_layout_delete", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.Delete") else "disabled=\"True\"", "删除操作权限", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("move", "icon16_arrow_switch", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.Move") else "disabled=\"True\"", "移动选中的操作权限", "移动") #sb = sb + linkbtnTemplate.format("export", "icon16_export_excel", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.Export") else "disabled=\"True\"", "导出操作权限列表", "导出") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("setuserpermissionitemepermission", "icon16_view_bandwidth_usage", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.UserPermissionItem") else "disabled=\"True\"", "设置用户的操作权限项访问权限", "用户操作权限") sb = sb + linkbtnTemplate.format("setrolepermissionitemepermission", "icon16_key", "" if PublicController.IsAuthorized(response, request, "PermissionItemManagement.RolePermissionItem") else "disabled=\"True\"", "设置角色的操作权限项访问权限", "角色操作权限") return sb
def wrapped_function(*args, **kwargs): if ParameterService.GetServiceConfig(None, 'LoginProvider') == 'Cookie': try: user = args[0].get_signed_cookie( ParameterService.GetServiceConfig( None, 'LoginProvider'), salt=ParameterService.GetServiceConfig( None, 'LoginUserKey')) if user: user = SecretHelper.AESDecrypt(user) try: user = json.loads(user, object_hook=UserInfo.json_2_obj) if PublicController.IsAuthorized( HttpResponse(), args[0], code): return func(*args, **kwargs) else: return HttpResponseRedirect('/Admin/Index/') except: return HttpResponseRedirect('/Admin/Index/') else: return HttpResponseRedirect('/Admin/Index/') except Exception as e: print(e) return HttpResponseRedirect('/Admin/Index/') else: try: user = args[0].session.get( ParameterService.GetServiceConfig( None, 'LoginProvider')) if user: user = SecretHelper.AESDecrypt(user) try: user = json.loads(user, object_hook=UserInfo.json_2_obj) if PublicController.IsAuthorized( HttpResponse(), args[0], code): return func(*args, **kwargs) else: return HttpResponseRedirect('/Admin/Index/') except: return HttpResponseRedirect('/Admin/Index/') else: return HttpResponseRedirect('/Admin/Index/') except Exception as e: print(e) return HttpResponseRedirect('/Admin/Index/')
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("add", "icon16_user_add", "" if PublicController.IsAuthorized(response, request, "UserManagement.Add") else "disabled=\"True\"", "添加用户", "添加") sb = sb + linkbtnTemplate.format("edit", "icon16_user_edit", "" if PublicController.IsAuthorized(response, request, "UserManagement.Edit") else "disabled=\"True\"", "修改用户", "修改") sb = sb + linkbtnTemplate.format("delete", "icon16_user_delete", "" if PublicController.IsAuthorized(response, request, "UserManagement.Delete") else "disabled=\"True\"", "删除用户", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("editpassword", "icon16_user_level_filtering", "" if PublicController.IsAuthorized(response, request, "UserManagement.SetUserPassword") else "disabled=\"True\"", "设置选中用户密码", "设置密码") sb = sb + linkbtnTemplate.format("dimission", "icon16_aol_messenger", "" if PublicController.IsAuthorized(response, request, "UserManagement.Dimission") else "disabled=\"True\"", "离职", "离职") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("export", "icon16_user_go", "" if PublicController.IsAuthorized(response, request, "UserManagement.Edit") else "disabled=\"True\"", "导出用户数据", "导出") sb = sb + "<a href=\"javascript:void(0)\" id=\"sb\">访问日志</a>" sb = sb + GenerateSplitTool() return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"btn{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("Add", "icon16_add", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.Add") else "disabled=\"True\"", "新增组织机构", "新增") sb = sb + linkbtnTemplate.format("Edit", "icon16_edit_button", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.Edit") else "disabled=\"True\"", "修改选中的组织机构", "修改") sb = sb + linkbtnTemplate.format("Delete", "icon16_delete", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.Delete") else "disabled=\"True\"", "删除选中组织机构", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("MoveTo", "icon16_arrow_switch", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.Move") else "disabled=\"True\"", "移动选中的组织机构", "移动") sb = sb + linkbtnTemplate.format("Export", "icon16_export_excel", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.Export") else "disabled=\"True\"", "导出组织机构数据", "导出") if SystemInfo.EnableOrganizePermission: sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("UserOrganizePermission", "icon16_key", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.UserOrganizePermission") else "disabled=\"True\"", "设置用户组织机构权限", "用户组织机构权限") sb = sb + linkbtnTemplate.format("RoleOrganizePermission", "icon16_lightning", "" if PublicController.IsAuthorized(response, request, "OrganizeManagement.RolerOrganizePermission") else "disabled=\"True\"", "设置角色组织机构权限", "角色组织机构权限") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"btn{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("UserPermission", "icon16_key", "" if PublicController.IsAuthorized(response, request, "UserPermissionAdmin.UserPermission") else "disabled=\"True\"", "用户权限设置", "用户权限") sb = sb + linkbtnTemplate.format("UserRole", "icon16_group_link", "" if PublicController.IsAuthorized(response, request, "UserPermissionAdmin.UserRole") else "disabled=\"True\"", "用户角色关联", "用户角色") sb = sb + linkbtnTemplate.format("UserRoleBatchSet", "icon16_shape_square_key", "" if PublicController.IsAuthorized(response, request, "UserPermissionAdmin.RoleUserBatchSet") else "disabled=\"True\"", "用户角色集中批量设置", "用户角色批量设置") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("UserBatchPermission", "icon16_lightning", "" if PublicController.IsAuthorized(response, request, "UserPermissionAdmin.BatchPermission") else "disabled=\"True\"", "用户权限集中批量设置", "用户权限批量设置") if PublicController.IsAuthorized(response, request, "UserPermissionAdmin.UserAuthorization") and SystemInfo.EnableUserAuthorizationScope: sb = sb + "<a href=\"javascript:void(0)\" id=\"sb\">权限设置</a>" sb = sb + GenerateSplitTool() sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format("Search", "icon16_filter", "" if PublicController.IsAuthorized(response, request, "UserManagement.Search") else "disabled=\"True\"", "搜索", "搜索") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"post_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "add", "icon16_brick_add", "" if PublicController.IsAuthorized( response, request, "PostAdmin.Add") else "disabled=\"True\"", "添加岗位", "添加") sb = sb + linkbtnTemplate.format( "edit", "icon16_brick_edit", "" if PublicController.IsAuthorized( response, request, "PostAdmin.Edit") else "disabled=\"True\"", "修改岗位", "修改") sb = sb + linkbtnTemplate.format( "delete", "icon16_brick_delete", "" if PublicController.IsAuthorized( response, request, "PostAdmin.Delete") else "disabled=\"True\"", "删除岗位", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "moveTo", "icon16_arrow_switch", "" if PublicController.IsAuthorized( response, request, "PostAdmin.Edit") else "disabled=\"True\"", "移动选中的岗位", "移动") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "setUser", "icon16_key", "" if PublicController.IsAuthorized( response, request, "PostAdmin.User") else "disabled=\"True\"", "设置选中岗位所包含的用户", "设置用户") sb = sb + linkbtnTemplate.format( "setPermission", "icon16_lightning", "" if PublicController.IsAuthorized( response, request, "PostAdmin.Permission") else "disabled=\"True\"", "设置选中岗位所拥有的权限", "设置权限") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "add", "icon16_group_add", "" if PublicController.IsAuthorized( response, request, "RoleManagement.Add") else "disabled=\"True\"", "新增角色", "新增") sb = sb + linkbtnTemplate.format( "edit", "icon16_group_edit", "" if PublicController.IsAuthorized( response, request, "RoleManagement.Edit") else "disabled=\"True\"", "修改选中角色", "修改") sb = sb + linkbtnTemplate.format( "del", "icon16_group_delete", "" if PublicController.IsAuthorized( response, request, "RoleManagement.Delete") else "disabled=\"True\"", "删除选中角色", "删除") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "roleuser", "icon16_group_link", "" if PublicController.IsAuthorized( response, request, "RoleManagement.RoleUser") else "disabled=\"True\"", "设置当前角色拥有的用户", "角色用户设置") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "export", "icon16_group_go", "" if PublicController.IsAuthorized( response, request, "RoleManagement.Export") else "disabled=\"True\"", "导出角色数据", "导出") sb = sb + linkbtnTemplate.format( "print", "icon16_printer", "" if PublicController.IsAuthorized( response, request, "RoleManagement.Export") else "disabled=\"True\"", "打印", "打印") return sb
def BuildToolBarButton(response, request): sb = '' linkbtnTemplate = "<a id=\"a_{0}\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"{1}\" {2} title=\"{3}\">{4}</a>" sb = sb + "<a id=\"a_refresh\" class=\"easyui-linkbutton\" style=\"float:left\" plain=\"true\" href=\"javascript:;\" icon=\"icon16_arrow_refresh\" title=\"重新加载\">刷新</a> " sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "BatchSave", "icon16_save_data", "" if PublicController.IsAuthorized( response, request, "TableFieldAdmin.BatchSave") else "disabled=\"True\"", "批量保存", "批量保存") sb = sb + linkbtnTemplate.format( "BatchSet", "icon16_table_format", "" if PublicController.IsAuthorized( response, request, "TableFieldAdmin.BatchSave") else "disabled=\"True\"", "批量设置", "批量设置") sb = sb + linkbtnTemplate.format( "Export", "icon16_table_export", "" if PublicController.IsAuthorized( response, request, "TableFieldAdmin.Export") else "disabled=\"True\"", "导出", "导出") sb = sb + "<div class='datagrid-btn-separator'></div> " sb = sb + linkbtnTemplate.format( "SetTablePermission", "icon16_table_lightning", "" if PublicController.IsAuthorized( response, request, "TableFieldAdmin.SetTablePermission") else "disabled=\"True\"", "设置权限控制表", "设置权限控制表") return sb