户籍登记其他注销版本2.0(当需要调整户成员关系时查的表是户成员信息表;校验时对户成员关系进行校验)

HjdjQtzxModel.java

package cn.hnisi.gdrk.models.hjdj.hkzx.qtzx; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import javax.faces.context.FacesContext; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.support.TransactionCallbackWithoutResult; import cn.hnisi.architecture.AbstractModel; import cn.hnisi.architecture.common.util.CommonUtil; import cn.hnisi.gdrk.data.hjdj.hucy.Hucy; import cn.hnisi.gdrk.data.hjdj.hucy.HucyDAOEx; import cn.hnisi.gdrk.data.hjdj.hxx.Hxx; import cn.hnisi.gdrk.data.hjdj.hxx.HxxDAOEx; import cn.hnisi.gdrk.data.hjdj.rkjbxx.Rkjbxx; import cn.hnisi.gdrk.data.hjdj.rkjbxx.RkjbxxDAOEx; import cn.hnisi.gdrk.data.hjdj.zxhk.HjdjZxhk; import cn.hnisi.gdrk.data.hjdj.zxhk.HjdjZxhkDAOEx; import cn.hnisi.gdrk.data.hjsp.zxhk.Zxhk; import cn.hnisi.gdrk.data.hjsp.zxhk.ZxhkDAOEx; import cn.hnisi.gdrk.utils.BizGlobalConstants; import cn.hnisi.gdrk.utils.CommonFunction; import cn.hnisi.gdrk.utils.GenarateConnection; import cn.hnisi.gdrk.utils.GlobalConstants; import cn.hnisi.gdrk.workflow.jbpmengine.util.QueryConVo; /** * * @author yanghanming * @function 户籍登记-注销户口-其他注销 */ public class HjdjQtzxModel extends AbstractModel { private static final Log log = LogFactory.getLog(HjdjQtzxModel.class); private RkjbxxDAOEx rkjbxxDAOEx;// 人口基本信息DAO private ZxhkDAOEx zxhkDAOEx;// 户籍审批注销户口DAO private HjdjZxhkDAOEx hjdjZxhkDAOEx;// 户籍登记注销户口DAO private HxxDAOEx hxxDAOEx;// 户信息DAO private HucyDAOEx hucyDAOEx;// 户成员信息DAO private Rkjbxx rkjbxx;// 人口基本信息 private Zxhk zxhk;// 户籍审批注销户口 private HjdjZxhk hjdjZxhk;// 户籍登记注销户口 private Hxx hxx;// 户信息 private Hucy hucy;// 户成员信息 private String errorMessage = ""; // 查询条件变量 private String slh4BriefQuery; private String gmsfhm4BriefQuery; private String xm4BriefQuery; // 当查询信息来自人口基本信息时,注销原因等注销信息没有绑定变量 // 需要自己填写的信息,没有绑定变量 private String hjdjQtzxZxyy;// 注销原因 private Date hjdjQtzxZxrq;// 注销时间 private String hjdjQtzxZxdw;// 注销单位 private String hjdjQtzxSbrgmsfhm;// 申报人公民身份号码 private String hjdjQtzxSbrxm;// 申报人姓名 /* 分页变量 */ protected int rowCount2 = 0; // 记录数 protected int pageCount2 = 0; // 总页数 protected int pageSize2 = GlobalConstants.DEFAULT_PAGE_SIZE;// 每页显示的条数 protected int currentPageNumber2 = GlobalConstants.DEFAULT_PAGE_NUMBER;// 当前页码 protected int gotoPageNumber2 = GlobalConstants.DEFAULT_PAGE_NUMBER; // 临时存储对象 private Rkjbxx tempRkjbxx; private Zxhk tempZxhk; // 判断标志 // 查询信息来自户籍审批注销户口信息还是来自人口基本信息,默认来自人口基本信息 private boolean bolFromWhere = true; // 判断下一步进入tab2,还是进入tab3 private boolean bolNext1 = false;// 当是本人的时候,进入调整户成员关系tab页 private boolean bolNext2 = false;// 进入打印表格tab页 private boolean bolCanSave = true;// 控制按钮是否可以点击 private boolean bolIsHz = false;// 判断注销人员是否是户主 public List<Rkjbxx> rkjbxxlist;// 人员信息列表 public List<Zxhk> zxhklist;// 户籍审批信息列表 public List<Rkjbxx> tempRkjbxxlist;// 从户籍审批查出注销人员,然后根据公民身份号码查询人口基本信息表 public List<Hucy> tempHucylist;// 调整户成员关系时,根据户号查询出人员保存在此临时list中 public List<Rkjbxx> rkjbxxlistForSaveYhzgx; // 保存调整后的与户主关系 // 常量 private static final String isHisself = "本人";// 判断注销人员是否是户主本人 private static final String CLBZ0 = "0";// 户籍审批注销户口表处理标志,0表示没有户籍登记 private static final String CLBZ1 = "1";// 户籍审批注销户口表处理标志,1表示已经户籍登记 private static final String errMeg1 = "该人员已经登记过!"; private static final String ZT0 = "0";// 已经注销 private static final String ZT1 = "1";// 在用 private int selectedTabIndex = 0;// Tab之间的跳转 private String selectedValue;// 绑定选中的列表记录的slh private boolean haveCheckBox = true;// 控制列表是否显示checkbox的开关 public HjdjQtzxModel() { } /** * @author yanghanming * @function 查询方法 */ public String doBriefQuery() { bolCanSave = true; bolNext1 = true; bolNext2 = true; bolIsHz = false; this.selectedTabIndex = 0; // 当再次点击查询时,清空注销信息 rkjbxx = null; zxhk = null; hjdjZxhk = null; this.setHjdjQtzxZxyy(""); this.setHjdjQtzxZxrq(null); this.setHjdjQtzxZxdw(""); this.setHjdjQtzxSbrgmsfhm(""); this.setHjdjQtzxSbrxm(""); Zxhk zxhk = new Zxhk(); List list = new ArrayList<QueryConVo>(); String hql = null; GenarateConnection gc = (GenarateConnection) getCtx().getBean( BizGlobalConstants.X_GCONNECTION); // 查询条件 // 当受理号不为空时,一定是查询户籍审批户口注销表 if (StringUtils.isNotBlank(this.getSlh4BriefQuery())) { zxhk.setSlh(this.getSlh4BriefQuery()); zxhklist = zxhkDAOEx.findByExample(zxhk); // 判断户籍审批户口注销中的处理标志,为1的话,说明已经办理了。 if (CommonUtil.isNotNullList(zxhklist)) { tempZxhk = (Zxhk) zxhklist.get(0); if (CLBZ1.equals(tempZxhk.getClbz())) { errorMessage = "此人已登记注销,不能办理该业务!"; addErrorMessage(null, errorMessage); return null; } } bolFromWhere = false; // 当受理号为空时,一定是查询人口基本信息表 } else { hql = "from Rkjbxx as ti where ti.gmsfhm='" + this.getGmsfhm4BriefQuery().trim() + "'" + " or ti.xm ='" + this.getXm4BriefQuery().trim() + "'"; try { this.rkjbxxlist = gc.findListForPage(hql, list, this .getCurrentPageNumber(), this.getPageSize(), null); this.rowCount = gc.findCountForPage(hql, list, this .getCurrentPageNumber(), this.getPageSize()); this.setRowCount4Tmp(rowCount); } catch (Exception e) { e.printStackTrace(); } // 判断人口基本信息里面的锁控标志,为1的话,不能办理此业务 if (CommonUtil.isNotNullList(rkjbxxlist)) { tempRkjbxx = (Rkjbxx) rkjbxxlist.get(0); if (ZT0.equals(tempRkjbxx.getZt())) { errorMessage = "此人已注销,不能办理该业务!"; addErrorMessage(null, errorMessage); return null; } } bolFromWhere = true; } return null; } /** * @author yanghanming * @function 点击左边列表人员,人员信息显示在右边框中 */ public String doSelectBriefQueryResult() { bolCanSave = false; bolNext1 = true; bolNext2 = true; this.selectedTabIndex = 0; // 再次点击列表中的人员时,清空,重新查询 rkjbxx = null; zxhk = null; hjdjZxhk = null; this.setHjdjQtzxZxyy(""); this.setHjdjQtzxZxrq(null); this.setHjdjQtzxZxdw(""); this.setHjdjQtzxSbrgmsfhm(""); this.setHjdjQtzxSbrxm(""); Map requestParams = FacesContext.getCurrentInstance() .getExternalContext().getRequestParameterMap(); String id = (String) requestParams.get("taskid"); // 当信息来自人口基本信息时,需要填写注销原因 if (bolFromWhere == true) { for (int i = 0; rkjbxxlist != null && i < rkjbxxlist.size(); i++) { if (id.equals(rkjbxxlist.get(i).getId())) { rkjbxx = (Rkjbxx) rkjbxxlist.get(i); if (ZT0.equals(rkjbxx.getZt())) { errorMessage = "此人已注销,不能办理该业务!"; addErrorMessage(null, errorMessage); bolCanSave = true; return null; } break; } } bolCanSave = false; hjdjZxhk = new HjdjZxhk(); this.setHjdjQtzxZxrq(new Date()); this.setHjdjQtzxZxdw(this.currentUser.getDepartmentName()); } // 当信息来自户籍审批的注销户口表时,需要直接显示出注销原因,并保存到户籍登记的注销户口表中 if (bolFromWhere == false) { // 如果信息来自户籍审批,则根据户籍审批注销户口人员的公民身份号码查询人口基本信息表,列出人口基本信息 for (int i = 0; zxhklist != null && i < zxhklist.size(); i++) { if (id.equals(zxhklist.get(i).getId())) { zxhk = (Zxhk) zxhklist.get(i); if (CLBZ1.equals(zxhk.getClbz())) { errorMessage = "此人已登记注销,不能办理该业务!"; addErrorMessage(null, errorMessage); bolCanSave = true; return null; } break; } } bolCanSave = false; tempRkjbxxlist = rkjbxxDAOEx.findByGmsfhm(zxhk.getGmsfhm()); rkjbxx = (Rkjbxx) tempRkjbxxlist.get(0); hjdjZxhk = new HjdjZxhk(); this.setHjdjQtzxZxrq(new Date()); this.setHjdjQtzxZxdw(this.currentUser.getDepartmentName()); } return null; } /** * @author yanghanming * @function 从注销人员点击下一步方法 */ public String nextStep1() { // 当注销人员为户主时,需要调整户成员关系,暂时不保存 if (StringUtils.equals(rkjbxx.getYhzgxmc(), isHisself)) { // 后面要修改注销人员在HUCY表中的状态字段,此对象用来暂时保存注销人员,以便修改 hucy = new Hucy(); String sql = "from Hucy where hh='" + rkjbxx.getHh() + "'"; tempHucylist = (List) hucyDAOEx.findByHql(sql); for (int i = 0; tempHucylist != null && i < tempHucylist.size(); i++) { // 注销人员不需要调整与户关系,不需要列在这个地方 // 并且HUCY里面状态为已经注销的也不要列在这里 if (tempHucylist.get(i).getId().equals(rkjbxx.getId())) { hucy = tempHucylist.get(i); tempHucylist.remove(i); } } // 由于查询的是户成员信息表,在人口基本表里面也要做相应的改变,此处list保存户号相同的人口基本信息 String sql2 = "from Rkjbxx where hh='" + rkjbxx.getHh() + "'"; rkjbxxlistForSaveYhzgx = (List) rkjbxxDAOEx.findByHql(sql2); for (int i = 0; rkjbxxlistForSaveYhzgx != null && i < rkjbxxlistForSaveYhzgx.size(); i++) { // 注销人员不需要调整与户关系,不需要列在这个地方 // 并且Rkjbxx里面状态为已经注销的也不要列在这里 if (rkjbxxlistForSaveYhzgx.get(i).getId() .equals(rkjbxx.getId())) // || rkjbxxlistForSaveYhzgx.get(i).getZt().equals(ZT0)) { rkjbxxlistForSaveYhzgx.remove(i); } } this.rowCount2 = tempHucylist.size(); this.setRowCount4Tmp(rowCount2); bolNext1 = false; bolNext2 = false; this.selectedTabIndex = 1; bolIsHz = true; // 当注销人员不是户主时,跳转到打印表格tab页 } else { bolNext1 = true; bolNext2 = false; this.selectedTabIndex = 2; bolIsHz = false; } return null; } /** * @author yanghanming * @function 进入调整关系页时,点击上一步方法 */ public String beforeTzgx() { this.setCurrentPageNumber2(1); this.selectedTabIndex = 0; return null; } /** * @author yanghanming * @function 进入调整关系页时,点击下一步方法 */ public String nextStep2() { this.selectedTabIndex = 2; return null; } /** * @author yanghanming * @function 进入打印表格时,点击上一步方法 */ public String beforeDy() { if (StringUtils.equals(rkjbxx.getYhzgxmc(), isHisself)) { this.selectedTabIndex = 1; } else { this.selectedTabIndex = 0; } return null; } /** * @author yanghanming * @function 点击打印时,保存 */ public String doSaveToDB() { this.save(); if (StringUtils.equals(rkjbxx.getYhzgxmc(), isHisself)) { this.saveYhzgx(); } return null; } /** * @author yanghanming * @function 保存户籍登记-注销户口表 */ public String save() { // 当注销人员信息来自人口基本信息表时 if (bolFromWhere == true) { // 当返回来第二次点击下一步的时候 if (hjdjZxhk == null) { hjdjZxhk = new HjdjZxhk(); } // 当信息来自人口基本信息时,需要自己填写注销原因,注销时间,注销单位 hjdjZxhk.setZxyy(this.getHjdjQtzxZxyy()); hjdjZxhk.setZxsj(this.getHjdjQtzxZxrq()); hjdjZxhk.setCjdwmc(this.getHjdjQtzxZxdw()); hjdjZxhk.setCjdw(this.getCurrentUser().getDepartmentCode()); hjdjZxhk.setSqrgmsfhm(this.getHjdjQtzxSbrgmsfhm()); hjdjZxhk.setSqrxm(this.getHjdjQtzxSbrxm()); hjdjZxhk.setXm(rkjbxx.getXm()); hjdjZxhk.setGmsfhm(rkjbxx.getGmsfhm()); hjdjZxhk.setYwlsh(CommonFunction.getSlh()); // 将人口基本信息表里面得状态改为0,表示已经注销 rkjbxx.setZt(ZT0); rkjbxxDAOEx.merge(rkjbxx); // 将户成员表里面的状态改为0,表示已经注销 // hucy.setZt(ZT0); // hucyDAOEx.merge(hucy); if (StringUtils.isBlank(hjdjZxhk.getId())) { hjdjZxhkDAOEx.save(hjdjZxhk); } else { hjdjZxhkDAOEx.merge(hjdjZxhk); } } // 当注销原因来自户籍审批注销户口时 if (bolFromWhere == false) { // 当返回来第二次点击下一步的时候 if (hjdjZxhk == null) { hjdjZxhk = new HjdjZxhk(); } // 当信息来自户籍审批的注销户口表时,保存户籍登记注销户口表时,保存内容来自户籍审批的注销户口表 hjdjZxhk.setZxyy(zxhk.getBdyymc()); hjdjZxhk.setZxsj(zxhk.getSpsj()); hjdjZxhk.setCjdwmc(zxhk.getSpdwmc()); hjdjZxhk.setCjdw(zxhk.getSpdw()); hjdjZxhk.setSqrgmsfhm(this.getHjdjQtzxSbrgmsfhm()); hjdjZxhk.setSqrxm(this.getHjdjQtzxSbrxm()); hjdjZxhk.setXm(rkjbxx.getXm()); hjdjZxhk.setGmsfhm(rkjbxx.getGmsfhm()); hjdjZxhk.setYwlsh(CommonFunction.getSlh()); // 将人口基本信息表里面得状态改为0,表示已经注销 rkjbxx.setZt(ZT0); rkjbxxDAOEx.merge(rkjbxx); // 将户成员表里面的状态改为0,表示已经注销 // hucy.setZt(ZT0); // hucyDAOEx.merge(hucy); // 回写户籍审批注销户口表中的处理标志 zxhk.setClbz(CLBZ1); zxhkDAOEx.attachDirty(zxhk); if (StringUtils.isBlank(hjdjZxhk.getId())) { hjdjZxhkDAOEx.save(hjdjZxhk); } else { hjdjZxhkDAOEx.merge(hjdjZxhk); } } return null; } /** * @author yanghanming * @function 调整关系后,保存 */ public String saveYhzgx() { // 保存修改的关系,同时保存户成员信息和人口基本信息 Hucy hucyxx = new Hucy(); Rkjbxx jbxx = new Rkjbxx(); for (int i = 0; tempHucylist != null && i < tempHucylist.size(); i++) { hucyxx = (Hucy) tempHucylist.get(i); hucyxx.setHcygxmc(tempHucylist.get(i).getHcygxmc()); hucyxx.setHcygx(tempHucylist.get(i).getHcygx()); for (int j = 0; rkjbxxlistForSaveYhzgx != null && j < rkjbxxlistForSaveYhzgx.size(); j++) { if (rkjbxxlistForSaveYhzgx.get(j).getId().equals( tempHucylist.get(i).getId())) { jbxx = (Rkjbxx) rkjbxxlistForSaveYhzgx.get(j); jbxx.setYhzgxmc(tempHucylist.get(i).getHcygxmc()); jbxx.setYhzgx(tempHucylist.get(i).getHcygx()); } rkjbxxDAOEx.merge(jbxx); } hucyDAOEx.merge(hucyxx); } return null; } public RkjbxxDAOEx getRkjbxxDAOEx() { return rkjbxxDAOEx; } public void setRkjbxxDAOEx(RkjbxxDAOEx rkjbxxDAOEx) { this.rkjbxxDAOEx = rkjbxxDAOEx; } public ZxhkDAOEx getZxhkDAOEx() { return zxhkDAOEx; } public void setZxhkDAOEx(ZxhkDAOEx zxhkDAOEx) { this.zxhkDAOEx = zxhkDAOEx; } public HjdjZxhkDAOEx getHjdjZxhkDAOEx() { return hjdjZxhkDAOEx; } public void setHjdjZxhkDAOEx(HjdjZxhkDAOEx hjdjZxhkDAOEx) { this.hjdjZxhkDAOEx = hjdjZxhkDAOEx; } public Rkjbxx getRkjbxx() { return rkjbxx; } public void setRkjbxx(Rkjbxx rkjbxx) { this.rkjbxx = rkjbxx; } public Zxhk getZxhk() { return zxhk; } public void setZxhk(Zxhk zxhk) { this.zxhk = zxhk; } public HjdjZxhk getHjdjZxhk() { return hjdjZxhk; } public void setHjdjZxhk(HjdjZxhk hjdjZxhk) { this.hjdjZxhk = hjdjZxhk; } public static Log getLog() { return log; } public String getSlh4BriefQuery() { return slh4BriefQuery; } public void setSlh4BriefQuery(String slh4BriefQuery) { this.slh4BriefQuery = slh4BriefQuery; } public String getGmsfhm4BriefQuery() { return gmsfhm4BriefQuery; } public void setGmsfhm4BriefQuery(String gmsfhm4BriefQuery) { this.gmsfhm4BriefQuery = gmsfhm4BriefQuery; } public String getXm4BriefQuery() { return xm4BriefQuery; } public void setXm4BriefQuery(String xm4BriefQuery) { this.xm4BriefQuery = xm4BriefQuery; } public List<Rkjbxx> getRkjbxxlist() { return rkjbxxlist; } public void setRkjbxxlist(List<Rkjbxx> rkjbxxlist) { this.rkjbxxlist = rkjbxxlist; } public List<Zxhk> getZxhklist() { return zxhklist; } public void setZxhklist(List<Zxhk> zxhklist) { this.zxhklist = zxhklist; } public Rkjbxx getTempRkjbxx() { return tempRkjbxx; } public void setTempRkjbxx(Rkjbxx tempRkjbxx) { this.tempRkjbxx = tempRkjbxx; } public boolean isBolFromWhere() { return bolFromWhere; } public void setBolFromWhere(boolean bolFromWhere) { this.bolFromWhere = bolFromWhere; } public Zxhk getTempZxhk() { return tempZxhk; } public void setTempZxhk(Zxhk tempZxhk) { this.tempZxhk = tempZxhk; } public String getHjdjQtzxZxyy() { return hjdjQtzxZxyy; } public void setHjdjQtzxZxyy(String hjdjQtzxZxyy) { this.hjdjQtzxZxyy = hjdjQtzxZxyy; } public Date getHjdjQtzxZxrq() { return hjdjQtzxZxrq; } public void setHjdjQtzxZxrq(Date hjdjQtzxZxrq) { this.hjdjQtzxZxrq = hjdjQtzxZxrq; } public String getHjdjQtzxZxdw() { return hjdjQtzxZxdw; } public void setHjdjQtzxZxdw(String hjdjQtzxZxdw) { this.hjdjQtzxZxdw = hjdjQtzxZxdw; } public String getHjdjQtzxSbrgmsfhm() { return hjdjQtzxSbrgmsfhm; } public void setHjdjQtzxSbrgmsfhm(String hjdjQtzxSbrgmsfhm) { this.hjdjQtzxSbrgmsfhm = hjdjQtzxSbrgmsfhm; } public String getHjdjQtzxSbrxm() { return hjdjQtzxSbrxm; } public void setHjdjQtzxSbrxm(String hjdjQtzxSbrxm) { this.hjdjQtzxSbrxm = hjdjQtzxSbrxm; } public static String getIsHisself() { return isHisself; } public static String getCLBZ0() { return CLBZ0; } public static String getCLBZ1() { return CLBZ1; } public static String getErrMeg1() { return errMeg1; } public String getErrorMessage() { return errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public List<Rkjbxx> getTempRkjbxxlist() { return tempRkjbxxlist; } public void setTempRkjbxxlist(List<Rkjbxx> tempRkjbxxlist) { this.tempRkjbxxlist = tempRkjbxxlist; } public boolean isBolCanSave() { return bolCanSave; } public void setBolCanSave(boolean bolCanSave) { this.bolCanSave = bolCanSave; } public static String getZT0() { return ZT0; } public static String getZT1() { return ZT1; } public int getSelectedTabIndex() { return selectedTabIndex; } public void setSelectedTabIndex(int selectedTabIndex) { this.selectedTabIndex = selectedTabIndex; } public String getSelectedValue() { return selectedValue; } public void setSelectedValue(String selectedValue) { this.selectedValue = selectedValue; } public boolean isHaveCheckBox() { return haveCheckBox; } public void setHaveCheckBox(boolean haveCheckBox) { this.haveCheckBox = haveCheckBox; } public boolean isBolNext1() { return bolNext1; } public void setBolNext1(boolean bolNext1) { this.bolNext1 = bolNext1; } public boolean isBolNext2() { return bolNext2; } public void setBolNext2(boolean bolNext2) { this.bolNext2 = bolNext2; } public boolean isBolIsHz() { return bolIsHz; } public void setBolIsHz(boolean bolIsHz) { this.bolIsHz = bolIsHz; } /** * 第一页 */ public String first2() { this.currentPageNumber2 = 1; return doListResult(); } /** * 最后一页 * * @return */ public String last2() { this.currentPageNumber2 = this.pageCount2; return doListResult(); } /** * 上页 */ public String previous2() { this.currentPageNumber2--; if (this.currentPageNumber2 < 1) this.currentPageNumber2 = 1; if (this.currentPageNumber2 > this.pageCount2) this.currentPageNumber2 = this.pageCount2; return doListResult(); } /** * 下页 * * @return */ public String next2() { this.currentPageNumber2++; if (this.currentPageNumber2 < 1) this.currentPageNumber2 = 1; if (this.currentPageNumber2 > this.pageCount2) this.currentPageNumber2 = this.pageCount2; return doListResult(); } /** * 去到指定页 * * @return */ public String go2() { if (this.gotoPageNumber2 < 1) { this.currentPageNumber2 = 1; gotoPageNumber2 = 1; } else if (this.gotoPageNumber2 > this.pageCount2) { this.currentPageNumber2 = this.pageCount2; this.gotoPageNumber2 = this.pageCount2; } else { this.currentPageNumber2 = this.gotoPageNumber2; } return doListResult(); } public String doListResult() { return null; } public int getRowCount2() { return rowCount2; } public void setRowCount2(int rowCount2) { this.rowCount2 = rowCount2; } public int getPageCount2() { if ((rowCount2 % pageSize2) == 0) { pageCount2 = this.rowCount2 / this.pageSize2; } else { pageCount2 = this.rowCount2 / this.pageSize2 + 1; } return pageCount2; } public void setPageCount2(int pageCount2) { this.pageCount2 = pageCount2; } public int getPageSize2() { return pageSize2; } public void setPageSize2(int pageSize2) { if (pageSize2 < 1) { this.pageSize2 = GlobalConstants.DEFAULT_PAGE_SIZE; } else { this.pageSize2 = pageSize2; } } public int getCurrentPageNumber2() { return currentPageNumber2; } public void setCurrentPageNumber2(int currentPageNumber2) { if (currentPageNumber2 < 1) { this.currentPageNumber2 = GlobalConstants.DEFAULT_PAGE_NUMBER; } else { this.currentPageNumber2 = currentPageNumber2; } } public int getGotoPageNumber2() { return gotoPageNumber2; } public void setGotoPageNumber2(int gotoPageNumber2) { this.gotoPageNumber2 = gotoPageNumber2; } public HxxDAOEx getHxxDAOEx() { return hxxDAOEx; } public void setHxxDAOEx(HxxDAOEx hxxDAOEx) { this.hxxDAOEx = hxxDAOEx; } public HucyDAOEx getHucyDAOEx() { return hucyDAOEx; } public void setHucyDAOEx(HucyDAOEx hucyDAOEx) { this.hucyDAOEx = hucyDAOEx; } public Hxx getHxx() { return hxx; } public void setHxx(Hxx hxx) { this.hxx = hxx; } public Hucy getHucy() { return hucy; } public void setHucy(Hucy hucy) { this.hucy = hucy; } public List<Hucy> getTempHucylist() { return tempHucylist; } public void setTempHucylist(List<Hucy> tempHucylist) { this.tempHucylist = tempHucylist; } public List<Rkjbxx> getRkjbxxlistForSaveYhzgx() { return rkjbxxlistForSaveYhzgx; } public void setRkjbxxlistForSaveYhzgx(List<Rkjbxx> rkjbxxlistForSaveYhzgx) { this.rkjbxxlistForSaveYhzgx = rkjbxxlistForSaveYhzgx; } }

 

QtzxPane.xhtml

<?xml version="1.0" encoding="GBK"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:jsfext="http://www.hnisi.cn/jsfext" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core"> <ui:composition template="/cn/hnisi/gdrk/GDRKWorkspace.xhtml"> <ui:define name="BizTitleAndToolBar"> <h:form class="nomargin"> <jsfext:pageTitle title="其他注销"> <jsfext:instantHelp helpId="hjgl_hkzx" styleClass="toolbarButton" onmouseout="toolbarButtonMouseOut(this)" onmouseover="toolbarButtonMouseOver(this)" /> </jsfext:pageTitle> </h:form> </ui:define> <ui:define name="QueryConditionPanel"> <jsfext:javascript path="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/js/Qtzx.js" /> <jsfext:defaultFocusedElement value="slh4BriefQuery" /> <h:form class="nomargin" id="theBriefQueryForm"> <table width="90%" align="center"> <tr> <td align="left"> 审批受理号: <jsfext:inputText tabindex="1" size="25" id="slh4BriefQuery" value="#{hjdjQtzxModel.slh4BriefQuery}"> <jsfext:jseventlistener event="onkeydown" listener="convertEnter2Tab()" /> </jsfext:inputText> </td> <td align="left"> 公民身份号码: <jsfext:inputText tabindex="2" size="25" id="gmsfhm4BriefQuery" value="#{hjdjQtzxModel.gmsfhm4BriefQuery}"> <jsfext:jseventlistener event="onkeydown" listener="convertEnter2Tab()" /> </jsfext:inputText> </td> <td align="left"> 姓名: <jsfext:inputText tabindex="3" size="25" id="xm4BriefQuery" value="#{hjdjQtzxModel.xm4BriefQuery}"> <jsfext:jseventlistener event="onkeydown" listener="convertEnter2Tab()" /> </jsfext:inputText> </td> <td align="left"> <t:commandButton id="briefQueryButton" value="查询(f)" onclick="return checkQueryCondition()" accesskey="f" action="#{hjdjQtzxModel.onBriefQueryFormSubmit}" tabindex="4" forceId="true" /> </td> </tr> </table> </h:form> </ui:define> <ui:define name="QueryResult"> <h:form> <table width="260px"> <t:div rendered="#{hjdjQtzxModel.bolFromWhere}"> <tr> <td> <jsfext:dataTableEx id="rkjbxxlist" model="#{hjdjQtzxModel}" columns="6" checkbox="false" width="700px" checkboxValue="#{temp.gmsfhm}" selectedValue="#{hjdjQtzxModel.selectedValue}" value="#{hjdjQtzxModel.rkjbxxlist}" title="选择注销人员" columnsWidth="30,120,80,80,80,80" fsWidth="260px" fsHeight="285px"> <jsfext:columnEx title="姓名" value="#{temp.xm}" isJbpmList="false" /> <jsfext:columnEx title="公民身份号码" value="#{temp.gmsfhm}" model="#{hjdjQtzxModel}" haveAction="true" isJbpmList="false"> <f:param value="#{temp.id}" name="taskid" /> </jsfext:columnEx> <jsfext:columnEx title="性别" value="#{temp.xbmc}" /> <jsfext:columnEx title="出生日期" value="#{temp.csrq}" /> <jsfext:columnEx title="民族" value="#{temp.mzmc}" /> <jsfext:columnEx title="与户主关系" value="#{temp.yhzgxmc}" /> </jsfext:dataTableEx> </td> </tr> </t:div> <t:div rendered="#{not hjdjQtzxModel.bolFromWhere}"> <tr> <td> <jsfext:dataTableEx id="zxhklist" model="#{hjdjQtzxModel}" columns="6" checkbox="false" width="700px" checkboxValue="#{temp.gmsfhm}" selectedValue="#{hjdjQtzxModel.selectedValue}" value="#{hjdjQtzxModel.zxhklist}" title="选择注销人员" columnsWidth="30,120,80,80,80,80" fsWidth="260px" fsHeight="285px"> <jsfext:columnEx title="姓名" value="#{temp.xm}" isJbpmList="false" /> <jsfext:columnEx title="公民身份号码" value="#{temp.gmsfhm}" model="#{hjdjQtzxModel}" haveAction="true" isJbpmList="false"> <f:param value="#{temp.id}" name="taskid" /> </jsfext:columnEx> <jsfext:columnEx title="性别" value="#{temp.xbmc}" /> <jsfext:columnEx title="出生日期" value="#{temp.csrq}" /> <jsfext:columnEx title="民族" value="#{temp.mzmc}" /> </jsfext:dataTableEx> </td> </tr> </t:div> </table> <fieldset style="width: 260px; border: 1px solid blue; margin: 5px; padding: 0px;"> <legend> <span style="font-size: 10pt; font-weight: bold; color: black" mce_style="font-size: 10pt; font-weight: bold; color: black">人员照片</span> </legend> <table align="center" width="100%"> <tr> <td align="center"> <t:graphicImage height="170" width="137" value="/cn/hnisi/gdrk/hjdj/others/fdjd/TestPhoto4.jpg" /> </td> </tr> </table> </fieldset> </h:form> </ui:define> <ui:define name="OperationPanel"> <h:panelGrid columns="1" id="EditPanel"> <jsfext:panelTabbedPane selectedIndex="#{hjdjQtzxModel.selectedTabIndex}"> <t:panelTab id="tab1" label="注销人员" style="width: 700px; height: 477px; border: 0px " tabindex="1"> <ui:include src="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/panel/QtzxZxryPanel.xhtml"></ui:include> </t:panelTab> <t:panelTab id="tab2" label="调整与户主关系" disabled="#{hjdjQtzxModel.bolNext1}" style="width: 700px; height: 477px; border: 0px " tabindex="2"> <ui:include src="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/panel/QtzxTzyhzgxPanel.xhtml"></ui:include> </t:panelTab> <t:panelTab id="tab3" label="打印表格" disabled="#{hjdjQtzxModel.bolNext2}" style="width: 700px; height: 477px; border: 0px " tabindex="3"> <ui:include src="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/panel/QtzxDybgPanel.xhtml"></ui:include> </t:panelTab> </jsfext:panelTabbedPane> </h:panelGrid> </ui:define> </ui:composition> </html>

 

QtzxZxryPanel.xhtml

 

<?xml version="1.0" encoding="GBK"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:jsfext="http://www.hnisi.cn/jsfext" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core"> <ui:component> <ui:define name="OperationPanel"> <h:form> <ui:define name="PrivateScript-2"> <jsfext:javascript path="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/js/Qtzx.js" /> </ui:define> <t:saveState value="#{hjdjQtzxModel}" /> <fieldset style="width: 700px; border: 1px solid blue; margin: 5px; padding: 0px"> <legend> <span style="font-size: 10pt; font-weight: bold; color: black" mce_style="font-size: 10pt; font-weight: bold; color: black">详细信息</span> </legend> <div align="center" style="border: 0 solid #91A7B4; overflow-x: auto; overflow-y: auto; height: 170px; width: 680px"> <table width="100%" height="130px" cellspacing="0" border="0"> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt" nobr="ture"> 公民身份号码: <jsfext:outputText id="gmsfhm_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.gmsfhm}"> </jsfext:outputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 婚姻状况: <jsfext:outputText id="hyzkmc_4_form" value="#{hjdjQtzxModel.rkjbxx.hyzkmc}" style="width:190px"> </jsfext:outputText> </td> </tr> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 姓名: <jsfext:outputText id="xm_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.xm}"> </jsfext:outputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 身高: <jsfext:outputText id="sg_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.sg}"> </jsfext:outputText> </td> </tr> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 性别: <jsfext:outputText id="xbmc_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.xbmc}"> </jsfext:outputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 血型: <jsfext:outputText id="xxmc_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.xxmc}"> </jsfext:outputText> </td> </tr> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 出生日期: <jsfext:outputText id="csrq_4_form" value="#{hjdjQtzxModel.rkjbxx.csrq}" style="width:190px"> </jsfext:outputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 出生地国家: <jsfext:outputText id="csdgjmc_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.csdgjmc}"> </jsfext:outputText> </td> </tr> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 民族: <jsfext:outputText id="mzmc_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.mzmc}"> </jsfext:outputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 出生地址: <jsfext:outputText id="csdssxmc_4_form" style="width:190px" value="#{hjdjQtzxModel.rkjbxx.csdssxmc}"> </jsfext:outputText> </td> </tr> </table> </div> </fieldset> <fieldset style="width: 700px; border: 1px solid blue; margin: 5px; padding: 0px"> <legend> <span style="font-size: 10pt; font-weight: bold; color: black" mce_style="font-size: 10pt; font-weight: bold; color: black">注销信息</span> </legend> <div align="center" style="border: 0 solid #91A7B4; overflow-x: auto; overflow-y: auto; height: 100px; width: 680px"> <table width="100%" height="50px" cellspacing="0" border="0"> <t:div rendered="#{hjdjQtzxModel.bolFromWhere}"> <tr> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> <font color="red">*</font>注销原因: </td> <td align="left"> <jsfext:selectOneMenuEx2 id="zxyy_4_form" kind="SQLY" widthOfDropDown="100" tabindex="10" style="width:182px" filterExpression="^05" detail="#{hjdjQtzxModel.hjdjQtzxZxyy}" cnName="注销原因" required="true"> <jsfext:jseventlistener event="onblur" listener="onBlur();" /> </jsfext:selectOneMenuEx2> </td> </tr> <tr> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> 注销日期: </td> <td align="left"> <jsfext:outputText id="zxrq_4_form" style="width:200px" value="#{hjdjQtzxModel.hjdjQtzxZxrq}" /> </td> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> 注销单位: </td> <td align="left"> <jsfext:outputText id="zxdw_4_form" style="width:200px" value="#{hjdjQtzxModel.hjdjQtzxZxdw}" /> </td> </tr> </t:div> <t:div rendered="#{not hjdjQtzxModel.bolFromWhere}"> <tr> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> 注销原因: </td> <td align="left"> <jsfext:outputText id="zxyy_4_form2" style="width:200px" value="#{hjdjQtzxModel.zxhk.bdyymc}"> </jsfext:outputText> </td> </tr> <tr> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> 注销日期: </td> <td align="left"> <jsfext:outputText id="zxrq_4_form2" style="width:200px" value="#{hjdjQtzxModel.hjdjQtzxZxrq}" /> </td> <td align="right" style="font-size: 10pt; height: 20px; width: 180px"> 注销单位: </td> <td align="left"> <jsfext:outputText id="zxdw_4_form2" style="width:200px" value="#{hjdjQtzxModel.hjdjQtzxZxdw}" /> </td> </tr> </t:div> </table> </div> </fieldset> <fieldset style="width: 700px; border: 1px solid blue; margin: 5px; padding: 0px"> <legend> <span style="font-size: 10pt; font-weight: bold; color: black" mce_style="font-size: 10pt; font-weight: bold; color: black">填写信息</span> </legend> <div align="center" style="border: 0 solid #91A7B4; overflow-x: auto; overflow-y: auto; height: 80px; width: 680px"> <table width="100%" height="40px" cellspacing="0" border="0"> <tr> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt" nobr="ture"> 申报人公民身份号码: <jsfext:inputText id="sbrgmsfhm_4_form" style="width:184px" value="#{hjdjQtzxModel.hjdjQtzxSbrgmsfhm}" cnName="申报人公民身份号码" required="true"> </jsfext:inputText> </td> <td align="right" style="font-size: 10pt" mce_style="font-size: 10pt"> 申报人姓名: <jsfext:inputText id="sbrxm_4_form" value="#{hjdjQtzxModel.hjdjQtzxSbrxm}" style="width:184px" cnName="申报人姓名" required="true"> </jsfext:inputText> </td> </tr> </table> </div> </fieldset> <div align="center"> <jsfext:commandButtonProxy value="下一步(s)" target="nextStep1" accesskey="s" disabled="#{hjdjQtzxModel.bolCanSave}" onsubmit="checkForm(event)" /> <label style="display: none;" mce_style="display: none;"> <jsfext:cb4Biz value="下一步" accesskey="s" id="nextStep1" tabindex="100" model="#{hjdjQtzxModel}" action="nextStep1" /> </label> </div> </h:form> </ui:define> </ui:component> </html>

 

QtzxTzyhzgxPanel.xhtml

 

<?xml version="1.0" encoding="GBK"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:jsfext="http://www.hnisi.cn/jsfext" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core"> <ui:composition> <h:form style="margin:0px" mce_style="margin:0px"> <ui:define name="PrivateScript-2"> <jsfext:javascript path="/cn/hnisi/gdrk/hjdj/zxhk/qtzx/js/Qtzx.js" /> </ui:define> <table style="width: 100%;"> <tr> <td> <fieldset class="fieldset_gdrk" style="width: 100%;" align="left"> <legend> <span class="span_title_gdrk"> 待调整的人员信息</span> </legend> <mce:script type="text/javascript"><!-- var index = 1; // --></mce:script> <div class="div_brief_query_gdrk" style="height: 350px; width: 100%;"> <table width="690px"> <thead> <tr> <th class="panelGridHeader"> 序号 </th> <th class="panelGridHeader"> 姓名 </th> <th class="panelGridHeader"> 公民身份号码 </th> <th class="panelGridHeader"> 性别 </th> <th class="panelGridHeader"> 出生日期 </th> <th class="panelGridHeader"> 户类型 </th> <th class="panelGridHeader"> <font color="red">* </font>户成员关系 </th> </tr> </thead> <tbofy> <c:forEach var="hucy" step="1" items="#{hjdjQtzxModel.tempHucylist}" varStatus="stat"> <c:set var="id" value="${stat.index}"></c:set> <tr class="panelGridRow2"> <td> <div align="center"> #{id} </div> </td> <td> <div align="center"> <t:outputText value="#{hucy.xm}" /> </div> </td> <td> <div align="center"> <t:outputText value="#{hucy.gmsfhm}" /> </div> </td> <td> <div align="center"> <t:outputText value="#{hucy.xbmc}" /> </div> </td> <td> <div align="center"> <t:outputText value="#{hucy.csrq}" /> </div> </td> <td> <div align="center"> <t:outputText value="#{hucy.hlxmc}" /> </div> </td> <td> <div align="center"> <jsfext:selectOneMenuEx2 id="hcygx_4_form_#{id}" style="width:130px" tabindex="#{id}34" kind="JTGX" value="#{hucy.hcygx}" detail="#{hucy.hcygxmc}" widthOfDropDown="99" required="true" cnName="与户主关系"> </jsfext:selectOneMenuEx2> </div> </td> </tr> </c:forEach> </tbofy> </table> </div> </fieldset> </td> </tr> </table> <div align="center"> <jsfext:commandButtonProxy value="上一步(s)" target="beforeTzgx" accesskey="s" /> <label style="display: none;" mce_style="display: none;"> <jsfext:cb4Biz value="上一步" accesskey="s" id="beforeTzgx" tabindex="100" model="#{hjdjQtzxModel}" action="beforeTzgx" /> </label> <jsfext:commandButtonProxy value="下一步(s)" target="nextStep2" accesskey="s" onsubmit="checkForm(event)" /> <label style="display: none;" mce_style="display: none;"> <jsfext:cb4Biz value="下一步" accesskey="s" id="nextStep2" tabindex="100" model="#{hjdjQtzxModel}" action="nextStep2" /> </label> </div> </h:form> </ui:composition> </html>

 

QtzxDybgPanel.xhtml

 

<?xml version="1.0" encoding="GBK"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:jsfext="http://www.hnisi.cn/jsfext" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jstl/core"> <ui:composition> <ui:define name="QueryResult"> <h:form style="margin:0px;" mce_style="margin:0px;" id="theBriefQueryResult"> <table width="700px"> <t:div rendered="#{not hjdjQtzxModel.bolIsHz}"> <tr> <td> <jsfext:dataTableEx2 id="rkjbxx" model="#{hjdjQtzxModel}" columns="6" checkbox="#{hjdjQtzxModel.haveCheckBox}" width="700px" checkboxValue="#{temp.gmsfhm}" selectedValue="#{hjdjQtzxModel.selectedValue}" value="#{hjdjQtzxModel.rkjbxx}" title="户成员信息(请选择要打印的人员)" columnsWidth="30,120,80,80,80,80" fsWidth="700px" fsHeight="250px"> <jsfext:columnEx title="姓名" value="#{temp.xm}" isJbpmList="false" /> <jsfext:columnEx title="公民身份号码" value="#{temp.gmsfhm}" model="#{hjdjQtzxModel}" haveAction="false" isJbpmList="false" /> <jsfext:columnEx title="性别" value="#{temp.xbmc}" /> <jsfext:columnEx title="出生日期" value="#{temp.csrq}" /> <jsfext:columnEx title="民族" value="#{temp.mzmc}" /> </jsfext:dataTableEx2> </td> </tr> </t:div> <t:div rendered="#{hjdjQtzxModel.bolIsHz}"> <tr> <td> <jsfext:dataTableEx2 id="tempHucylist" model="#{hjdjQtzxModel}" columns="6" checkbox="#{hjdjQtzxModel.haveCheckBox}" width="700px" checkboxValue="#{temp.gmsfhm}" selectedValue="#{hjdjQtzxModel.selectedValue}" value="#{hjdjQtzxModel.tempHucylist}" title="户成员信息(请选择要打印的人员)" columnsWidth="30,120,100,80,80,80" fsWidth="700px" fsHeight="300px"> <jsfext:columnEx title="姓名" value="#{temp.xm}" isJbpmList="false" /> <jsfext:columnEx title="公民身份号码" value="#{temp.gmsfhm}" model="#{hjdjQtzxModel}" haveAction="false" isJbpmList="false" /> <jsfext:columnEx title="性别" value="#{temp.xbmc}" /> <jsfext:columnEx title="出生日期" value="#{temp.csrq}" /> <jsfext:columnEx title="户类型" value="#{temp.hlxmc}" /> <jsfext:columnEx title="户成员关系" value="#{temp.hcygxmc}" /> </jsfext:dataTableEx2> </td> </tr> </t:div> </table> <fieldset style="width: 700px; border: 1px solid blue; margin: 0px; padding: 0px" align="center"> <legend> <span style="font-size: 10pt; font-weight: bold; color: black" mce_style="font-size: 10pt; font-weight: bold; color: black">打印表格(请选择要打印的表格)</span> </legend> <div style="border: 0 solid #91A7B4; overflow-x: auto; overflow-y: auto; height: 100%; width: 700px"> <table width="95%" height="65px" cellspacing="0" border="0"> <tr class="panelGridRow2" onmousemove="JavaScript:onMouseOver(this);" onmouseout="JavaScript:onMouseOut(this);"> <td align="center"> <input type="radio" name="radio" checked="true" id="1" /> </td> <td align="center"> <h:outputLabel value="《户口本首页》" /> </td> </tr> <tr class="panelGridRow1" onmousemove="JavaScript:onMouseOver(this);" onmouseout="JavaScript:onMouseOut(this);"> <td align="center"> <input type="radio" name="radio" id="2" /> </td> <td align="center"> <h:outputLabel value="《户口本内页》" /> </td> </tr> <tr class="panelGridRow2" onmousemove="JavaScript:onMouseOver(this);" onmouseout="JavaScript:onMouseOut(this);"> <td align="center"> <input type="radio" name="radio" id="3" /> </td> <td align="center"> <h:outputLabel value="《常住人口登记表》" /> </td> </tr> </table> </div> </fieldset> <table border="0" height="21px" width="60px"> <tr> <td>          </td> </tr> </table> <div align="center"> <jsfext:commandButtonProxy value="上一步(s)" target="beforeDy" accesskey="s" /> <label style="display: none;" mce_style="display: none;"> <jsfext:cb4Biz value="上一步" accesskey="s" id="beforeDy" tabindex="100" model="#{hjdjQtzxModel}" action="beforeDy" /> </label> <jsfext:commandButtonProxy value="打印(p)" target="printTable" accesskey="p" /> <label style="display: none;" mce_style="display: none;"> <jsfext:cb4Biz value="打印" accesskey="s" id="printTable" tabindex="100" model="#{hjdjQtzxModel}" /> </label> </div> </h:form> </ui:define> </ui:composition> </html>

 

Qtzx.js

 

//户籍登记户口注销其他注销查询条件校验 function checkQueryCondition() { var slhInput = document.getElementById("slh4BriefQuery"); var gmsfhmInput = document.getElementById("gmsfhm4BriefQuery"); var xmInput = document.getElementById("xm4BriefQuery"); if ((slhInput.value == null || slhInput.value == "") && (gmsfhmInput.value == null || gmsfhmInput.value == "") && (xmInput.value == null || xmInput.value == "")) { alert("/u67e5/u8be2/u6761/u4ef6/u4e0d/u80fd/u4e3a/u7a7a"); return false; } return true; } //户籍登记户口注销其他注销注销信息校验,当需要调整关系时,与户主关系不能为空 function otherCheck() { var sbrgmsfhmInput = document.getElementById("sbrgmsfhm_4_form"); var result = validateIDError(sbrgmsfhmInput.value); if (result != null) { alert(result); sbrgmsfhmInput.select(); return false; } return true; } function checkForm(event) { var ret = true; var msg = ""; var count = 1; var srcElement = $(event.srcElement.form); srcElement.find("input[required='required']").each(function () { if (this.value == "") { if (count == 1) { this.focus(); } msg += (count++) + "." + this.cnName + "/u4e0d/u80fd/u4e3a/u7a7a!/n"; ret = false; if (count == 11) { msg += "............./n"; return false; } } }); srcElement.find("textarea[required='required']").each(function () { if (this.value == "") { if (count == 1 && ret) { this.focus(); } msg += (count++) + "." + this.cnName + "/u4e0d/u80fd/u4e3a/u7a7a!/n"; ret = false; if (count == 11) { msg += "............./n"; return false; } } }); if (!ret) { alert(msg); } if (ret == false) { } else { ret = otherCheck(srcElement.attr("id")); } return ret; }

 

此版本主要改变在:1当需要调整户成员关系时,查询的是户成员信息,保存户成员关系信息时,同时要修改户成员信息表和人口基本信息的户成员关系。2校验时,避免在校验时出现找不到对象,校验时,注销原因不能为空,申报人身份号码,申报人姓名,修改户成员关系时不能为空。

你可能感兴趣的:(户籍登记其他注销版本2.0(当需要调整户成员关系时查的表是户成员信息表;校验时对户成员关系进行校验))