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

140 lines
6.2 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').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. <tr>
  66. <th class="formTitle">负责人</th>
  67. <td class="formValue">
  68. <input id="F_ManagerId" name="F_ManagerId" type="text" class="form-control" />
  69. </td>
  70. <th class="formTitle">手机</th>
  71. <td class="formValue">
  72. <input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control" />
  73. </td>
  74. </tr>
  75. <tr>
  76. <th class="formTitle">微信</th>
  77. <td class="formValue">
  78. <input id="F_WeChat" name="F_ManagerId" type="text" class="form-control" />
  79. </td>
  80. <th class="formTitle">电话</th>
  81. <td class="formValue">
  82. <input id="F_TelePhone" name="F_TelePhone" type="text" class="form-control" />
  83. </td>
  84. </tr>
  85. <tr>
  86. <th class="formTitle">邮箱</th>
  87. <td class="formValue">
  88. <input id="F_Email" name="F_MobilePhone" type="text" class="form-control" />
  89. </td>
  90. <th class="formTitle">传真</th>
  91. <td class="formValue">
  92. <input id="F_Fax" name="F_MobilePhone" type="text" class="form-control" />
  93. </td>
  94. </tr>
  95. <tr>
  96. <th class="formTitle">地址</th>
  97. <td class="formValue" colspan="3">
  98. <input id="F_Address" name="F_Address" type="text" class="form-control" />
  99. </td>
  100. </tr>
  101. <tr>
  102. <th class="formTitle" style="height: 35px;">选项</th>
  103. <td class="formValue" colspan="3" style="padding-top: 1px;">
  104. <div class="ckbox">
  105. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  106. </div>
  107. </td>
  108. </tr>
  109. <tr>
  110. <th class="formTitle" valign="top" style="padding-top: 5px;">备注
  111. </th>
  112. <td class="formValue" colspan="3">
  113. <textarea id="F_Description" name="F_Descriptions" class="form-control" style="height: 60px;"></textarea>
  114. </td>
  115. </tr>
  116. <tr>
  117. <th class="formTitle">创建人员</th>
  118. <td class="formValue">
  119. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  120. </td>
  121. <th class="formTitle">创建时间</th>
  122. <td class="formValue">
  123. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  124. </td>
  125. </tr>
  126. <tr>
  127. <th class="formTitle">修改人员</th>
  128. <td class="formValue">
  129. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  130. </td>
  131. <th class="formTitle">修改时间</th>
  132. <td class="formValue">
  133. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. </div>
  139. </form>