📄 customsearch.java
字号:
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* 00011020查询理赔列表信息.xls
*
* ***/
public Element ClaimSearch(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011020");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011020" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* 00011013万能险查询.xls
* 00011013-1万能险新契约账户价值查询
* ***/
public Element InsuaccSearchFst(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011013-1");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011013" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
if( eles.elementIterator().hasNext())
outCustom = (Element) eles.elementIterator().next();
}
return outCustom;
}
/***
* 00011013万能险查询.xls
* 00011013-2万能险最新保单账户信息查询
* ***/
public Element InsuaccSearchSnd(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011013-2");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011013" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* 00011013万能险查询.xls
* 00011013-3万能险账户价值结算查询
* ***/
public Element InsuaccSearchTrd(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011013-3");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011013" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* 00011003保单业务员信息查询.xls
*
* ***/
public Element ServicePerson(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011003");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011003" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
if( eles.elementIterator().hasNext())
outCustom = (Element) eles.elementIterator().next();
}
return outCustom;
}
/***
* @see 投资连结产品00011042
*
* @param IDValue 保单号
* */
public Element InvestmentJion(String IDValue){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011042");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011042" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("ContNo", IDValue);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* @see 投资连结产品保单-帐户历史查询00011043
*
* @param IDValue 保单号
* @param InsuAccNo 帐户号
*
* */
public Element InvestmentJionHistory(String IDValue,String InsuAccNo){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011043");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011043" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setBaseElementIn("OrderFlag", "2");
custom.setBaseElementIn("OrderField", "ShouldValueDate");
custom.setInputElement("ContNo", IDValue);
custom.setInputElement("InsuAccNo", InsuAccNo);
if(Data.hasValue(this.pageSize)&&Data.hasValue(this.pageIndex)){
custom.setBaseElementIn("PageFlag", "1");
custom.setBaseElementIn("RowNumStart", ((Integer.parseInt(pageIndex)-1)*Integer.parseInt(pageSize)+1)+"");
custom.setBaseElementIn("PageRowNum", pageSize);
}
Element eles = custom.getOupPutElecment();
if(eles!=null){
pageCount = custom.getBaseInfoOut("TotalRowNum");
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* @see 投资连结产品保单-投连单位价格查询00011039
*
* @param IDValue 保单号
* @param ValueDateStart 计价起期
* @param ValueDateEnd 计价止期
*
* */
public Element InvestmentJionTimer(String IDValue,String ValueDateStart,String ValueDateEnd){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011039");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011039" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("InsuAccNo", IDValue);
custom.setInputElement("ValueDateStart", ValueDateStart);
custom.setInputElement("ValueDateEnd", ValueDateEnd);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/***
* @see 金包银价格查询00011044
*
* @param RiskCode 险种编码
*
* */
public Element InsuaccInsertTimer(String RiskCode){
Element outCustom = null;
axisTypeSearch custom = new axisTypeSearch("00011044");
String date = Data.getCurrentDate();
String time = Data.getCurrentTime();
String numbers = "00011044" + date.replaceAll("-", "");
if(date.equals(dates)&&Integer.toString(number).length()<=5){
number++;
}else{
number = 1;
dates = date;
}
numbers += getStochastic(""+number);
custom.setBaseElementIn("TransDate", date);
custom.setBaseElementIn("TransTime", time);
custom.setBaseElementIn("TransSeq", numbers);
custom.setInputElement("RiskCode", RiskCode);
Element eles = custom.getOupPutElecment();
if(eles!=null){
ListEle = eles.elementIterator();
if( eles.elementIterator().hasNext())
outCustom = (Element) ListEle.next();
}
return outCustom;
}
/**
* 根据eleName获取值
* @param ele
* @param eleName
* @return
*/
public String getElementText(Element ele,String eleName){
return ele.element(eleName).getText();
}
/**
* 获取下一个Element
* @return
*/
public Element getNextElements(){
if(ListEle.hasNext()){
return (Element) ListEle.next();
}
return null;
}
/**
* 构造5位序列号,不足5位的在左侧补0
* @param num
* @return String
*/
private String getStochastic(String num){
String tt="";
if(num.length()<5){
for(int count=0;count<5-num.length();count++){
tt+="0";
}
}
return tt+num;
}
public static void main(String[]str){
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -