SysUserList.cshtml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. 
  2. @{
  3. Layout = null;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta name="viewport" content="width=device-width" />
  9. <title>SysUserList</title>
  10. <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
  11. <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
  12. <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
  13. <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
  14. <script src="~/Content/js/jquery.min.js"></script>
  15. <script src="~/Content/js/bootstrap.min.js"></script>
  16. <script src="~/easyui/jquery.easyui.min.js"></script>
  17. <script src="~/easyui/jquery.easyui.mobile.js"></script>
  18. <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
  19. <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
  20. <script src="~/Content/js/plugins/layer/layer.min.js"></script>
  21. <script src="~/js/Utils.js"></script>
  22. <script src="~/Content/js/SysUser/SysUser.js"></script>
  23. @*<link href="~/Content/css/Style/Markets.css" rel="stylesheet" />*@
  24. <style>
  25. .td_1{
  26. padding-bottom:5px;
  27. padding-left:5px
  28. }
  29. .tbToolBar {
  30. padding-left:20px;
  31. padding-bottom: 5px;
  32. }
  33. .tbToolBar .toolbar {
  34. float: left;
  35. }
  36. .tbToolBar .toolbar a {
  37. padding-left: 5px;
  38. padding-right: 5px;
  39. }
  40. .tbToolBar .shuxian,#WarranttoolBar .shuxian{
  41. border-right:1px solid #bbb;
  42. height: 150%;
  43. margin:0 5px;
  44. }
  45. .tbToolBar .toolbar-search {
  46. float: right;
  47. margin-right:40px;
  48. position: absolute;
  49. right: 0;
  50. top: 10px;
  51. z-index: 100;
  52. }
  53. .tbToolBar .toolbar-search .searchbox .l-btn-left {
  54. padding-left: 5px;
  55. }
  56. .tbToolBar .toolbar-search .searchbox .l-btn-left .m-btn-downarrow{
  57. padding-right: 8px;
  58. }
  59. .tbToolBar .toolbar-search .panel {
  60. margin-bottom:5px;
  61. }
  62. .tbToolBar .toolbar-search .panel-header .panel-title {
  63. font-size: 12px;
  64. color: #4994cf;
  65. line-height:16px;
  66. letter-spacing:1px;
  67. margin-left:10px;
  68. }
  69. .tbToolBar .toolbar-search .panel-header .panel-tool a {
  70. display: inline-block;
  71. margin-left:8px;
  72. }
  73. #Search tr td{
  74. padding: 5px 10px;
  75. }
  76. #Search tr td label{
  77. min-width: 60px;
  78. text-align: right;
  79. letter-spacing:1px;
  80. }
  81. #Search.easyui-panel.panel-body {
  82. overflow: auto;
  83. }
  84. .tbToolBar .btn{
  85. margin-left:15px;
  86. margin-top:5px;
  87. margin-bottom: 5px;
  88. float: left;
  89. }
  90. .tbToolBar .input-group {
  91. margin: 3px auto;
  92. max-width:380px;
  93. }
  94. .tbToolBar .control-label{
  95. color: #eed;
  96. background: #abe;
  97. border: 1px solid #aCAaE7;
  98. padding:3px 5px;
  99. font-size:12px;
  100. height:25px;
  101. }
  102. .tbToolBar .form-control{
  103. text-align: left;
  104. padding: 3px 5px;
  105. font-size:12px;
  106. height:25px;
  107. }
  108. .tbToolBar .form-control:focus {
  109. border: 1px solid #8CAAE7;
  110. }
  111. #ResetTool ,#IsEvaTool{
  112. display: none;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <section class="hidden">
  118. <input id="hid_Type" name="hid_Type" type="hidden" value="0" />
  119. <input id="hid_IsLock" name="IsLock" type="hidden" value="N" />
  120. <input id="hid_AcountType" name="hid_AcountType" type="hidden" value="Y" />
  121. <input id="hid_Advance" name="hid_Advance" type="hidden" value="Y" />
  122. <input id="hid_IsMarketSysAccount" name="hid_IsMarketSysAccount" type="hidden" value="@ViewBag.IsMarketSysAccount" />
  123. <input id="hid_CurrentRegion" name="hid_CurrentRegion" type="hidden" value="@ViewBag.CurrentRegion" />
  124. <input id="hid_IsSystemAccount" name="hid_IsSystemAccount" type="hidden" value="@ViewBag.IsSystemAccount" />
  125. <input id="hid_SelectUser" name="hid_SelectUser" type="hidden" />
  126. </section>
  127. @*<section class="text-center title">
  128. <h2>市场信息</h2>
  129. </section>*@
  130. <section style="height:95vh; padding: 20px 20px 0;">
  131. <div class="row tbToolBar" id="tbToolBar">
  132. <div class="toolbar">
  133. <label>
  134. <input type="checkbox" id="ckIsLock"> 显示已删除记录
  135. </label>
  136. <span class="shuxian"></span>
  137. <label>
  138. <input type="checkbox" id="ckAcountType"> 显示被监管帐号
  139. </label>
  140. <span class="shuxian"></span>
  141. <label>
  142. <input type="checkbox" id="ckAdvance"> 显示普通帐号
  143. </label>
  144. </div>
  145. <div class="toolbar" id="CurdTool">
  146. <span class="shuxian"></span>
  147. <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add()">添加</a>
  148. <span class="shuxian"></span>
  149. <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit()">修改</a>
  150. <span class="shuxian"></span>
  151. <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del()">删除</a>
  152. <span class="shuxian"></span>
  153. <a href="#" class="easyui-linkbutton" iconCls="icon-group" plain="true" onclick="btn_Group()">隶属组</a>
  154. <span class="shuxian"></span>
  155. <a href="#" class="easyui-linkbutton btnMark" id="btnMarket" iconCls="icon-Home" plain="true" onclick="btn_Market()">配置市场</a>
  156. <span class="shuxian btnMark"></span>
  157. <a href="#" class="easyui-linkbutton" iconCls="icon-KeyAdd" plain="true" onclick="btn_Auth()">权限</a>
  158. </div>
  159. <div class="toolbar" id="ResetTool">
  160. <span class="shuxian"></span>
  161. <a href="#" class="easyui-linkbutton" iconCls="icon-undo" plain="true" onclick="btn_Restore()">恢复删除</a>
  162. </div>
  163. </div>
  164. <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
  165. data-options="singleSelect: true,
  166. method: 'post',
  167. multiSort: false,
  168. toolbar: '#tbToolBar',
  169. fitColumns: true,
  170. rownumbers: true,
  171. remoteSort: false,
  172. loadFilter: pagerFilter,
  173. onClickRow: function (index, data) {
  174. loadTarget();
  175. },
  176. pagination: true,
  177. pageSize: 20,
  178. pageList: [20, 50, 100]
  179. ">
  180. <thead>
  181. <tr>
  182. <th data-options="field:'UserCode',width:80">用户编号</th>
  183. <th data-options="field:'Names',width:150">用户名</th>
  184. <th data-options="field:'RegionName',width:100">区域名</th>
  185. <th data-options="field:'FarmsName',width:100">单位名</th>
  186. <th data-options="field:'DutyName',width:100">职位名</th>
  187. <th data-options="field:'DepartmentName',width:100">部门名</th>
  188. <th data-options="field:'SystemName',width:50">所属系统</th>
  189. </tr>
  190. </thead>
  191. </table>
  192. </section>
  193. <section>
  194. <div id="winModal" class="easyui-window winModal" title="编辑维护" style="width: 600px; height: 450px;padding:5px;"
  195. iconCls="icon-save" data-options="modal:true,closed:true">
  196. <div class="easyui-layout" data-options="fit:true" style="height:400px">
  197. <div data-options="region:'center'" style="padding:5px 5px 1px; height:385px">
  198. <table cellpadding="10" cellspacing="0" style="margin-left:10px">
  199. <tr >
  200. <td class="td_1">用户编号</td>
  201. <td class="td_1"><input class="easyui-textbox" type="text" id="txtUserCode" name="txtUserCode" data-options="required:true" style="width:200px;height:20px" /></td>
  202. <td class="td_1">所属部门</td>
  203. <td class="td_1">
  204. <select id="ccDepartmentID" class="easyui-combobox" name="ccDepartmentID" style="width:200px;height:20px" >
  205. @Html.Raw(ViewBag.SelDepartmentID)
  206. </select>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td class="td_1">姓名</td>
  211. <td class="td_1"><input class="easyui-textbox" type="text" id="txtName" name="txtName" data-options="required:true" style="width:200px;height:20px" /></td>
  212. <td class="td_1">职务</td>
  213. <td class="td_1">
  214. <select id="ccDutyID" class="easyui-combobox" name="ccDutyID" style="width:200px;height:20px">
  215. @Html.Raw(ViewBag.SelDutyID)
  216. </select>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td class="td_1">密码</td>
  221. <td class="td_1"><input class="easyui-textbox" type="password" id="txtPassword" name="txtPassword" data-options="required:true" style="width:200px;height:20px" /></td>
  222. <td class="td_1">性别</td>
  223. <td class="td_1">
  224. <select id="ccSex" class="easyui-combobox" name="ccSex" style="width:200px;height:20px">
  225. <option value="1">男</option>
  226. <option value="0">女</option>
  227. </select>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td class="td_1">密码确认</td>
  232. <td class="td_1">
  233. <input class="easyui-textbox" type="password" id="txtConfirmPassword" name="txtConfirmPassword" data-options="required:true" style="width:200px;height:20px"/>
  234. </td>
  235. <td class="td_1">年龄</td>
  236. <td class="td_1">
  237. <input class="easyui-textbox" type="text" id="txtAge" name="txtAge" style="width:200px;height:20px" />
  238. </td>
  239. </tr>
  240. <tr>
  241. <td class="td_1">联系电话</td>
  242. <td class="td_1"><input class="easyui-textbox" type="text" id="txtTelephone" name="txtTelephone" style="width:200px;height:20px"/></td>
  243. <td class="td_1">邮编</td>
  244. <td class="td_1">
  245. <input class="easyui-textbox" type="text" id="txtZIP" name="txtZIP" style="width:200px;height:20px"/>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td class="td_1">Email</td>
  250. <td class="td_1"><input class="easyui-textbox" type="text" id="txtEmail" name="txtEmail" style="width:200px;height:20px"/></td>
  251. <td class="td_1">所属系统</td>
  252. <td class="td_1">
  253. <select id="ccSystemID" class="easyui-combobox" name="ccSystemID" style="width:200px;height:20px" >
  254. @Html.Raw(ViewBag.SelSystemID)
  255. </select>
  256. </td>
  257. </tr>
  258. <tr>
  259. <td class="td_1">系统管理员</td>
  260. <td class="td_1">
  261. <select id="ccIsSystem" class="easyui-combobox" name="ccIsSystem" style="width:200px;height:20px" disabled>
  262. <option value="N">不是</option>
  263. <option value="Y">是</option>
  264. </select>
  265. </td >
  266. <td class="td_1">高级用户</td>
  267. <td class="td_1">
  268. <select id="ccIsAdvance" class="easyui-combobox" name="ccIsAdvance" style="width:200px;height:20px">
  269. <option value="N">不是</option>
  270. <option value="Y">是</option>
  271. </select>
  272. </td>
  273. </tr>
  274. <tr>
  275. <td class="td_1">所属单位</td>
  276. <td class="td_1">
  277. <select id="ccFarmID" class="easyui-combobox" name="ccFarmID" style="width:200px;height:20px" >
  278. @Html.Raw(ViewBag.SelFarmID)
  279. </select>
  280. </td>
  281. <td class="td_1">所在地区</td>
  282. <td class="td_1">
  283. @*<input class="easyui-combotree" id="ccRegionID" data-options="url:'/BaseInfo/GetTreeRegion',method:'post',loadFilter: function (rows) {
  284. return convert(rows);
  285. }" style="width:200px;height:20px" @ViewBag.cbRegion />*@
  286. <select class="easyui-combobox" id="ccRegionID" style="height: 25px; width: 200px">
  287. @Html.Raw(ViewBag.SelRegionID)
  288. </select>
  289. </td>
  290. </tr>
  291. <tr>
  292. <td class="td_1">详细地址</td>
  293. <td colspan="3" class="td_1"><input class="easyui-textbox" type="text" id="txtAddress" name="txtAddress" style="width:200px;height:20px" /></td>
  294. </tr>
  295. <tr>
  296. <td class="td_1">创建人</td>
  297. <td class="td_1"><input class="easyui-textbox" type="text" id="txtCreateUser" name="txtCreateUser" style="width:200px;height:20px" disabled /></td>
  298. <td class="td_1">创建时间</td>
  299. <td class="td_1"><input class="easyui-textbox" type="text" id="txtCreateDate" name="txtCreateDate" style="width:200px;height:20px" disabled/></td>
  300. </tr>
  301. <tr>
  302. <td class="td_1">
  303. 简介
  304. </td>
  305. <td colspan="3" class="td_1">
  306. <textarea id="txtInfo" rows="4" style="width:467px"></textarea>
  307. </td>
  308. </tr>
  309. </table>
  310. </div>
  311. <div data-options="region:'south',border:false" style="text-align:right; padding: 12px 20px ;height:52px;">
  312. <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" style="width:80px">确认</a>
  313. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width:80px">取消</a>
  314. </div>
  315. </div>
  316. </div>
  317. <div id="winGroupModal" class="easyui-window winModal" title="用户隶属组管理" style="width: 700px; height: 350px;padding:10px;"
  318. iconCls="icon-save" data-options="modal:true,closed:true">
  319. <div class="easyui-layout" data-options="fit:true" style="height:99%">
  320. <div data-options="region:'center'" style="padding:15px 5px 5px;">
  321. <table id="dgGroup" class="easyui-datagrid" style="height: 100%;"
  322. data-options="singleSelect: true,
  323. method: 'post',
  324. multiSort: false,
  325. fitColumns: true,
  326. rownumbers: false, selectOnCheck:true,checkOnSelect:true,url:'/SysUser/GetSysGroupList'
  327. ">
  328. <thead>
  329. <tr>
  330. <th data-options="field:'ck',checkbox:true"></th>
  331. <th data-options="field:'Names',width:80">用户组</th>
  332. </tr>
  333. </thead>
  334. </table>
  335. </div>
  336. <div data-options="region:'south',border:false" style="text-align:right; padding: 10px 20px;height:52px">
  337. <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SaveSelectGroup()" style="width:80px">确认</a>
  338. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winGroupModal').window('close');" style="width:80px">取消</a>
  339. </div>
  340. </div>
  341. </div>
  342. <div id="winMarketModal" class="easyui-window winModal" title="用户隶属市场管理" style="width: 600px; height:450px;padding:4px;"
  343. iconCls="icon-save" data-options="modal:true,closed:true">
  344. <div class="easyui-layout" data-options="fit:true" style="height:99%">
  345. <div data-options="region:'center'" style="padding:10px 5px 5px;">
  346. <table id="dgMarket" class="easyui-datagrid" style="height: 100%;"
  347. data-options="singleSelect: true,
  348. method: 'post',
  349. multiSort: false,
  350. fitColumns: true,
  351. rownumbers: false, selectOnCheck:true,checkOnSelect:true
  352. ">
  353. <thead>
  354. <tr>
  355. <th data-options="field:'ck',checkbox:true"></th>
  356. <th data-options="field:'MarketName',width:80" style="">市场列表</th>
  357. </tr>
  358. </thead>
  359. </table>
  360. </div>
  361. <div data-options="region:'south',border:false" style="text-align:right; padding: 10px 20px;height:52px">
  362. <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SaveMarket()" style="width:80px">确认</a>
  363. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winMarketModal').window('close');" style="width:80px">取消</a>
  364. </div>
  365. </div>
  366. </div>
  367. </section>
  368. <script>
  369. function btn_Auth() {
  370. var row = $('#dgTable').datagrid('getSelected');
  371. if (row) {
  372. open("/SystemModule/PowerUI.aspx?as_UserType=User&PrimaryKey=" + row.UserID, "UserPower", "toolbar=no,scrollbars=yes," + f_Center(720, 680) + ",resizable=yes");
  373. } else {
  374. layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
  375. }
  376. }
  377. //弹出窗体居中
  378. function f_Center(ll_Width, ll_Height) {
  379. var ll_Left;
  380. var ll_Top;
  381. var ls_Str;
  382. ll_Left = (screen.width - ll_Width) / 2
  383. ll_Top = (screen.height - ll_Height) / 2
  384. if (ll_Left < 0) {
  385. ll_Left = 0;
  386. }
  387. if (ll_Top < 0) {
  388. ll_Top = 0;
  389. }
  390. ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
  391. return ls_Str;
  392. }
  393. </script>
  394. </body>
  395. </html>