Commit f38c40f8 by xing_wang

同步master 代码

parents 7a8d7973 4b78fee2
......@@ -11,6 +11,34 @@
<spring.version>4.2.6.RELEASE</spring.version>
<mybatis.version>3.4.1</mybatis.version>
</properties>
<!-- 公司的maven仓库 -->
<repositories>
<repository>
<id>founder</id>
<url>http://47.92.108.28:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- 指定maven plugin仓库 -->
<pluginRepositories>
<!-- 公司的maven plugin仓库 -->
<pluginRepository>
<id>founder</id>
<url>http://47.92.108.28:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
......
package com.cc.HandlerInterceptor;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Created by changchao on 2020/3/11.
*/
public class SystemSessionInterceptor implements HandlerInterceptor {
private static final String LOGIN_URL = "/relogin.jsp";
@Override
public void postHandle(HttpServletRequest request,
HttpServletResponse response, Object handler,
ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request,
HttpServletResponse response, Object handler, Exception ex)
throws Exception {
}
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response,
Object handler) throws Exception {
//不是ajax请求,则直接跳转页面
HttpSession session = request.getSession(true);
//session中获取用户名信息
Object obj = session.getAttribute("user");
if (obj == null || "".equals(obj.toString())) {
//如果判断是 AJAX 请求,直接设置为session超时
if(request.getHeader("x-requested-with")!=null && request.getHeader("x-requested-with").equalsIgnoreCase("XMLHttpRequest")){
//是ajax请求,则返回个消息给前台
response.setHeader("sessionstatus", "timeout");
}else{
//不是ajax请求,则直接跳转页面
//超时登录
response.sendRedirect(request.getSession().getServletContext().getContextPath() + LOGIN_URL);
return false;
}
}
return true;
}
}
\ No newline at end of file
package com.cc.controller;
import com.cc.model.Drsconfig;
import com.cc.db.InfoDao;
import com.cc.framework.WordsTpye;
import com.cc.model.Drsconfig;
import com.cc.model.User;
import com.cc.service.GasjzyfwService;
import com.cc.service.LoginService;
......@@ -10,9 +10,13 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.misc.BASE64Encoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
......@@ -116,4 +120,39 @@ public class LoginController {
}
return returnMap;
}
//调用登录后台 返回resultlogin页面,登录成功即自动关闭;
@RequestMapping(value="/relogin",method = {RequestMethod.POST, RequestMethod.GET})
public String retoHome(HttpServletRequest request, @RequestParam("username") String username, @RequestParam("password") String password,ModelMap map){
//Map<String,Object> returnMap=new HashMap<>();
User user=null;
user=(User)request.getSession().getAttribute("user");
if(user==null){//进行登录
try {
User yuser=loginService.queryUserByUsername(username);
if(yuser!=null){
BASE64Encoder encoder = new BASE64Encoder();
String ypassword=encoder.encode(password.getBytes());
if(ypassword.equals(yuser.getPassword())){
user=yuser;
}
}
} catch (Exception e) {
e.printStackTrace();
map.addAttribute("state","error");
map.addAttribute("msg","登录异常!");
return "resultlogin";
}
}
if(user!=null){
request.getSession().setAttribute("user",user);//登录成功生成session
String sid=request.getSession().getId();
map.addAttribute("state","success");
map.addAttribute("msg","登陆成功!");
map.addAttribute("sid",sid);
}else{
map.addAttribute("state","failed");
map.addAttribute("msg","用户名或密码错误!");
}
return "resultlogin";
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -10,4 +10,5 @@ import org.springframework.stereotype.Component;
public interface LoginDao {
public User queryUserById(String id);
public User queryUserByUsername(String Username);
}
......@@ -96,6 +96,7 @@ public class AsjRyRelateVO {
private String asjfsdd_asjfslcsx;
private String sfma_pdbz;
private String sfsq_pdbz;
private String sfwlfq_pdbz;
private String sfsh_pdbz;
private String sfgm_pdbz;
private String sfsjdqpcl_pdbz;
......@@ -2174,6 +2175,14 @@ public class AsjRyRelateVO {
this.sfsq_pdbz = sfsq_pdbz;
}
public String getSfwlfq_pdbz() {
return sfwlfq_pdbz;
}
public void setSfwlfq_pdbz(String sfwlfq_pdbz) {
this.sfwlfq_pdbz = sfwlfq_pdbz;
}
public String getSfsh_pdbz() {
return sfsh_pdbz;
}
......
......@@ -8,5 +8,5 @@ import com.cc.model.User;
public interface LoginService {
public User getUserById(String id);
public User queryUserByUsername(String Username);
}
......@@ -11,6 +11,9 @@ public interface SolrService {
EasyUIPage querySolrAsj(String q, List<String> fqList,AsjRyRelateVO asjRyRelateVO, String page, String rows, String solrAddress, String sorlInstance, String groupids, String sort, String order, String unitcode, Map<String,Object> configMap, String daohan,String groupidvalue);
List<Map<String, Object>> getAsjSorlByFQ(String ssdw,String fq,Integer maxValue,String solrAddress, String sorlInstance,String[] checkIds);
EasyUIPage querySolrSqAsj(String q, List<String> fqList,AsjRyRelateVO asjRyRelateVO, String page, String rows, String solrAddress, String sorlInstance, String groupids, String sort, String order, String unitcode, Map<String,Object> configMap, String daohan,String groupidvalue);
List<Map<String, Object>> getSqAsjSorlByFQ(String ssdw,String fq,Integer maxValue,String solrAddress, String sorlInstance,String[] checkIds);
EasyUIPage querySolrRy(List<String> fqList,AsjRyRelateVO asjRyRelateVO, String page,String rows, String solrAddress, String sorlInstance,String groupids,String sort,String order,Map<String,Object> configMap,String daohan,String groupidvalue);
List<Map<String, Object>> getRySorlByFQ(String fq,Integer maxValue,String solrAddress, String sorlInstance,String[] checkIds);
......
......@@ -21,4 +21,11 @@ public class LoginServiceImpl implements LoginService {
user=loginDao.queryUserById(id);
return user;
}
@Override
public User queryUserByUsername(String Username) {
User user=null;
user=loginDao.queryUserByUsername(Username);
return user;
}
}
......@@ -1237,6 +1237,1213 @@ public class SolrServiceImpl implements SolrService {
}
return asjxxList;
}
//涉枪案件查询
public EasyUIPage querySolrSqAsj(String q, List<String> fqList,AsjRyRelateVO asjRyRelateVO,String page, String rows, String solrAddress, String sorlInstance, String groupids, String sort, String order, String unitcode, Map<String,Object> configMap, String daohan,String groupidvalue) {
List<Map<String, Object>> asjxxList = new ArrayList<Map<String, Object>>();
List<Map<String,Object>> groupLists = new ArrayList<>();
//根据查询条件分页查询案件信息 start
EasyUIPage easyUIPage = null;
int numFound;
try {
if ( null!=page && null!=rows) {
easyUIPage = new EasyUIPage();
easyUIPage.setPage(Integer.parseInt(page));// 页数
easyUIPage.setPagePara(Integer.parseInt(rows));// 行数
int begin = easyUIPage.getBegin();// 开始行数
int end = Integer.parseInt(rows);// 取几行
System.out.println(begin + "======================" + end);
String serverUrl2 = solrAddress + "/"+sorlInstance;
HttpSolrClient client = new HttpSolrClient(serverUrl2);
ModifiableSolrParams solrParams = new ModifiableSolrParams();
SolrQuery filterQuery = new SolrQuery();
solrParams.add("q",q);
solrParams.add("start", begin+"");
solrParams.add("rows", end+"");
if(StringUtils.isNotBlank(sort) && sort.equals("AFSJ_DESC")){
solrParams.add("sort", sort.toUpperCase()+" "+order);
}else{
if(StringUtils.isNotBlank(order)){
if(sort.equals("ladw_gajgmc")){
solrParams.add("sort", "LADW_GAJGJGDM"+" "+order);
}else{
solrParams.add("sort", sort.toUpperCase()+" "+order);
}
}else{
solrParams.add("sort", "AFSJ_DESC DESC");
}
}
String flag ="";
if(CollectionUtils.isNotEmpty(fqList)){
for(int i=0;i<fqList.size();i++){
filterQuery.addFilterQuery(fqList.get(i)); //遍历fqList,加入filterQuery,每个关联的core用一个fq
if (q =="*:*") {
flag += fqList.get(i) + "&&&"; //将查询条件保存到flag中,传到前端,以便前端使用
}else{
flag += fqList.get(i) + " AND" +q;
}
}
}
// ======高亮设置===
// 开启高亮
filterQuery.setHighlight(true);
// 高亮域
filterQuery.addHighlightField("keywords");
// 前缀
filterQuery.setHighlightSimplePre("<font style='color:red'>");
// 后缀
filterQuery.setHighlightSimplePost("</font>");
//设置高亮每个分片的最大长度,默认为100
filterQuery.setHighlightFragsize(100000);
solrParams.add(filterQuery);
// 执行搜索
QueryResponse queryResponse = client.query(solrParams);
// 搜索结果
SolrDocumentList results = queryResponse.getResults();
// 查询出来的数量
numFound = (int) results.getNumFound();
System.out.println("总查询出:" + numFound + "条记录");
// 遍历搜索记录
// 获取高亮信息
Map<String, Map<String, List<String>>> highlighting = queryResponse.getHighlighting();
for (SolrDocument solrDocument : results) {
Map<String, Object> mapResult = new HashMap<String, Object>();
mapResult.put("id", solrDocument.get("ID"));
mapResult.put("jzajbh", solrDocument.get("JZAJBH"));
mapResult.put("xckybh", solrDocument.get("XCKYBH"));
mapResult.put("ajlbdmmc", solrDocument.get("AJLBDMMC"));
mapResult.put("zatz_jyqkmc", solrDocument.get("ZATZ_JYQKMC"));
mapResult.put("zcjddm", solrDocument.get("ZCJDDM"));
mapResult.put("zcjdmc", solrDocument.get("ZCJDMC"));
mapResult.put("ajmc", solrDocument.get("AJMC"));
String asjfssjAsjfskssj = (String) solrDocument.get("ASJFSSJ_ASJFSKSSJ");
if(null!=asjfssjAsjfskssj && !"".equals(asjfssjAsjfskssj)){
if(asjfssjAsjfskssj.length() > 19){
asjfssjAsjfskssj = (String) asjfssjAsjfskssj.subSequence(0, 19);
}
}
mapResult.put("asjfssj_asjfskssj",asjfssjAsjfskssj);
String asjfssjAsjfsjssj = (String) solrDocument.get("ASJFSSJ_ASJFSJSSJ");
if(null!=asjfssjAsjfsjssj && !"".equals(asjfssjAsjfsjssj)){
if(asjfssjAsjfsjssj.length() > 19){
asjfssjAsjfsjssj = (String) asjfssjAsjfsjssj.subSequence(0, 19);
}
}
mapResult.put("asjfssj_asjfsjssj",asjfssjAsjfsjssj);
mapResult.put("zczj_zxsj01", solrDocument.get("ZCZJ_ZXSJ01"));
mapResult.put("larq", solrDocument.get("LARQ"));
if("null"!=asjfssjAsjfskssj){
asjfssjAsjfskssj="发案:"+asjfssjAsjfskssj;
}else{
asjfssjAsjfskssj="";
}
String larq=String.valueOf(solrDocument.get("LARQ"));
if("null"!=larq){
larq="</br>立案:"+ larq;
}else{
larq="";
}
String zczjsj=String.valueOf(solrDocument.get("ZCZJ_ZXSJ01"));
if("null"!=zczjsj){
zczjsj="</br>侦查终结:" + zczjsj;
}else{
zczjsj="";
}
String date ="";
date = asjfssjAsjfskssj + larq + zczjsj;
mapResult.put("ajxgsj", date);
mapResult.put("laywspsj", solrDocument.get("LAYWSPSJ"));
mapResult.put("jyaq", solrDocument.get("JYAQ"));
mapResult.put("ladw_gajgmc", solrDocument.get("LADW_GAJGMC"));
mapResult.put("slsj", solrDocument.get("SLSJ"));
mapResult.put("asjfsdd_xzqhdm", solrDocument.get("ASJFSDD_XZQHDM"));
mapResult.put("asjfsdd_xzqhmc", solrDocument.get("ASJFSDD_XZQHMC"));
mapResult.put("asjfsdd_dzmc", solrDocument.get("ASJFSDD_DZMC"));
mapResult.put("ssjzrmby", solrDocument.get("SSJZRMBY"));
mapResult.put("sjcwjzrmby", solrDocument.get("SJCWJZRMBY"));
mapResult.put("asjssry_rs", solrDocument.get("ASJSSRY_RS"));
mapResult.put("asjswry_rs", solrDocument.get("ASJSWRY_RS"));
mapResult.put("laywsjztmc", solrDocument.get("LAYWSJZTMC"));
String lazt=String.valueOf(solrDocument.get("LAYWSJZTMC"));
String zczjzt=String.valueOf(solrDocument.get("ZCZJYWSJZTMC"));
//当tb_xw_asjcz表中的laywsjzt和zczjywsjzt都为null的时候,数据状态显示为等待立案采集
if("null"==lazt && "null"==zczjzt){
lazt="";
zczjzt="等待立案采集";
}else if("null"!=lazt && "null"==zczjzt){
zczjzt="等待侦查终结采集";
}else if("null"==lazt && "null"!=zczjzt){
lazt="等待立案采集";
}
String sjzt=lazt+ "</br>"+zczjzt;
mapResult.put("sjzt", sjzt);
mapResult.put("zczjywsjztmc", solrDocument.get("ZCZJYWSJZTMC"));
String sfma_pdbz = String.valueOf(solrDocument.get("SFMA_PDBZ"));
String sfsq_pdbz = String.valueOf(solrDocument.get("SFSQ_PDBZ"));
String sfgm_pdbz = String.valueOf(solrDocument.get("SFGM_PDBZ"));
//命案,涉枪,拐卖的案件,破案时间直接拿侦查终结时间
if((StringUtils.isNotBlank(sfma_pdbz) && "1".equals(sfma_pdbz)) || (StringUtils.isNotBlank(sfsq_pdbz) && "1".equals(sfsq_pdbz)) || (StringUtils.isNotBlank(sfgm_pdbz) && "1".equals(sfgm_pdbz))){
mapResult.put("zczj_zxsj01", solrDocument.get("ZCZJ_ZXSJ01"));
}else{ //除了命案,涉枪,拐卖的案件,破案时间拿破案表的破案日期
String ajztmc = String.valueOf(solrDocument.get("AJZTMC"));
if(StringUtils.isNotBlank(ajztmc) && (ajztmc.equals("结案") || ajztmc.equals("破案"))){
mapResult.put("zczj_zxsj01", solrDocument.get("PARQ"));
}
}
mapResult.put("zzdwfzrXm", solrDocument.get("ZZDWFZR_XM"));
mapResult.put("zzdwfzr_xm", solrDocument.get("ZZDWFZR_XM"));
mapResult.put("zuzdw_zbr_xm", solrDocument.get("ZUZDW_ZBR_XM"));
mapResult.put("zuzdw_xbr_xm1", solrDocument.get("ZUZDW_XBR_XM1"));
mapResult.put("zuzdw_gajgmc", solrDocument.get("ZUZDW_GAJGMC"));
mapResult.put("xxdjdw_gajgmc", solrDocument.get("XXDJDW_GAJGMC"));
if(StringUtils.isNotBlank(unitcode) && (unitcode.substring(0,2).startsWith("65") || unitcode.substring(0,2).startsWith("66"))){
mapResult.put("ajzlbmc", solrDocument.get("AJZLBMC"));
mapResult.put("ajxzlbmc", solrDocument.get("AJXZLBMC"));
mapResult.put("xalbdmbcmsmc", solrDocument.get("XALBDMBCMSMC"));
}
// 输出高亮
Map<String, List<String>> map = highlighting.get(solrDocument.get("ID"));
List<String> list = map.get("keywords");
if (list != null && list.size() > 0) {
mapResult.put("jyaq", list.get(0));
}
asjxxList.add(mapResult);
}
//根据查询条件分页查询案件信息 end
//根据分类查询分类信息 start
if(null!=groupids && !"".equals(groupids)){
String [] arr= groupids.split(",");
for(int i=0;i<arr.length;i++){
if(arr[i].indexOf("XYR_")==0 || arr[i].indexOf("RYBH_")==0){ //页面上嫌疑人和被害人选择的分类过滤掉,只查案件的分类
continue;
}
String groupid = "";
if("AJ_ZARFX_RS".equals(arr[i])){
groupid = "ZARFX_RSXX";
}else{
groupid = arr[i].replaceFirst("AJ_", ""); //去掉前缀AJ_
}
Map<String,Object> total = new HashedMap();
if(groupid.indexOf("GAJGJGDM_SECOND")!=-1) { //根据第一级查询第二级信息,像内蒙古自治区公安厅1500
String gajgjgdm="";
if(groupid.indexOf("LADW")!=-1){ //立案单位分类
gajgjgdm = asjRyRelateVO.getLadw_gajgjgdm_second();
}else if(groupid.indexOf("ZCZJDW")!=-1){//侦查终结单位分类
gajgjgdm = asjRyRelateVO.getZczjdw_gajgjgdm_second();
}else if(groupid.indexOf("XXDJDW")!=-1){//登记单位分类
gajgjgdm = asjRyRelateVO.getXxdjdw_gajgjgdm_second();
}
Map<String, Object> codemap = new HashedMap();
if (gajgjgdm.length() == 4) { //一般都是4位,除了内蒙古大兴安岭森林公安局是8位
gajgjgdm += "00000000";
} else if (gajgjgdm.length() == 8) { //内蒙古大兴案岭森林公安局
gajgjgdm += "0000";
}
codemap.put("code", gajgjgdm);
codemap.put("groupid", "CODE_UNIT");
String name = dictitemDao.queryNameByCode(codemap); //查名称
Map<String,Object> parentmap = new HashedMap();
parentmap.put("NAME",name);
parentmap.put("CODE",gajgjgdm);
List<Map<String, Object>> codelist = new ArrayList<>();
List<Map<String, Object>> codelist1=dictitemDao.getNextLevelByPid(codemap);//拿到直属下级
codelist.add(parentmap);//把本身加入,像内蒙古自治区公安厅包括它本身还有它的所有直属下级
codelist.addAll(codelist1);//把直属下级加入
List<Map<String, Object>> l = new ArrayList<>();
for (int ii = 0; ii < codelist.size(); ii++) {
String code = String.valueOf(codelist.get(ii).get("CODE"));
String groupidField = "";
if (code.substring(4, 12).equals("00000000")) { //如果查的是本身,就直接根据名称查询
groupidField = groupid.replace("GAJGJGDM_SECOND", "GAJGMC");
}else if (code.substring(6, 12).equals("000000")) {
code = code.substring(0, 6);
groupidField = groupid;
} else if (code.substring(8, 12).equals("0000")) {
if(code.substring(0,8).equals("150000S1")){ //如果是大兴安岭森林公安局
groupidField = groupid.replace("GAJGJGDM_SECOND", "GAJGMC"); //直接根据名称查询
}else{
code = code.substring(0, 8);
groupidField = groupid.replace("GAJGJGDM_SECOND", "GAJGJGDM_THIRD");
}
} else if (code.substring(10, 12).equals("00")) {
if(code.indexOf("S")!=-1){ //如果是大兴安岭森林公安局子级
code = code.substring(0, 10);
groupidField = groupid.replace("GAJGJGDM_SECOND", "GAJGMC");//直接根据名称查询
}else {
groupidField = groupid.replace("GAJGJGDM_SECOND", "GAJGJGDM_FOURTH");
}
}
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q", q);
groupSolrParams.add("group", "true");
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows", "20000");//这个要写,不然分组默认只有10个,显示不全
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) { //根据code值过滤案件
if (groupid.indexOf("LADW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND LADW_GAJGJGDM:" + code + "*");
}else if (groupid.indexOf("ZCZJDW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND ZCZJDW_GAJGJGDM:" + code + "*");
}else if(groupid.indexOf("XXDJDW")!=-1){
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND XXDJDW_GAJGJGDM:" + code + "*");
}
} else {
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String, Object> map = new HashedMap();
map.put("groupNum", group.getResult().getNumFound()); //分组对应条数
map.put("groupid", code);
map.put("groupValue", String.valueOf(codelist.get(ii).get("NAME")));// 获得名称
if (map.size() > 0 && group.getResult().getNumFound() > 0) {
l.add(map);
}
}
}
}
}
}
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) { //把导航传回页面
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}else if(groupid.indexOf("GAJGJGDM_THIRD")!=-1) { //根据第二级查询第三级
List<Map<String, Object>> l = new ArrayList<>();
String gajgjgdm="";
if(groupid.indexOf("LADW")!=-1){
gajgjgdm = asjRyRelateVO.getLadw_gajgjgdm_third();
}else if(groupid.indexOf("ZCZJDW")!=-1){
gajgjgdm = asjRyRelateVO.getZczjdw_gajgjgdm_third();
}else if(groupid.indexOf("XXDJDW")!=-1){
gajgjgdm = asjRyRelateVO.getXxdjdw_gajgjgdm_third();
}
Map<String, Object> codemap = new HashedMap();
if (gajgjgdm.length() < 12) {
if (gajgjgdm.length() == 6) {
gajgjgdm += "000000";
} else if (gajgjgdm.length() == 8) {
gajgjgdm += "0000";
} else if (gajgjgdm.length() == 10) {
gajgjgdm += "00";
}
codemap.put("code", gajgjgdm);
codemap.put("groupid", "CODE_UNIT");
String name = dictitemDao.queryNameByCode(codemap);
Map<String, Object> parentmap = new HashedMap();
parentmap.put("NAME", name);
parentmap.put("CODE", gajgjgdm);
List<Map<String, Object>> codelist = new ArrayList<>();
List<Map<String, Object>> codelist1 = dictitemDao.getNextLevelByPid(codemap);//拿到所有直属下级
codelist.add(parentmap); //把本身加入
codelist.addAll(codelist1); //把直属下级加入
for (int ii = 0; ii < codelist.size(); ii++) {
String code = String.valueOf(codelist.get(ii).get("CODE"));
String groupidField = "";
if (code.substring(8, 12).equals("0000")) {
if (code.substring(0, 8).equals(asjRyRelateVO.getLadw_gajgjgdm_third()) || code.substring(0, 8).equals(asjRyRelateVO.getZczjdw_gajgjgdm_third()) || code.substring(0, 8).equals(asjRyRelateVO.getXxdjdw_gajgjgdm_third())) { //忘了加上了
groupidField = groupid.replace("GAJGJGDM_THIRD", "GAJGMC"); //直接根据名称查询
} else {
code = code.substring(0, 8);
groupidField = groupid.replace("GAJGJGDM_THIRD", "GAJGJGDM_FOURTH");
}
} else if (code.substring(10, 12).equals("00")) {
code = code.substring(0, 10);
groupidField = groupid.replace("GAJGJGDM_THIRD", "GAJGMC");//直接根据名称查询
}
if (StringUtils.isBlank(groupidField)) { //最后一级,groupField为空,这个时候l是空的
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) { //把导航传回页面
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
} else {
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q", q);
groupSolrParams.add("group", "true");
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows", "20000");//这个要写,不然分组默认只有10个,显示不全
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) {//根据code过滤案件
if (groupid.indexOf("LADW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND LADW_GAJGJGDM:" + code + "*");
}else if (groupid.indexOf("ZCZJDW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND ZCZJDW_GAJGJGDM:" + code + "*");
}else if (groupid.indexOf("XXDJDW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND XXDJDW_GAJGJGDM:" + code + "*");
}
} else {
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String, Object> map = new HashedMap();
map.put("groupNum", group.getResult().getNumFound());
map.put("groupid", code);
map.put("groupValue", String.valueOf(codelist.get(ii).get("NAME")));//获得名称
if (map.size() > 0 && group.getResult().getNumFound() > 0) {
l.add(map);
}
}
}
}
}
}
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) {
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}
}
}else if(groupid.indexOf("GAJGJGDM_FOURTH")!=-1) {//根据第三级查第四级
List<Map<String, Object>> l = new ArrayList<>();
String gajgjgdm="";
if(groupid.indexOf("LADW")!=-1){
gajgjgdm = asjRyRelateVO.getLadw_gajgjgdm_fourth();
}else if(groupid.indexOf("ZCZJDW")!=-1){
gajgjgdm = asjRyRelateVO.getZczjdw_gajgjgdm_fourth();
}else if(groupid.indexOf("XXDJDW")!=-1){
gajgjgdm = asjRyRelateVO.getXxdjdw_gajgjgdm_fourth();
}
Map<String, Object> codemap = new HashedMap();
if (gajgjgdm.length() < 12) {
if (gajgjgdm.length() == 8) {
gajgjgdm += "0000";
} else if (gajgjgdm.length() == 10) {
gajgjgdm += "00";
}
codemap.put("code", gajgjgdm);
codemap.put("groupid", "CODE_UNIT");
String name = dictitemDao.queryNameByCode(codemap);
Map<String, Object> parentmap = new HashedMap();
parentmap.put("NAME", name);
parentmap.put("CODE", gajgjgdm);
List<Map<String, Object>> codelist = new ArrayList<>();
List<Map<String, Object>> codelist1 = dictitemDao.getNextLevelByPid(codemap);
codelist.add(parentmap);
codelist.addAll(codelist1);
for (int ii = 0; ii < codelist.size(); ii++) {
String code = String.valueOf(codelist.get(ii).get("CODE"));
String groupidField = "";
if (code.substring(10, 12).equals("00")) {
groupidField = groupid.replace("GAJGJGDM_FOURTH", "GAJGMC");
}
if (StringUtils.isBlank(groupidField)) { //最后一级,groupField为空,这个时候l是空的
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) { //把导航传回页面
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
} else {
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q", q);
groupSolrParams.add("group", "true");
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows", "20000");//这个要写,不然分组默认只有10个,显示不全
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) {//根据code过滤案件
if (groupid.indexOf("LADW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND LADW_GAJGJGDM:" + code + "*");
}else if (groupid.indexOf("ZCZJDW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND ZCZJDW_GAJGJGDM:" + code + "*");
}else if (groupid.indexOf("XXDJDW") != -1) {
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND XXDJDW_GAJGJGDM:" + code + "*");
}
} else {
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String, Object> map = new HashedMap();
map.put("groupNum", group.getResult().getNumFound());
map.put("groupid", code);
map.put("groupValue", String.valueOf(codelist.get(ii).get("NAME")));//获得名称
if (map.size() > 0 && group.getResult().getNumFound() > 0) {
l.add(map);
}
}
}
}
}
}
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) {
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}
}
}else if(groupid.indexOf("GAJGMC")!=-1 || groupid.equals("AJLBDMMC")) { //最后一级,l是空列表,代表没有子级了
List<Map<String, Object>> l = new ArrayList<>();
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) {
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}else if(groupid.equals("AJLBDM_SECOND")) { //根据第一级查询第二级信息
String ajlbdm = asjRyRelateVO.getAjlbdm_second()+"000000";
Map<String, Object> codemap = new HashedMap();
codemap.put("code", ajlbdm);
codemap.put("groupid", "CODE_AJLB");
String name = dictitemDao.queryNameByCode(codemap); //查名称
Map<String,Object> parentmap = new HashedMap();
parentmap.put("NAME",name);
parentmap.put("CODE",ajlbdm);
List<Map<String, Object>> codelist = new ArrayList<>();
List<Map<String, Object>> codelist1=dictitemDao.getNextLevelByPid(codemap);//拿到直属下级
codelist.add(parentmap);//把本身加入
codelist.addAll(codelist1);//把直属下级加入
List<Map<String, Object>> l = new ArrayList<>();
for (int ii = 0; ii < codelist.size(); ii++) {
String code = String.valueOf(codelist.get(ii).get("CODE"));
String groupidField = "";
if (code.substring(2,8).equals("000000")) { //如果查的是本身,就直接根据名称查询
groupidField = groupid.replace("AJLBDM_SECOND", "AJLBDMMC");
}else if (code.substring(4,8).equals("0000")) {
code = code.substring(0,4);
groupidField = groupid;
}else if (code.substring(6,8).equals("00")) {
code = code.substring(0,6);
groupidField = groupid.replace("AJLBDM_SECOND", "AJLBDM_THIRD");
}else{
code = code.substring(0,8);
groupidField = groupid.replace("AJLBDM_SECOND", "AJLBDMMC");
}
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q", q);
groupSolrParams.add("group", "true");
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows", "20000");//这个要写,不然分组默认只有10个,显示不全
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) { //根据code值过滤案件
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND AJLBDM:" + code + "*");
} else {
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String, Object> map = new HashedMap();
map.put("groupNum", group.getResult().getNumFound()); //分组对应条数
map.put("groupid", code);
map.put("groupValue", String.valueOf(codelist.get(ii).get("NAME")));// 获得名称
if (map.size() > 0 && group.getResult().getNumFound() > 0) {
l.add(map);
}
}
}
}
}
}
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) { //把导航传回页面
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}else if(groupid.equals("AJLBDM_THIRD")) { //根据第二级查询第三级信息
String ajlbdm = asjRyRelateVO.getAjlbdm_third();
if (ajlbdm.length() == 4) {
ajlbdm += "0000";
} else if (ajlbdm.length() == 6) {
ajlbdm += "00";
}
Map<String, Object> codemap = new HashedMap();
codemap.put("code", ajlbdm);
codemap.put("groupid", "CODE_AJLB");
String name = dictitemDao.queryNameByCode(codemap); //查名称
Map<String,Object> parentmap = new HashedMap();
parentmap.put("NAME",name);
parentmap.put("CODE",ajlbdm);
List<Map<String, Object>> codelist = new ArrayList<>();
List<Map<String, Object>> codelist1=dictitemDao.getNextLevelByPid(codemap);//拿到直属下级
codelist.add(parentmap);//把本身加入
codelist.addAll(codelist1);//把直属下级加入
List<Map<String, Object>> l = new ArrayList<>();
for (int ii = 0; ii < codelist.size(); ii++) {
String code = String.valueOf(codelist.get(ii).get("CODE"));
String groupidField = "";
groupidField = groupid.replace("AJLBDM_THIRD", "AJLBDMMC");
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q", q);
groupSolrParams.add("group", "true");
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows", "20000");//这个要写,不然分组默认只有10个,显示不全
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) { //根据code值过滤案件
groupFilterQuery.addFilterQuery(fqList.get(j) + " AND AJLBDM:" + code + "*");
} else {
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String, Object> map = new HashedMap();
map.put("groupNum", group.getResult().getNumFound()); //分组对应条数
map.put("groupid", code);
map.put("groupValue", String.valueOf(codelist.get(ii).get("NAME")));// 获得名称
if (map.size() > 0 && group.getResult().getNumFound() > 0) {
l.add(map);
}
}
}
}
}
}
total.put("groupid", groupid);
total.put("groupList", l);
if (StringUtils.isNotBlank(daohan)) { //把导航传回页面
String[] aa = daohan.split(":");
if (aa[0].equals(groupid)) {
total.put("daohan", aa[1]);
}
}
}else{ //除了单位分类的几种情况外,其他的都是进这里
ModifiableSolrParams groupSolrParams = new ModifiableSolrParams();
SolrQuery groupFilterQuery = new SolrQuery();
groupSolrParams.add("q",q);
groupSolrParams.add("group", "true");
String groupidField = groupid;
if(groupid.indexOf("_DATE")>0){ //日期类,且是最后一级的
groupidField = groupid.replace("_DATE","");
}
//行政区划类
if(groupid.equals("ASJFSDD_XZQHDM_CITY") && StringUtils.isNotBlank(asjRyRelateVO.getAsjfsdd_xzqhdm_city()) && asjRyRelateVO.getAsjfsdd_xzqhdm_city().length()==4){
groupidField ="ASJFSDD_XZQHMC";
}
//涉案场所分类
if(groupid.equals("ASJFSDD_SACS_SACSLBDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getAsjfsdd_sacs_sacslbdm_first()) && asjRyRelateVO.getAsjfsdd_sacs_sacslbdm_first().length()==2){
groupidField ="ASJFSDD_SACS_SACSLBMC";
}
//空间部位分类
if(groupid.equals("ASJFSDD_KJBW_KJBWLBDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getAsjfsdd_kjbw_kjbwlbdm_first()) && asjRyRelateVO.getAsjfsdd_kjbw_kjbwlbdm_first().length()==1){
groupidField ="ASJFSDD_KJBW_KJBWLBMC";
}
//解锁手段分类
if(groupid.equals("JSSD_JSSDDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getJssd_jssddm_first()) && asjRyRelateVO.getJssd_jssddm_first().length()==1){
groupidField ="JSSD_JSSDMC";
}
//窃取手段分类 这里写错了
if(groupid.equals("XPSD_XPSDDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getXpsd_xpsddm_first()) && asjRyRelateVO.getXpsd_xpsddm_first().length()==1){
groupidField ="XPSD_XPSDMC";
}
//施暴手段
if(groupid.equals("SBSD_SBSDDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getSbsd_sbsddm_first()) && asjRyRelateVO.getSbsd_sbsddm_first().length()==1){
groupidField ="SBSD_SBSDMC";
}
//窃取手段
if(groupid.equals("QQSD_QQSDDM_FIRST") && StringUtils.isNotBlank(asjRyRelateVO.getQqsd_qqsddm_first()) && asjRyRelateVO.getQqsd_qqsddm_first().length()==2){
groupidField ="QQSD_QQSDMC";
}
//作案准备手段
if(groupid.equals("ZAZBSD_ZAZBSDDM_SECOND") && StringUtils.isNotBlank(asjRyRelateVO.getZazbsd_zazbsddm_second()) && asjRyRelateVO.getZazbsd_zazbsddm_second().length()==3){
groupidField ="ZAZBSD_ZAZBSDMC";
}
groupSolrParams.add("group.field", groupidField);
groupSolrParams.add("rows","20000"); //分组的个数限制
if(CollectionUtils.isNotEmpty(fqList)){
for(int j=0;j<fqList.size();j++){
if(j==0){
String sql=fqList.get(j);
if (groupid.indexOf("LADW") != -1) {
sql = fqList.get(j)+" AND -LADW_GAJGJGDM:*S*"; //排除大兴安岭
} else if (groupid.indexOf("XXDJDW") != -1) {
sql = fqList.get(j)+" AND -XXDJDW_GAJGJGDM:*S*";
} else if (groupid.indexOf("ZCZJDW") != -1) {
sql = fqList.get(j)+" AND -ZCZJDW_GAJGJGDM:*S*";
}
groupFilterQuery.addFilterQuery(sql);
}else{
groupFilterQuery.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams.add(groupFilterQuery);
// 执行搜索
QueryResponse response = client.query(groupSolrParams);
if (response != null) {
GroupResponse groupResponse = response.getGroupResponse();
if (groupResponse != null) {
List<GroupCommand> groupList = groupResponse.getValues();
List<Map<String,Object>> l = new ArrayList<>();
for (GroupCommand groupCommand : groupList) {
List<Group> groups = groupCommand.getValues();
for (Group group : groups) {
Map<String,Object> map = new HashedMap();
if(groupid.indexOf("XZQH")>0) { //行政区划类
if(groupid.indexOf("XZQHDM_PROVINCE")!=-1){ //获取第一级
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) { //值是空的
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_XZQH");
codeMap.put("code", group.getGroupValue() + "0000");
map.put("groupValue", dictitemDao.queryNameByCode(codeMap)); //获取第一级名称
map.put("groupid", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}else if(groupid.indexOf("XZQHDM_CITY")!=-1){
if(groupidField.indexOf("XZQHMC")!=-1){ //根据第二级获取第三级
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{ //根据第一级获取第二级
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_XZQH");
codeMap.put("code", group.getGroupValue() + "00");
String name =dictitemDao.queryNameByCode(codeMap);
if(StringUtils.isBlank(name)){ //如果后面加00,数据库找不到,说明没有父级
ModifiableSolrParams groupSolrParams1 = new ModifiableSolrParams();
SolrQuery groupFilterQuery1 = new SolrQuery();
groupSolrParams1.add("q",q);
groupSolrParams1.add("group", "true");
groupSolrParams1.add("group.field", groupid.replace("XZQHDM_CITY","XZQHMC"));
groupSolrParams1.add("rows","20000");
if(CollectionUtils.isNotEmpty(fqList)){
for(int j=0;j<fqList.size();j++){
if(j==0){
groupFilterQuery1.addFilterQuery(fqList.get(0)+" AND "+groupid.replace("XZQHDM_CITY","XZQHDM")+":"+group.getGroupValue()+"*");
}else{
groupFilterQuery1.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams1.add(groupFilterQuery1);
// 执行搜索
QueryResponse response1 = client.query(groupSolrParams1);
if (response1 != null) {
GroupResponse groupResponse1 = response1.getGroupResponse();
if (groupResponse1 != null) {
List<GroupCommand> groupList1 = groupResponse1.getValues();
for (GroupCommand groupCommand1 : groupList1) {
List<Group> groups1 = groupCommand1.getValues();
for (Group group1 : groups1) {
Map<String,Object> map1 = new HashedMap();
map1.put("groupValue", group1.getGroupValue());
map1.put("groupNum", group1.getResult().getNumFound());
l.add(map1);
}
}
}
}
}else{
map.put("groupValue", dictitemDao.queryNameByCode(codeMap));
map.put("groupid", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}
}
}else if(groupid.indexOf("GAJGJGDM_FIRST")!=-1) { //获取第一级单位
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) {//值为空的
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_UNIT");
codeMap.put("code", group.getGroupValue() + "00000000");
map.put("groupValue", dictitemDao.queryNameByCode(codeMap));
map.put("groupid", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}else if(groupid.equals("AJLBDM_FIRST")){ //获取案件类别第一级
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) { //值为空的
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_AJLB");
codeMap.put("code", group.getGroupValue() + "000000");
map.put("groupValue", dictitemDao.queryNameByCode(codeMap));
map.put("groupid", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}else if(groupid.indexOf("SACS")!=-1 || groupid.indexOf("KJBW")!=-1 || groupid.indexOf("JSSD")!=-1 || groupid.indexOf("XPSD")!=-1 || groupid.indexOf("SBSD")!=-1 || groupid.indexOf("QQSD")!=-1) {
if(groupid.indexOf("DM_FIRST")!=-1){
if(groupidField.indexOf("MC")!=-1){
map.put("groupValue",group.getGroupValue());
map.put("groupNum",group.getResult().getNumFound());
}else{
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) {
map.put("groupValue", group.getGroupValue());
} else {
Map<String, Object> codeMap = new HashedMap();
if (groupid.indexOf("SACS") != -1) {
codeMap.put("groupid", "CODE_SACS");
} else if (groupid.indexOf("KJBW") != -1) {
codeMap.put("groupid", "CODE_KJBW");
} else if (groupid.indexOf("JSSD") != -1) {
codeMap.put("groupid", "CODE_JSSD");
} else if (groupid.indexOf("XPSD") != -1) {
codeMap.put("groupid", "CODE_XPSD");
} else if (groupid.indexOf("SBSD") != -1) {
codeMap.put("groupid", "CODE_SBSD");
} else if (groupid.indexOf("QQSD") != -1) {
codeMap.put("groupid", "CODE_QQSD");
}
if (groupid.indexOf("JSSD") != -1) {
codeMap.put("code", group.getGroupValue() + "0");
} else {
codeMap.put("code", group.getGroupValue() + "00");
}
map.put("groupValue", dictitemDao.queryNameByCode(codeMap));
map.put("groupid", group.getGroupValue());
}
map.put("groupNum", group.getResult().getNumFound());
}
}
}else if(groupid.indexOf("ZAZBSD")!=-1) {
if(groupid.indexOf("DM_FIRST")!=-1){
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) {
map.put("groupValue", group.getGroupValue());
} else {
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_ZAZBSD");
codeMap.put("code", group.getGroupValue() + "000");
map.put("groupValue", dictitemDao.queryNameByCode(codeMap));
map.put("groupid", group.getGroupValue());
}
map.put("groupNum", group.getResult().getNumFound());
}else if(groupid.indexOf("DM_SECOND")!=-1){
if(groupidField.indexOf("MC")!=-1){
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else {
Map<String, Object> codeMap = new HashedMap();
codeMap.put("groupid", "CODE_ZAZBSD");
codeMap.put("code", group.getGroupValue() + "0");
String value = dictitemDao.queryNameByCode(codeMap);
map.put("groupid", group.getGroupValue());
map.put("groupValue", value);
map.put("groupNum", group.getResult().getNumFound());
}
}
}else if(groupid.indexOf("ASJFSSJ_ASJFSKSSJ")!=-1 || groupid.indexOf("LARQ")!=-1 || groupid.indexOf("ZCZJ_ZXSJ01")!=-1 || groupid.indexOf("DJSJ")!=-1){
if(groupid.indexOf("YEAR")!=-1){
String groupValue = group.getGroupValue();
if (null == groupValue || "null".equals(groupValue)) {
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}else if(groupid.indexOf("MONTH")!=-1){
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}else{
if((StringUtils.isNotBlank(asjRyRelateVO.getAsjfssj_asjfskssj_date()) && asjRyRelateVO.getAsjfssj_asjfskssj_date().length()==7)
|| (StringUtils.isNotBlank(asjRyRelateVO.getLarq_date()) && asjRyRelateVO.getLarq_date().length()==7)
|| (StringUtils.isNotBlank(asjRyRelateVO.getDjsj_date()) && asjRyRelateVO.getDjsj_date().length()==7)
|| (StringUtils.isNotBlank(asjRyRelateVO.getZczj_zxsj01_date()) && asjRyRelateVO.getZczj_zxsj01_date().length()==7)){
map.put("groupValue", group.getGroupValue());
map.put("groupNum", group.getResult().getNumFound());
}
}
}else{
if(StringUtils.isBlank(daohan)){
map.put("groupNum",group.getResult().getNumFound());
map.put("groupValue",group.getGroupValue());
}
}
if(map.size()>0){
l.add(map);
}
}
}
//内蒙古大兴安岭特殊处理
if(groupid.indexOf("GAJGJGDM_FIRST")!=-1){
PropertiesUtils propertiesUtil=new PropertiesUtils("config.properties");
String ssdw=propertiesUtil.getValue("ssdw");//所属单位
if (null != ssdw && !"".equals(ssdw) && ssdw.length() >= 2) {
ssdw = ssdw.substring(0, 2);
if(ssdw.equals("15")){
ModifiableSolrParams groupSolrParams2 = new ModifiableSolrParams();
SolrQuery groupFilterQuery2 = new SolrQuery();
groupSolrParams2.add("q", "*:*");
groupSolrParams2.add("group", "true");
groupSolrParams2.add("group.field", groupid.replace("GAJGJGDM_FIRST", "GAJGJGDM_THIRD"));//都是6位以上的
groupSolrParams2.add("rows", "20000"); //分组的个数限制
if (CollectionUtils.isNotEmpty(fqList)) {
for (int j = 0; j < fqList.size(); j++) {
if (j == 0) {
String sql = fqList.get(j);
if (groupid.indexOf("LADW") != -1) {
sql = fqList.get(j) + " AND LADW_GAJGJGDM:*S*";
} else if (groupid.indexOf("XXDJDW") != -1) {
sql = fqList.get(j) + " AND XXDJDW_GAJGJGDM:*S*";
} else if (groupid.indexOf("ZCZJDW") != -1) {
sql = fqList.get(j) + " AND ZCZJDW_GAJGJGDM:*S*";
}
groupFilterQuery2.addFilterQuery(sql);
} else {
groupFilterQuery2.addFilterQuery(fqList.get(j));
}
}
}
groupSolrParams2.add(groupFilterQuery2);
// 执行搜索
QueryResponse response2 = client.query(groupSolrParams2);
if (response2 != null) {
GroupResponse groupResponse2 = response2.getGroupResponse();
if (groupResponse2 != null) {
int dxalcount = 0;
List<GroupCommand> groupList2 = groupResponse2.getValues();
for (GroupCommand groupCommand2 : groupList2) {
List<Group> groups2 = groupCommand2.getValues();
for (Group group2 : groups2) {
dxalcount += (int) group2.getResult().getNumFound();
System.out.println(group2.getGroupValue() + ":" + group2.getResult().getNumFound());
}
}
if(dxalcount>0){
Map<String, Object> map1 = new HashedMap();
map1.put("groupValue", "内蒙古大兴安岭森林公安局");
map1.put("groupid", "150000S1");
map1.put("groupNum", dxalcount);
l.add(map1);
}
}
}
}
}
}
total.put("groupid",groupid);
total.put("groupList",l);
if(StringUtils.isNotBlank(daohan)){
String[] aa =daohan.split(":");
if(aa[0].equals(groupid)){
total.put("daohan",aa[1]);
}
}
}
}
}
groupLists.add(total);
}
}
client.close();
easyUIPage.setGroupLists(groupLists);
easyUIPage.setRows(asjxxList);
easyUIPage.setTotal(numFound);// total
easyUIPage.setFlag(flag);
easyUIPage.setConfigMap(configMap);
easyUIPage.setGroupidvalue(groupidvalue);
}
} catch (Exception e) {
e.printStackTrace();
}
return easyUIPage;
}
public List<Map<String, Object>> getSqAsjSorlByFQ(String ssdw,String fq,Integer maxValue,String solrAddress, String sorlInstance,String[] checkIds){
solrAddress = solrAddress + "/"+sorlInstance;
HttpSolrClient client = new HttpSolrClient(solrAddress);
List<Map<String, Object>> asjxxList = new ArrayList<Map<String, Object>>();
try {
ModifiableSolrParams solrParams = new ModifiableSolrParams();
SolrQuery filterQuery = new SolrQuery();
solrParams.add("q","*:*");
filterQuery.setStart(0);
filterQuery.setRows(maxValue);
String asjQ = "";
if(checkIds!=null && checkIds.length>0){
for(int i=0;i<checkIds.length;i++){
if(i==0){
asjQ += "ID:"+checkIds[i];
}else{
asjQ += " OR ID:"+checkIds[i];
}
}
filterQuery.addFilterQuery(asjQ);
}else{
String [] fqArr = fq.split("&&&");
for(int i=0;i<fqArr.length;i++){
filterQuery.addFilterQuery(fqArr[i]);
}
}
solrParams.add(filterQuery);
// 执行搜索
QueryResponse queryResponse = client.query(solrParams);
// 搜索结果
SolrDocumentList results = queryResponse.getResults();
// 查询出来的数量
long numFound = results.getNumFound();
System.out.println("总查询出:" + numFound + "条记录");
// 遍历搜索记录
// 获取高亮信息
for (SolrDocument solrDocument : results) {
if(solrDocument != null){
Map<String, Object> mapResult = new HashMap<String, Object>();
mapResult.put("id", solrDocument.get("ID"));
mapResult.put("jzajbh", solrDocument.get("JZAJBH"));
mapResult.put("xckybh", solrDocument.get("XCKYBH"));
if(solrDocument.get("AJLBDMMC")!=null && solrDocument.get("AJLBDMMC")!="null") {
mapResult.put("ajlbdmmc", solrDocument.get("AJLBDMMC"));
}else{
mapResult.put("ajlbdmmc", "");
}
if(solrDocument.get("ZATZ_JYQKMC")!=null && solrDocument.get("ZATZ_JYQKMC")!="null") {
mapResult.put("zatz_jyqkmc", solrDocument.get("ZATZ_JYQKMC"));
}else{
mapResult.put("zatz_jyqkmc", "");
}
if(solrDocument.get("AJLBDMMC")!=null && solrDocument.get("AJLBDMMC")!="null") {
mapResult.put("ajlbdmmc", solrDocument.get("AJLBDMMC"));
}else{
mapResult.put("ajlbdmmc", "");
}
if(solrDocument.get("ZCJDMC")!=null && solrDocument.get("ZCJDMC")!="null") {
mapResult.put("zcjdmc", solrDocument.get("ZCJDMC"));
}else{
mapResult.put("zcjdmc", "");
}
if(solrDocument.get("AJMC")!=null && solrDocument.get("AJMC")!="null") {
mapResult.put("ajmc", solrDocument.get("AJMC"));
}else{
mapResult.put("ajmc", "");
}
String asjfssjAsjfskssj = (String) solrDocument.get("ASJFSSJ_ASJFSKSSJ");
if(null!=asjfssjAsjfskssj && !"".equals(asjfssjAsjfskssj)){
if(asjfssjAsjfskssj.length() > 19){
asjfssjAsjfskssj = (String) asjfssjAsjfskssj.subSequence(0, 19);
}
}
mapResult.put("asjfssj_asjfskssj",asjfssjAsjfskssj);
String asjfssjAsjfsjssj = (String) solrDocument.get("ASJFSSJ_ASJFSJSSJ");
if(null!=asjfssjAsjfsjssj && !"".equals(asjfssjAsjfsjssj)){
if(asjfssjAsjfsjssj.length() > 19){
asjfssjAsjfsjssj = (String) asjfssjAsjfsjssj.subSequence(0, 19);
}
}
//将案发时间 侦查终结时间 立案时间 放一起显示
mapResult.put("asjfssj_asjfsjssj",asjfssjAsjfsjssj);
mapResult.put("zczj_zxsj01", solrDocument.get("ZCZJ_ZXSJ01"));
mapResult.put("larq", solrDocument.get("LARQ"));
if("null"!=asjfssjAsjfskssj){
asjfssjAsjfskssj="发案:"+asjfssjAsjfskssj;
}else{
asjfssjAsjfskssj="";
}
String larq=String.valueOf(solrDocument.get("LARQ"));
if("null"!=larq){
larq="\r\n"+"立案:"+ larq;
}else{
larq="";
}
String zczjsj=String.valueOf(solrDocument.get("ZCZJ_ZXSJ01"));
if("null"!=zczjsj){
zczjsj="\r\n"+"侦查终结:" + zczjsj;
}else{
zczjsj="";
}
String date ="";
date = asjfssjAsjfskssj + larq + zczjsj;
mapResult.put("ajxgsj", date);
if(solrDocument.get("JYAQ")!=null && solrDocument.get("JYAQ")!="null") {
mapResult.put("jyaq", solrDocument.get("JYAQ"));
}else{
mapResult.put("jyaq", "");
}
if(solrDocument.get("LADW_GAJGMC")!=null && solrDocument.get("LADW_GAJGMC")!="null") {
mapResult.put("ladw_gajgmc", solrDocument.get("LADW_GAJGMC"));
}else{
mapResult.put("ladw_gajgmc", "");
}
if(solrDocument.get("SLSJ")!=null && solrDocument.get("SLSJ")!="null") {
mapResult.put("slsj", solrDocument.get("SLSJ"));
}else{
mapResult.put("slsj", "");
}
if(solrDocument.get("ASJFSDD_XZQHMC")!=null && solrDocument.get("ASJFSDD_XZQHMC")!="null") {
mapResult.put("asjfsdd_xzqhmc", solrDocument.get("ASJFSDD_XZQHMC"));
}else{
mapResult.put("asjfsdd_xzqhmc", "");
}
if(solrDocument.get("ASJFSDD_DZMC")!=null && solrDocument.get("ASJFSDD_DZMC")!="null") {
mapResult.put("asjfsdd_dzmc", solrDocument.get("ASJFSDD_DZMC"));
}else{
mapResult.put("asjfsdd_dzmc", "");
}
if(solrDocument.get("SSJZRMBY")!=null && solrDocument.get("SSJZRMBY")!="null") {
mapResult.put("ssjzrmby", solrDocument.get("SSJZRMBY"));
}else{
mapResult.put("ssjzrmby", "");
}
if(solrDocument.get("SJCWJZRMBY")!=null && solrDocument.get("SJCWJZRMBY")!="null") {
mapResult.put("sjcwjzrmby", solrDocument.get("SJCWJZRMBY"));
}else{
mapResult.put("sjcwjzrmby", "");
}
if(solrDocument.get("ASJSSRY_RS")!=null && solrDocument.get("ASJSSRY_RS")!="null") {
mapResult.put("sjcwjzrmby", solrDocument.get("ASJSSRY_RS"));
}else{
mapResult.put("sjcwjzrmby", "");
}
if(solrDocument.get("ASJSWRY_RS")!=null && solrDocument.get("ASJSWRY_RS")!="null") {
mapResult.put("asjswry_rs", solrDocument.get("ASJSWRY_RS"));
}else{
mapResult.put("asjswry_rs", "");
}
if(solrDocument.get("ASJSWRY_RS")!=null && solrDocument.get("ASJSWRY_RS")!="null") {
mapResult.put("laywsjztmc", solrDocument.get("LAYWSJZTMC"));
}else{
mapResult.put("laywsjztmc", "");
}
String lazt=String.valueOf(solrDocument.get("LAYWSJZTMC"));
String a=lazt.replaceAll("</br>","").replaceAll("null","");
String zczjzt=String.valueOf(solrDocument.get("ZCZJYWSJZTMC"));
String b=zczjzt.replaceAll("</br>","").replaceAll("null","");
String sjzt=a+b;
mapResult.put("sjzt", sjzt);
if(solrDocument.get("ZCZJYWSJZTMC")!=null && solrDocument.get("ZCZJYWSJZTMC")!="null") {
mapResult.put("zczjywsjztmc", solrDocument.get("ZCZJYWSJZTMC"));
}else{
mapResult.put("zczjywsjztmc", "");
}
if(solrDocument.get("ZZDWFZR_XM")!=null && solrDocument.get("ZZDWFZR_XM")!="null") {
mapResult.put("zzdwfzrXm", solrDocument.get("ZZDWFZR_XM"));
}else{
mapResult.put("zzdwfzrXm", "");
}
if(solrDocument.get("ZUZDW_ZBR_XM")!=null && solrDocument.get("ZUZDW_ZBR_XM")!="null") {
mapResult.put("zuzdw_zbr_xm", solrDocument.get("ZUZDW_ZBR_XM"));
}else{
mapResult.put("zuzdw_zbr_xm", "");
}
if(solrDocument.get("ZUZDW_XBR_XM1")!=null && solrDocument.get("ZUZDW_XBR_XM1")!="null") {
mapResult.put("zuzdw_xbr_xm1", solrDocument.get("ZUZDW_XBR_XM1"));
}else{
mapResult.put("zuzdw_xbr_xm1", "");
}
if(solrDocument.get("ZUZDW_GAJGMC")!=null && solrDocument.get("ZUZDW_GAJGMC")!="null") {
mapResult.put("zuzdw_gajgmc", solrDocument.get("ZUZDW_GAJGMC"));
}else{
mapResult.put("zuzdw_gajgmc", "");
}
if(solrDocument.get("ZUZDW_ZBR_XM")!=null && solrDocument.get("ZUZDW_ZBR_XM")!="null") {
mapResult.put("zuzdw_gajgmc", solrDocument.get("ZUZDW_ZBR_XM"));
}else{
mapResult.put("zuzdw_gajgmc", "");
}
if(solrDocument.get("ZUZDW_XBR_XM1")!=null && solrDocument.get("ZUZDW_XBR_XM1")!="null") {
mapResult.put("zuzdw_xbr_xm1", solrDocument.get("ZUZDW_XBR_XM1"));
}else{
mapResult.put("zuzdw_xbr_xm1", "");
}
if(solrDocument.get("ZUZDW_GAJGMC")!=null && solrDocument.get("ZUZDW_GAJGMC")!="null") {
mapResult.put("zuzdw_gajgmc", solrDocument.get("ZUZDW_GAJGMC"));
}else{
mapResult.put("zuzdw_gajgmc", "");
}
if(solrDocument.get("XXDJDW_GAJGMC")!=null && solrDocument.get("XXDJDW_GAJGMC")!="null") {
mapResult.put("xxdjdw_gajgmc", solrDocument.get("XXDJDW_GAJGMC"));
}else{
mapResult.put("xxdjdw_gajgmc", "");
}
if(StringUtils.isNotBlank(ssdw) && (ssdw.startsWith("65") || ssdw.startsWith("66"))){
mapResult.put("ajzlbmc", solrDocument.get("AJZLBMC"));
mapResult.put("ajxzlbmc", solrDocument.get("AJXZLBMC"));
mapResult.put("xalbdmbcmsmc", solrDocument.get("XALBDMBCMSMC"));
}
asjxxList.add(mapResult);
}
}
client.close();
} catch (Exception e) {
e.printStackTrace();
}
return asjxxList;
}
//人员查询
public EasyUIPage querySolrRy(List<String> fqList,AsjRyRelateVO asjRyRelateVO, String page,String rows, String solrAddress, String sorlInstance,String groupids,String sort,String order,Map<String,Object> configMap,String daohan,String groupidvalue) {
List<Map<String, Object>> ryxxList = new ArrayList<Map<String, Object>>();
......
......@@ -17,5 +17,19 @@
TQYHBZ as tqyhbz from SYS_USER where 1=1
and identitycard=#{id}
</select>
<select id="queryUserByUsername" resultType="com.cc.model.User" parameterType="string">
select UNITCODE as unitcode,
USERNAME as username,
TRUE_NAME as trueName,
IDENTITYCARD as identitycard,
PASSWORD as password,
SEX as sex,
BIRTHDAY as birthday,
TELEPHONE as telephone,
UNITNAME as unitname,
GRADE as grade,
POLICEMANID as policemanid,
TQYHBZ as tqyhbz from SYS_USER where 1=1
and username=#{username}
</select>
</mapper>
\ No newline at end of file
......@@ -10,12 +10,13 @@
<context:component-scan base-package="com.cc.controller"></context:component-scan>
<context:component-scan base-package="com.mis.controller"></context:component-scan>
<mvc:resources mapping="/static/**" location="/static/"/>
<!--配置视图解析器,方便页面返回-->
<!-- 对转向页面的路径解析。prefix:前缀, suffix:后缀 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="redirectContextRelative" value="true"></property>
<property name="prefix" value="/"></property>
<property name="prefix" value="/WEB-INF/views/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<mvc:default-servlet-handler/>
......
......@@ -97,4 +97,7 @@
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<session-config>
<session-timeout>1</session-timeout>
</session-config>
</web-app>
......@@ -8,6 +8,7 @@
<script type="text/javascript" charset="utf8" src="static/easyui-window/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui-window/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<style>
.dw-span{float: right;margin-right:15px;height:24px;line-height: 24px;font-size: 12px;}
.btn_cx {position: relative;top: 2px;margin-left:5px;cursor: pointer; padding: 3px 17px; border: 1px solid #245580; background-color: #337ab7; color: #fff; background-image: linear-gradient(to bottom,#337ab7 0,#265a88 100%); background-repeat: repeat-x; text-shadow: 0 -1px 0 rgba(0,0,0,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075); border-radius: 4px; font-weight: normal; font-size: 12px; }
......
......@@ -46,6 +46,7 @@
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/rasc/js/tipbar.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......
......@@ -43,8 +43,10 @@
<script type="text/javascript" src="static/dy/js/guide_xq.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
.textbox .textbox-text {
height: 24px !important;
......
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆界面</title>
<link rel="stylesheet" type="text/css" href="static/rasc/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="static/dy/css/base-login.css">
</head>
<body class="login-body">
<header class="login-header">
<div class="login-title"><img src="static/images/title.png" /></div>
</header>
<div class="lines">
<div class="content">
<div class="left-globe">
<h1 class="title"></h1>
</div>
<div class="right-login">
<div class="login-wrap">
<h2 class="namel">用户登录</h2>
<form action="relogin" method="post">
<p class="tc"><input type="text" placeholder="账号" name="username" class="name" autocomplete="off"/><i class="username-icon zdy-fa"></i></p>
<p class="tc"><input type="password" placeholder="密码" name="password" class="password" autocomplete="off"/><i class="password-icon zdy-fa"></i></p>
<p class="tc" style="margin-top:36px;"><input type="submit" class="btn btn-info" value="登陆"/></p>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录结果</title>
</head>
<body>
<span id="time">登录状态:"${state}"</span><br>
<script type="text/javascript" src="static/easyui-window/js/jquery-1.11.3.js"></script>
<script type="text/javascript">
//定义函数myClose关闭当前窗口
function myClose(){
//将id为time的元素的内容转为整数,保存在变量n中
//var n=parseInt(time.innerHTML);
debugger;
var n=1;
n--;//将n-1
//如果n==0,关闭页面
//否则, 将n+秒钟后自动关闭,再保存回time的内容中
if(n>0){
time.innerHTML=n+"秒钟后自动关闭";
timer=setTimeout(myClose,1000);
}else{
window.location.href="about:blank";
window.close();
}
}
var timer=null;
//当页面加载后,启动周期性定时器,每个1秒执行myClose
window.onload=function(){
var state = "${state}";
if(state=="success"){
debugger;
timer=setTimeout(myClose,1000);
}
}
</script>
</body>
</html>
\ No newline at end of file
......@@ -44,6 +44,7 @@
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......
......@@ -76,6 +76,8 @@
<script src="static/js/util.js"></script>
<!--引入模板文件-->
<script type="text/javascript" src="static/js/templet.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
</body>
</html>
<script type="text/javascript">
......
<%@ page import="com.cc.model.User" %>
<%@ page language="java" pageEncoding="utf-8" %>
<!-- 引进c标签 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
User user = new User();
user = (User)session.getAttribute("user");
//系统所属单位
String ssdw = user.getUnitcode().substring(0,2);
String s = user.getUnitname();
String unicodeDm=user.getUnitcode();
%>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>涉枪案件查询</title>
<link rel="stylesheet" type="text/css" href="static/pagination/jquery.pagination.css"/>
<link rel="stylesheet" type="text/css" href="static/easyui-window/css/easyui.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/header.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/dList.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/contextMenu.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/writeforResultView.css">
<link rel="stylesheet" type= "text/css" href="static/rasc/css/navCategory.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/index.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/queryList.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/notifyAlert.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/rycommon.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/jquery.alert.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/footer.css">
<%--<link rel="stylesheet" href="static/layer/skin/default/layer.css"/>
<link rel="stylesheet" type="text/css" href="static/rasc/css/jxfx.css">--%>
<link rel="stylesheet" href="static/layer/layer.css"/>
<script type="text/javascript" src="static/rasc/js/datepicker.js"></script>
<script type="text/javascript" src="static/easyui-window/js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="static/rasc/js/jquery.dragsort-0.5.2.js"></script>
<script type="text/javascript" src="static/rasc/js/jquery.alert.js"></script>
<script type="text/javascript" src="static/datepicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf8" src="static/easyui-window/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui-window/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="static/easyui-window/js/function.js"></script>
<script type="text/javascript" src="static/pagination/jquery.pagination-1.2.1.js"></script>
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/rasc/js/tipbar.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
.textbox .textbox-text{height:24px !important;line-height:24px !important;}
tr{height:31px;line-height:31px;}
.Wdate{width:86px;}
.h_icon{margin-left:0;}
#header {
background: none;height:66px;width:1400px;margin:0 auto;
}
</style>
</head><body onclick="navCategory.bodyCommonClick(event);" style="background: url(static/dy/img/body_bg_solr.jpg) center fixed;">
<div class="container">
<link rel="stylesheet" type="text/css" href="static/rasc/css/notifyAlert.css">
<link rel="stylesheet" type="text/css" href="static/rasc/css/header.css">
<div id="header" style="height:54px;">
<input type="hidden" id="unitcode" value="${param.unitcode}" />
<input type="hidden" id="grade" value="${param.grade}" />
<span class="h_icon"><i class="fa fa-user-circle-o fa-2x" style="margin-top:8px;font-size: 39px;"></i></span>
<h5 class="h_title">涉枪案件筛查</h5>
</div>
<script type="text/javascript">
var contextpath = "/zhyy",
notifyUrl = "10.12.221.96:8080";
</script>
<div id="wrap" class="">
<div id="topFloat" style="top: 77px;">
<div id="searchPerviewer" class="searchPerviewer" style="display: none;">
<ul class="pull-clear">
</ul>
</div>
</div>
<div id="help-tips"></div>
<div class="bootPanelDefault">
<div class="bootPanel-group condition panel1" id="panel1">
<div class="bootPanel-bootPanel-default">
<div id="panel1Body" class="bootPanel-collapse collapse in">
<div class="tab-content">
<div class="main">
<div id="case_div">
<div class="search-form">
<div id="aj_jbxx" class="div_form" flag="true" type="aj">
<ul class="form_nav pull-clear">
<li class="nav-title pull-left">
案件特征分析
</li>
<li class="small-title pull-left small-title-active" onclick="navCategoryFormUtils.subFormCheck(this);" target="ajxx-jbxx">
基本信息<span class="bot_triangle"></span>
</li>
<li class="small-title pull-left" onclick="navCategoryFormUtils.subFormCheck(this);" target="ajxx-aqfx">
手段特点分析<span></span>
</li>
</ul>
<div class="subFormOption base_form ajxx-jbxx" target="ajxx-jbxx">
<table>
<tbody><tr>
<td class="td_title">案情关键词:</td>
<td colspan="5"><input type="text" class="input-sm form-control key" id="jyaq" name="jyaq" placeholder="1、故意AND杀人 2、利器OR行凶"></td>
</tr>
<tr>
<td class="td_title">案事件编号:</td>
<td><input type="text" class="input-sm form-control input-common" id="asjbh" name="asjbh"></td>
<td class="td_title">案件类别:</td>
<td><p class="code-w"><input type="text" id="ajlbdm" name="ajlbdm" showtype="code" class="val easyui-combotree input-sm" data-options="codetype: 'queryTypeCode?type=CODE_AJLB',method:'get',fit:true,multiple:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">案件性质:</td>
<td><p class="code-w"><input type="text" id="zatz_jyqk" name="zatz_jyqk" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_AJXZ',method:'get',fit:true,multiple:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr><tr>
<td class="td_title">案件名称:</td>
<td><input type="text" class="input-sm form-control input-common" id="ajmc" name="ajmc"></td>
<td class="td_title ">发案时间:</td>
<td><input id="asjfssjKssj" name="asjfssjKssj" order="1" type="text" showtype="date" showname="asjfssj" class="Wdate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'asjfssjJssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="asjfssjJssj" name="asjfssjJssj" order="2" type="text" showtype="date" showname="asjfssj" class="Wdate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'asjfssjKssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
<td class="td_title">案发地区划:</td>
<td><p class="code-w"><input type="text" id="asjfsdd_xzqhdm" name="asjfsdd_xzqhdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_XZQH',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">案发地名称:</td>
<td><input type="text" class="input-sm form-control input-common" id="asjfsdd_dzmc" name="asjfsdd_dzmc"></td>
<td class="td_title">损失总价值:</td>
<td><input type="text" showtype="range" showname="ssjz" order="1"
class="input-sm form-control time date" id="ssjzMin" name="ssjzMin">
-<input type="text" showtype="range" showname="ssjz" order="2"
class="input-sm form-control time date" id="ssjzMax" name="ssjzMax">
</td>
<td class="td_title">死亡人数:</td>
<td><input type="text" showtype="range" showname="asjswry_rs" order="1"
class="input-sm form-control time date" id="asjswry_rsxx"
name="asjswry_rsxx">-<input type="text" showtype="range" showname="asjswry_rs" order="2"
class="input-sm form-control time date" id="asjswry_rssx" name="asjswry_rssx"></td>
</tr>
<tr>
<td class="td_title">受伤人数:</td>
<td><input type="text" showtype="range" showname="asjssry_rs" order="1"
class="input-sm form-control time date" id="asjssry_rsxx" name="asjssry_rsxx">
-<input type="text" showtype="range" showname="asjssry_rs" order="2"
class="input-sm form-control time date" id="asjssry_rssx" name="asjssry_rssx"></td>
<td class="td_title">立案单位:</td>
<td><p class="code-w"><input type="text" id="ladw_gajgjgdm" name="ladw_gajgjgdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_UNIT',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">现场勘验编号:</td>
<td><input type="text" class="input-sm form-control input-common" id="xckybh" name="xckybh"></td>
</tr>
<tr>
<td class="td_title">立案时间:</td>
<td><input id="lasjRqsjKssj" name="lasjRqsjKssj" order="1" type="text" showtype="date" showname="lasjRqsj" class="Wdate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'lasjRqsjJssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="lasjRqsjJssj" name="lasjRqsjJssj" order="2" type="text" showtype="date" showname="lasjRqsj" class="Wdate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'lasjRqsjKssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
<td class="td_title">侦查终结时间:</td>
<td><input id="zczj_zxsj01Kssj" name="zczj_zxsj01Kssj" order="1" type="text" showtype="date" showname="zczj_zxsj01" class="Wdate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'zczj_zxsj01Jssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="zczj_zxsj01Jssj" name="zczj_zxsj01Jssj" order="2" type="text" showtype="date" showname="zczj_zxsj01" class="Wdate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'zczj_zxsj01Kssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
<td class="td_title">作案人数:</td>
<td><input type="text" showtype="range" showname="zarfx_rs" order="1"
class="input-sm form-control time date" id="zarfx_rsxx" name="zarfx_rsxx">
-<input type="text" showtype="range" showname="zarfx_rs" order="2"
class="input-sm form-control time date" id="zarfx_rssx" name="zarfx_rssx">
</td>
</tr>
<tr>
<td class="td_title">侦查阶段:</td>
<td><p class="code-w"><input type="text" id="zcjddm" name="zcjddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_ZCJDDM',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">事由简要情况:</td>
<td><p class="code-w"><input type="text" id="sy_jyqk" name="sy_jyqk" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_SASY',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title ">登记时间:</td>
<td><input id="djsjKssj" name="djsjKssj" order="1" type="text" class="Wdate" showtype="date" showname="djsj" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'djsjJssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="djsjJssj" name="djsjJssj" order="2" type="text" class="Wdate" showtype="date" showname="djsj" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'djsjKssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
</tr>
<tr>
<!--侦查终结业务数据状态,00呈请,01待审批,02审批通过,03审批未通过,04待撤销,05已撤销,06撤销未通过,07已上报,08上报失败-->
<td class="td_title">侦办过程:</td>
<td colspan="5">
<input type="radio" class="radio-inline" name="zbgc" value="00" title="未认领">未认领
<input type="radio" class="radio-inline" name="zbgc" value="01" title="已认领">已认领
<input type="radio" class="radio-inline" name="zbgc" value="02" title="未补采" >未补采
<input type="radio" class="radio-inline" name="zbgc" value="03" title="已补采" >已补采
</td>
</tr>
<tr>
<td class="td_title">是否网络贩枪:</td>
<td colspan="5">
<input type="radio" class="radio-inline" name="sfwlfq_pdbz" value="1" title="是">
<input type="radio" class="radio-inline" name="sfwlfq_pdbz" value="0" title="否">
</td>
</tr>
<tr>
<td class="td_title">案件状态:</td>
<!--侦查终结业务数据状态,00呈请,01待审批,02审批通过,03审批未通过,04待撤销,05已撤销,06撤销未通过,07已上报,08上报失败-->
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="laywsjzt01" id="laywsjzt01" value="01"><label for="laywsjzt01">等待立案审批</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="laywsjzt02" id="laywsjzt02" value="02"><label for="laywsjzt02">通过立案审批</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="laywsjzt07" id="laywsjzt07" value="07"><label for="laywsjzt07">立案已上报</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="Sfbhcxaj" id="sfbhcxaj" value="00"><label for="Sfbhcxaj">已撤销案件</label>
</td>
<td class="td_title"></td>
</tr>
<tr>
<td class="td_title"></td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="zczjywsjzt01" id="zczjywsjzt01" value="01"><label for="zczjywsjzt01">等待侦查终结审批</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="zczjywsjzt02" id="zczjywsjzt02" value="02"><label for="zczjywsjzt02">通过侦查终结审批</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="zczjywsjzt07" id="zczjywsjzt07" value="07"><label for="zczjywsjzt07">侦查终结已上报</label>
</td>
<td class="td_title" style="text-align: left">
<input type="checkbox" showType="checkbox" name="zczjywsjzt00" id="zczjywsjzt00" value="00"><label for="zczjywsjzt00">等待侦查终结采集</label>
</td>
<td class="td_title"></td>
</tr>
</tbody></table>
<div class="more-bt-line">
<a target="more-table-ajexpend" onclick="navCategoryFormUtils.moreCheck(this);" class="icon_expend" flag="false">+ 更多条件</a>
</div>
<table id="more-table-ajexpend" style="display: none;">
<tbody><tr>
<%-- <td class="td_title">简要案情:</td>
<td colspan="3"><input type="text" class="input-sm form-control key" name="AJ_JYAQ" field="AJ_JYAQ@AJ"></td>
--%><td class="td_title">立案审批时间:</td>
<td><input id="la_spsjkssj" name="la_spsjkssj" order="1" type="text" showtype="date" showname="la_spsj" class="Wdate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'la_spsjjssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="la_spsjjssj" name="la_spsjjssj" order="2" type="text" showtype="date" showname="la_spsj" class="Wdate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'la_spsjkssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
<td class="td_title">破案审批时间:</td>
<td><input id="pa_spsjkssj" name="pa_spsjkssj" order="1" type="text" showtype="date" showname="bhsj" class="Wdate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'pa_spsjjssj\')}',dateFmt:'yyyy-MM-dd'})"/>
-<input id="pa_spsjjssj" name="pa_spsjjssj" order="2" type="text" showtype="date" showname="bhsj" class="Wdate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'pa_spsjkssj\')}',dateFmt:'yyyy-MM-dd'})"/></td>
</tr>
</tbody></table>
</div>
<div class="subFormOption ajxx-aqfx" target="ajxx-aqfx" style="display: none;">
<table>
<tbody><tr>
<td class="td_title">案发时机:</td>
<td><p class="code-w"><input type="text" id="asjfssj_zasj_zasjlbdm" name="asjfssj_zasj_zasjlbdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_ZASJLB',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">地域类别:</td>
<td>
<p class="code-w"><input type="text" id="asjfsdd_dylbdm" name="asjfsdd_dylbdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_FADY',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">涉案场所:</td>
<td>
<p class="code-w"><input type="text" id="asjfsdd_sacs_sacslbdm" name="asjfsdd_sacs_sacslbdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_SACS',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">空间部位:</td>
<td>
<p class="code-w"><input type="text" id="asjfsdd_kjbw_kjbwlbdm" name="asjfsdd_kjbw_kjbwlbdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_KJBW',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">诈骗手段:</td>
<td>
<p class="code-w"><input type="text" id="zpsd_zpsddm" name="zpsd_zpsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_ZPSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">网络作案手段:</td>
<td>
<p class="code-w"><input type="text" id="wlzasd_wlzasddm" name="wlzasd_wlzasddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_WLZASD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">进入方式:</td>
<td>
<p class="code-w"><input type="text" id="jrjzkjfsjsd_jrjzkjfsjsddm" name="jrjzkjfsjsd_jrjzkjfsjsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_JRJZKJFSJSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">离开方式:</td>
<td>
<p class="code-w"><input type="text" id="lkjzkjfs_lkjzkjfsdm" name="lkjzkjfs_lkjzkjfsdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_LKJCKJFS',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">箱体突破手段:</td>
<td>
<p class="code-w"><input type="text" id="xtkjtpsd_xtkjtpsddm" name="xtkjtpsd_xtkjtpsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_XTKJTPSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">首次联络方式:</td>
<td>
<p class="code-w"><input type="text" id="llfs_llfsdm" name="llfs_llfsdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_LLFS',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">接近手段:</td>
<td>
<p class="code-w"><input type="text" id="jjsd_jjsddm" name="jjsd_jjsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_JJSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">解锁手段:</td>
<td>
<p class="code-w"><input type="text" id="jssd_jssddm" name="jssd_jssddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_JSSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">胁迫手段:</td>
<td>
<p class="code-w"><input type="text" id="xpsd_xpsddm" name="xpsd_xpsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_XPSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">施暴手段:</td>
<td>
<p class="code-w"><input type="text" id="sbsd_sbsddm" name="sbsd_sbsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_SBSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">引爆手段:</td>
<td>
<p class="code-w"><input type="text" id="ybsddm" name="ybsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_YBSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">窃取手段:</td>
<td>
<p class="code-w"><input type="text" id="qqsd_qqsddm" name="qqsd_qqsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_QQSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">胁迫使用物品:</td>
<td>
<p class="code-w"><input type="text" id="xpsywp_sawpdm" name="xpsywp_sawpdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_SAWPFL',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">作案准备手段:</td>
<td>
<p class="code-w"><input type="text" id="zazbsd_zazbsddm" name="zazbsd_zazbsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_ZAZBSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">干扰侦查手段:</td>
<td>
<p class="code-w"><input type="text" id="grzcsd_grzcsddm" name="grzcsd_grzcsddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_GRZCSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">冒充冒用手段:</td>
<td>
<p class="code-w"><input type="text" id="mcmysd_mcmysddm" name="mcmysd_mcmysddm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_MCMYSD',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">冒充身份:</td>
<td>
<p class="code-w"><input type="text" id="mcsf_mcsfdm" name="mcsf_mcsfdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_MCSF',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
<tr>
<td class="td_title">冒充关系人:</td>
<td>
<p class="code-w"><input type="text" id="mcgxr_mcgxrdm" name="mcgxr_mcgxrdm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_SHGX',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
<td class="td_title">冒用单位名义:</td>
<td>
<p class="code-w"><input type="text" id="mydwmy_mcdwmydm" name="mydwmy_mcdwmydm" showtype="code" class="val easyui-combotree" data-options="codetype: 'queryTypeCode?type=CODE_ASJXGDWLB',multiple:true,method:'get',fit:true,textField : 'text', valueField : 'id'"/></p>
</td>
</tr>
</tbody></table>
</div>
</div>
</div>
</div>
<div id="searchConfigContain" class="searchConfigContain" style="">
<div class="searchConfig">
<ul class="searchConfigHead pull-clear">
<li class="pull-left"><span>案件分析导航选择</span></li>
<li class="pull-right"><input type="radio" showtype="block"
class="radio-inline"
name="asjPresentType" title=""
primary="true" value="DList"></li>
<li class="pull-right"><input type="radio" showtype="grid" checked="checked"
class="radio-inline"
name="asjPresentType"
value="EZUIGrid"></li>
<li class="pull-right"><input type="checkbox" showtype="minCheck"
onclick="navCategoryFormUtils.checkAllNav(this)"
id="asjSearchConfigCheckAll"><label
for="asjSearchConfigCheckAll">全选</label></li>
</ul>
<div class="lineTrangle"></div>
<div class="searchConfigContent">
<ul class="searchConfigChecks pull-clear">
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ASJFSSJ_ASJFSKSSJ_YEAR"
id="AJ_ASJFSSJ_ASJFSKSSJ_YEAR"><label
for="AJ_ASJFSSJ_ASJFSKSSJ_YEAR">案发日期分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_LARQ_YEAR"
id="AJ_LARQ_YEAR"><label
for="AJ_LARQ_YEAR">立案日期分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ASJFSDD_XZQHDM_PROVINCE"
id="AJ_ASJFSDD_XZQHDM_PROVINCE"><label
for="AJ_ASJFSDD_XZQHDM_PROVINCE">发案地区划分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_AJLBDM_FIRST"
id="AJ_AJLBDM_FIRST"><label
for="AJ_AJLBDM_FIRST">案件类别分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ZATZ_JYQKMC"
id="AJ_ZATZ_JYQKMC"><label
for="AJ_ZATZ_JYQKMC">案件性质分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_LADW_GAJGJGDM_FIRST"
id="AJ_LADW_GAJGJGDM_FIRST"><label
for="AJ_LADW_GAJGJGDM_FIRST">立案单位分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ZCZJDW_GAJGJGDM_FIRST"
id="AJ_ZCZJDW_GAJGJGDM_FIRST"><label
for="AJ_ZCZJDW_GAJGJGDM_FIRST">破案单位分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ASJSSRY_RS"
id="AJ_ASJSSRY_RS"><label
for="AJ_ASJSSRY_RS">受伤人数分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ASJSWRY_RS"
id="AJ_ASJSWRY_RS"><label
for="AJ_ASJSWRY_RS">死亡人数分类</label></li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ASJFSDD_SACS_SACSLBDM_FIRST"
id="AJ_ASJFSDD_SACS_SACSLBDM_FIRST"><label
for="AJ_ASJFSDD_SACS_SACSLBDM_FIRST">涉案场所分类</label>
</li>
<li class="searchConfigCheck pull-left"><input type="checkbox"
showtype="minCheck"
onclick="navCategory.resultNavCheckBoxClick(this)"
name="navOption"
value="AJ_ZCZJ_ZXSJ01_YEAR"
id="AJ_ZCZJ_ZXSJ01_YEAR"><label
for="AJ_ZCZJ_ZXSJ01_YEAR">侦查终结时间分类</label></li>
</ul>
<div class="searchConfigBts"><a href="javascript: void(0);" class="btn"
title="清空查询条件"
onclick="navCategoryFormUtils.clearAllFormData('aj');">清空</a><a
class="sbtn" href="javascript:void(0);"
onclick="navCategory.searchForm('sqaj');">查询案件</a>
</div>
</div>
</div>
</div>
<!--结果Panel-->
<div id="navResultPanel" style="">
<!--panel1-->
<div class="navResultHeaderPanel">
<!--图表1-->
<div class="navCategory" id="groupList">
</div>
</div>
<!--panel2-->
<div id="dListContainer" class="searchrResult" style="display:none;">
<div id="dList_toolbar" class="resultTab">
<a class="toolbarUtilsA autoWidth export-excel undefined" htype="toolsUtils" hsn="0" onclick="daochu();">导出数据(最多5000条)</a>
</div>
<div id="dList_dListContainer" class="layoutDiv resultList"></div>
<div class="pages">
<input type="hidden" id="hideTotalCount" />
<div id="Pagination" class="pagination1">
</div>
</div>
</div>
<!--panel3 table-->
<div id="dGridContainer" class="searchrResult" style="display:none;">
<div id="grid_toolbar" class="resultTab">
<a class="toolbarUtilsA autoWidth export-excel"
onclick="daochu();" hsn="exportExcel" style="margin-right:8px;">导出数据(最多5000条)</a>
<a class="easyui-linkbutton c1" id="set_table_btn" data-options="plain:true" title="表格设置"><i
class="fa fa-gear"></i></a>
</div>
<div class="gridDivList">
<div id="gridContainer">
<table class="easyui-datagrid" id="Table" style="width:100%;border-top:1px dashed #ccc;">
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style>
#footer {
background: #273E72 !important;
line-height: 36px !important;
height: 36px !important;
color: white;
}
</style>
<!--表格设置面板-->
<div id="w" class="easyui-dialog" title="配置表格显示字段" data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false" style="width:700px;height:auto;padding:10px;display:none;">
<div id="set_table_panel">
<div class="table-header-drag">
<div class="selected-header">
<div>已选表头</div>
<ul id="selected_ul" data-listidx="0">
<li><div rel="id" name="案事件编号">案事件编号</div></li>
<li><div rel="ajmc" name="案件名称">案件名称</div></li>
<li><div rel="zcjdmc" name="侦查阶段">侦查阶段</div></li>
<li><div rel="ajlbdmmc" name="案件类别">案件类别</div></li>
<li><div rel="asjfssj_asjfskssj" name="案发时间">案发开始时间</div></li>
<li><div rel="asjfsdd_xzqhmc" name="案发地点">案发地点区划</div></li>
<li><div rel="ladw_gajgmc" name="立案单位">立案单位</div></li>
<li><div rel="jyaq" name="简要案情">简要案情</div></li>
</ul>
</div>
<div class="waiting-header" data-listidx="1">
<div>待选表头</div>
<ul id="waiting_ul">
<li><div rel="jzajbh" name="警综案件编号">警综案件编号</div></li>
<li><div rel="xckybh" name="现勘编号">现勘编号</div></li>
<li><div rel="asjfssj_asjfsjssj" name="案发结束时间">案发结束时间</div></li>
<li><div rel="larq" name="立案日期">立案日期</div></li>
<li><div rel="slsj" name="受理时间">受理时间</div></li>
<li><div rel="zatz_jyqkmc" name="案件性质">案件性质</div></li>
<li><div rel="sjcwjzrmby" name="收缴财物价值">收缴财物价值</div></li>
<li><div rel="asjfsdd_dzmc" name="案发地名称">案发地名称</div></li>
<li><div rel="ssjzrmby" name="损失价值">损失价值</div></li>
<li><div rel="asjswry_rs" name="死亡人数">死亡人数</div></li>
<li><div rel="asjssry_rs" name="受伤人数">受伤人数</div></li>
<li><div rel="laywsjztmc" name="立案业务状态">立案业务状态</div></li>
<li><div rel="zczjywsjztmc" name="侦查终结业务状态">侦查终结业务状态</div></li>
<li><div rel="zczj_zxsj01" name="侦查终结时间">侦查终结时间</div></li>
</ul>
</div>
<div class="tips">
<i class="fa fa-info-circle"></i>
<span>亲,可以通过拖动来配置表格</span>
</div>
</div>
</div>
</div>
<form id="downform" method="post" action="downFile">
<input type="hidden" id="fileName" name="fileName" value="" />
</form>
<script>
var contextpath='http://10.12.221.133:80/zhyy/',
path = '/zhyy',
rasc_xzqh = '010000',
target = 'null',
refillValue = 'null',
bizField = 'SFMA_PDBZ' || '',
versionFlag = 'gab';
</script>
<script type="text/javascript" src="static/rasc/js/jquery.form.js"></script>
<script type="text/javascript" src="static/rasc/js/jquery.form.js"></script>
<script type="text/javascript" src="static/rasc/js/json(1).js"></script>
<script type="text/javascript" src="static/rasc/js/appUtils.js"></script>
<script type="text/javascript" src="static/rasc/js/gridUtils.js"></script>
<script type="text/javascript" src="static/rasc/js/contextMenu.js"></script>
<script type="text/javascript" src="static/rasc/js/meta.js"></script>
<script type="text/javascript" src="static/rasc/js/utils.js"></script>
<script type="text/javascript" src="static/rasc/js/header.js"></script>
<script type="text/javascript" src="static/rasc/js/ypUtils.js"></script>
<script type="text/javascript" src="static/rasc/js/dList.js"></script>
<%--<script type="text/javascript" src="static/rasc/js/jxfx.js"></script>--%>
<script type="text/javascript" src="static/rasc/js/linkApp.js"></script>
<script type="text/javascript" src="static/rasc/js/navCatViewerUtils.js"></script>
<script type="text/javascript" src="static/rasc/js/underCurrentUtils.js"></script>
<script type="text/javascript" src="static/rasc/js/index.js"></script>
<script type="text/javascript" src="static/js/jsrender.js"></script>
<script type="text/javascript">
var mainUrl="";
var caijiUrl="";
var zhyyPath="";
var pageSize = 5;//设置每页显示条数
var total;//数据总条数
var listMapStr;//查询条件
function pagination() {
$("#Pagination").pagination1(total, {
callback : PageCallback,
prev_text : '上一页',
next_text : '下一页',
items_per_page : pageSize,
num_display_entries : 4, //连续分页主体部分显示的分页条目数
num_edge_entries : 1
//两侧显示的首尾分页的条目数
})
}
function PageCallback(index, jq) { //前一个表示您当前点击的那个分页的页数索引值,后一个参数表示装载容器。
LoadData(index,'');
}
function LoadData(pageIndex,groupid) {
var searchTerm = navCategory.navCategoryTermMap.searchTerm;
searchTerm.page=pageIndex+1;
searchTerm.rows=5;
var searchType =navCategory.searchType;
var url ="listSqAsj";
$.ajax({
type : "get",
url : url,
data:searchTerm,
async : false,
dataType : "json",
success : function(data) {
total =data.total;
listMapStr = data.flag;
zhyyPath = data.configMap.zhyyPath;
mainUrl = data.configMap.mainurl;
caijiUrl = data.configMap.caijiUrl;
$("#dList_dListContainer").html($("#pagerAsjPageData").render(data.rows));
if(pageIndex==0){
pagination();
$("#groupList").empty();
getGroupList(data.groupLists,searchType,data.groupidvalue);
}
}
})
}
var ajcheckConfig = { //案件暂定已选数据
checkList: [
{
}
]
};
var ajwaitingConfig = { //案件暂定待选数据
checkList: [
{
'1':['jzajbh','警综案件编号'],
'2':['xckybh','现勘编号'],
'3':['asjfssj_asjfsjssj','案发结束时间'],
'4':['larq','立案日期'],
'5':['slsj','受理时间'],
'6':['zatz_jyqkmc','案件性质'],
'7':['sjcwjzrmby','收缴财物价值'],
'8':['asjfsdd_dzmc','案发地名称'],
'9':['ssjzrmby','损失价值'],
'10':['asjswry_rs','死亡人数'],
'11':['asjssry_rs','受伤人数'],
'12':['zczj_zxsj01','侦查终结时间'],
'13':['asjfsdd_xzqhmc','案发地点区划'],
'14':['zuzdw_zbr_xm','主办人'],
'15':['zuzdw_xbr_xm1','协办人'],
'16':['zuzdw_gajgmc','主侦单位'],
'17':['id','案事件编号'],
'18':['ajmc','案件名称'],
'19':['zcjdmc','侦查阶段'],
'20':['sjzt','业务状态'],
'21':['ajlbdmmc','案件类别'],
'22':['ajxgsj','案件时间'],
'23':['ladw_gajgmc','立案单位'],
'24':['jyaq','简要案情']
}
]
};
//表格表头动态选择列显示
var windowHeight = $(window).height();
$('#set_table_btn').linkbutton({
onClick : function(){
$('#w').dialog({
buttons:[{
//生成表头配置信息,并重新加载表格数据
text:'确定',
handler:function(){
$('#w').dialog('close');
$(document).unbind("scroll");
var searchType = navCategory.searchType;
if(searchType){
navCategory.searchForm(searchType,'','','true');
}
}
},{
text:'取消',
handler:function(){
$('#w').dialog('close');
$(document).unbind("scroll");
}
}],
onClose: function () {
$(document).unbind("scroll");
}
});
$('#w').show().dialog('open');
$("#w").window('center');
var tops = $(document).scrollTop();//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$(document).bind("scroll",function (){$(document).scrollTop(tops); });
}
});
//拖放排序插件 start
$('#selected_ul,#waiting_ul').dragsort({
dragSelector: "div",
dragBetween: true,
//dragEnd: saveOrder,//拖动结束触发函数
placeHolderTemplate: "<li class='placeHolder'><div></div></li>"
});
//拖放排序插件 end
$(function(){
$("#dListContainer").hide();
$("#dGridContainer").show();
$(".datagrid-body").css("overflow-x","scroll");
$(".modelWin").draggable({handle:".modelWinHeader"});
navCategoryFormUtils.initForm();
navCategoryFormUtils.goTop();
$("#xyr_jbxx>div").eq(0).hide();
$("#rybh_jbxx>div").eq(0).hide();
// appUtils.addEventHandler('navCategory','click',navClickHandler);
// navCatViewerUtils.initHCViewer(facetResultMap ,navCategoryTerm);
$("#topFloat").width($("#wrap").width());//顶部查询条件的宽度
$(window).resize(function(){$("#topFloat").width($("#wrap").width());});//顶部查询条件的宽度
$('input[type=radio][name=asjPresentType]').change(function() {
if (this.value == 'DList') {
$("#dListContainer").show();
$("#dGridContainer").hide();
}
else if (this.value == 'EZUIGrid') {
$("#dListContainer").hide();
$("#dGridContainer").show();
}
});
getSession();
/**
* 获取登录信息水印
*/
function getSession() {
var sy="<%=user.getTrueName()%>"+" "+"<%=user.getIdentitycard()%>"+" "+"<%=user.getUnitname()%>"
+" "+"<%=user.getUsername()%>";
watermark.load({ watermark_txt:sy});
}
});
//解析已选待选表头
function getTableSetDom() {
var searchType = navCategory.searchType;
if (searchType) {
var table_header_info;//默认表头数组 目前,因保存查询表头记录,默认表头弃用
var list_config;//待选表头数组
table_header_info = ajcheckConfig['checkList'][0];
list_config = ajwaitingConfig['checkList'][0];
$('#selected_ul,#waiting_ul').empty();
$.ajax({
url: 'queryRybhRecord',
async: false,
type: 'post',
dataType: 'json',
success: function (data) {
var cols = [];
if (searchType == "sqaj") {
cols = data.aj_record.split(",");
var temp1 = [];
var temp = [];
for (var i = 0; i < cols.length; i++) {
var col = cols[i];
var arr = [];
var head = [];
var names = [];
arr = col.split(":");
head[i] = arr[0];
names[i] = arr[1];
temp1.push(names[i]);
var html_li = '<li><div rel="' + names[i] + '" name="' + head[i] + '">' + head[i] + '</div></li>';
$('#selected_ul').append(html_li);
temp = [];
for (var k in list_config) {
temp.push(list_config[k][0] + "#" + list_config[k][1]);
}
}
var diff = array_difference(temp, temp1);
for (var i = 0; i < diff.length; i++) {
var _html_li = '<li><div rel="' + diff[i].split("#")[0] + '" name="' + diff[i].split("#")[1] + '">' + diff[i].split("#")[1] + '</div></li>';
$('#waiting_ul').append(_html_li);
}
}
}
});
}
}
//已选数据和待选数据的差集
function array_difference(temp, temp1) { // 差集 a - b
var clone = temp.slice(0);
for (var i = 0; i < temp1.length; i++) {
var temp0 = temp1[i];
for (var j = 0; j < clone.length; j++) {
if (temp0 === clone[j].split("#")[0]) {
//remove clone[j]
clone.splice(j, 1);//删除元素
}
}
}
return clone;
}
function getGroupList(obj,searchType,groupidvalue){
var str="<input type='hidden' id='groupidvalue' value="+groupidvalue+">";
$.each(obj,function(i,item){
var groupid = item.groupid;
var text = "";
if(groupid.indexOf("ASJFSSJ_ASJFSKSSJ")!=-1){
text="案发日期";
id="ASJFSSJ_ASJFSKSSJ";
}else if(groupid.indexOf("LARQ")!=-1){
text="立案日期";
id="LARQ";
}else if(groupid.indexOf("ZCZJ_ZXSJ01")!=-1){
text="侦查终结时间";
id="ZCZJ_ZXSJ01";
}else if(groupid.indexOf("DJSJ")!=-1){
text="登记时间";
id="DJSJ";
}else if(groupid.indexOf("ASJFSDD_XZQH")!=-1) {
text = "案发地点";
id = "ASJFSDD_XZQH";
}else if(groupid.indexOf("AJLBDM")!=-1) {
text = "案件类别";
id = "AJLBDM";
}else if(groupid.indexOf("LADW_GAJG")!=-1) {
text = "立案单位";
id = "LADW_GAJG";
}else if(groupid.indexOf("ASJFSDD_SACS_SACSLB")!=-1){
text="涉案场所";
id="ASJFSDD_SACS_SACSLB";
}else if(groupid.indexOf("ASJFSDD_KJBW_KJBWLB")!=-1){
text="空间部位";
id="ASJFSDD_KJBW_KJBWLB";
}else if(groupid.indexOf("JSSD_JSSD")!=-1){
text="解锁手段";
id="JSSD_JSSD";
}else if(groupid.indexOf("XPSD_XPSD")!=-1){
text="胁迫手段";
id="XPSD_XPSD";
}else if(groupid.indexOf("SBSD_SBSD")!=-1){
text="施暴手段";
id="SBSD_SBSD";
}else if(groupid.indexOf("QQSD_QQSD")!=-1){
text="窃取手段";
id="QQSD_QQSD";
}else if(groupid.indexOf("ZAZBSD_ZAZBSD")!=-1){
text="作案准备手段";
id="ZAZBSD_ZAZBSD";
}else if(groupid.indexOf("CSRQ_RQGZXX")!=-1){
text = "出生日期";
id="CSRQ_RQGZXX";
}else if(groupid.indexOf("JGDM_XZQH")!=-1){
text = "籍贯";
id="JGDM";
}else if(groupid.indexOf("XZZ_XZQH")!=-1){
text="现住址区划";
id="XZZ_XZQH";
}else if(groupid.indexOf("CSD_XZQH")!=-1){
text="出生地区划";
id="CSD_XZQH";
}else if(groupid.indexOf("HJDZ_XZQH")!=-1){
text="户籍区划";
id="HJDZ_XZQH";
}else if(groupid.indexOf("XXDJDW_GAJG")!=-1){
text="登记单位";
id="XXDJDW_GAJG";
}else if(groupid.indexOf("ZCZJDW_GAJG")!=-1){
text="破案单位";
id="ZCZJDW_GAJG";
}else if(groupid.indexOf("DJSJ")!=-1){
text="登记时间";
id="DJSJ";
}else if(groupid.indexOf("ZHDW")!=-1){
text="抓获单位";
id="ZHDW";
}else if(groupid.indexOf("ZHRQ")!=-1){
text = "抓获日期";
id="ZHRQ";
}else if(groupid=="ZARFX_RSXX"){
text = "作案人数";
groupid = "ZARFX_RS";
id="ZARFX_RS";
}else if(groupid=="RYDNABH"){
text = "人员DNA";
groupid = "RYDNABH";
id="RYDNABH";
}else if(groupid=="SZZWBH"){
text = "人员指纹";
groupid = "SZZWBH";
id="SZZWBH";
}else{
text =$("[type='checkbox'][id='"+searchType.toUpperCase()+"_"+groupid+"']").parent().find("label").text();
text=text.substring(0,text.length-2);
id=groupid;
}
str+="<div class=\"newNav\" id=\""+id+"\">";
str+="<div class=\"newNavTop\">"+text+"分类</div>";//分类显示
str+="<div class=\"newNavbody\">";
str+="<div class=\"newLayoutDiv pull-clear\">";
var daohan = "";
if(item.daohan){
daohan = item.daohan;;
str+=item.daohan+"</div>";
}else{
str+="<a onclick=\"navCategory.searchForm('"+searchType+"');\" class=\"newNavA pull-left\">"+text+"导航</a>"; //导航显示
str+="<a onclick=\"navCategory.goSlide(this)\" class=\"newNavA newNavBtn newMore newNavTools pull-right\">更多</a>";
str+="<div class=\"fillColorCheckBox pull-right\"></div></div>";
}
str+="<div class=\"newNavInfo\" isshowed=\"false\"><div class=\"newClear\"></div>";
var num=item.groupList.length-1;
$.each(item.groupList,function(i,item){
//导航栏选择解析
var groupvalue = item.groupValue;
//十指指纹编号和人员DNA编号分类(已采集,未采集)
if (groupid == "SZZWBH" || groupid == 'RYDNABH') {
if (groupvalue == null || groupvalue == 'null') {
groupvalue = "未采集";
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
groupvalue = "已采集";
if(i==num){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + num + ")</a>";
}
}
}else{
if (groupvalue == null || groupvalue == 'null') {
groupvalue = "未知";
}
//公安机关机构代码解析,共四级,
if(groupid.indexOf("GAJGJGDM")!=-1) {
if(groupid.indexOf("GAJGJGDM_FIRST")>0){
if (groupvalue == "未知") {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST", "GAJGMC") + "','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
} else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST","GAJGJGDM_SECOND") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("GAJGJGDM_SECOND")>0){
if(item.groupid.length==12){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_SECOND","GAJGMC") + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmSecondLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_SECOND","GAJGJGDM_THIRD") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("GAJGJGDM_THIRD")>0){
if(item.groupid.length==12){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_THIRD","GAJGMC") + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmThirdLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_THIRD","GAJGJGDM_FOURTH") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("GAJGJGDM_FOURTH")>0){
if(item.groupid.length==12){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFourthLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("GAJGMC")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("AJLBDM")!=-1){
if(groupid.indexOf("AJLBDM_FIRST")!=-1){
if(groupvalue=="未知"){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmFirstLevel('" + searchType + "','AJLBDMMC','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmFirstLevel('" + searchType + "','AJLBDM_SECOND','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("AJLBDM_SECOND")!=-1){
if(item.groupid.length==8){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmmcLevel('" + searchType + "','AJLBDMMC','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmSecondLevel('" + searchType + "','AJLBDM_THIRD','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("AJLBDM_THIRD")!=-1){
if(item.groupid.length==8){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmmcLevel('" + searchType + "','AJLBDMMC','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmThirdLevel('" + searchType + "','AJLBDMMC','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("AJLBDMMC")!=-1){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getAjlbdmmcLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + groupid + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("XZQH")>0){
if(groupid.indexOf("XZQHDM_PROVINCE")>0){
if(groupvalue=="未知"){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getFirstLevel('" + searchType + "','"+groupid.replace("XZQHDM_PROVINCE","XZQHMC")+"','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getFirstLevel('" + searchType + "','"+groupid.replace("XZQHDM_PROVINCE","XZQHDM_CITY")+"','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("XZQHDM_CITY")>0){
if(item.groupid){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSecondLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getThirdLevel('" + searchType + "','"+groupid.replace("XZQHDM_CITY","XZQHMC")+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("XZQHMC")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getThirdLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + groupid + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("SACS")!=-1 || groupid.indexOf("KJBW")!=-1 || groupid.indexOf("JSSD")!=-1 || groupid.indexOf("XPSD")!=-1 || groupid.indexOf("SBSD")!=-1 || groupid.indexOf("QQSD")!=-1){
if(groupid.indexOf("DM_FIRST")>0){
if(groupvalue=="未知"){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getCodeFirstLevel('" + searchType + "','"+groupid.replace("DM_FIRST","MC")+"','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else {
if(item.groupid){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getCodeFirstLevel('" + searchType + "','" + groupid + "','" + item.groupValue + "','"+ item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getCodeLevel('" + searchType + "','"+groupid.replace("DM_FIRST","MC")+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}
}else if(groupid.indexOf("MC")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("ZAZBSD")!=-1){
if(groupid.indexOf("DM_FIRST")>0){
if(groupvalue=="未知"){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getZazbsdFirstLevel('" + searchType + "','"+groupid.replace("DM_FIRST","MC")+"','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getZazbsdFirstLevel('" + searchType + "','"+groupid.replace("DM_FIRST","DM_SECOND")+"','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("DM_SECOND")>0){
if(item.groupid){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getZazbsdSecondLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getZazbsdLevel('" + searchType + "','"+groupid.replace("DM_SECOND","MC")+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("MC")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getZazbsdLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + groupid + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("YEAR")>0){
if(groupvalue=="未知"){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getMonth('" + searchType + "','"+groupid.replace("YEAR","DATE")+"','" + groupvalue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getMonth('" + searchType + "','"+groupid.replace("YEAR","MONTH")+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}else if(groupid.indexOf("MONTH")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getDay('" + searchType + "','"+groupid.replace("MONTH","DATE")+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else if(groupid.indexOf("DATE")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.searchFormByDate('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
}
});
str+=" </div> </div> </div>";
});
$("#groupList").html(str);
}
//导出功能
function daochu(){
if(!total){
layer.alert("请先查询!");
}else{
var selectedCols="";
var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){
selected_ul.each(function(index){
if(index==selected_ul.length-1){
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel');
}else{
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
}
});
var searchType = navCategory.searchType;
var url = "";
var sorlInstance = "";
if(searchType == 'sqaj'){
url = "createFileSqAsj";
sorlInstance = "TB_ST_ASJ";
}
var checkIds = [];
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id);
});
}
if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!");
}
}
}
</script>
<script id="pagerAsjPageData" type="text/x-jsrender">
{{for #data}}
<div class="currResult">
<p class="currResultP">
<span class="navSpan rtitleSpan noLinkSpan">案事件编号:</span>
<span class="navSpan noLinkSpan autoWidthSpan isLongSpan">
{{:id}}<img src="static/images/asjxx_ychy.png" width=20 height=20 title="用采合一" onclick="layerxz_tips(this,'{{:id}}','{{:zcjddm}}','{{:ajlbdm}}')" />
</span>
</p>
<p class="currResultP">
<span class="navSpan rtitleSpan noLinkSpan">警综案件编号:</span>
<span class="navSpan noLinkSpan singleColumns">{{:jzajbh}}</span>
<span class="navSpan rtitleSpan noLinkSpan">案件名称:</span>
<span class="navSpan noLinkSpan singleColumns">{{:ajmc}}</span>
<span class="navSpan rtitleSpan noLinkSpan">案件类别:</span>
<span class="navSpan noLinkSpan singleColumns">{{:ajlbdmmc}}</span>
<span class="navSpan rtitleSpan noLinkSpan">案件性质:</span>
<span class="navSpan noLinkSpan singleColumns" title="">{{:zatz_jyqkmc}}</span>
</p>
<p class="currResultP">
<span class="navSpan rtitleSpan noLinkSpan">案件相关时间:</span>
<span class="navSpan noLinkSpan singleColumns">{{:asjfssj_asjfskssj}}</span>
<span class="navSpan rtitleSpan noLinkSpan">现勘编号:</span>
<span id="d_1526874822615.5374_span" class="navSpan noLinkSpan singleColumns">{{:xckybh}}</span>
<span class="navSpan rtitleSpan noLinkSpan">立案日期:</span>
<span id="d_1526874822624.6008_span" class="navSpan noLinkSpan singleColumns">{{:larq}}</span>
<span class="navSpan rtitleSpan noLinkSpan">案发地:</span>
<span id="d_1526874822552.4888_span" class="navSpan noLinkSpan singleColumns">{{:asjfsdd_xzqhmc}}{{:asjfsdd_dzmc}}</span>
</p>
<p class="currResultP">
<span class="navSpan rtitleSpan noLinkSpan">损失价值:</span>
<span id="d_1526874822584.436_span" class="navSpan noLinkSpan singleColumns">{{:ssjzrmby}}</span>
<span class="navSpan rtitleSpan noLinkSpan">收缴财物价值:</span>
<span class="navSpan noLinkSpan singleColumns" title="">{{:sjcwjzrmby}}</span>
<span class="navSpan rtitleSpan noLinkSpan">死亡人数:</span>
<span class="navSpan noLinkSpan singleColumns" title="">{{:asjswry_rs}}</span>
<span class="navSpan rtitleSpan noLinkSpan">受伤人数:</span>
<span class="navSpan noLinkSpan singleColumns" title="">{{:asjssry_rs}}</span>
</p>
<p class="currResultP">
<span class="navSpan rtitleSpan noLinkSpan">侦查阶段:</span>
<span class="navSpan noLinkSpan singleColumns">{{:zcjdmc}}</span>
<span class="navSpan rtitleSpan noLinkSpan">简要案情:</span>
<span class="navSpan noLinkSpan autoWidthSpan isLongSpan">{{:jyaq}}</span>
</p>
</div>
{{/for}}
</script>
<div class="backToTop" title="返回顶部" style="display: none;"><img src="static/rasc/images/gotop.png"></div>
</div>
</body>
</html>
\ No newline at end of file
@charset "UTF-8";
/*css 初始化 */
html,
body,
ul,
li,
ol,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
legend,
img {
margin: 0;
padding: 0;
font:12px/150% Arial, Verdana, "\5b8b\4f53";
font-size:12px;
}
fieldset,
img,
input,
button {
border: none;
padding: 0;
margin: 0;
outline-style: none;
}
/*清除边框外发光 */
ul,
ol {
list-style: none;
/* 清除左侧小圆点标注 */
}
input {
padding-top: 0;
padding-bottom: 0;
font-family: "SimSun", "宋体";
}
select,
input {
vertical-align: middle;
}
select,
input,
textarea {
font-size: 12px;
margin: 0;
}
textarea {
resize: none;
/*防止拖动*/
}
img {
border: 0;
vertical-align: middle;
/* 去掉图片底部默认的3像素空白缝隙*/
}
table {
border-collapse: collapse;
/* 边框合并 */
}
body {
font: 12px/150% Arial, Verdana, "\5b8b\4f53";
/* 宋体 */
color: #666;
background: #fff
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
/* 清除浮动 */
}
.clearfix:after {
clear: both;
/* 清除浮动 */
}
.clearfix {
*zoom: 1;
/*IE/7/6*/
}
a {
color: #666;
text-decoration: none;
/* 清除下划线 */
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-decoration: none;
font-weight: normal;
font-size: 100%;
}
s,
i,
em {
font-style: normal;
text-decoration: none;
}
.col-red {
color: #C81623!important;
}
/*公共类*/
.w {
width: 1210px;
margin: 0 auto;
/*版心 提取 */
}
.fl {
float: left
}
.fr {
float: right
}
.al {
text-align: left
}
.ac {
text-align: center
}
.ar {
text-align: right
}
.hide {
display: none
}
.show{
display: block;
}
.sp_table td.ar{
color:#0066cc;
}
/*滚动条*/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar
{
width: 8px; /*滚动条宽度*/
height: 8px; /*滚动条高度*/
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px; /*滚动条的背景区域的圆角*/
background-color: rgba(0,0,0,0.2);/*滚动条的背景颜色*/
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
border-radius: 10px; /*滚动条的圆角*/
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: rgba(5, 111, 111,0.7);; /*滚动条的背景颜色*/
}
/****/
html,body{height:100%;width:100%;overflow:hidden;}
.login-body{background: url(../../images/bgn.jpg) no-repeat;background-size: cover;}
.login-header{width:100%;height:50px;line-height: 50px;}
.login-title{text-align: center;/* background: url(../images/title-bg.png) no-repeat center; width: 1264px;*/background-size: 62%;margin:19px auto;font-size: 28px; color: #0df4ff;font-weight: 600;}
.left-globe,.right-login{float: left;width:50%;height:100%;}
.content{width:100%;height:calc(100% - 70px);display: table;}
.title{font-size: 22px; line-height: 40px;text-align: left; margin-top: 19px;margin-left: 59px;color: #0df4ff;font-weight: 600;/* -webkit-animation: slideShine 4s linear infinite;animation: slideShine 4s linear infinite;color:#D6B436; *//* background: #0df4ff -webkit-linear-gradient(left,#de1a20,#c746ba 50%,#e0b516 90%,#f31f25) no-repeat 0 0; background-size:50% 100%; -webkit-background-clip: text;-webkit-text-fill-color: transparent; */}
.policeBadge{position: absolute;top: 234px;left: 75%;margin-left: -48.5px;height:102px;}
.title-line{height:100px;position: absolute;top:52px;left:200px;}
.globe{width:50%;animation: rotateArround 3.5s linear infinite;position: absolute;top:138px;}
.left-globe{text-align: center;position: relative;}
.right-login{position:relative;}
.login-wrap{background:url(../../images/wrap.png); width: 310px;height: 320px;background-size: cover;margin: 0 auto;position: absolute;top:50%;margin-top:-160px;left:50%;margin-left:-155px;}
.namel{height:58px;line-height: 58px;text-align: center;font-size: 16px;color:#15e9ff;font-weight: 600;}
.password,.name{padding: 0 10px 0 36px;color:#fff;width:171px;height:42px;background:url(../../images/input.png);background-size: cover;}
.tc{text-align: center;margin:19px 0;position: relative;}
.password::-webkit-input-placeholder,.name::-webkit-input-placeholder{
color: #fff;
}
.username-icon{background: url(../../images/username.png) no-repeat;}
.password-icon{background: url(../../images/password.png) no-repeat;}
.zdy-fa{position: absolute;left:50%;margin-left:-100px;color:#0df4ff;font-size: 18px;top:10px;display: inline-block;width:36px;height:36px;line-height: 36px;}
.btn-info {
color: #fff;
background-color: #5bc0de;
border-color: #46b8da;
width:217px;
}
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.btn-info:hover {
color: #fff;
background-color: #31b0d5;
border-color: #269abc;
}
.lines{width:100%;height:100%;position: relative;}
.dib{display: inline-block;position: absolute;}
@keyframes rotateArround {
0% {transform: rotateZ(0deg);}
100% {transform: rotateZ(360deg);}
}
@-webkit-keyframes slideShine {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 100%;
}
}
\ No newline at end of file
/**
* 设置未来(全局)的AJAX请求默认选项
* 主要设置了AJAX请求遇到Session过期的情况
*/
$.ajaxSetup({
type: 'POST',
complete: function(xhr,status) {
var sessionStatus = xhr.getResponseHeader('sessionstatus');
if(sessionStatus == 'timeout') {
//var top = getTopWinow();
//var tempwindow=window.open('_blank');
var yes = confirm('由于您长时间没有操作, session已过期, 请重新登录.');
if (yes) {
//tempwindow.location.href = '/relogin.jsp';
openWin( '/xzxt-solr/relogin.jsp','用户登录', '8.5','7.5');
}
}
}
});
/**
* 在页面中任何嵌套层次的窗口中获取顶层窗口
* @return 当前页面的顶层窗口对象
*/
function getTopWinow(){
var p = window;
while(p != p.parent){
p = p.parent;
}
return p;
}
//name 弹窗名字
//width 弹窗宽度(比例)
//height 弹窗高度(比例)
var myWindow;
function openWin(url, name, width, height) {
var w_percent = width ? width : 9;//如果参数未传,则取9
var h_percent = height ? height : 8;
var widths = (window.screen.availWidth) * w_percent / 10;
var heights = (window.screen.availHeight) * h_percent / 10;
var iLeft = (window.screen.availWidth - widths) / 2;
var iTop = (window.screen.availHeight - heights) / 2;
//判断是否为IE
var b_version=navigator.appVersion;
var version=b_version.split(";");
if(version[1]){
var trim_Version=version[1].replace(/[ ]/g,"");
}
if(trim_Version == 'MSIE9.0' || trim_Version == 'MSIE10.0'|| trim_Version == 'WOW64' || trim_Version == 'MSIE7.0'){//IE浏览器,直接打开
myWindow = window.open(url, name, 'scrollbars=yes,width=' + widths + ',height=' + heights + ',left=' + iLeft + ',top=' + iTop + '');
myWindow.focus();
}else{//非IE,判断窗口是否存在,若存在,则关闭当前窗口,重新打开
if(myWindow){
myWindow.close();
myWindow = null;
}
myWindow = window.open(url, name, 'scrollbars=yes,width=' + widths + ',height=' + heights + ',left=' + iLeft + ',top=' + iTop + '');
}
//弹窗名字重命名ss
var title = name;
setTimeout(function () {
myWindow.document.title = title;
}, 1000);
}
\ No newline at end of file
$(function(){
resize();
$(window).resize(function(){
resize();
})
})
window.onload=function (){
}
function resize(){
/*$(".left-globe").css({"line-height":$(".left-globe").height()+"px"});*/
}
......@@ -171,6 +171,10 @@ var navCategory = {
presentType = $('input[type=radio][name="asjPresentType"]:checked ').val();
url = "listTbStAsj";
sorlInstance = "TB_ST_ASJ";
}else if(searchType=='sqaj'){
presentType = $('input[type=radio][name="asjPresentType"]:checked ').val();
url = "listSqAsj";
sorlInstance = "TB_ST_ASJ";
}else if(searchType=='ry'){
presentType = $('input[type=radio][name="ryPresentType"]:checked ').val();
url = "listTbStRy";
......@@ -281,6 +285,8 @@ var navCategory = {
selected_ul.each(function (index){
if(searchType=='aj' && $(this).attr('rel')=='id'){
s += "{field:'" + $(this).attr('rel') + "',title:'" + $(this).attr('name') + "',width:180,sortable:true,formatter:navCategory.ajychy},";
}else if(searchType=='sqaj' && $(this).attr('rel')=='id'){
s += "{field:'" + $(this).attr('rel') + "',title:'" + $(this).attr('name') + "',width:180,sortable:true,formatter:navCategory.ajychy},";
}else if(searchType=='xyr' && $(this).attr('rel')=='asjbh'){
s += "{field:'" + $(this).attr('rel') + "',title:'" + $(this).attr('name') + "',width:180,sortable:true,formatter:navCategory.ajychy_xyr},";
}else if((searchType=='xyr' || searchType=='rybh') && $(this).attr('rel')=='cyzj_zjhm'){
......
......@@ -240,6 +240,7 @@
</div>
<div class="right_box ssmz_right">
<h4>当前资源常住人口信息 <span class="red">3</span> 条结果</h4>
......@@ -373,6 +374,8 @@
<script type="text/javascript" src="static/js/fsfzfenye.js"></script>
<!--引入分页js-->
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
</body>
</html>
......
......@@ -48,6 +48,7 @@
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......@@ -66,7 +67,7 @@
<img src="static/rasc/images/szrycx.png" />
</div>
<div class="container">
<div id="wrap" class="">
<%-- <div id="wrap" class="">--%>
<div id="topFloat" style="top: 77px;">
<div id="searchPerviewer" class="searchPerviewer" style="display: none;">
<ul class="pull-clear">
......
......@@ -48,6 +48,7 @@
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......@@ -64,7 +65,7 @@
<img src="static/rasc/images/title-szrycxcx.png" />
</div>
<div class="container">
<div id="wrap" class="">
<%--<div id="wrap" class="">--%>
<div id="topFloat" style="top: 77px;">
<div id="searchPerviewer" class="searchPerviewer" style="display: none;">
<ul class="pull-clear">
......
......@@ -48,6 +48,7 @@
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......
......@@ -48,6 +48,7 @@
<script type="text/javascript" src="static/rasc/js/navCategory_zj.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/rasc/js/ychy.js"></script>
<script type="text/javascript" src="static/js/ajax.js"></script>
<!--水印-->
<script src="static/js/watermark.js"></script>
<style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment