初始化CRICS
This commit is contained in:
63
WebSite/Views/SysRole/Edit.ascx
Normal file
63
WebSite/Views/SysRole/Edit.ascx
Normal file
@@ -0,0 +1,63 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.SysRole>" %>
|
||||
<form class="easyui-form" method="post" data-options="novalidate:true">
|
||||
<input type="hidden" name="ID" value="<%: Model.ID %>" />
|
||||
<table style="margin: 20px auto;" cellpadding="3">
|
||||
<tr>
|
||||
<th>
|
||||
<label for="txtName">
|
||||
<%: Html.Language("RoleName")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<input id="txtName" name="Name" class="easyui-validatebox textbox text" data-options="required:true,validType:'length[1,20]'"
|
||||
value="<%: Model.Name %>" />
|
||||
</td>
|
||||
</tr>
|
||||
<%--<tr>
|
||||
<th>
|
||||
<label for="selGroup">
|
||||
<%: Html.Language("Group")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<select id="selGroup" name="SysHotelGroupID" class="easyui-combotree" style="width: 180px;"
|
||||
data-options="
|
||||
lines:true,
|
||||
editable:false,
|
||||
bodyCls:'easyui-tree-no-icon',
|
||||
url:'/SysHotel/LoadGroupTree2/',
|
||||
panelHeight: 'auto',
|
||||
required: true,
|
||||
value: <%: Model.SysHotelGroup != null ? Model.SysHotelGroup.ID.ToString() : "''" %>
|
||||
">
|
||||
</select>
|
||||
</td>
|
||||
</tr>--%>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="treeAuthority">
|
||||
<%: Html.Language("OwnAuthority")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<div class="easyui-panel" style="height: 250px; overflow: auto;">
|
||||
<%--<ul id="treeAuthority" class="authorities easyui-tree easyui-tree-no-icon" data-options="
|
||||
url: '/SysRole/LoadRoleAuthorities<%: Model.ID != 0 ? "?roleId=" + Model.ID : "/" %>',
|
||||
cascadeCheck: false,
|
||||
checkbox: true,
|
||||
animate: true,
|
||||
lines: true">
|
||||
</ul>--%>
|
||||
<ul id="treeAuthority" class="easyui-tree" data-options="cascadeCheck: true,checkbox:true,animate:true,lines:true,url:'/SysRole/LoadRoleAuthorities?roleId=<%:Model.ID != 0 ? Model.ID : 0 %>'">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="txtSort">
|
||||
<%: Html.Language("Sort")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<input id="txtSort" name="Sort" class="easyui-numberspinner text" value="1" style="width: 60px;"
|
||||
data-options="required:true,min:1,value:<%: Model.Sort %>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
72
WebSite/Views/SysRole/Index.aspx
Normal file
72
WebSite/Views/SysRole/Index.aspx
Normal file
@@ -0,0 +1,72 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
<%: Html.Language("RolesMgmt")%>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<div title='<%: Html.Language("RolesMgmt")%>' class="easyui-panel" data-options="fit:true,border:false" >
|
||||
|
||||
<div class="easyui-layout" data-options="fit:true">
|
||||
<div data-options="region:'north',border:false">
|
||||
<div class="datagrid-toolbar">
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="loadRoles()"><%: Html.Language("Refresh")%></a>
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()"><%: Html.Language("New")%></a>
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()"><%: Html.Language("Edit")%></a>
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="delData()"><%: Html.Language("Delete")%></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-options="region:'center',border:false">
|
||||
<table id="rolelist" class="role-list" width="100%"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dialog" class="easyui-window" style="padding: 5px;"
|
||||
data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false
|
||||
">
|
||||
<div class="easyui-panel dlg-content" style="margin-bottom:5px;"></div>
|
||||
<div class="dlg-footer" style="text-align:right; padding:5px 5px 0 0;">
|
||||
<a class="easyui-linkbutton dlg-btn-save" data-options="iconCls:'icon-save'" href="javascript:void(0)"><%: Html.Language("Save")%></a>
|
||||
<a class="easyui-linkbutton dlg-btn-cancel" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#dialog').window('close');"><%: Html.Language("Cancel")%></a>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
|
||||
<script type="text/javascript" src="/Scripts/sys-role-index.js"></script>
|
||||
<% switch ((int)Session["isCN"]){case 1: %>
|
||||
<script type="text/javascript" src="/Scripts/en-US.js"></script>
|
||||
<% break; case 2: %>
|
||||
<script type="text/javascript" src="/Scripts/zh-TW.js"></script>
|
||||
<% break;default: %>
|
||||
<script type="text/javascript" src="/Scripts/zh-CN.js"></script>
|
||||
<% break; } %>
|
||||
<style type="text/css">
|
||||
.role-list {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.role-list tr {
|
||||
cursor:default;
|
||||
}
|
||||
.role-list .selected,
|
||||
.role-list tr:hover {
|
||||
background:#d3e1f1;
|
||||
}
|
||||
.role-list .item-header{
|
||||
width:50px;
|
||||
height:50px;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
}
|
||||
.role-list h3{
|
||||
margin:7px 0px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
88
WebSite/Views/SysRole/SimonIndex.aspx
Normal file
88
WebSite/Views/SysRole/SimonIndex.aspx
Normal file
@@ -0,0 +1,88 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SimonMasterPage.Master"
|
||||
Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
<%: Html.Language("RolesMgmt")%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="easyui-layout" data-options="fit:true">
|
||||
<div region="north" data-options="border:false">
|
||||
<div class="toolbar">
|
||||
<a href="javascript:void(0)" class="toolbar-button tb-icon-refresh" onclick="loadRoles()">
|
||||
<%: Html.Language("Refresh")%></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-add"
|
||||
onclick="add()">
|
||||
<%: Html.Language("New")%></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-edit"
|
||||
onclick="edit()">
|
||||
<%: Html.Language("Edit")%></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-remove"
|
||||
onclick="delData()">
|
||||
<%: Html.Language("Delete")%></a>
|
||||
</div>
|
||||
</div>
|
||||
<div region="center" border="false">
|
||||
<table id="rolelist" class="role-list" width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dialog" class="easyui-window" style="padding: 5px; z-index: 19999;" data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false,
|
||||
draggable: true
|
||||
">
|
||||
<div class="easyui-panel dlg-content" style="margin-bottom: 5px;">
|
||||
</div>
|
||||
<div class="dlg-footer" style="text-align: right; padding: 5px 5px 0 0;">
|
||||
<a class="easyui-linkbutton dlg-btn-save" data-options="iconCls:'icon-save'" href="javascript:void(0)">
|
||||
<%: Html.Language("Save")%></a> <a class="easyui-linkbutton dlg-btn-cancel" data-options="iconCls:'icon-cancel'"
|
||||
href="javascript:void(0)" onclick="$('#dialog').window('close');">
|
||||
<%: Html.Language("Cancel")%></a>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
|
||||
<script type="text/javascript" src="/Scripts/sys-role-index.js"></script>
|
||||
<% switch ((int)Session["isCN"])
|
||||
{
|
||||
case 1: %>
|
||||
<script type="text/javascript" src="/Scripts/en-US.js"></script>
|
||||
<% break;
|
||||
case 2: %>
|
||||
<script type="text/javascript" src="/Scripts/zh-TW.js"></script>
|
||||
<% break;
|
||||
default: %>
|
||||
<script type="text/javascript" src="/Scripts/zh-CN.js"></script>
|
||||
<% break;
|
||||
} %>
|
||||
<style type="text/css">
|
||||
.role-list
|
||||
{
|
||||
font-size: 12px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.role-list tr
|
||||
{
|
||||
cursor: default;
|
||||
}
|
||||
.role-list .selected
|
||||
{
|
||||
background: #8ED5F5;
|
||||
}
|
||||
.role-list tr:hover
|
||||
{
|
||||
background: #8ED5F5;
|
||||
}
|
||||
.role-list .item-header
|
||||
{
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.role-list h3
|
||||
{
|
||||
margin: 7px 0px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user