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

91 lines
3.4 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. if (!!keyValue) {
  10. $.ajax({
  11. url: "/SystemManage/Duty/GetFormJson",
  12. data: { keyValue: keyValue },
  13. dataType: "json",
  14. async: false,
  15. success: function (data) {
  16. $("#form1").formSerialize(data);
  17. }
  18. });
  19. }
  20. });
  21. function initControl() {
  22. $("#F_OrganizeId").bindSelect({
  23. url: "/SystemManage/Organize/GetTreeSelectJson",
  24. });
  25. }
  26. function submitForm() {
  27. if (!$('#form1').formValid()) {
  28. return false;
  29. }
  30. $.submitForm({
  31. url: "/SystemManage/Duty/SubmitForm?keyValue=" + keyValue,
  32. param: $("#form1").formSerialize(),
  33. success: function () {
  34. $.currentWindow().$("#gridList").trigger("reloadGrid");
  35. }
  36. })
  37. }
  38. </script>
  39. <form id="form1">
  40. <div style="padding-top: 20px; margin-right: 20px;">
  41. <table class="form">
  42. <tr>
  43. <th class="formTitle">归属组织</th>
  44. <td class="formValue">
  45. <select id="F_OrganizeId" name="F_OrganizeId" class="form-control required">
  46. </select>
  47. </td>
  48. </tr>
  49. <tr>
  50. <th class="formTitle">岗位名称</th>
  51. <td class="formValue">
  52. <input id="F_FullName" name="F_FullName" type="text" class="form-control required" placeholder="请输入岗位名称" />
  53. </td>
  54. </tr>
  55. <tr>
  56. <th class="formTitle">岗位编号</th>
  57. <td class="formValue">
  58. <input id="F_EnCode" name="F_EnCode" type="text" class="form-control required" placeholder="请输入岗位编号" />
  59. </td>
  60. </tr>
  61. <tr>
  62. <th class="formTitle">显示顺序</th>
  63. <td class="formValue">
  64. <input id="F_SortCode" name="F_SortCode" type="text" class="form-control required" placeholder="请输入显示顺序" />
  65. </td>
  66. </tr>
  67. <tr>
  68. <th class="formTitle" style="height: 35px;">选项</th>
  69. <td class="formValue" style="padding-top: 1px;">
  70. <div class="ckbox">
  71. <input id="F_AllowEdit" name="F_AllowEdit" type="checkbox"><label for="F_AllowEdit">允许编辑</label>
  72. </div>
  73. <div class="ckbox">
  74. <input id="F_AllowDelete" name="F_AllowDelete" type="checkbox"><label for="F_AllowDelete">允许删除</label>
  75. </div>
  76. <div class="ckbox">
  77. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  78. </div>
  79. </td>
  80. </tr>
  81. <tr>
  82. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  83. </th>
  84. <td class="formValue">
  85. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  86. </td>
  87. </tr>
  88. </table>
  89. </div>
  90. </form>