初始化CRICS

This commit is contained in:
2025-12-11 09:17:16 +08:00
commit 83247ec0a2
2735 changed files with 787765 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.SysUsers>" %>
<form class="easyui-form" method="post" data-options="novalidate:true">
<input type="hidden" name="UserID" value="<%: Model.ID %>" />
<table style="margin: 5px auto; width:400px;" cellpadding="1">
<tr>
<td class="align-right" style="vertical-align:top;"><%: Html.Language("OwnAuthority")%></td>
<td style="width:100%;">
<div class="easyui-panel" style="height:390px;overflow:auto;">
<%--<ul class="authorities easyui-tree easyui-tree-no-icon"
data-options="
url: '/SysUserGroup/LoadAuthorityHotel?userID=<%:Model.ID %>',
cascadeCheck: true,
checkbox: true,
animate: true,
lines: true">
</ul>--%>
<ul id="treeHotels" class="easyui-tree" data-options="checkbox:true,animate:true,lines:true,url:'/SysUserGroup/LoadAuthorityHotel?userID=<%:Model.ID %>'"></ul>
</div>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,22 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<style type="text/css">
#changePasswordForm table th {
font-weight: normal;
text-align: right;
cursor: default;
}
</style>
<form id="changePasswordForm" class="easyui-form" method="post" data-options="novalidate:true">
<input type="hidden" name="ID" value="<%= ViewData["ID"] %>" />
<table style="margin: 20px auto;">
<tr>
<th><label for="iptPassword"><%: Html.Language("NewPassword")%></label></th>
<td><input type="text" id="iptPassword" name="password" class="easyui-validatebox textbox text" data-options="required:true" /></td>
</tr>
<tr>
<th><label for="iptPassword2"><%: Html.Language("ConfirmNewPassword")%></label></th>
<td><input type="text" id="iptPassword2" name="password2" class="easyui-validatebox textbox text" data-options="required:true" validType="equals['#iptPassword']" /></td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,66 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.SysUsers>" %>
<style type="text/css">
#sysUserForm table th {
font-weight: normal;
text-align: right;
}
</style>
<form id="sysUserForm" 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="txtAccount"><%: Html.Language("Account")%></label></th>
<td><input id="txtAccount" name="Account" class="easyui-validatebox textbox text" data-options="required:true,validType:'length[3,20]'" value="<%: Model.Account %>" /></td>
</tr>
<tr>
<th><label for="selSysHotelGroup"><%: Html.Language("SysHotelGroupName")%></label></th>
<td>
<select id="selSysHotelGroup" 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,
onSelect: selSysHotelGroupOnSelect,
value: <%: Model.SysHotelGroup != null ? Model.SysHotelGroup.ID.ToString() : "''" %>
">
</select>
</td>
</tr>
<tr>
<th><label for="selRole"><%: Html.Language("RoleName")%></label></th>
<td>
<select id="selRole" name="RoleID" class="easyui-combobox" style="width:180px;"
data-options="
editable: false,
valueField: 'ID',
textField: 'Name',
url: '/SysRoleGroup/LoadAll?groupId='+<%: Model.SysHotelGroup != null ? Model.SysHotelGroup.ID: 0 %>,
panelHeight: 'auto',
required: true,
value: <%: Model.Role != null ? Model.Role.ID.ToString() : "''" %>
">
</select>
</td>
</tr>
<tr>
<th><label><%: Html.Language("StartUsing")%></label></th>
<td>
<input type="radio" name="ActiveIndicator" value="true" <%: Model.ActiveIndicator ? "checked='checked'" : "" %> /><%: Html.Language("Yes")%>
<input type="radio" name="ActiveIndicator" value="false" <%: !Model.ActiveIndicator ? "checked='checked'" : "" %> /><%: Html.Language("No")%>
</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>
<tr>
<th style="vertical-align: top;"><label for="txtRemark"><%:Html.Language("Remark")%></label></th>
<td><textarea id="txtRemark" name="Remark" class="easyui-validatebox textbox text" data-options="validType:length[0,200]" cols="30" rows="5"><%: Model.Remark %></textarea></td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,152 @@
<%@ 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("UsersMgmt")%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'north',border:false" style="overflow: hidden; height: 30px;">
<div class="toolbar">
<a href="javascript:void(0)" class="toolbar-button tb-icon-refresh" onclick="$('#dg').datagrid('load',{});">
<%: 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> <a href="javascript:void(0)" class="toolbar-button tb-icon-password"
onclick="changePassword()">
<%: Html.Language("ResetPassword")%></a>
</div>
</div>
<div style="border-right: 1px solid #95B8E7;" data-options="region:'center',border:false">
<table id="dg" class="easyui-datagrid" style="width: 100%; height: auto;" data-options="
border: false,
singleSelect: true,
pagination: false,
pageSize: 50,
pageList: [50, 100, 500, 1000],
rownumbers: true,
striped: true,
sortName: 'Sort',
sortOrder: 'asc',
fit: true,
fitColumns: true,
idField: 'ID',
frozenColumns: [[
{ field: 'ID', checkbox: true }
]],
url: '/SysUserGroup/LoadAllByPage/',
method: 'post',
onDblClickRow: function(index, row) { edit(row); }
">
<thead>
<tr>
<th data-options="field:'Account',sortable:true,resizable:false">
<%: Html.Language("Account")%>
</th>
<th data-options="field:'RoleName',sortable:true,resizable:false">
<%: Html.Language("RoleName")%>
</th>
<th data-options="field:'SysHotelGroupName',sortable:true,resizable:false">
<%: Html.Language("SysHotelGroupName")%>
</th>
<th data-options="field:'ActiveIndicator',align:'center',resizable:false,formatter:function(val,rec){return val ? lang.Yes : lang.No;}">
<%: Html.Language("StartUsing")%>
</th>
<th data-options="field:'Sort',align:'center',resizable:false">
<%: Html.Language("Sort")%>
</th>
<th data-options="field:'Remark',resizable:false">
<%: Html.Language("Remark")%>
</th>
<th data-options="field:'CreatedBy',sortable:true,resizable:false">
<%: Html.Language("Founder")%>
</th>
<th data-options="field:'CreatedDate',sortable:true,resizable:false,formatter:$.tools.formatDate">
<%: Html.Language("CreatedDate")%>
</th>
<th data-options="field:'ModifiedBy',sortable:true,resizable:false">
<%: Html.Language("ModifiedPerson")%>
</th>
<th data-options="field:'ModifiedDate',sortable:true,resizable:false,formatter:$.tools.formatDate">
<%: Html.Language("ModifiedDate")%>
</th>
<% if ((bool)ViewData["Account"])
{ %>
<th data-options="field:'Password2',sortable:true,resizable:false">
<%: Html.Language("Password")%>
</th>
<% } %>
</tr>
</thead>
</table>
</div>
<div data-options="region:'east',border:false" style="width: 250px; border-left: 1px solid #95B8E7;">
<%--<div class="toolbar">
<a href="javascript:void(0)" class="toolbar-button tb-icon-add" onclick="group.add()"><%: Html.Language("New")%></a>
<a href="javascript:void(0)" class="toolbar-button tb-icon-edit" onclick="group.edit()"><%: Html.Language("Edit")%></a>
<a href="javascript:void(0)" class="toolbar-button tb-icon-remove" onclick="group.del()"><%: Html.Language("Delete")%></a>
</div>--%>
<table id="groupTree" class="easyui-treegrid" data-options="
url: '/SysHotel/LoadSysHotelGroupTree/',
method: 'post',
idField: 'ID',
treeField: 'Name',
fit: true,
fitColumns: true,
animate: true,
border: false,
loadMsg: 'load......',
bodyCls: 'easyui-treegrid-no-icon',
onLoadSuccess: function (row, data) {if (data[0] != null) {$('#groupTree').treegrid('select', data[0].ID);}},
onSelect: groupTreeOnSelect
">
<thead>
<tr>
<th data-options="field:'Name',width:160">
<%: Html.Language("Name")%>
</th>
<th data-options="field:'Sort',align:'center',width:40">
<%: Html.Language("Sort")%>
</th>
</tr>
</thead>
</table>
</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 src="/Scripts/group.js" type="text/javascript"></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;
} %>
<script type="text/javascript" src="/Scripts/sys_hotel_group.js"></script>
<script type="text/javascript" src="/Scripts/sys-user-group-index.js"></script>
</asp:Content>