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

145 lines
6.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. $.ajax({
  10. url: "/SystemManage/Organize/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,textarea').attr('readonly', 'readonly');
  17. $("#form1").find('div.ckbox label').attr('for', '');
  18. }
  19. });
  20. });
  21. function initControl() {
  22. $("#F_CategoryId").select2({ minimumResultsForSearch: -1 })
  23. $("#F_ParentId").bindSelect({
  24. url: "/SystemManage/Organize/GetTreeSelectJson",
  25. });
  26. }
  27. </script>
  28. <form id="form1">
  29. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  30. <ul class="nav nav-tabs">
  31. <li class="active"><a href="#">基本信息</a></li>
  32. @*<li><a href="#">扩展信息</a></li>*@
  33. </ul>
  34. <div style="padding-top: 20px; margin-right: 30px;">
  35. <table class="form">
  36. <tr>
  37. <th class="formTitle">上级</th>
  38. <td class="formValue">
  39. <select id="F_ParentId" name="F_ParentId" class="form-control">
  40. <option value="0">父节点</option>
  41. </select>
  42. </td>
  43. <th class="formTitle">类型</th>
  44. <td class="formValue">
  45. <select id="F_CategoryId" name="F_Target" class="form-control">
  46. <option value="">==请选择==</option>
  47. <option value="Group">集团</option>
  48. <option value="Company">公司</option>
  49. <option value="Department">部门</option>
  50. <option value="WorkGroup">小组</option>
  51. </select>
  52. </td>
  53. </tr>
  54. <tr>
  55. <th class="formTitle">名称</th>
  56. <td class="formValue">
  57. <input id="F_FullName" name="F_FullName" type="text" class="form-control" />
  58. </td>
  59. <th class="formTitle">编号</th>
  60. <td class="formValue">
  61. <input id="F_EnCode" name="F_EnCode" type="text" class="form-control" />
  62. </td>
  63. </tr>
  64. <tr>
  65. <th class="formTitle" rowspan="3">负责人</th>
  66. <td class="formValue" rowspan="3">
  67. <textarea id="F_ManagerId" name="F_ManagerId" class="form-control" style="width: 100%; height: 120px; padding: 0px 0px; "></textarea>
  68. </td>
  69. <th class="formTitle">手机</th>
  70. <td class="formValue">
  71. <input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control" />
  72. </td>
  73. </tr>
  74. <tr>
  75. <th class="formTitle">微信</th>
  76. <td class="formValue">
  77. <input id="F_WeChat" name="F_ManagerId" type="text" class="form-control" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <th class="formTitle">电话</th>
  82. <td class="formValue">
  83. <input id="F_TelePhone" name="F_TelePhone" type="text" class="form-control" />
  84. </td>
  85. </tr>
  86. <tr>
  87. <th class="formTitle">邮箱</th>
  88. <td class="formValue">
  89. <input id="F_Email" name="F_MobilePhone" type="text" class="form-control" />
  90. </td>
  91. <th class="formTitle">传真</th>
  92. <td class="formValue">
  93. <input id="F_Fax" name="F_MobilePhone" type="text" class="form-control" />
  94. </td>
  95. </tr>
  96. <tr>
  97. <th class="formTitle">地址</th>
  98. <td class="formValue" colspan="3">
  99. <input id="F_Address" name="F_Address" type="text" class="form-control" />
  100. </td>
  101. </tr>
  102. <tr>
  103. <th class="formTitle" style="height: 35px;">选项</th>
  104. <td class="formValue" colspan="3" style="padding-top: 1px;">
  105. <div class="ckbox">
  106. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  107. </div>
  108. </td>
  109. </tr>
  110. <tr>
  111. <th class="formTitle" valign="top" style="padding-top: 5px;">
  112. 备注
  113. </th>
  114. <td class="formValue" colspan="3">
  115. <textarea id="F_Description" name="F_Descriptions" class="form-control" style="height: 60px;"></textarea>
  116. </td>
  117. </tr>
  118. <tr>
  119. <th class="formTitle">创建人员</th>
  120. <td class="formValue">
  121. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  122. </td>
  123. <th class="formTitle">创建时间</th>
  124. <td class="formValue">
  125. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  126. </td>
  127. </tr>
  128. <tr>
  129. <th class="formTitle">修改人员</th>
  130. <td class="formValue">
  131. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  132. </td>
  133. <th class="formTitle">修改时间</th>
  134. <td class="formValue">
  135. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  136. </td>
  137. </tr>
  138. </table>
  139. </div>
  140. </div>
  141. </form>