纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
5.6 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. initControl();
  9. $.ajax({
  10. url: "/SystemManage/User/GetFormJson",
  11. data: { keyValue: keyValue },
  12. dataType: "json",
  13. async: false,
  14. success: function (data) {
  15. $("#form1").formSerialize(data);
  16. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  17. $("#form1").find('div.ckbox label').attr('for', '');
  18. $("#F_UserPassword").val("******");
  19. }
  20. });
  21. });
  22. function initControl() {
  23. $("#F_Gender").bindSelect()
  24. $("#F_IsAdministrator").bindSelect()
  25. $("#F_EnabledMark").bindSelect()
  26. //$("#F_OrganizeId").bindSelect({
  27. // url: "/SystemManage/Organize/GetTreeSelectJson"
  28. //});
  29. //$("#F_DepartmentId").bindSelect({
  30. // url: "/SystemManage/Organize/GetTreeSelectJson",
  31. //});
  32. $("#F_RoleId").bindSelect({
  33. url: "/SystemManage/Role/GetGridJson",
  34. id: "F_Id",
  35. text: "F_FullName"
  36. });
  37. //$("#F_DutyId").bindSelect({
  38. // url: "/SystemManage/Duty/GetGridJson",
  39. // id: "F_Id",
  40. // text: "F_FullName"
  41. //});
  42. }
  43. </script>
  44. <form id="form1">
  45. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  46. <div style="padding-top: 20px; margin-right: 30px;">
  47. <table class="form">
  48. <tr>
  49. <th class="formTitle">账户</th>
  50. <td class="formValue">
  51. <input id="F_Account" name="F_Account" type="text" class="form-control" />
  52. </td>
  53. <th class="formTitle">密码</th>
  54. <td class="formValue">
  55. <input id="F_UserPassword" name="F_UserPassword" type="password" class="form-control" />
  56. </td>
  57. </tr>
  58. <tr>
  59. <th class="formTitle">姓名</th>
  60. <td class="formValue">
  61. <input id="F_RealName" name="F_RealName" type="text" class="form-control" />
  62. </td>
  63. <th class="formTitle">角色</th>
  64. <td class="formValue">
  65. <select id="F_RoleId" name="F_RoleId" class="form-control">
  66. <option value="">==请选择==</option>
  67. </select>
  68. </td>
  69. </tr>
  70. <tr>
  71. <th class="formTitle">手机</th>
  72. <td class="formValue">
  73. <input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control" />
  74. </td>
  75. <th class="formTitle">邮箱</th>
  76. <td class="formValue">
  77. <input id="F_Email" name="F_Email" type="text" class="form-control" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <th class="formTitle">类型</th>
  82. <td class="formValue">
  83. <select id="F_IsAdministrator" name="F_IsAdministrator" class="form-control">
  84. <option value="false">普通用户</option>
  85. <option value="true">系统管理员</option>
  86. </select>
  87. </td>
  88. <th class="formTitle">允许登录</th>
  89. <td class="formValue">
  90. <select id="F_EnabledMark" name="F_EnabledMark" class="form-control">
  91. <option value="true">是</option>
  92. <option value="false">否</option>
  93. </select>
  94. </td>
  95. </tr>
  96. <tr>
  97. <th class="formTitle" valign="top" style="padding-top: 5px;">
  98. 备注
  99. </th>
  100. <td class="formValue">
  101. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  102. </td>
  103. <th class="formTitle">供应商编码</th>
  104. <td class="formValue">
  105. <input id="F_VenCode" name="F_VenCode" type="text" class="form-control" />
  106. </td>
  107. </tr>
  108. <tr>
  109. <th class="formTitle">创建人员</th>
  110. <td class="formValue">
  111. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  112. </td>
  113. <th class="formTitle">创建时间</th>
  114. <td class="formValue">
  115. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  116. </td>
  117. </tr>
  118. <tr>
  119. <th class="formTitle">修改人员</th>
  120. <td class="formValue">
  121. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  122. </td>
  123. <th class="formTitle">修改时间</th>
  124. <td class="formValue">
  125. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  126. </td>
  127. </tr>
  128. </table>
  129. </div>
  130. </div>
  131. </form>