123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>SysUserList</title>
- <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
- <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
- <script src="~/Content/js/jquery.min.js"></script>
- <script src="~/Content/js/bootstrap.min.js"></script>
- <script src="~/easyui/jquery.easyui.min.js"></script>
- <script src="~/easyui/jquery.easyui.mobile.js"></script>
- <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
- <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
- <script src="~/Content/js/plugins/layer/layer.min.js"></script>
- <script src="~/js/Utils.js"></script>
- <script src="~/Content/js/SysUser/SysUser.js"></script>
- @*<link href="~/Content/css/Style/Markets.css" rel="stylesheet" />*@
- <style>
- .td_1{
- padding-bottom:5px;
- padding-left:5px
- }
- .tbToolBar {
- padding-left:20px;
- padding-bottom: 5px;
- }
- .tbToolBar .toolbar {
- float: left;
- }
- .tbToolBar .toolbar a {
- padding-left: 5px;
- padding-right: 5px;
- }
- .tbToolBar .shuxian,#WarranttoolBar .shuxian{
- border-right:1px solid #bbb;
- height: 150%;
- margin:0 5px;
- }
- .tbToolBar .toolbar-search {
- float: right;
- margin-right:40px;
- position: absolute;
- right: 0;
- top: 10px;
- z-index: 100;
- }
- .tbToolBar .toolbar-search .searchbox .l-btn-left {
- padding-left: 5px;
- }
- .tbToolBar .toolbar-search .searchbox .l-btn-left .m-btn-downarrow{
- padding-right: 8px;
- }
- .tbToolBar .toolbar-search .panel {
- margin-bottom:5px;
- }
- .tbToolBar .toolbar-search .panel-header .panel-title {
- font-size: 12px;
- color: #4994cf;
- line-height:16px;
- letter-spacing:1px;
- margin-left:10px;
- }
- .tbToolBar .toolbar-search .panel-header .panel-tool a {
- display: inline-block;
- margin-left:8px;
- }
- #Search tr td{
- padding: 5px 10px;
- }
- #Search tr td label{
- min-width: 60px;
- text-align: right;
- letter-spacing:1px;
- }
- #Search.easyui-panel.panel-body {
- overflow: auto;
- }
- .tbToolBar .btn{
- margin-left:15px;
- margin-top:5px;
- margin-bottom: 5px;
- float: left;
- }
- .tbToolBar .input-group {
- margin: 3px auto;
- max-width:380px;
- }
- .tbToolBar .control-label{
- color: #eed;
- background: #abe;
- border: 1px solid #aCAaE7;
- padding:3px 5px;
- font-size:12px;
- height:25px;
- }
- .tbToolBar .form-control{
- text-align: left;
- padding: 3px 5px;
- font-size:12px;
- height:25px;
- }
- .tbToolBar .form-control:focus {
- border: 1px solid #8CAAE7;
- }
- #ResetTool ,#IsEvaTool{
- display: none;
- }
- </style>
- </head>
- <body>
- <section class="hidden">
- <input id="hid_Type" name="hid_Type" type="hidden" value="0" />
- <input id="hid_IsLock" name="IsLock" type="hidden" value="N" />
- <input id="hid_AcountType" name="hid_AcountType" type="hidden" value="Y" />
- <input id="hid_Advance" name="hid_Advance" type="hidden" value="Y" />
- <input id="hid_IsMarketSysAccount" name="hid_IsMarketSysAccount" type="hidden" value="@ViewBag.IsMarketSysAccount" />
- <input id="hid_CurrentRegion" name="hid_CurrentRegion" type="hidden" value="@ViewBag.CurrentRegion" />
- <input id="hid_IsSystemAccount" name="hid_IsSystemAccount" type="hidden" value="@ViewBag.IsSystemAccount" />
- <input id="hid_SelectUser" name="hid_SelectUser" type="hidden" />
- </section>
- @*<section class="text-center title">
- <h2>市场信息</h2>
- </section>*@
- <section style="height:95vh; padding: 20px 20px 0;">
- <div class="row tbToolBar" id="tbToolBar">
- <div class="toolbar">
- <label>
- <input type="checkbox" id="ckIsLock"> 显示已删除记录
- </label>
- <span class="shuxian"></span>
- <label>
- <input type="checkbox" id="ckAcountType"> 显示被监管帐号
- </label>
- <span class="shuxian"></span>
- <label>
- <input type="checkbox" id="ckAdvance"> 显示普通帐号
- </label>
-
- </div>
- <div class="toolbar" id="CurdTool">
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add()">添加</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit()">修改</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del()">删除</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-group" plain="true" onclick="btn_Group()">隶属组</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton btnMark" id="btnMarket" iconCls="icon-Home" plain="true" onclick="btn_Market()">配置市场</a>
- <span class="shuxian btnMark"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-KeyAdd" plain="true" onclick="btn_Auth()">权限</a>
-
- </div>
- <div class="toolbar" id="ResetTool">
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-undo" plain="true" onclick="btn_Restore()">恢复删除</a>
- </div>
-
- </div>
- <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- toolbar: '#tbToolBar',
- fitColumns: true,
- rownumbers: true,
- remoteSort: false,
- loadFilter: pagerFilter,
- onClickRow: function (index, data) {
- loadTarget();
- },
- pagination: true,
- pageSize: 20,
- pageList: [20, 50, 100]
- ">
- <thead>
- <tr>
- <th data-options="field:'UserCode',width:80">用户编号</th>
- <th data-options="field:'Names',width:150">用户名</th>
- <th data-options="field:'RegionName',width:100">区域名</th>
- <th data-options="field:'FarmsName',width:100">单位名</th>
- <th data-options="field:'DutyName',width:100">职位名</th>
- <th data-options="field:'DepartmentName',width:100">部门名</th>
- <th data-options="field:'SystemName',width:50">所属系统</th>
- </tr>
- </thead>
- </table>
- </section>
- <section>
- <div id="winModal" class="easyui-window winModal" title="编辑维护" style="width: 600px; height: 450px;padding:5px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height:400px">
- <div data-options="region:'center'" style="padding:5px 5px 1px; height:385px">
-
- <table cellpadding="10" cellspacing="0" style="margin-left:10px">
- <tr >
- <td class="td_1">用户编号</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtUserCode" name="txtUserCode" data-options="required:true" style="width:200px;height:20px" /></td>
- <td class="td_1">所属部门</td>
- <td class="td_1">
- <select id="ccDepartmentID" class="easyui-combobox" name="ccDepartmentID" style="width:200px;height:20px" >
- @Html.Raw(ViewBag.SelDepartmentID)
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">姓名</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtName" name="txtName" data-options="required:true" style="width:200px;height:20px" /></td>
- <td class="td_1">职务</td>
- <td class="td_1">
- <select id="ccDutyID" class="easyui-combobox" name="ccDutyID" style="width:200px;height:20px">
- @Html.Raw(ViewBag.SelDutyID)
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">密码</td>
- <td class="td_1"><input class="easyui-textbox" type="password" id="txtPassword" name="txtPassword" data-options="required:true" style="width:200px;height:20px" /></td>
- <td class="td_1">性别</td>
- <td class="td_1">
- <select id="ccSex" class="easyui-combobox" name="ccSex" style="width:200px;height:20px">
- <option value="1">男</option>
- <option value="0">女</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">密码确认</td>
- <td class="td_1">
- <input class="easyui-textbox" type="password" id="txtConfirmPassword" name="txtConfirmPassword" data-options="required:true" style="width:200px;height:20px"/>
- </td>
- <td class="td_1">年龄</td>
- <td class="td_1">
- <input class="easyui-textbox" type="text" id="txtAge" name="txtAge" style="width:200px;height:20px" />
- </td>
- </tr>
- <tr>
- <td class="td_1">联系电话</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtTelephone" name="txtTelephone" style="width:200px;height:20px"/></td>
- <td class="td_1">邮编</td>
- <td class="td_1">
- <input class="easyui-textbox" type="text" id="txtZIP" name="txtZIP" style="width:200px;height:20px"/>
- </td>
- </tr>
- <tr>
- <td class="td_1">Email</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtEmail" name="txtEmail" style="width:200px;height:20px"/></td>
- <td class="td_1">所属系统</td>
- <td class="td_1">
- <select id="ccSystemID" class="easyui-combobox" name="ccSystemID" style="width:200px;height:20px" >
- @Html.Raw(ViewBag.SelSystemID)
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">系统管理员</td>
- <td class="td_1">
- <select id="ccIsSystem" class="easyui-combobox" name="ccIsSystem" style="width:200px;height:20px" disabled>
- <option value="N">不是</option>
- <option value="Y">是</option>
- </select>
- </td >
- <td class="td_1">高级用户</td>
- <td class="td_1">
- <select id="ccIsAdvance" class="easyui-combobox" name="ccIsAdvance" style="width:200px;height:20px">
- <option value="N">不是</option>
- <option value="Y">是</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">所属单位</td>
- <td class="td_1">
- <select id="ccFarmID" class="easyui-combobox" name="ccFarmID" style="width:200px;height:20px" >
- @Html.Raw(ViewBag.SelFarmID)
- </select>
- </td>
- <td class="td_1">所在地区</td>
- <td class="td_1">
-
- @*<input class="easyui-combotree" id="ccRegionID" data-options="url:'/BaseInfo/GetTreeRegion',method:'post',loadFilter: function (rows) {
- return convert(rows);
- }" style="width:200px;height:20px" @ViewBag.cbRegion />*@
- <select class="easyui-combobox" id="ccRegionID" style="height: 25px; width: 200px">
- @Html.Raw(ViewBag.SelRegionID)
- </select>
- </td>
- </tr>
- <tr>
- <td class="td_1">详细地址</td>
- <td colspan="3" class="td_1"><input class="easyui-textbox" type="text" id="txtAddress" name="txtAddress" style="width:200px;height:20px" /></td>
-
- </tr>
- <tr>
- <td class="td_1">创建人</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtCreateUser" name="txtCreateUser" style="width:200px;height:20px" disabled /></td>
- <td class="td_1">创建时间</td>
- <td class="td_1"><input class="easyui-textbox" type="text" id="txtCreateDate" name="txtCreateDate" style="width:200px;height:20px" disabled/></td>
- </tr>
- <tr>
- <td class="td_1">
- 简介
- </td>
- <td colspan="3" class="td_1">
- <textarea id="txtInfo" rows="4" style="width:467px"></textarea>
- </td>
- </tr>
- </table>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right; padding: 12px 20px ;height:52px;">
- <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" style="width:80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
- <div id="winGroupModal" class="easyui-window winModal" title="用户隶属组管理" style="width: 700px; height: 350px;padding:10px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height:99%">
- <div data-options="region:'center'" style="padding:15px 5px 5px;">
- <table id="dgGroup" class="easyui-datagrid" style="height: 100%;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- fitColumns: true,
- rownumbers: false, selectOnCheck:true,checkOnSelect:true,url:'/SysUser/GetSysGroupList'
- ">
- <thead>
- <tr>
- <th data-options="field:'ck',checkbox:true"></th>
- <th data-options="field:'Names',width:80">用户组</th>
- </tr>
- </thead>
- </table>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right; padding: 10px 20px;height:52px">
- <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SaveSelectGroup()" style="width:80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winGroupModal').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
- <div id="winMarketModal" class="easyui-window winModal" title="用户隶属市场管理" style="width: 600px; height:450px;padding:4px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height:99%">
- <div data-options="region:'center'" style="padding:10px 5px 5px;">
- <table id="dgMarket" class="easyui-datagrid" style="height: 100%;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- fitColumns: true,
- rownumbers: false, selectOnCheck:true,checkOnSelect:true
- ">
- <thead>
- <tr>
- <th data-options="field:'ck',checkbox:true"></th>
- <th data-options="field:'MarketName',width:80" style="">市场列表</th>
- </tr>
- </thead>
- </table>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right; padding: 10px 20px;height:52px">
- <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SaveMarket()" style="width:80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winMarketModal').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
- </section>
-
- <script>
- function btn_Auth() {
- var row = $('#dgTable').datagrid('getSelected');
- if (row) {
- open("/SystemModule/PowerUI.aspx?as_UserType=User&PrimaryKey=" + row.UserID, "UserPower", "toolbar=no,scrollbars=yes," + f_Center(720, 680) + ",resizable=yes");
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- }
- //弹出窗体居中
- function f_Center(ll_Width, ll_Height) {
- var ll_Left;
- var ll_Top;
- var ls_Str;
- ll_Left = (screen.width - ll_Width) / 2
- ll_Top = (screen.height - ll_Height) / 2
- if (ll_Left < 0) {
- ll_Left = 0;
- }
- if (ll_Top < 0) {
- ll_Top = 0;
- }
- ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
- return ls_Str;
- }
-
- </script>
- </body>
- </html>
|