Commit 51277078 authored by 徐州's avatar 徐州

新增人防到账部分判断

parent 27a722f8
......@@ -91,10 +91,16 @@
<%-- 页面筛选查询 --%>
function search_rfxm(){
var queryParams = {
"rfxm.xmdm": $("#xmdm").val(),
"rfxm.ghxkzbh": $("#ghxkzbh").val(),
"rfxm.ghxmbh": $("#ghxmbh").val(),
"rfxm.xxylbbh": $("#xxylbbh").val()
"rfxm.xkzh": $("#xkzh").val(),
"rfxm.zslxdbh": $("#zslxdbh").val(),
"rfxm.xxylbbh": $("#xxylbbh").val(),
"rfxm.xmbh": $("#xmbh").val(),
"rfxm.jsdwmc": $("#jsdwmc").val(),
"rfxm.gcxmmc": $("#gcxmmc").val(),
"rfxm.paymentLink": $("#paymentLink").val(),
"rfxm.isRfyz": $("#isRfyz").val(),
"rfxm.mjyj": $("#mjyj").val()
};
console.info(queryParams);
$('#pagination').datagrid('options').queryParams = queryParams;
......@@ -169,10 +175,15 @@
title:'项目管理列表',
url:'rfxmQuery.action',
queryParams:{
"rfxm.ghxmbh": $("#ghxmbh").val(),
"rfxm.xkzh": $("#xkzh").val(),
"rfxm.zslxdbh": $("#zslxdbh").val(),
"rfxm.xxylbbh": $("#xxylbbh").val(),
"rfxm.xmdm": $("#xmdm").val(),
"rfxm.ghxkzbh": $("#ghxkzbh").val(),
"rfxm.xmbh": $("#xmbh").val(),
"rfxm.jsdwmc": $("#jsdwmc").val(),
"rfxm.gcxmmc": $("#gcxmmc").val(),
"rfxm.paymentLink": $("#paymentLink").val(),
"rfxm.isRfyz": $("#isRfyz").val(),
"rfxm.mjyj": $("#mjyj").val()
},
frozenColumns:[[
// {field:'id',checkbox:true}
......@@ -228,21 +239,7 @@
{ field: 'slbh', title: '缴款通知书编号', width: 150, align: 'center' },
{ field: 'zslxdbh', title: '缴款凭证编号', width: 150, align: 'center' }
]],
toolbar:[{
id:'btnadd',
text:'添加',
iconCls:'icon-add',
handler:function(){
addNew();
}
}/*,{
id:'btnadd',
text:'关联添加',
iconCls:'icon-add',
handler:function(){
addLinkedNew();
}
}*/]
}));
});
......@@ -257,15 +254,15 @@
<table width="100%">
<tr>
<th width="15%">规划许可证编号</th>
<td width="35%"><input name="rfxm.ghxkzbh" id="ghxkzbh" value="" type="text"></td>
<td width="35%"><input name="rfxm.xkzh" id="xkzh" value="" type="text"></td>
<th width="15%">缴费凭证编号</th>
<td width="35%"><input name="rfxm.jfpzbh" id="jfpzbh" value="" type="text"></td>
<td width="35%"><input name="rfxm.zslxdbh" id="zslxdbh" value="" type="text"></td>
</tr>
<tr>
<th width="15%">信息表编号</th>
<td width="35%"><input name="rfxm.xxylbbh" id="xxylbbh" value="" type="text"></td>
<th width="15%">规划项目编号</th>
<td width="35%"><input name="rfxm.ghxmbh" id="ghxmbh" value="" type="text"></td>
<td width="35%"><input name="rfxm.xmbh" id="xmbh" value="" type="text"></td>
</tr>
<tr>
<th width="15%">建设单位名称</th>
......@@ -276,28 +273,26 @@
<tr>
<th width="15%">缴费环节</th>
<td width="35%">
<select name="jfhj" id="jfhj">
<select name="paymentLink" id="paymentLink">
<option value="">请选择</option>
<option value="0"></option>
<option value="1">施工许可前</option>
<option value="3">30日</option>
</select>
</td>
<th width="15%">人防费是否用章</th>
<td width="35%">
<select name="hczt" id="hczt">
<select name="isRfyz" id="isRfyz">
<option value="">请选择</option>
<option value="0"></option>
<option value="1"></option>
<option value="2"></option>
<option value="0"></option>
</select>
</td>
</tr>
<tr>
<th width="15%">项目来源</th>
<td width="35%">
<select id="mjyj" name="xmxxb.mjyj" value="${xmxxb.mjyj}" >
<option value="000"></option>
<select id="mjyj" name="mjyj" >
<option value=""></option>
<option value="001">规划(正常)</option>
<option value="002">房产测绘(超建面积)</option>
<option value="003">交易登记</option>
......
......@@ -203,14 +203,7 @@
handler:function(){
addNew4Sfxx("${rfxm.id}");
}
}/*,{
id:'btnadd',
text:'关联添加',
iconCls:'icon-add',
handler:function(){
addLinkedNew();
}
}*/]
}]
}));
});
</script>
......@@ -222,6 +215,7 @@
<div class="inner12px">
<div class="cell" style="<%--width: ${tableWidth}--%>">
<table>
<input id="ids" type="hidden" value="${rfxm.id}">
<tr>
<td width="15%">项目信息</td>
</tr>
......
......@@ -268,7 +268,12 @@ public class PaymentItemHisAction extends BaseAction
rfxm.setPaymentLink(model.getXmxxb().getPaymentLink());
rfxm.setXmdm(model.getXmxxb().getLxpw());
rfxm.setXmbh(model.getXmxxb().getXmbh());
rfxm.setMjyj(model.getXmxxb().getMjyj());
rfxm.setIsSbj(!model.getXmxxb().getZsfw().contains("非市本级") ? 1 : 0);
rfxm.setIsRfyz(0);
rfxm.setIsTqdy(0);
rfxm.setIsSl(0);
rfxmService.save(rfxm);
}
}
......
......@@ -2,50 +2,38 @@
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap>
<!-- 根据搜索条件查询 -->
<select id="findRfxmByMap">
from Rfxm t where t.delFlag = 0
<isNotEmpty property="ids">
<![CDATA[and t.id in (:ids)]]>
</isNotEmpty>
<isNotEmpty property="accountName">
<![CDATA[and t.accountName like :accountName]]>
</isNotEmpty>
<isNotEmpty property="accountDetail">
<![CDATA[and t.accountDetail like :accountDetail]]>
</isNotEmpty>
<isNotEmpty property="accountStatus">
<![CDATA[and t.accountStatus = :accountStatus]]>
</isNotEmpty>
<isNotEmpty property="jktzsbh">
<![CDATA[and t.jktzsbh like :jktzsbh]]>
<isNotEmpty property="xkzh">
<![CDATA[and t.xkzh like :xkzh]]>
</isNotEmpty>
<isNotEmpty property="xmdm">
<![CDATA[and t.xmdm like :xmdm]]>
<isNotEmpty property="zslxdbh">
<![CDATA[and t.zslxdbh like :zslxdbh]]>
</isNotEmpty>
<isNotEmpty property="dsdw">
<![CDATA[and t.dsdw = :dsdw]]>
</isNotEmpty>
<isNotEmpty property="dsdwcj">
<![CDATA[and t.dsdwcj = :dsdwcj]]>
<isNotEmpty property="xxylbbh">
<![CDATA[and t.xxylbbh like :xxylbbh]]>
</isNotEmpty>
<isNotEmpty property="sfxmmc">
<![CDATA[and t.sfxmmc = :sfxmmc]]>
<isNotEmpty property="xmbh">
<![CDATA[and t.xmbh like :xmbh]]>
</isNotEmpty>
<isNotEmpty property="shbm">
<![CDATA[and t.shbm = :shbm]]>
<isNotEmpty property="jsdwmc">
<![CDATA[and t.jsdwmc like :jsdwmc]]>
</isNotEmpty>
<isNotEmpty property="ghxkzbh">
<![CDATA[and t.ghxkzbh like :ghxkzbh]]>
<isNotEmpty property="gcxmmc">
<![CDATA[and t.gcxmmc like :gcxmmc]]>
</isNotEmpty>
<isNotEmpty property="ghxmbh">
<![CDATA[and t.ghxmbh = :ghxmbh]]>
<isNotEmpty property="paymentLink">
<![CDATA[and t.paymentLink = :paymentLink]]>
</isNotEmpty>
<isNotEmpty property="deptId">
<![CDATA[and t.deptId = :deptId]]>
<isNotEmpty property="isRfyz">
<![CDATA[and t.isRfyz = :isRfyz]]>
</isNotEmpty>
<isNotEmpty property="abc">
<![CDATA[and t.starts in ('0','2')]]>
<isNotEmpty property="mjyj">
<![CDATA[and t.mjyj = :mjyj]]>
</isNotEmpty>
order by t.createTime desc
</select>
......
......@@ -264,6 +264,19 @@ public class Rfxm extends BaseModel
*/
private String xmbh;
/**
* 项目来源
*/
private String mjyj;
public String getMjyj() {
return mjyj;
}
public void setMjyj(String mjyj) {
this.mjyj = mjyj;
}
public String getXmbh() {
return xmbh;
}
......
......@@ -39,6 +39,7 @@ import com.jshx.zzhqfdz.service.ZzhqfdzService;
import com.jshx.rfxm.entity.Rfxm;
import com.jshx.rfxm.entity.RfxmSfxx;
import com.jshx.rfxm.service.*;
import com.neusoft.egov.utils.TextUtils;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
......@@ -1280,29 +1281,46 @@ public class RfxmAction extends BaseAction
if(null != rfxm){
//设置查询条件,开发人员可以在此增加过滤条件
/*
* 子账号相关已转移到jktzs对应实体类
if ((null != rfxm.getAccountName()) && (0 < rfxm.getAccountName().trim().length())){
paraMap.put("accountName", "%" + rfxm.getAccountName().trim() + "%");
/**
* "rfxm.xkzh": $("#xkzh").val(),
* "rfxm.zslxdbh": $("#zslxdbh").val(),
* "rfxm.xxylbbh": $("#xxylbbh").val(),
* "rfxm.xmbh": $("#xmbh").val(),
* "rfxm.jsdwmc": $("#jsdwmc").val(),
* "rfxm.gcxmmc": $("#gcxmmc").val(),
* "rfxm.paymentLink": $("#paymentLink").val(),
* "rfxm.isRfyz": $("#isRfyz").val(),
* "rfxm.mjyj": $("#mjyj").val()
*/
if (!TextUtils.isEmpty(rfxm.getXkzh())){
paraMap.put("xkzh", "%" + rfxm.getXkzh().trim() + "%");
}
if ((null != rfxm.getAccountDetail()) && (0 < rfxm.getAccountDetail().trim().length())){
paraMap.put("accountDetail", "%" + rfxm.getAccountDetail().trim() + "%");
if (!TextUtils.isEmpty(rfxm.getZslxdbh())){
paraMap.put("zslxdbh", "%" + rfxm.getZslxdbh().trim() + "%");
}
if ((null != rfxm.getAccountStatus()) && (0 < rfxm.getAccountStatus().trim().length())){
paraMap.put("accountStatus", "%" + rfxm.getAccountStatus().trim() + "%");
if (!TextUtils.isEmpty(rfxm.getXxylbbh())){
paraMap.put("xxylbbh", "%" + rfxm.getXxylbbh().trim() + "%");
}
if ((null != rfxm.getJktzsbh()) && (0 < rfxm.getJktzsbh().trim().length())){
paraMap.put("jktzsbh", "%" + rfxm.getJktzsbh().trim() + "%");
}*/
if ((null != rfxm.getXmdm()) && (0 < rfxm.getXmdm().trim().length())){
paraMap.put("xmdm", "%" + rfxm.getXmdm().trim() + "%");
if (!TextUtils.isEmpty(rfxm.getXmbh())){
paraMap.put("xmbh", "%" + rfxm.getXmbh().trim() + "%");
}
if ((null != rfxm.getGhxmbh()) && (0 < rfxm.getGhxmbh().trim().length())){
paraMap.put("ghxmbh", rfxm.getGhxmbh().trim());
if (!TextUtils.isEmpty(rfxm.getJsdwmc())){
paraMap.put("jsdwmc", "%" + rfxm.getJsdwmc().trim() + "%");
}
if ((null != rfxm.getGhxkzbh()) && (0 < rfxm.getGhxkzbh().trim().length())){
paraMap.put("ghxkzbh", "%"+ ghxkzbhTranslate(rfxm.getGhxkzbh().trim(), 1) +"%");
if (!TextUtils.isEmpty(rfxm.getGcxmmc())){
paraMap.put("gcxmmc", "%" + rfxm.getGcxmmc().trim() + "%");
}
if (rfxm.getPaymentLink() != null && rfxm.getPaymentLink() > 0){
paraMap.put("paymentLink", rfxm.getPaymentLink());
}
if (rfxm.getIsRfyz() != null){
paraMap.put("isRfyz", rfxm.getIsRfyz());
}
if (!TextUtils.isEmpty(rfxm.getMjyj())){
paraMap.put("mjyj", rfxm.getMjyj().trim());
}
}
JsonConfig config = new JsonConfig();
config.registerJsonValueProcessor(Date.class,new DateJsonValueProcessor());
......
......@@ -3,6 +3,6 @@ package com.neusoft.egov.utils;
public class TextUtils {
public static boolean isEmpty(String s) {
return s == null || s.length() == 0;
return s == null || s.length() == 0 || s.trim().length() == 0;
}
}
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