Detail.cshtml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. @{;
  2. ViewBag.Title = "明细页面";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = request('keyValue');
  7. $(function () {
  8. initControl();
  9. });
  10. //初始化控件
  11. function initControl() {
  12. //商机类别
  13. $("#ChanceTypeId").ComboBox({
  14. url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
  15. param: { EnCode: "Client_ChanceSort" },
  16. id: "ItemValue",
  17. text: "ItemName",
  18. description: "==请选择==",
  19. height: "200px"
  20. });
  21. //商机来源
  22. $("#SourceId").ComboBox({
  23. url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
  24. param: { EnCode: "Client_ChanceSource" },
  25. id: "ItemValue",
  26. text: "ItemName",
  27. description: "==请选择==",
  28. height: "200px"
  29. });
  30. //商机阶段
  31. $("#StageId").ComboBox({
  32. url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
  33. param: { EnCode: "Client_ChancePhase" },
  34. id: "ItemValue",
  35. text: "ItemName",
  36. description: "==请选择==",
  37. height: "200px"
  38. });
  39. //跟进人员
  40. $("#TraceUserId").ComboBoxTree({
  41. url: "../../BaseManage/User/GetTreeJson",
  42. description: "==请选择==",
  43. height: "320px",
  44. allowSearch: true
  45. });
  46. //公司行业
  47. $("#CompanyNatureId").ComboBox({
  48. url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
  49. param: { EnCode: "Client_Trade" },
  50. id: "ItemValue",
  51. text: "ItemName",
  52. description: "==请选择==",
  53. height: "200px"
  54. });
  55. //所在省份
  56. $("#Province").ComboBox({
  57. url: "../../SystemManage/Area/GetAreaListJson",
  58. param: { parentId: "0" },
  59. id: "AreaCode",
  60. text: "AreaName",
  61. description: "==选择省==",
  62. height: "170px"
  63. }).bind("change", function () {
  64. var value = $(this).attr('data-value');
  65. $("#City").ComboBox({
  66. url: "../../SystemManage/Area/GetAreaListJson",
  67. param: { parentId: value },
  68. id: "AreaCode",
  69. text: "AreaName",
  70. description: "==选择市==",
  71. height: "170px"
  72. });
  73. });
  74. //所在城市
  75. $("#City").ComboBox({
  76. description: "==选择市==",
  77. height: "170px"
  78. });
  79. //获取表单
  80. if (!!keyValue) {
  81. $.SetForm({
  82. url: "../../CustomerManage/Chance/GetFormJson",
  83. param: { keyValue: keyValue },
  84. success: function (data) {
  85. $("#form1").SetWebControls(data);
  86. $("#Province").trigger("change"); $("#City").ComboBoxSetValue(data.City);
  87. $("#form1").find('.form-control,.ui-select,input').attr('readonly', 'readonly');
  88. }
  89. })
  90. }
  91. }
  92. </script>
  93. <div style="margin-top: 20px;margin-bottom: 20px; margin-right: 20px;">
  94. <table class="form">
  95. <tr>
  96. <td class="formTitle">商机编号</td>
  97. <td class="formValue">
  98. <input id="EnCode" type="text" class="form-control" value="@ViewBag.EnCode" isvalid="yes" checkexpession="NotNull" />
  99. </td>
  100. <td class="formTitle">商机名称</td>
  101. <td class="formValue">
  102. <input id="FullName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="formTitle">预计金额</td>
  107. <td class="formValue">
  108. <input id="Amount" type="text" class="form-control" value="0.00" isvalid="yes" checkexpession="Double" />
  109. </td>
  110. <td class="formTitle">预计利润</td>
  111. <td class="formValue">
  112. <input id="Profit" type="text" class="form-control" value="0.00" isvalid="yes" checkexpession="Double" />
  113. </td>
  114. </tr>
  115. <tr>
  116. <td class="formTitle">预计成交</td>
  117. <td class="formValue">
  118. <input id="DealDate" type="text" class="form-control input-wdatepicker" onfocus="WdatePicker()" />
  119. </td>
  120. <td class="formTitle">销售费用</td>
  121. <td class="formValue">
  122. <input id="SaleCost" type="text" class="form-control" isvalid="yes" checkexpession="DoubleOrNull" />
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="formTitle">商机类别</td>
  127. <td class="formValue">
  128. <div id="ChanceTypeId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
  129. </td>
  130. <td class="formTitle">商机来源</td>
  131. <td class="formValue">
  132. <div id="SourceId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="formTitle">商机阶段</td>
  137. <td class="formValue">
  138. <div id="StageId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
  139. </td>
  140. <td class="formTitle">成功率%</td>
  141. <td class="formValue">
  142. <input id="SuccessRate" type="text" class="form-control" isvalid="yes" checkexpession="Double" />
  143. </td>
  144. </tr>
  145. <tr>
  146. <td class="formTitle">公司名称</td>
  147. <td class="formValue">
  148. <input id="CompanyName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
  149. </td>
  150. <td class="formTitle">跟进人员</td>
  151. <td class="formValue">
  152. <div id="TraceUserId" type="selectTree" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td class="formTitle">公司行业</td>
  157. <td class="formValue">
  158. <div id="CompanyNatureId" type="select" class="ui-select"></div>
  159. </td>
  160. <td class="formTitle">公司网站</td>
  161. <td class="formValue">
  162. <input id="CompanySite" type="text" class="form-control" />
  163. </td>
  164. </tr>
  165. <tr>
  166. <td class="formTitle">公司情况</td>
  167. <td class="formValue" colspan="3">
  168. <input id="CompanyDesc" type="text" class="form-control" />
  169. </td>
  170. </tr>
  171. <tr>
  172. <td class="formTitle">公司地址</td>
  173. <td class="formValue" colspan="3">
  174. <input id="CompanyAddress" type="text" class="form-control" />
  175. </td>
  176. </tr>
  177. <tr>
  178. <td class="formTitle">所在省份</td>
  179. <td class="formValue">
  180. <div id="Province" type="select" class="ui-select"></div>
  181. </td>
  182. <td class="formTitle">所在城市</td>
  183. <td class="formValue">
  184. <div id="City" type="select" class="ui-select"></div>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td class="formTitle">联系人</td>
  189. <td class="formValue">
  190. <input id="Contacts" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
  191. </td>
  192. <td class="formTitle">手机</td>
  193. <td class="formValue">
  194. <input id="Mobile" type="text" class="form-control" />
  195. </td>
  196. </tr>
  197. <tr>
  198. <td class="formTitle">电话</td>
  199. <td class="formValue">
  200. <input id="Tel" type="text" class="form-control" />
  201. </td>
  202. <td class="formTitle">传真</td>
  203. <td class="formValue">
  204. <input id="Fax" type="text" class="form-control" />
  205. </td>
  206. </tr>
  207. <tr>
  208. <td class="formTitle">QQ</td>
  209. <td class="formValue">
  210. <input id="QQ" type="text" class="form-control" />
  211. </td>
  212. <td class="formTitle">Email</td>
  213. <td class="formValue">
  214. <input id="Email" type="text" class="form-control" />
  215. </td>
  216. </tr>
  217. <tr>
  218. <td class="formTitle">微信</td>
  219. <td class="formValue">
  220. <input id="Wechat" type="text" class="form-control" />
  221. </td>
  222. <td class="formTitle">爱好</td>
  223. <td class="formValue">
  224. <input id="Hobby" type="text" class="form-control" />
  225. </td>
  226. </tr>
  227. <tr>
  228. <td class="formTitle">备注</td>
  229. <td class="formValue" colspan="3">
  230. <input id="Description" type="text" class="form-control" />
  231. </td>
  232. </tr>
  233. <tr>
  234. <td class="formTitle">创建用户</td>
  235. <td class="formValue">
  236. <input id="CreateUserName" type="text" class="form-control" />
  237. </td>
  238. <td class="formTitle">创建时间</td>
  239. <td class="formValue">
  240. <input id="CreateDate" type="text" class="form-control" />
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class="formTitle">修改用户</td>
  245. <td class="formValue">
  246. <input id="ModifyUserName" type="text" class="form-control" />
  247. </td>
  248. <td class="formTitle">修改时间</td>
  249. <td class="formValue">
  250. <input id="ModifyDate" type="text" class="form-control" />
  251. </td>
  252. </tr>
  253. </table>
  254. </div>