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

134 lines
5.8 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Details";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. var moduleId = $.request("moduleId");
  8. $(function () {
  9. initControl();
  10. $.ajax({
  11. url: "/SystemManage/ModuleButton/GetFormJson",
  12. data: { keyValue: keyValue },
  13. dataType: "json",
  14. async: false,
  15. success: function (data) {
  16. $("#form1").formSerialize(data);
  17. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  18. $("#form1").find('div.ckbox label').attr('for', '');
  19. }
  20. });
  21. });
  22. function initControl() {
  23. $("#F_Location").select2({ minimumResultsForSearch: -1 })
  24. $("#F_ParentId").bindSelect({
  25. url: "/SystemManage/ModuleButton/GetTreeSelectJson",
  26. param: { moduleId: moduleId },
  27. });
  28. }
  29. </script>
  30. <form id="form1">
  31. <div style="padding-top: 30px; margin-right: 30px;">
  32. <table class="form">
  33. <tr>
  34. <th class="formTitle">名称</th>
  35. <td class="formValue">
  36. <input id="F_FullName" name="F_FullName" type="text" class="form-control" />
  37. </td>
  38. <th class="formTitle">编号</th>
  39. <td class="formValue">
  40. <input id="F_EnCode" name="F_EnCode" type="text" class="form-control" />
  41. </td>
  42. </tr>
  43. <tr>
  44. <th class="formTitle">上级</th>
  45. <td class="formValue">
  46. <select id="F_ParentId" name="F_ParentId" class="form-control">
  47. <option value="0">父节点</option>
  48. </select>
  49. </td>
  50. <th class="formTitle">位置</th>
  51. <td class="formValue">
  52. <select id="F_Location" name="F_Location" class="form-control">
  53. <option value="">==请选择==</option>
  54. <option value="1">初始</option>
  55. <option value="2">选中</option>
  56. </select>
  57. </td>
  58. </tr>
  59. <tr>
  60. <th class="formTitle">事件</th>
  61. <td class="formValue">
  62. <input id="F_JsEvent" name="F_JsEvent" type="text" class="form-control" />
  63. </td>
  64. <th class="formTitle">连接</th>
  65. <td class="formValue">
  66. <input id="F_UrlAddress" name="F_UrlAddress" type="text" class="form-control" />
  67. </td>
  68. </tr>
  69. <tr>
  70. <th class="formTitle">图标</th>
  71. <td class="formValue">
  72. <div class="input-group">
  73. <input id="F_Icon" name="F_Icon" type="text" class="form-control">
  74. <span class="input-group-btn">
  75. <a class="btn btn-primary"><i class="fa fa-ellipsis-h"></i></a>
  76. </span>
  77. </div>
  78. </td>
  79. <th class="formTitle">排序</th>
  80. <td class="formValue">
  81. <input id="F_SortCode" name="F_SortCode" type="text" class="form-control" />
  82. </td>
  83. </tr>
  84. <tr>
  85. <th class="formTitle" style="height: 35px;">选项</th>
  86. <td class="formValue" colspan="3" style="padding-top: 1px;">
  87. <div class="ckbox">
  88. <input id="F_Split" name="F_Split" type="checkbox"><label for="F_Split">分开线</label>
  89. </div>
  90. <div class="ckbox">
  91. <input id="F_IsPublic" name="F_IsPublic" type="checkbox"><label for="F_IsPublic">公共</label>
  92. </div>
  93. <div class="ckbox">
  94. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  95. </div>
  96. <div class="ckbox">
  97. <input id="F_AllowEdit" name="F_AllowEdit" type="checkbox"><label for="F_AllowEdit">允许编辑</label>
  98. </div>
  99. <div class="ckbox">
  100. <input id="F_AllowDelete" name="F_AllowDelete" type="checkbox"><label for="F_AllowDelete">允许删除</label>
  101. </div>
  102. </td>
  103. </tr>
  104. <tr>
  105. <th class="formTitle" valign="top" style="padding-top: 5px;">描述
  106. </th>
  107. <td class="formValue" colspan="3">
  108. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 100px;"></textarea>
  109. </td>
  110. </tr>
  111. <tr>
  112. <th class="formTitle">创建人员</th>
  113. <td class="formValue">
  114. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  115. </td>
  116. <th class="formTitle">创建时间</th>
  117. <td class="formValue">
  118. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  119. </td>
  120. </tr>
  121. <tr>
  122. <th class="formTitle">修改人员</th>
  123. <td class="formValue">
  124. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  125. </td>
  126. <th class="formTitle">修改时间</th>
  127. <td class="formValue">
  128. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  129. </td>
  130. </tr>
  131. </table>
  132. </div>
  133. </form>