纽威
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.

105 lines
4.0 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/Duty/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. }
  19. });
  20. });
  21. function initControl() {
  22. $("#F_OrganizeId").bindSelect({
  23. url: "/SystemManage/Organize/GetTreeSelectJson",
  24. });
  25. }
  26. </script>
  27. <form id="form1">
  28. <div style="padding-top: 20px; margin-right: 20px;">
  29. <table class="form">
  30. <tr>
  31. <th class="formTitle">归属组织</th>
  32. <td class="formValue">
  33. <select id="F_OrganizeId" name="F_OrganizeId" class="form-control required">
  34. </select>
  35. </td>
  36. </tr>
  37. <tr>
  38. <th class="formTitle">岗位名称</th>
  39. <td class="formValue">
  40. <input id="F_FullName" name="F_FullName" type="text" class="form-control" />
  41. </td>
  42. </tr>
  43. <tr>
  44. <th class="formTitle">岗位编号</th>
  45. <td class="formValue">
  46. <input id="F_EnCode" name="F_EnCode" type="text" class="form-control" />
  47. </td>
  48. </tr>
  49. <tr>
  50. <th class="formTitle">显示顺序</th>
  51. <td class="formValue">
  52. <input id="F_SortCode" name="F_SortCode" type="text" class="form-control" />
  53. </td>
  54. </tr>
  55. <tr>
  56. <th class="formTitle" style="height: 35px;">选项</th>
  57. <td class="formValue" style="padding-top: 1px;">
  58. <div class="ckbox">
  59. <input id="F_AllowEdit" name="F_AllowEdit" type="checkbox"><label for="F_AllowEdit">允许编辑</label>
  60. </div>
  61. <div class="ckbox">
  62. <input id="F_AllowDelete" name="F_AllowDelete" type="checkbox"><label for="F_AllowDelete">允许删除</label>
  63. </div>
  64. <div class="ckbox">
  65. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  66. </div>
  67. </td>
  68. </tr>
  69. <tr>
  70. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  71. </th>
  72. <td class="formValue">
  73. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  74. </td>
  75. </tr>
  76. <tr>
  77. <th class="formTitle">创建人员</th>
  78. <td class="formValue">
  79. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  80. </td>
  81. </tr>
  82. <tr>
  83. <th class="formTitle">创建时间</th>
  84. <td class="formValue">
  85. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  86. </td>
  87. </tr>
  88. <tr>
  89. <th class="formTitle">修改人员</th>
  90. <td class="formValue">
  91. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  92. </td>
  93. </tr>
  94. <tr>
  95. <th class="formTitle">修改时间</th>
  96. <td class="formValue">
  97. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. </form>