123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>客户管理</title>
- <!--框架必需start-->
- <%@include file="../../../include1.jsp" %>
- <!--框架必需end-->
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
- <!--基本选项卡start-->
- <!-- 按钮权限 -->
- <script type="text/javascript" src="../../../../scripts/freamwork/com/sinosoft/common/common.js"></script>
- <!--基本选项卡start-->
- <!--基本选项卡end-->
- <script type="text/javascript" src="../../../../scripts/business/am/customer/customer-focus1.js"></script>
- <style type="text/css">
- a {
- behavior: url(/qui/libs/js/method/focus.htc)
- }
- body{
- margin-top: 10px;
- }
- .leftnav{
- cursor: pointer;
- height:35px;
- line-height:35px;
- border-bottom: 1px #e3e2e2 solid;
- color:#404040;
- padding-left: 40px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .leftnav:HOVER{
- background: #e5ebec;
- }
- .leftnav.current{
- background-color:#e5ebec;
- }
-
- .accordition{
- border-right: none;
- }
- .title_msg {
- width: 100%;
- height:40px;
- line-height:40px;
- font-family: "微软雅黑";
- text-align:center;
- font-size:24px;
- font-weight: bold;
- color:#3e62a0;
- border-bottom: 1px solid #cdcaca;
-
- }
- ._grid_id{
- background: #fff;
- overflow:auto;
- }
- .selDiv{
- margin: 15px 0 ;
-
- }
-
- ._buttons{
- height:40px;
- width: 100%;
- }
- ._buttons input{
- float: right;
- margin-right: 20px;
- }
- .groupValue{
- font-size: 14px;
- border-bottom: 1px solid #cdcaca;
- cursor: pointer;
- font-weight: bold;
- color:#3e62a0;
-
- }
-
- .l-grid-row-cell-inner{
- font-size: 12px;
- }
- </style>
- </head>
- <body>
-
- <div id="layout1">
- <!-- 左边的树 -->
- <div position="left" id="hztitle" style="margin-right:10px;">
- <div class="layout_content">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- </div>
-
- <div class="plan_detail" id="plan_detail" position="center">
- <!-- <div class="title_msg" id="title"></div> -->
- <div class="box2" style="margin: 10px 0">
- <fieldset>
- <table width="100%" >
- <tr>
- <td width="93%">
- <input type="text" name="NAME" id="NAME" width="300px" watermark="请输入重点关注用户名称" onkeydown="if(event.keyCode==13){searchHandler2();}" maxlength="38"/>
- <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
- <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
- <input style='display:none' />
- </td>
- <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td>
- </tr>
- </table>
-
- <div id="moreDiv" style="display: none;">
- <div class="selDiv">
- <table style="font-size: 14px">
- <tr>
- <td>客户类别:</td>
- <td>
- <input type="checkbox" id="KIND_0" name="KIND" value="0000" /><label for="KIND_0" class="hand">全部</label>
- <input type="checkbox" id="KIND_1" name="KIND" value="10" /><label for="KIND_1" class="hand">公线专变客户</label>
- <input type="checkbox" id="KIND_2" name="KIND" value="11" /><label for="KIND_2" class="hand">专线专变客户</label>
- <input type="checkbox" id="KIND_3" name="KIND" value="20" /><label for="KIND_3" class="hand">公变客户</label>
- <input type="checkbox" id="KIND_4" name="KIND" value="30" /><label for="KIND_4" class="hand">趸售关口户</label>
- <input type="checkbox" id="KIND_5" name="KIND" value="40" /><label for="KIND_5" class="hand">地方电厂户</label>
- <input type="checkbox" id="KIND_6" name="KIND" value="50" /><label for="KIND_6" class="hand">线路考核表户</label>
- <input type="checkbox" id="KIND_7" name="KIND" value="55" /><label for="KIND_7" class="hand">线路线损台区考核表虚户</label>
- <input type="checkbox" id="KIND_8" name="KIND" value="60" /><label for="KIND_8" class="hand">台区考核表户</label>
- <input type="checkbox" id="KIND_9" name="KIND" value="70" /><label for="KIND_9" class="hand">省网关口表户</label>
- <input type="checkbox" id="KIND_10" name="KIND" value="80" /><label for="KIND_11" class="hand">变电站考核表户</label>
- <input type="checkbox" id="KIND_11" name="KIND" value="90" /><label for="KIND_11" class="hand">站用变考核表户</label>
- <input type="checkbox" id="KIND_12" name="KIND" value="91" /><label for="KIND_12" class="hand">窃电黑户</label>
- </td>
- </tr>
-
- <tr>
- <td>电压等级:</td>
- <td>
- <input type="checkbox" id="VOLTAGE_CODE_0" name="VOLTAGE_CODE" value="0000" /><label for="VOLTAGE_CODE_0" class="hand">全部</label>
- <input type="checkbox" id="VOLTAGE_CODE_1" name="VOLTAGE_CODE" value="01" /><label for="VOLTAGE_CODE_1" class="hand">交流6V</label>
- <input type="checkbox" id="VOLTAGE_CODE_2" name="VOLTAGE_CODE" value="02" /><label for="VOLTAGE_CODE_2" class="hand">交流12V</label>
- <input type="checkbox" id="VOLTAGE_CODE_3" name="VOLTAGE_CODE" value="03" /><label for="VOLTAGE_CODE_3" class="hand">交流24V</label>
- <input type="checkbox" id="VOLTAGE_CODE_4" name="VOLTAGE_CODE" value="04" /><label for="VOLTAGE_CODE_4" class="hand">交流36V</label>
- <input type="checkbox" id="VOLTAGE_CODE_5" name="VOLTAGE_CODE" value="05" /><label for="VOLTAGE_CODE_5" class="hand">交流48V</label>
- <input type="checkbox" id="VOLTAGE_CODE_6" name="VOLTAGE_CODE" value="06" /><label for="VOLTAGE_CODE_6" class="hand">交流110V</label>
- <input type="checkbox" id="VOLTAGE_CODE_7" name="VOLTAGE_CODE" value="07" /><label for="VOLTAGE_CODE_7" class="hand">交流220V</label>
- <input type="checkbox" id="VOLTAGE_CODE_8" name="VOLTAGE_CODE" value="08" /><label for="VOLTAGE_CODE_8" class="hand">交流380V</label>
- <input type="checkbox" id="VOLTAGE_CODE_9" name="VOLTAGE_CODE" value="09" /><label for="VOLTAGE_CODE_9" class="hand">交流660V</label>
- <input type="checkbox" id="VOLTAGE_CODE_10" name="VOLTAGE_CODE" value="10" /><label for="VOLTAGE_CODE_10" class="hand">交流1000V(含1140V)</label>
- <input type="checkbox" id="VOLTAGE_CODE_11" name="VOLTAGE_CODE" value="11" /><label for="VOLTAGE_CODE_11" class="hand">交流600V</label>
- <input type="checkbox" id="VOLTAGE_CODE_12" name="VOLTAGE_CODE" value="12" /><label for="VOLTAGE_CODE_12" class="hand">交流750V</label>
- <input type="checkbox" id="VOLTAGE_CODE_13" name="VOLTAGE_CODE" value="13" /><label for="VOLTAGE_CODE_13" class="hand">交流1500V</label>
- <input type="checkbox" id="VOLTAGE_CODE_14" name="VOLTAGE_CODE" value="14" /><label for="VOLTAGE_CODE_14" class="hand">交流3000V</label>
- </td>
- </tr>
- <tr>
- <td>供电电源标准:</td>
- <td>
- <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>
- <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>
- <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>
- </td>
- </tr>
- <tr>
- <td>自备应急电源标准:</td>
- <td>
- <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>
- <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>
- <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>
- </td>
- </tr>
- </table>
- </div>
- <div class="_buttons">
- <input type="button" value="清除" onclick="resetSearch()"/>
- <input type="button" value="查询" onclick="searchHandler2()"/>
- </div>
- </div>
- </fieldset>
- </div>
-
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
-
- </div>
- </div>
-
- <script type="text/javascript">
- //登陆人的机构id
- var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var loadCorp = "";
- var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp,"deptLevel",getDeptLevel2(userDeptId_inner)];
- var setting;
- function getDeptLevel2(dpids){
- var dept_level = "";
- $.ajax({
- url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
- type : 'post',
- timeout : 60000,
- data : {id:dpids},
- dataType : 'text',
- async: false,
- success : function(data){
- dept_level = data;
- }
- });
- return dept_level;
- }
- /***
- * 页面初始化
- */
- $(function(){
- /* 初始化页面布局 */
- var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10,
- onEndResize : function() {
- g.resetWidth();
- }
-
- });
- /* var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10
- });
- function customHeightSet(contentHeight) {
- $(".layout_content").height(contentHeight - 30);
- }
- $("#layout1").layout({
- onEndResize : function() {
- var wi = $(".l-layout-content").width();
- wi = wi * 0.85;
- $(".accordition").css("width", (wi + 45) + "px");
- $(".leftnav").css("width", (wi + 5) + 'px');
- $(".parentNavDiv").css("width", wi + "px");
- }
- });
- $("#layout1").find(".l-layout-header-toggle").on("click",function(){
- $("#layout1").find(".l-layout-collapse-left-toggle").attr("tempW",$("#maingrid").find(".l-grid2").width());
- $("#maingrid").find(".l-grid2").css({width:"100%"});
-
- });
- $("#layout1").find(".l-layout-collapse-left-toggle").on("click",function(){
- $("#maingrid").find(".l-grid2").css({width:$(this).attr("tempW")});
- });
- function customHeightSet(contentHeight) {
- $(".cusBoxContent").height(contentHeight - 20);
- } */
- setting = {
- view : {
- selectedMulti : false
- },
- async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- aysnc : false,
- url : getAsyncUrl,
- autoParam : [ "id", "name", "orgLevel" ],
- otherParam : setloadtype_in
- },
- callback: {
- onClick:zTreeSelect,
- onAsyncSuccess:checkAndSetHeight,//changeFormat.js
- onExpand:checkAndSetHeight
- }
- };
- $.fn.zTree.init($("#treeDept-gzfw"), setting);
- });
- var isAdd = false;
- function getAsyncUrl(treeId, treeNode) {
- return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
- : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo4";
- };
- var zTree,node,tab;
- var zTreeCompId = "";
- var zTreeINS_UNITS = "";
- //点击树节点page/system/department/UserInfoEdit.jsp
- function zTreeSelect(event,treeId,treeNode) {
- //init(treeNode.id);
- zTreeCompId = treeNode.id;
- zTreeINS_UNITS=treeNode.orgLevel;
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
- var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var condition = "";
- if(zTreeCompId==dpids){//点击本单位时
- condition = " DEPT_ID ="+dpids+" and ";
- }else{
- condition = " DEPT_ID ="+zTreeCompId+" and ";
- }
- g.setOptions({//重置加载列表的参数
- params : {
- "condition" : condition
- }
- });
- g.rend();
- }
- //处理高度自适应,每次浏览器尺寸变化时触发
- function customHeightSet(contentHeight){
- $(".cusBoxContent").height(contentHeight-50)
- $("#page").height(contentHeight-50);
- }
- </script>
- </body>
- </html>
|