`

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.js实现监听属性的变化

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

    【JavaScript源代码】Vue2和Vue3如何使用watch侦听器详解.docx

     watch:侦听数据变化 (某个值的change事件) vue2.x data(){ return{ num:10 } }, watch:{ num:{ /* * newValue:当前值 * oldValue:修改上一刻的值 */ handler(newValue,oldValue){ // ...

    parent和opener的区别

    parent和opener的区别 parent和opener的区别

    纯C++封装ini配置文件的读写类(file wraper ).

    1. 只需要包含头文件. 2. 支持无SECTION的 Key-value 读写. ... ini.SetValue("section", "key", "newvalue"); pv = ini.GetValue("section", "key", "default"); ASSERT_STREQ(pv, "newvalue");

    android 日期选择器

    public void onChanged(WheelView wheel, int oldValue, int newValue) { // TODO Auto-generated method stub strSltDay = curDayAdapter.getItem(newValue); android.util.Log.i("",String.format...

    lucene lsql

    This command will change the value of field1 to 'newvalue'. The commands SELECT, UPDATE, INSERT, DELETE, ADD, and INSERT are supported. This tool is useful for running automated queries against a ...

    mongodb数据库基本操作.pdf

    mongodb 数据库基本...db.mycollection.updateOne({key: "value"}, {$set: {newkey: "newvalue"}}) ``` ### 删除文档 ```bash db.mycollection.deleteOne({key: "value"}) ``` ### 创建索引 ```bash db.mycollecti

    XL Report 4.123

    Constructions on the pattern Sheet.Cells[x,y].Value := NewValue are quite a rarity in XL Report sources. The algorithms use only native data types and early binding to the Excel Type Library. We ...

    weapp.qrcode.js

    setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); // Don't bring in undefined values } else if (typeof copy !== 'undefined') { setProperty(target, { name...

    Delphi读入数据到DBGrid并向Word中插入表格.rar

     wordDoc.Tables.Item(1).Cell(y,i).Range.InsertAfter(DbGrid1.Fields[i-1].NewValue);  DBGrid1.DataSource.DataSet.Next; //下一行  end;  end  else  showmessage('TDBGrid表中无数据,不能向Word中插入...

    mysqlhelper

    newValue = command.ExecuteScalar().ToString(); continue; } command.ExecuteNonQuery(); } transaction.Commit();//提交数据库事务 } catch (Exception exception) { transaction.Rollback();//回滚...

    SQL入门书籍【基础、中级、高级】

    set columnname = newvalue [, nextcolumn = newvalue2...] where columnname OPERATOR value [and|or column OPERATOR value]; 例如: update employee set age = age+1 where first_name= ‘Mary’and last_...

    文本相似度计算(TF-IDF)C#

    private static object AddElement(IDictionary collection, object key, object newValue) { object element=collection[key]; collection[key]=newValue; return element; } private int ...

    java常用工具类的使用

    1. Java工具概述 很多人初学程序时,总是在想,那么多的算法该怎么写呀?那么多的数据结构都不熟悉,该怎么实现呀?总是担心英语不好程序学不精通,数学不好写程序无法达到巅峰。学的程序越多,不懂的知识越多。...

    C# for CSDN 乱七八糟的看不懂

    没法下载,到这里折腾一把试试。 本文由abc2253130贡献 doc文档可能在WAP端浏览体验不佳。建议您优先选择TXT,或下载源文件到本机查看。 C#(WINFORM)学习 一、 C#基础 基础 类型和变量 类型和变量 类型 C# 支持两...

    Delphi7.1 Update

    (varEmpty) value to TField.NewValue in the TDataSetProvider.BeforeUpdateRecord event handler does not work (Quality Central 3660). * TClientDataset InternalCalc fields are reset to null after calling...

Global site tag (gtag.js) - Google Analytics