ede27273cc9d124eae40dc3fa9af6a934bfd3c35.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>客户管理</title>
  7. <!--框架必需start-->
  8. <%@include file="../../../include1.jsp" %>
  9. <!--框架必需end-->
  10. <!--引用资源文件,JS CSS-->
  11. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  18. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  19. <!--基本选项卡start-->
  20. <!-- 按钮权限 -->
  21. <script type="text/javascript" src="../../../../scripts/freamwork/com/sinosoft/common/common.js"></script>
  22. <!--基本选项卡start-->
  23. <!--基本选项卡end-->
  24. <script type="text/javascript" src="../../../../scripts/business/am/customer/customer-focus1.js"></script>
  25. <style type="text/css">
  26. a {
  27. behavior: url(/qui/libs/js/method/focus.htc)
  28. }
  29. body{
  30. margin-top: 10px;
  31. }
  32. .leftnav{
  33. cursor: pointer;
  34. height:35px;
  35. line-height:35px;
  36. border-bottom: 1px #e3e2e2 solid;
  37. color:#404040;
  38. padding-left: 40px;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. white-space: nowrap;
  42. }
  43. .leftnav:HOVER{
  44. background: #e5ebec;
  45. }
  46. .leftnav.current{
  47. background-color:#e5ebec;
  48. }
  49. .accordition{
  50. border-right: none;
  51. }
  52. .title_msg {
  53. width: 100%;
  54. height:40px;
  55. line-height:40px;
  56. font-family: "微软雅黑";
  57. text-align:center;
  58. font-size:24px;
  59. font-weight: bold;
  60. color:#3e62a0;
  61. border-bottom: 1px solid #cdcaca;
  62. }
  63. ._grid_id{
  64. background: #fff;
  65. overflow:auto;
  66. }
  67. .selDiv{
  68. margin: 15px 0 ;
  69. }
  70. ._buttons{
  71. height:40px;
  72. width: 100%;
  73. }
  74. ._buttons input{
  75. float: right;
  76. margin-right: 20px;
  77. }
  78. .groupValue{
  79. font-size: 14px;
  80. border-bottom: 1px solid #cdcaca;
  81. cursor: pointer;
  82. font-weight: bold;
  83. color:#3e62a0;
  84. }
  85. .l-grid-row-cell-inner{
  86. font-size: 12px;
  87. }
  88. </style>
  89. </head>
  90. <body>
  91. <div id="layout1">
  92. <!-- 左边的树 -->
  93. <div position="left" id="hztitle" style="margin-right:10px;">
  94. <div class="layout_content">
  95. <ul id="treeDept-gzfw" class="ztree"></ul>
  96. </div>
  97. </div>
  98. <div class="plan_detail" id="plan_detail" position="center">
  99. <!-- <div class="title_msg" id="title"></div> -->
  100. <div class="box2" style="margin: 10px 0">
  101. <fieldset>
  102. <table width="100%" >
  103. <tr>
  104. <td width="93%">
  105. <input type="text" name="NAME" id="NAME" width="300px" watermark="请输入重点关注用户名称" onkeydown="if(event.keyCode==13){searchHandler2();}" maxlength="38"/>&nbsp;&nbsp;
  106. <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
  107. <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  108. <input style='display:none' />
  109. </td>
  110. <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td>
  111. </tr>
  112. </table>
  113. <div id="moreDiv" style="display: none;">
  114. <div class="selDiv">
  115. <table style="font-size: 14px">
  116. <tr>
  117. <td>客户类别:</td>
  118. <td>
  119. <input type="checkbox" id="KIND_0" name="KIND" value="0000" /><label for="KIND_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  120. <input type="checkbox" id="KIND_1" name="KIND" value="10" /><label for="KIND_1" class="hand">公线专变客户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  121. <input type="checkbox" id="KIND_2" name="KIND" value="11" /><label for="KIND_2" class="hand">专线专变客户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  122. <input type="checkbox" id="KIND_3" name="KIND" value="20" /><label for="KIND_3" class="hand">公变客户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  123. <input type="checkbox" id="KIND_4" name="KIND" value="30" /><label for="KIND_4" class="hand">趸售关口户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  124. <input type="checkbox" id="KIND_5" name="KIND" value="40" /><label for="KIND_5" class="hand">地方电厂户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  125. <input type="checkbox" id="KIND_6" name="KIND" value="50" /><label for="KIND_6" class="hand">线路考核表户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  126. <input type="checkbox" id="KIND_7" name="KIND" value="55" /><label for="KIND_7" class="hand">线路线损台区考核表虚户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  127. <input type="checkbox" id="KIND_8" name="KIND" value="60" /><label for="KIND_8" class="hand">台区考核表户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  128. <input type="checkbox" id="KIND_9" name="KIND" value="70" /><label for="KIND_9" class="hand">省网关口表户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  129. <input type="checkbox" id="KIND_10" name="KIND" value="80" /><label for="KIND_11" class="hand">变电站考核表户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  130. <input type="checkbox" id="KIND_11" name="KIND" value="90" /><label for="KIND_11" class="hand">站用变考核表户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  131. <input type="checkbox" id="KIND_12" name="KIND" value="91" /><label for="KIND_12" class="hand">窃电黑户</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>电压等级:</td>
  136. <td>
  137. <input type="checkbox" id="VOLTAGE_CODE_0" name="VOLTAGE_CODE" value="0000" /><label for="VOLTAGE_CODE_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  138. <input type="checkbox" id="VOLTAGE_CODE_1" name="VOLTAGE_CODE" value="01" /><label for="VOLTAGE_CODE_1" class="hand">交流6V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  139. <input type="checkbox" id="VOLTAGE_CODE_2" name="VOLTAGE_CODE" value="02" /><label for="VOLTAGE_CODE_2" class="hand">交流12V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  140. <input type="checkbox" id="VOLTAGE_CODE_3" name="VOLTAGE_CODE" value="03" /><label for="VOLTAGE_CODE_3" class="hand">交流24V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  141. <input type="checkbox" id="VOLTAGE_CODE_4" name="VOLTAGE_CODE" value="04" /><label for="VOLTAGE_CODE_4" class="hand">交流36V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  142. <input type="checkbox" id="VOLTAGE_CODE_5" name="VOLTAGE_CODE" value="05" /><label for="VOLTAGE_CODE_5" class="hand">交流48V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  143. <input type="checkbox" id="VOLTAGE_CODE_6" name="VOLTAGE_CODE" value="06" /><label for="VOLTAGE_CODE_6" class="hand">交流110V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  144. <input type="checkbox" id="VOLTAGE_CODE_7" name="VOLTAGE_CODE" value="07" /><label for="VOLTAGE_CODE_7" class="hand">交流220V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  145. <input type="checkbox" id="VOLTAGE_CODE_8" name="VOLTAGE_CODE" value="08" /><label for="VOLTAGE_CODE_8" class="hand">交流380V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  146. <input type="checkbox" id="VOLTAGE_CODE_9" name="VOLTAGE_CODE" value="09" /><label for="VOLTAGE_CODE_9" class="hand">交流660V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  147. <input type="checkbox" id="VOLTAGE_CODE_10" name="VOLTAGE_CODE" value="10" /><label for="VOLTAGE_CODE_10" class="hand">交流1000V(含1140V)</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  148. <input type="checkbox" id="VOLTAGE_CODE_11" name="VOLTAGE_CODE" value="11" /><label for="VOLTAGE_CODE_11" class="hand">交流600V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  149. <input type="checkbox" id="VOLTAGE_CODE_12" name="VOLTAGE_CODE" value="12" /><label for="VOLTAGE_CODE_12" class="hand">交流750V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  150. <input type="checkbox" id="VOLTAGE_CODE_13" name="VOLTAGE_CODE" value="13" /><label for="VOLTAGE_CODE_13" class="hand">交流1500V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  151. <input type="checkbox" id="VOLTAGE_CODE_14" name="VOLTAGE_CODE" value="14" /><label for="VOLTAGE_CODE_14" class="hand">交流3000V</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>供电电源标准:</td>
  156. <td>
  157. <input type="checkbox" id="IS_MEET_OF_SUPPLY_0" name="IS_MEET_OF_SUPPLY" value="0000" /><label for="IS_MEET_OF_SUPPLY_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  158. <input type="checkbox" id="IS_MEET_OF_SUPPLY_1" name="IS_MEET_OF_SUPPLY" value="0" /><label for="IS_MEET_OF_SUPPLY_1" class="hand">否</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  159. <input type="checkbox" id="IS_MEET_OF_SUPPLY_2" name="IS_MEET_OF_SUPPLY" value="1" /><label for="IS_MEET_OF_SUPPLY_2" class="hand">是</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>自备应急电源标准:</td>
  164. <td>
  165. <input type="checkbox" id="IS_MEET_OF_SELF_PROVIDE_0" name="IS_MEET_OF_SELF_PROVIDE" value="0000" /><label for="IS_MEET_OF_SELF_PROVIDE_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  166. <input type="checkbox" id="IS_MEET_OF_SELF_PROVIDE_1" name="IS_MEET_OF_SELF_PROVIDE" value="0" /><label for="IS_MEET_OF_SELF_PROVIDE_1" class="hand">否</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  167. <input type="checkbox" id="IS_MEET_OF_SELF_PROVIDE_2" name="IS_MEET_OF_SELF_PROVIDE" value="1" /><label for="IS_MEET_OF_SELF_PROVIDE_2" class="hand">是</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  168. </td>
  169. </tr>
  170. </table>
  171. </div>
  172. <div class="_buttons">
  173. <input type="button" value="清除" onclick="resetSearch()"/>
  174. <input type="button" value="查询" onclick="searchHandler2()"/>
  175. </div>
  176. </div>
  177. </fieldset>
  178. </div>
  179. <div class="padding_right5">
  180. <div id="maingrid"></div>
  181. </div>
  182. </div>
  183. </div>
  184. <script type="text/javascript">
  185. //登陆人的机构id
  186. var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  187. var loadCorp = "";
  188. var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp,"deptLevel",getDeptLevel2(userDeptId_inner)];
  189. var setting;
  190. function getDeptLevel2(dpids){
  191. var dept_level = "";
  192. $.ajax({
  193. url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
  194. type : 'post',
  195. timeout : 60000,
  196. data : {id:dpids},
  197. dataType : 'text',
  198. async: false,
  199. success : function(data){
  200. dept_level = data;
  201. }
  202. });
  203. return dept_level;
  204. }
  205. /***
  206. * 页面初始化
  207. */
  208. $(function(){
  209. /* 初始化页面布局 */
  210. var layout = $("#layout1").layout({
  211. leftWidth : 250,
  212. space : 10,
  213. onEndResize : function() {
  214. g.resetWidth();
  215. }
  216. });
  217. /* var layout = $("#layout1").layout({
  218. leftWidth : 250,
  219. space : 10
  220. });
  221. function customHeightSet(contentHeight) {
  222. $(".layout_content").height(contentHeight - 30);
  223. }
  224. $("#layout1").layout({
  225. onEndResize : function() {
  226. var wi = $(".l-layout-content").width();
  227. wi = wi * 0.85;
  228. $(".accordition").css("width", (wi + 45) + "px");
  229. $(".leftnav").css("width", (wi + 5) + 'px');
  230. $(".parentNavDiv").css("width", wi + "px");
  231. }
  232. });
  233. $("#layout1").find(".l-layout-header-toggle").on("click",function(){
  234. $("#layout1").find(".l-layout-collapse-left-toggle").attr("tempW",$("#maingrid").find(".l-grid2").width());
  235. $("#maingrid").find(".l-grid2").css({width:"100%"});
  236. });
  237. $("#layout1").find(".l-layout-collapse-left-toggle").on("click",function(){
  238. $("#maingrid").find(".l-grid2").css({width:$(this).attr("tempW")});
  239. });
  240. function customHeightSet(contentHeight) {
  241. $(".cusBoxContent").height(contentHeight - 20);
  242. } */
  243. setting = {
  244. view : {
  245. selectedMulti : false
  246. },
  247. async : {
  248. enable : true,
  249. dataType : 'JSON',
  250. dataName : 'treeNodes',
  251. aysnc : false,
  252. url : getAsyncUrl,
  253. autoParam : [ "id", "name", "orgLevel" ],
  254. otherParam : setloadtype_in
  255. },
  256. callback: {
  257. onClick:zTreeSelect,
  258. onAsyncSuccess:checkAndSetHeight,//changeFormat.js
  259. onExpand:checkAndSetHeight
  260. }
  261. };
  262. $.fn.zTree.init($("#treeDept-gzfw"), setting);
  263. });
  264. var isAdd = false;
  265. function getAsyncUrl(treeId, treeNode) {
  266. return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
  267. : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo4";
  268. };
  269. var zTree,node,tab;
  270. var zTreeCompId = "";
  271. var zTreeINS_UNITS = "";
  272. //点击树节点page/system/department/UserInfoEdit.jsp
  273. function zTreeSelect(event,treeId,treeNode) {
  274. //init(treeNode.id);
  275. zTreeCompId = treeNode.id;
  276. zTreeINS_UNITS=treeNode.orgLevel;
  277. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  278. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  279. var condition = "";
  280. if(zTreeCompId==dpids){//点击本单位时
  281. condition = " DEPT_ID ="+dpids+" and ";
  282. }else{
  283. condition = " DEPT_ID ="+zTreeCompId+" and ";
  284. }
  285. g.setOptions({//重置加载列表的参数
  286. params : {
  287. "condition" : condition
  288. }
  289. });
  290. g.rend();
  291. }
  292. //处理高度自适应,每次浏览器尺寸变化时触发
  293. function customHeightSet(contentHeight){
  294. $(".cusBoxContent").height(contentHeight-50)
  295. $("#page").height(contentHeight-50);
  296. }
  297. </script>
  298. </body>
  299. </html>