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

112 lines
4.3 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. $.ajax({
  9. url: "/SystemManage/ItemsData/GetFormJson",
  10. data: { keyValue: keyValue },
  11. dataType: "json",
  12. async: false,
  13. success: function (data) {
  14. $("#form1").formSerialize(data);
  15. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  16. $("#form1").find('div.ckbox label').attr('for', '');
  17. }
  18. });
  19. });
  20. </script>
  21. <form id="form1">
  22. <div style="padding-top: 20px; margin-right: 20px;">
  23. <table class="form">
  24. <tr>
  25. <th class="formTitle">编号</th>
  26. <td class="formValue">
  27. <input id="F_ItemCode" name="F_ItemCode" type="text" class="form-control" />
  28. </td>
  29. </tr>
  30. <tr>
  31. <th class="formTitle">名称</th>
  32. <td class="formValue">
  33. <input id="F_ItemName" name="F_ItemName" type="text" class="form-control" />
  34. </td>
  35. </tr>
  36. <tr>
  37. <th class="formTitle">排序</th>
  38. <td class="formValue">
  39. <input id="F_SortCode" name="F_SortCode" type="text" class="form-control" />
  40. </td>
  41. </tr>
  42. <tr>
  43. <th class="formTitle">字段1</th>
  44. <td class="formValue">
  45. <input id="F_Define1" name="F_Define1" type="text" class="form-control" />
  46. </td>
  47. </tr>
  48. <tr>
  49. <th class="formTitle">字段2</th>
  50. <td class="formValue">
  51. <input id="F_Define2" name="F_Define2" type="text" class="form-control" />
  52. </td>
  53. </tr>
  54. <tr>
  55. <th class="formTitle">字段3</th>
  56. <td class="formValue">
  57. <input id="F_Define3" name="F_Define3" type="text" class="form-control" />
  58. </td>
  59. </tr>
  60. <tr>
  61. <th class="formTitle">字段4</th>
  62. <td class="formValue">
  63. <input id="F_Define4" name="F_Define4" type="text" class="form-control" />
  64. </td>
  65. </tr>
  66. <tr>
  67. <th class="formTitle" style="height: 35px;">选项</th>
  68. <td class="formValue" style="padding-top: 1px;">
  69. <div class="ckbox">
  70. <input id="F_IsDefault" name="F_IsDefault" type="checkbox"><label for="F_IsDefault">默认</label>
  71. </div>
  72. <div class="ckbox">
  73. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  74. </div>
  75. </td>
  76. </tr>
  77. <tr>
  78. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  79. </th>
  80. <td class="formValue">
  81. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  82. </td>
  83. </tr>
  84. <tr>
  85. <th class="formTitle">创建人员</th>
  86. <td class="formValue">
  87. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  88. </td>
  89. </tr>
  90. <tr>
  91. <th class="formTitle">创建时间</th>
  92. <td class="formValue">
  93. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  94. </td>
  95. </tr>
  96. <tr>
  97. <th class="formTitle">修改人员</th>
  98. <td class="formValue">
  99. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  100. </td>
  101. </tr>
  102. <tr>
  103. <th class="formTitle">修改时间</th>
  104. <td class="formValue">
  105. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  106. </td>
  107. </tr>
  108. </table>
  109. </div>
  110. </form>