`

newValue

阅读更多
public List getAllList(String xm, String cjrzh, String area, String hszt,String isydk,
int startnum, int endnum) {
log.debug("finding JdhdTemp instance by example");
String conditionone_temp = "and u.jd_id='" + area + "'";
String conditiontwo_temp = "and u.yxzt='" + hszt + "'";
String conditionthree_temp = "and u.ydk='" + isydk + "'";
String conditionone = (area.equals("")) ? "" : conditionone_temp;
String conditiontwo = (hszt.equals("")) ? "" : conditiontwo_temp;
String conditionthree = (isydk.equals("")) ? "" : conditionthree_temp;
String hql = "SELECT   *   FROM  ( SELECT  A. * , ROWNUM RN  FROM  ( "
+ "select u.xm,u.cjrz_id,u.sfz,u.jd,u.sq,u.yxzt from jdhd_temp u Where  u.xm like '%'||'"
+ xm + "'||'%' and u.cjrz_id like '%'||'" + cjrzh + "'||'%' "
+ conditionone + " " + conditiontwo+ " "+conditionthree
+ " order by u.cjrz_id desc" + " ) A  WHERE  ROWNUM  <=   "
+ endnum + " ) WHERE  RN  >=   " + startnum;
JdbcTemplate jdbc = new JdbcTemplate(dataSource);
List catList = new ArrayList();
catList = jdbc.queryForList(hql);
log.debug("find by example successful, result size: " + catList.size());
return catList;

}


2.
1.ValueListHandlerHelper vlHandlerHelper = (ValueListHandlerHelper) getBean("vlUnsubmitJdhdHelper");
ValueListInfo info = vlHandlerHelper.getValueListInfo(request);
info.getFilters().putAll(
ValueListRequestUtil.getRequestParameterMap(request));

if (cjrzh != null && !cjrzh.trim().equals("")) {

info.getFilters().remove("cjrzh");

} else {
info.getFilters().remove("cjrzh");

}

conditionHelper(info, "xm", xm);
conditionHelper(info, "cjrzh", cjrzh);
conditionHelper(info, "area", area);
conditionHelper(info, "hszt", hszt);
conditionHelper(info, "isydk", isydk);
ValueList valueList = vlHandlerHelper.getValueList("data", info);
request.setAttribute("dataList", valueList);



private void conditionHelper(ValueListInfo valueListInfo, String key,
String value) {
if (notEmpty(nullToEmpty(value))) {
valueListInfo.getFilters().put(key, value);
} else {
valueListInfo.getFilters().remove(key);
}
}
3.
<%@ taglib uri="http://valuelist.sourceforge.net/tags-valuelist" prefix="vlh"%>
<%@ page import="net.mlw.vlh.ValueList" %>

<vlh:root value="dataList" url="?" includeParameters="*">

  <TABLE width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
    <TR>
      <TD valign="bottom">&nbsp;&nbsp;
         共<c:out value="${dataList.valueListInfo.totalNumberOfEntries}" />条记录
         (第<c:out value="${dataList.valueListInfo.pagingPage}" />页
         共<c:out value="${dataList.valueListInfo.totalNumberOfPages}" />页)
      </TD>
      <TD align="right">
         <vlh:paging pages="5"><c:out value="${page}" /></vlh:paging>
      </TD>
      <TD align="right" width="90" noWrap><c:if test="${dataList.valueListInfo.totalNumberOfPages>1}">
         转到<input text='text' value='<c:out value="${dataList.valueListInfo.pagingPage}" />' size='3' onKeyup='gotoPage(<c:out value="${dataList.valueListInfo.totalNumberOfPages}" />,"<%=basePath%>")'>页</c:if>
      </TD>
    </TR>
  </TABLE>

<TABLE border="0" width="100%" align="center" cellpadding="0" class="tablebg" cellspacing="1">
    <tr bgcolor="#66CCFF" height="20">
        <td align="center" width="5%"><B>序号</B></td>
        <td align="center" width="5%"><B>姓名</B></td>
        <td align="center" width="10%"><B>残疾人证号</B></td>
        <td align="center" width="20%"><B>家庭住址</B></td>
        <td align="center" width="16%"><B>身份证号</B></td>
        <td align="center" width="18%"><B>街道</B></td>
        <td align="center" width="12%"><B>社区</B></td>
        <td align="center" width="8%"><B>核实状态</B></td>
        <td align="center" width="5%"><B>操作</B></td>
    </tr>
<FORM name="HandicappedInformationForm" METHOD="POST" ACTION="">
    <INPUT TYPE="hidden" name="xm" value="">
    <INPUT TYPE="hidden" name="area" value="">
    <INPUT TYPE="hidden" name="cjrzh" value="">
    <INPUT TYPE="hidden" name="hszt" value="">
    <INPUT TYPE="hidden" name="JD_ID" value="">
    <INPUT TYPE="hidden" name="areaname" value="">
    <INPUT TYPE="hidden" name="isydk" value="">
    <INPUT TYPE="hidden" name="pagingPage" value="">

    <c:forEach items="${dataList}" var="rowData" varStatus="rowNumber">
    <TR>
      <c:if test="${(rowNumber.count%2)==1}"><TR class="even"></c:if>
      <c:if test="${(rowNumber.count%2)==0}"><TR class="odd"></c:if>
      <TD align="center"><c:out value="${rowNumber.count}" /></TD>
      <TD align="left"><c:out value="${rowData.xm}" /></TD>
      <TD align="left"><c:out value="${rowData.cjrz_id}" /></TD>
      <TD align="left"><c:out value="${rowData.jtxxzz}" />&nbsp;</TD>
      <TD align="center"><c:out value="${rowData.sfz}" />&nbsp;</TD>
      <TD align="center">
      <c:if test="${rowData.jd_id=='000000000'||rowData.jd_id=='000000001'||rowData.jd_id=='000000002'||rowData.jd_id=='000000003'}"><c:out value="${rowData.yjd}" /><c:out value="${rowData.jd}" /></c:if>
      <c:if test="${rowData.jd_id!='000000000'&&rowData.jd_id!='000000001'&&rowData.jd_id!='000000002'&&rowData.jd_id!='000000003'}"><c:out value="${rowData.jd}" /></c:if>
      </TD>
      <TD align="center"><c:out value="${rowData.sq}" /></TD>
      <TD align="center">
          <c:if test="${(rowData.yxzt)==0}"><font color="green">齐全</font></c:if>
          <c:if test="${(rowData.yxzt)==1}"><font color="#FF00FF">不齐全</font></c:if>
          <c:if test="${(rowData.yxzt)==2}"><font color="blue">退卡</font></c:if>
          <c:if test="${(rowData.yxzt)==3}"><font color="#8B008B">补卡</font></c:if>
          <c:if test="${(rowData.yxzt)==4}">死亡确认</c:if>
          <c:if test="${(rowData.yxzt)==5}">走失确认</c:if>
          <c:if test="${(rowData.yxzt)==6}">迁出确认</c:if>
          <c:if test="${(rowData.yxzt)==9}"><font color="red">未审核</font></c:if>
      </TD>
      <TD align="center">
      <a href='#' onclick='modifyHI("<c:out value="${rowData.id}"/>");return false' title="修改" target='_parentblank'><img src="../../images/copy1.gif" border="0"></a>
      </TD>
      </TR>
    </c:forEach>
    <IFRAME NAME="VoteMessageFrame" id="VoteMessage" width="100%" height="100%" style="display:none;"
                    frameBorder="0" marginWidth="0" marginHeight="0" scrolling="auto"
                    src=""> </IFRAME>
   
</FORM>
</TABLE>
</vlh:root>



function gotoInputPageNo(inputPageNo, contextPath) {
    var frm = document.HandicappedInformationForm;
    frm.pagingPage.value=inputPageNo;
    frm.target="_self";
    var parentForm = window.parent.document.HandicappedInformationForm;
    frm.xm.value= parentForm.xm.value;
    frm.area.value= parentForm.area.value;
    frm.cjrzh.value= parentForm.cjrzh.value;
    frm.hszt.value= parentForm.hszt.value;
    frm.isydk.value= parentForm.isydk.value;
    frm.action= contextPath + '/jdhdTempAction.do?method=areaListInfo';
   
    frm.submit();
}


function gotoPage(totalPage, contextPath) {

    if(event.keyCode!=13) {// not press enter-key
        return false;
    }

    if(totalPage==null) {
        alert("提示:未提供参数(totalPage : 总页数),因此使用默认值 1。");
        totalPage = 1;
    }

    if(contextPath==null) {
        contextPath = "";
    }

    var inputPage = event.srcElement.value;
    if(inputPage==""){
        return false;
    }

    if(inputPage<1) {
        inputPage = totalPage;
    }

    if(inputPage>totalPage) {
         alert("您输入的页数不存在!");
         event.srcElement.select();
         return false;
    }

    gotoInputPageNo(inputPage, contextPath);
}
4.<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">
<!--  Globle Search Configuration -->
<beans>

<!--½ֵ:˶¨ -->
<bean id="JdhdTempDAO"
class="com.itsv.information.dao.hibernate.JdhdTempDAOHibernate">
<property name="dataSource"><ref bean="dataSource"/></property>
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>

<bean id="jdhdTempManager" parent="txProxyTemplate">
<property name="target">
<bean
class="com.itsv.information.service.impl.JdhdTempManagerImpl">
<property name="jdhdTempDAO">
<ref bean="JdhdTempDAO" />
</property>
</bean>
</property>
</bean>
<bean id="vl_UnsubmitJdhdHandler" singleton="true"
class="net.mlw.vlh.DefaultValueListHandlerImpl">
<property name="config.adapters">
<map>
<entry key="data">
<bean
class="net.mlw.vlh.adapter.jdbc.dynclass.DefaultDynclassAdapter">

<!-- <bean class="net.mlw.vlh.adapter.jdbc.dynabean.DefaultDynaBeanAdapter"> -->
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="lowerCase">
<value>true</value>
</property>
<property name="useName">
<value>false</value>
</property>
<property name="defaultNumberPerPage">
<value>25</value>
</property>
<!-- <property name="defaultSortColumn"><value>apply_date</value></property> -->
<!-- <property name="defaultSortDirection"><value>desc</value></property> -->
<property name="sql">
<value>
select
h.ID,h.XM,h.CJRZ_ID,h.SFZ,h.JD,h.JD_ID,h.SQ,h.SQ_ID,h.YXZT,h.YJD,h.YJD_ID,i.jtxxzz
from JDHD_TEMP h ,handicapped_information i where i.info_id = h.id /~xm: and
h.XM like '%'||{xm}||'%' ~/ /~cjrzh: and
h.CJRZ_ID like '%'||{cjrzh}||'%' ~/
/~area: and (h.jd_id={area} or
((h.jd_id = '000000000' or h.jd_id = '000000001'
or h.jd_id = '000000002' or h.jd_id = '000000003') and h.yjd_id={area})) ~/ /~hszt:
and h.yxzt = {hszt}~/ /~isydk:
and h.ydk = {isydk}~/ /~yjdId:
and h.yjd_id = {yjdId}~/ order by h.YXZT desc , h.CJRZ_ID
desc /~sortColumn: ,[sortColumn]
[sortDirection]~/
</value>
</property>
</bean>
</entry>
<entry key="persondata">
<bean
class="net.mlw.vlh.adapter.jdbc.dynclass.DefaultDynclassAdapter">

<!-- <bean class="net.mlw.vlh.adapter.jdbc.dynabean.DefaultDynaBeanAdapter"> -->
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="lowerCase">
<value>true</value>
</property>
<property name="useName">
<value>false</value>
</property>
<property name="defaultNumberPerPage">
<value>25</value>
</property>
<!-- <property name="defaultSortColumn"><value>apply_date</value></property> -->
<!-- <property name="defaultSortDirection"><value>desc</value></property> -->
<property name="sql">
<value>
select
h.ID,h.XM,h.CJRZ_ID,h.SFZ,h.JD,h.JD_ID,h.SQ,h.SQ_ID,h.YXZT,h.YJD,h.YJD_ID,i.jtxxzz
from JDHD_TEMP h,handicapped_information i where i.info_id = h.id /~xm: and
h.XM like '%'||{xm}||'%' ~/ /~sfz: and
h.SFZ like '%'||{sfz}||'%' ~/ /~cjrzh: and
h.CJRZ_ID like '%'||{cjrzh}||'%' ~/ order by h.YXZT desc ,h.CJRZ_ID
desc /~sortColumn: ,[sortColumn]
[sortDirection]~/
</value>
</property>
</bean>
</entry>
<entry key="returnedData">
<bean
class="net.mlw.vlh.adapter.jdbc.dynclass.DefaultDynclassAdapter">

<!-- <bean class="net.mlw.vlh.adapter.jdbc.dynabean.DefaultDynaBeanAdapter"> -->
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="lowerCase">
<value>true</value>
</property>
<property name="useName">
<value>false</value>
</property>
<property name="defaultNumberPerPage">
<value>25</value>
</property>
<!-- <property name="defaultSortColumn"><value>apply_date</value></property> -->
<!-- <property name="defaultSortDirection"><value>desc</value></property> -->
<property name="sql">
<value>
select
h.ID,h.XM,h.CJRZ_ID,h.SFZ,h.JD,h.JD_ID,h.SQ,h.SQ_ID,h.YXZT,h.YJD,h.YJD_ID,i.jtxxzz
from JDHD_TEMP h ,handicapped_information i where i.info_id = h.id
/~area: and h.yjd_id={area} ~/
and h.jd_id = '000000000'
order by h.YXZT desc ,h.CJRZ_ID desc
/~sortColumn: ,[sortColumn] [sortDirection]~/
</value>
</property>
</bean>
</entry>

<entry key="rstj">
<bean
class="net.mlw.vlh.adapter.jdbc.dynclass.DefaultDynclassAdapter">

<!-- <bean class="net.mlw.vlh.adapter.jdbc.dynabean.DefaultDynaBeanAdapter"> -->
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="lowerCase">
<value>true</value>
</property>
<property name="useName">
<value>false</value>
</property>
<property name="defaultNumberPerPage">
<value>100</value>
</property>
<!-- <property name="defaultSortColumn"><value>apply_date</value></property> -->
<!-- <property name="defaultSortDirection"><value>desc</value></property> -->
<property name="sql">
<value>
select d.dict_name jdname,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=0) qq,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=1) bqq,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=2) tk,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=3) bk,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=4) swqr,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=5) zsqr,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=6) qcqr,
(select count(*) from jdhd_temp t where (t.jd_id=d.dict_no or t.yjd_id=d.dict_no) and t.yxzt=9) wsh,
(select count(*) from jdhd_temp t where t.yjd_id=d.dict_no or t.jd_id=d.dict_no) zs
from dictionary d where d.parent_id='34721db084d14bc297cdd9fb69691506' order by d.description

</value>
</property>
</bean>
</entry>
</map>
</property>
</bean>
<bean id="vlUnsubmitJdhdHelper" singleton="true"
class="net.mlw.vlh.web.mvc.ValueListHandlerHelper">
<property name="valueListHandler">
<ref bean="vl_UnsubmitJdhdHandler" />
</property>
</bean>

</beans>
分享到:
评论

相关推荐

    详解Vue的watch中的immediate与watch是什么意思

    immediate设为true后,则监听的这个对象会立即输出,也就是说一刷新页面就会在控制台输出,当然此时页面上的数据我们还没来得及手动让其发生变化,所以在控制台输出的newValue为我们在代码中默认设置的值,oldValue...

    深入理解vue.js中$watch的oldvalue与newValue

    主要给大家介绍了关于vue.js中$watch的oldvalue与newValue的相关资料,文中通过示例代码介绍的非常详细,并且介绍了关于watch的其他测试,对大家学习或者使用vue.js具有一定的参考学习价值,需要的朋友们下面跟着小...

    newvalue-v2-frontend

    newvalue-v2-frontend 构建设置 # install dependencies $ yarn install # serve with hot reload at localhost:3000 $ yarn dev # build for production and launch server $ yarn build $ yarn start # generate ...

    vue 重塑数组之修改数组指定index的值操作

    vm.items[indexOfItem] = newValue vue不能检测数组的变动 想要实现可以使用vue的set方法 this.$set(this.items,indexOfItem,newValue); 补充知识:vue中利用索引直接设置一个数组项,不能触发视图更新的问题 ...

    LINQ_to_SQL语法及实例大全

    ### LINQ to SQL语法及实例大全 #### 一、LINQ to SQL简介 **LINQ to SQL** 是 Microsoft .NET Framework 提供的一种用于在数据库和应用程序之间进行数据操作的技术。它提供了一种声明式的编程方式来处理数据,...

    Bash字符串常用操作

    `${varName-NewValue}`在`varName`为空时返回`NewValue`,而`${varName+NewValue}`在`varName`未定义时返回`NewValue`。 - 验证3和验证4分别展示了`${varName:=NewValue}`和`${varName=NewValue}`在变量为空和未定义...

    用Vue.js实现监听属性的变化

    前言 创建 Vue 实例时,Vue 将遍历 data 的属性,通过 ES5 的 Object.defineProperty 将它们转为 getter/setter,在其内部 Vue 可以追踪依赖、通知变化。...vm.$watch('foo', function (newValue, ol

    Struts2常用标签

    &lt;s:append var="myList" value="newValue" /&gt; ``` 6. **&lt;s:autocompleter&gt; 自动完成内容** - **用途**:配合`s:combobox`标签使用,提供自动完成功能。 - **示例**: ```xml ``` 7. **&lt;s:bean&gt; 显示...

    伪随机信号发生器 verilog

    assign pn_out=pn_newvalue[0][0]^pn_newvalue[0][2]^pn_newvalue[0][4]^pn_newvalue[0][5]; ``` 计算输出序列值,通过多个位的异或得到最终输出。 ##### 2. 时序逻辑设计 - **always块**:用于定义时序逻辑,...

    IOS手势拖拽滑块

    let newValue = slider.value + translation.x / slider.frame.width // 检查边界并限制滑块值 if newValue newValue = slider.minimumValue } else if newValue &gt; slider.maximumValue { newValue = ...

    Delphi颜色通道处理例子..rar

    1: NewValue := G * Factor div 255; // 绿色通道 2: NewValue := B * Factor div 255; // 蓝色通道 end; // 更新颜色通道值并保持在0-255范围内 if NewValue NewValue := 0; if NewValue &gt; 255 then ...

    promise实现原理

    newValue.then(resolveNext, rejectNext); } else { resolveNext(newValue); } } catch (error) { rejectNext(error); } } else if (status === 'rejected' && typeof onRejected === 'function') { try { ...

    十大滤波算法程序大全

    if (((NewValue - Value) &gt; A) || ((Value - NewValue) &gt; A)) { ReturnValue = Value; // 如果超出阈值,则返回上一次有效值 } else { ReturnValue = NewValue; // 否则返回新采样值 } Value = ReturnValue; ...

    C# 使用Usercontrol与主窗体进行消息传递

    public delegate void ControlValueChangedEventHandler(string newValue); ``` 2. **创建事件**:接着,在UserControl类中声明一个基于上述委托的事件。这样,任何订阅此事件的类(如主窗体)都可以接收到User...

    P255~258C++常用拷贝和替换算法学习笔记.docx

    其中,beg和end是源容器的起始和结束迭代器,oldvalue是要被替换的旧元素,newvalue是要替换的新元素。该算法将源容器中的所有旧元素替换成新元素。 5.4.3 replace_if算法 replace_if算法是C++标准库中的条件替换...

    10种AD采样的软件滤波方法的优缺点

    void limitFilter(int newValue, int *lastValue, int A) { if (abs(newValue - *lastValue) ) { *lastValue = newValue; } } ``` #### 2. 中位值滤波法 - **方法**:连续采集多个数据,将这些数据排序后取...

    Vue第三天.xmind

    ①数组:Vue.set(data,index,newvalue); ②对象:vm.$set(data,index,newvalue); 4.会触发v-for更新的方法: - push() - pop() - shift() - unshift() - splice() - sort() - reverse() 5.不会触发v-for...

    连接SQLServer后增删查改操作.rar

    string query = "UPDATE TableName SET Column1=@NewValue1, Column2=@NewValue2 WHERE Condition=@Condition"; SqlCommand command = new SqlCommand(query, connection); command.Parameters.AddWithValue("@...

Global site tag (gtag.js) - Google Analytics