User.cshtml 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @{
  2. ViewData["TitleController"] = "系统管理";
  3. ViewData["TitleAction"] = "用户管理";
  4. ViewData["TitleActionDescription"] = "用户配置管理";
  5. ViewData["Title"] = "用户管理";
  6. }
  7. @section header{
  8. <link href="~/lib/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  9. }
  10. <div class="row">
  11. <div class="col-md-11">
  12. <div class="box box-primary">
  13. <div class="box-header">
  14. <div class="row">
  15. <div class="col-md-3" style="padding-left: 5px">
  16. <input id="keyword" type="text" class="form-control" placeholder="工号姓名模糊查询 例: 2200205 李文健">
  17. </div>
  18. <div class="col-md-1">
  19. <div class="btn-group">
  20. <button type="button" class="btn btn-block btn-default" onclick="refreshUserTable()">
  21. <i class="fa fa-search"></i> 查询
  22. </button>
  23. </div>
  24. </div>
  25. <div class="col-md-1">
  26. <div class="btn-group">
  27. <button class="btn btn-block btn-primary" onclick="modelCreateUser()"><i class="fa fa-plus"></i> 新增</button>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="box-body">
  33. <table id="user_table" class="table table-condensed"></table>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="modal fade" id="modal_user_add" tabindex="-1" role="dialog" aria-labelledby="modal_user_add_label" data-backdrop="static">
  39. <div class="modal-dialog" role="document" style="width:80%">
  40. <div class="modal-content">
  41. <div class="modal-header">
  42. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  43. <h4 class="modal-title">添加 / 修改 用户信息</h4>
  44. </div>
  45. <div class="modal-body">
  46. <form id="form" role="form" action="" class="form-horizontal">
  47. <input id="Id" name="Id" value="" type="hidden" />
  48. <div class="form-group">
  49. <label for="FormJobNo" class="col-sm-2 control-label">工号</label>
  50. <div class="col-sm-10">
  51. <input id="FormJobNo" type="text" name="FormJobNo" data-msg-required="必须填写工号" placeholder="例:2200205"
  52. class="form-control" data-rule-required="true" value="" />
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label for="Name" class="col-sm-2 control-label">名称</label>
  57. <div class="col-sm-10">
  58. <input id="Name" type="text" name="Name" data-msg-required="必须填写名称" placeholder="例:李文健"
  59. class="form-control" data-rule-required="true" value="" />
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label for="Role" class="col-sm-2 control-label">角色</label>
  64. <div class="col-sm-10">
  65. <select id="Role" name="Role" data-msg-required="必须选择线别" data-rule-required="true" class="form-control">
  66. </select>
  67. </div>
  68. </div>
  69. </form>
  70. </div>
  71. <div class="modal-footer">
  72. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  73. <button type="button" data-loading-text="正在处理..." onclick="saveUser()" class="btn btn-primary">保存</button>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. @section footer{
  79. <script src="~/lib/bootstrap-table/bootstrap-table.min.js"></script>
  80. <script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-cn.min.js"></script>
  81. <script src="~/js/admin/user.js"></script>
  82. }