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

88 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. $.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" style="height: 35px;">选项</th>
  44. <td class="formValue" style="padding-top: 1px;">
  45. <div class="ckbox">
  46. <input id="F_IsDefault" name="F_IsDefault" type="checkbox"><label for="F_IsDefault">默认</label>
  47. </div>
  48. <div class="ckbox">
  49. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  50. </div>
  51. </td>
  52. </tr>
  53. <tr>
  54. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  55. </th>
  56. <td class="formValue">
  57. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  58. </td>
  59. </tr>
  60. <tr>
  61. <th class="formTitle">创建人员</th>
  62. <td class="formValue">
  63. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  64. </td>
  65. </tr>
  66. <tr>
  67. <th class="formTitle">创建时间</th>
  68. <td class="formValue">
  69. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  70. </td>
  71. </tr>
  72. <tr>
  73. <th class="formTitle">修改人员</th>
  74. <td class="formValue">
  75. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  76. </td>
  77. </tr>
  78. <tr>
  79. <th class="formTitle">修改时间</th>
  80. <td class="formValue">
  81. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  82. </td>
  83. </tr>
  84. </table>
  85. </div>
  86. </form>