1.新增北汽财务付款更新接口
This commit is contained in:
parent
2fb1ff67fb
commit
b35b2f536c
@ -0,0 +1,58 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-01-11
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("BC_PAY_INFO_LOG");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","发起更新","向北财发起更新付款信息","updateBC()","","","","btn_icon_detail",""},
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
function updateBC(){
|
||||
var rows = getCheckedRows(0);
|
||||
if(rows.length == 0){
|
||||
AsDebug.showMessage("提示","请选择一行数据","","",true);
|
||||
return;
|
||||
}
|
||||
var Ids = "";
|
||||
for(var i in rows){
|
||||
Ids += ","+getItemValue(0,rows[i],"ID");
|
||||
}
|
||||
Ids = Ids.substring(1);
|
||||
var result = RunJavaMethodTrans("paymentInfoUpdate.UpdatePaymentInfo","requestAndAction","Ids="+Ids);
|
||||
if("SUCCESS" == result){
|
||||
AsDebug.showMessage("提示","操作成功!","","",true);
|
||||
reloadSelf();
|
||||
}else{
|
||||
AsDebug.showMessage("提示","操作失败","","",true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,31 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-01-16
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
String sTempletNo = "BC_PAY_INFO_LOG_INFO";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
//doTemp.setColTips("", "测试");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0,'returnList()')","","","",""},
|
||||
// {"true","All","Button","返回","返回列表","returnList()","","","",""}
|
||||
// {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -4929,7 +4929,8 @@
|
||||
<attribute name="fact_money" label="付款金额" type="DOUBLE" length="22" scale="2"/>
|
||||
<attribute name="result" label="返回结果" type="STRING" length="22"/>
|
||||
<attribute name="resultInfo" label="失败结果详情" type="STRING" length="100"/>
|
||||
<attribute name="responseInfo" label="响应信息" type="STRING" length="100"/>
|
||||
<attribute name="responseInfo" label="响应信息" type="STRING" length="100"/>
|
||||
<attribute name="final_result" label="最终结果" type="STRING" length="10"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.amarsoft.dict.als.manage;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.BC_PAY_INFO_LOG;
|
||||
import jbo.com.tenwa.lease.comm.LB_INSURANCE_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
|
||||
@ -9,6 +10,7 @@ import java.util.Map;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.res.AppManager;
|
||||
import com.amarsoft.awe.res.MenuManager;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
@ -254,4 +256,30 @@ public class NameManager
|
||||
// BizObject bo=JBOFactory.createBizObjectQuery(LB_INSURANCE_INFO.CLASS_NAME, "select * from (SELECT @rownum := @rownum + 1 AS rownum,insurer_end_date FROM O,(SELECT @rownum := 0) t WHERE contract_id ='"+ContractId+"' ORDER BY insurer_start_date ) t WHERE t.rownum= '"+i+"'").getSingleResult(false);
|
||||
// return bo.getAttribute(LB_INSURANCE_INFO.INSURER_END_DATE).getString();
|
||||
}
|
||||
//得到北汽表上一次更新时间
|
||||
public static String getLastTime(String project_no){
|
||||
String lastTime="";
|
||||
String sql="select max(O.inputtime) as lastTime from bc_pay_info_log O where O.project_no='"+project_no+"' group by O.project_no ";
|
||||
Transaction Sqlca = null;
|
||||
JBOTransaction tx;
|
||||
try {
|
||||
tx = JBOFactory.createJBOTransaction();
|
||||
Sqlca = Transaction.createTransaction(tx);
|
||||
lastTime = Sqlca.getString(sql);
|
||||
} catch (JBOException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
/* try {
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(BC_PAY_INFO_LOG.CLASS_NAME, sql).getSingleResult(false);
|
||||
lastTime = bo.getAttribute("lastTime").toString();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
return lastTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,231 @@
|
||||
/**
|
||||
* Application.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus;
|
||||
|
||||
public class Application implements java.io.Serializable {
|
||||
private java.math.BigDecimal amount_Disbursed;
|
||||
|
||||
private java.lang.String application_Number;
|
||||
|
||||
private java.lang.String borrower_Name;
|
||||
|
||||
private java.lang.String ID_Card_No;
|
||||
|
||||
public Application() {
|
||||
}
|
||||
|
||||
public Application(
|
||||
java.math.BigDecimal amount_Disbursed,
|
||||
java.lang.String application_Number,
|
||||
java.lang.String borrower_Name,
|
||||
java.lang.String ID_Card_No) {
|
||||
this.amount_Disbursed = amount_Disbursed;
|
||||
this.application_Number = application_Number;
|
||||
this.borrower_Name = borrower_Name;
|
||||
this.ID_Card_No = ID_Card_No;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the amount_Disbursed value for this Application.
|
||||
*
|
||||
* @return amount_Disbursed
|
||||
*/
|
||||
public java.math.BigDecimal getAmount_Disbursed() {
|
||||
return amount_Disbursed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the amount_Disbursed value for this Application.
|
||||
*
|
||||
* @param amount_Disbursed
|
||||
*/
|
||||
public void setAmount_Disbursed(java.math.BigDecimal amount_Disbursed) {
|
||||
this.amount_Disbursed = amount_Disbursed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the application_Number value for this Application.
|
||||
*
|
||||
* @return application_Number
|
||||
*/
|
||||
public java.lang.String getApplication_Number() {
|
||||
return application_Number;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the application_Number value for this Application.
|
||||
*
|
||||
* @param application_Number
|
||||
*/
|
||||
public void setApplication_Number(java.lang.String application_Number) {
|
||||
this.application_Number = application_Number;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the borrower_Name value for this Application.
|
||||
*
|
||||
* @return borrower_Name
|
||||
*/
|
||||
public java.lang.String getBorrower_Name() {
|
||||
return borrower_Name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the borrower_Name value for this Application.
|
||||
*
|
||||
* @param borrower_Name
|
||||
*/
|
||||
public void setBorrower_Name(java.lang.String borrower_Name) {
|
||||
this.borrower_Name = borrower_Name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ID_Card_No value for this Application.
|
||||
*
|
||||
* @return ID_Card_No
|
||||
*/
|
||||
public java.lang.String getID_Card_No() {
|
||||
return ID_Card_No;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ID_Card_No value for this Application.
|
||||
*
|
||||
* @param ID_Card_No
|
||||
*/
|
||||
public void setID_Card_No(java.lang.String ID_Card_No) {
|
||||
this.ID_Card_No = ID_Card_No;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof Application)) return false;
|
||||
Application other = (Application) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.amount_Disbursed==null && other.getAmount_Disbursed()==null) ||
|
||||
(this.amount_Disbursed!=null &&
|
||||
this.amount_Disbursed.equals(other.getAmount_Disbursed()))) &&
|
||||
((this.application_Number==null && other.getApplication_Number()==null) ||
|
||||
(this.application_Number!=null &&
|
||||
this.application_Number.equals(other.getApplication_Number()))) &&
|
||||
((this.borrower_Name==null && other.getBorrower_Name()==null) ||
|
||||
(this.borrower_Name!=null &&
|
||||
this.borrower_Name.equals(other.getBorrower_Name()))) &&
|
||||
((this.ID_Card_No==null && other.getID_Card_No()==null) ||
|
||||
(this.ID_Card_No!=null &&
|
||||
this.ID_Card_No.equals(other.getID_Card_No())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getAmount_Disbursed() != null) {
|
||||
_hashCode += getAmount_Disbursed().hashCode();
|
||||
}
|
||||
if (getApplication_Number() != null) {
|
||||
_hashCode += getApplication_Number().hashCode();
|
||||
}
|
||||
if (getBorrower_Name() != null) {
|
||||
_hashCode += getBorrower_Name().hashCode();
|
||||
}
|
||||
if (getID_Card_No() != null) {
|
||||
_hashCode += getID_Card_No().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Application.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("amount_Disbursed");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Amount_Disbursed"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("application_Number");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application_Number"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("borrower_Name");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Borrower_Name"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ID_Card_No");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "ID_Card_No"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Request.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus;
|
||||
|
||||
public class Request implements java.io.Serializable {
|
||||
private org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application[] applications;
|
||||
|
||||
public Request() {
|
||||
}
|
||||
|
||||
public Request(
|
||||
org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application[] applications) {
|
||||
this.applications = applications;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the applications value for this Request.
|
||||
*
|
||||
* @return applications
|
||||
*/
|
||||
public org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application[] getApplications() {
|
||||
return applications;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the applications value for this Request.
|
||||
*
|
||||
* @param applications
|
||||
*/
|
||||
public void setApplications(org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application[] applications) {
|
||||
this.applications = applications;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof Request)) return false;
|
||||
Request other = (Request) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.applications==null && other.getApplications()==null) ||
|
||||
(this.applications!=null &&
|
||||
java.util.Arrays.equals(this.applications, other.getApplications())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getApplications() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getApplications());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getApplications(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Request.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Request"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("applications");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Applications"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setItemQName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application"));
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
/**
|
||||
* Response.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus;
|
||||
|
||||
public class Response implements java.io.Serializable {
|
||||
private java.lang.String message_Code;
|
||||
|
||||
private java.lang.String message_Description;
|
||||
|
||||
public Response() {
|
||||
}
|
||||
|
||||
public Response(
|
||||
java.lang.String message_Code,
|
||||
java.lang.String message_Description) {
|
||||
this.message_Code = message_Code;
|
||||
this.message_Description = message_Description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message_Code value for this Response.
|
||||
*
|
||||
* @return message_Code
|
||||
*/
|
||||
public java.lang.String getMessage_Code() {
|
||||
return message_Code;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message_Code value for this Response.
|
||||
*
|
||||
* @param message_Code
|
||||
*/
|
||||
public void setMessage_Code(java.lang.String message_Code) {
|
||||
this.message_Code = message_Code;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message_Description value for this Response.
|
||||
*
|
||||
* @return message_Description
|
||||
*/
|
||||
public java.lang.String getMessage_Description() {
|
||||
return message_Description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message_Description value for this Response.
|
||||
*
|
||||
* @param message_Description
|
||||
*/
|
||||
public void setMessage_Description(java.lang.String message_Description) {
|
||||
this.message_Description = message_Description;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof Response)) return false;
|
||||
Response other = (Response) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.message_Code==null && other.getMessage_Code()==null) ||
|
||||
(this.message_Code!=null &&
|
||||
this.message_Code.equals(other.getMessage_Code()))) &&
|
||||
((this.message_Description==null && other.getMessage_Description()==null) ||
|
||||
(this.message_Description!=null &&
|
||||
this.message_Description.equals(other.getMessage_Description())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getMessage_Code() != null) {
|
||||
_hashCode += getMessage_Code().hashCode();
|
||||
}
|
||||
if (getMessage_Description() != null) {
|
||||
_hashCode += getMessage_Description().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Response.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Response"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("message_Code");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Message_Code"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("message_Description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Message_Description"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
||||
200
src_cmb/org/tempuri/BasicHttpBinding_IUpdateStatusStub.java
Normal file
200
src_cmb/org/tempuri/BasicHttpBinding_IUpdateStatusStub.java
Normal file
@ -0,0 +1,200 @@
|
||||
/**
|
||||
* BasicHttpBinding_IUpdateStatusStub.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.tempuri;
|
||||
|
||||
public class BasicHttpBinding_IUpdateStatusStub extends org.apache.axis.client.Stub implements org.tempuri.IUpdateStatus {
|
||||
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
||||
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
||||
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations;
|
||||
|
||||
static {
|
||||
_operations = new org.apache.axis.description.OperationDesc[1];
|
||||
_initOperationDesc1();
|
||||
}
|
||||
|
||||
private static void _initOperationDesc1(){
|
||||
org.apache.axis.description.OperationDesc oper;
|
||||
org.apache.axis.description.ParameterDesc param;
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("UpdateApplicationStatus");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Request"), org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request.class, false, false);
|
||||
param.setOmittable(true);
|
||||
param.setNillable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Response"));
|
||||
oper.setReturnClass(org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "UpdateApplicationStatusResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[0] = oper;
|
||||
|
||||
}
|
||||
|
||||
public BasicHttpBinding_IUpdateStatusStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public BasicHttpBinding_IUpdateStatusStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public BasicHttpBinding_IUpdateStatusStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
java.lang.Class cls;
|
||||
javax.xml.namespace.QName qName;
|
||||
javax.xml.namespace.QName qName2;
|
||||
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
||||
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
||||
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
||||
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
||||
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
||||
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
||||
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
||||
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
||||
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
||||
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
||||
qName = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "ArrayOfApplication");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application[].class;
|
||||
cachedSerClasses.add(cls);
|
||||
qName = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application");
|
||||
qName2 = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Application");
|
||||
cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
|
||||
cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Request");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/Cap.Infrastructure.Entities.UpdateStatus", "Response");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
}
|
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
||||
try {
|
||||
org.apache.axis.client.Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
java.util.Enumeration keys = super.cachedProperties.keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
java.lang.String key = (java.lang.String) keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
// All the type mapping information is registered
|
||||
// when the first call is made.
|
||||
// The type mapping information is actually registered in
|
||||
// the TypeMappingRegistry of the service, which
|
||||
// is the reason why registration is only needed for the first call.
|
||||
synchronized (this) {
|
||||
if (firstCall()) {
|
||||
// must set encoding style before registering serializers
|
||||
_call.setEncodingStyle(null);
|
||||
for (int i = 0; i < cachedSerFactories.size(); ++i) {
|
||||
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
|
||||
javax.xml.namespace.QName qName =
|
||||
(javax.xml.namespace.QName) cachedSerQNames.get(i);
|
||||
java.lang.Object x = cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
java.lang.Class sf = (java.lang.Class)
|
||||
cachedSerFactories.get(i);
|
||||
java.lang.Class df = (java.lang.Class)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
|
||||
cachedSerFactories.get(i);
|
||||
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return _call;
|
||||
}
|
||||
catch (java.lang.Throwable _t) {
|
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
||||
}
|
||||
}
|
||||
|
||||
public org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response updateApplicationStatus(org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request request) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://tempuri.org/IUpdateStatus/UpdateApplicationStatus");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "UpdateApplicationStatus"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {request});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response) org.apache.axis.utils.JavaUtils.convert(_resp, org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
12
src_cmb/org/tempuri/IUpdateStatus.java
Normal file
12
src_cmb/org/tempuri/IUpdateStatus.java
Normal file
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* IUpdateStatus.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.tempuri;
|
||||
|
||||
public interface IUpdateStatus extends java.rmi.Remote {
|
||||
public org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response updateApplicationStatus(org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request request) throws java.rmi.RemoteException;
|
||||
}
|
||||
54
src_cmb/org/tempuri/IUpdateStatusProxy.java
Normal file
54
src_cmb/org/tempuri/IUpdateStatusProxy.java
Normal file
@ -0,0 +1,54 @@
|
||||
package org.tempuri;
|
||||
|
||||
public class IUpdateStatusProxy implements org.tempuri.IUpdateStatus {
|
||||
private String _endpoint = null;
|
||||
private org.tempuri.IUpdateStatus iUpdateStatus = null;
|
||||
|
||||
public IUpdateStatusProxy() {
|
||||
_initIUpdateStatusProxy();
|
||||
}
|
||||
|
||||
public IUpdateStatusProxy(String endpoint) {
|
||||
_endpoint = endpoint;
|
||||
_initIUpdateStatusProxy();
|
||||
}
|
||||
|
||||
private void _initIUpdateStatusProxy() {
|
||||
try {
|
||||
iUpdateStatus = (new org.tempuri.UpdateStatusLocator()).getBasicHttpBinding_IUpdateStatus();
|
||||
if (iUpdateStatus != null) {
|
||||
if (_endpoint != null)
|
||||
((javax.xml.rpc.Stub)iUpdateStatus)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
|
||||
else
|
||||
_endpoint = (String)((javax.xml.rpc.Stub)iUpdateStatus)._getProperty("javax.xml.rpc.service.endpoint.address");
|
||||
}
|
||||
|
||||
}
|
||||
catch (javax.xml.rpc.ServiceException serviceException) {}
|
||||
}
|
||||
|
||||
public String getEndpoint() {
|
||||
return _endpoint;
|
||||
}
|
||||
|
||||
public void setEndpoint(String endpoint) {
|
||||
_endpoint = endpoint;
|
||||
if (iUpdateStatus != null)
|
||||
((javax.xml.rpc.Stub)iUpdateStatus)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
|
||||
|
||||
}
|
||||
|
||||
public org.tempuri.IUpdateStatus getIUpdateStatus() {
|
||||
if (iUpdateStatus == null)
|
||||
_initIUpdateStatusProxy();
|
||||
return iUpdateStatus;
|
||||
}
|
||||
|
||||
public org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response updateApplicationStatus(org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request request) throws java.rmi.RemoteException{
|
||||
if (iUpdateStatus == null)
|
||||
_initIUpdateStatusProxy();
|
||||
return iUpdateStatus.updateApplicationStatus(request);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
16
src_cmb/org/tempuri/UpdateStatus.java
Normal file
16
src_cmb/org/tempuri/UpdateStatus.java
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* UpdateStatus.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.tempuri;
|
||||
|
||||
public interface UpdateStatus extends javax.xml.rpc.Service {
|
||||
public java.lang.String getBasicHttpBinding_IUpdateStatusAddress();
|
||||
|
||||
public org.tempuri.IUpdateStatus getBasicHttpBinding_IUpdateStatus() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public org.tempuri.IUpdateStatus getBasicHttpBinding_IUpdateStatus(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
||||
142
src_cmb/org/tempuri/UpdateStatusLocator.java
Normal file
142
src_cmb/org/tempuri/UpdateStatusLocator.java
Normal file
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* UpdateStatusLocator.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.tempuri;
|
||||
|
||||
public class UpdateStatusLocator extends org.apache.axis.client.Service implements org.tempuri.UpdateStatus {
|
||||
|
||||
public UpdateStatusLocator() {
|
||||
}
|
||||
|
||||
|
||||
public UpdateStatusLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public UpdateStatusLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for BasicHttpBinding_IUpdateStatus
|
||||
private java.lang.String BasicHttpBinding_IUpdateStatus_address = "http://cap074.netsolpk.com/UpdateStatusService/NFS.Business.UpdateStatusService.ServicesImpl.UpdateStatus.svc";
|
||||
|
||||
public java.lang.String getBasicHttpBinding_IUpdateStatusAddress() {
|
||||
return BasicHttpBinding_IUpdateStatus_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String BasicHttpBinding_IUpdateStatusWSDDServiceName = "BasicHttpBinding_IUpdateStatus";
|
||||
|
||||
public java.lang.String getBasicHttpBinding_IUpdateStatusWSDDServiceName() {
|
||||
return BasicHttpBinding_IUpdateStatusWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setBasicHttpBinding_IUpdateStatusWSDDServiceName(java.lang.String name) {
|
||||
BasicHttpBinding_IUpdateStatusWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public org.tempuri.IUpdateStatus getBasicHttpBinding_IUpdateStatus() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(BasicHttpBinding_IUpdateStatus_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getBasicHttpBinding_IUpdateStatus(endpoint);
|
||||
}
|
||||
|
||||
public org.tempuri.IUpdateStatus getBasicHttpBinding_IUpdateStatus(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
org.tempuri.BasicHttpBinding_IUpdateStatusStub _stub = new org.tempuri.BasicHttpBinding_IUpdateStatusStub(portAddress, this);
|
||||
_stub.setPortName(getBasicHttpBinding_IUpdateStatusWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setBasicHttpBinding_IUpdateStatusEndpointAddress(java.lang.String address) {
|
||||
BasicHttpBinding_IUpdateStatus_address = address;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
if (org.tempuri.IUpdateStatus.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
org.tempuri.BasicHttpBinding_IUpdateStatusStub _stub = new org.tempuri.BasicHttpBinding_IUpdateStatusStub(new java.net.URL(BasicHttpBinding_IUpdateStatus_address), this);
|
||||
_stub.setPortName(getBasicHttpBinding_IUpdateStatusWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
catch (java.lang.Throwable t) {
|
||||
throw new javax.xml.rpc.ServiceException(t);
|
||||
}
|
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
if (portName == null) {
|
||||
return getPort(serviceEndpointInterface);
|
||||
}
|
||||
java.lang.String inputPortName = portName.getLocalPart();
|
||||
if ("BasicHttpBinding_IUpdateStatus".equals(inputPortName)) {
|
||||
return getBasicHttpBinding_IUpdateStatus();
|
||||
}
|
||||
else {
|
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
|
||||
public javax.xml.namespace.QName getServiceName() {
|
||||
return new javax.xml.namespace.QName("http://tempuri.org/", "UpdateStatus");
|
||||
}
|
||||
|
||||
private java.util.HashSet ports = null;
|
||||
|
||||
public java.util.Iterator getPorts() {
|
||||
if (ports == null) {
|
||||
ports = new java.util.HashSet();
|
||||
ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_IUpdateStatus"));
|
||||
}
|
||||
return ports.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
|
||||
if ("BasicHttpBinding_IUpdateStatus".equals(portName)) {
|
||||
setBasicHttpBinding_IUpdateStatusEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
||||
132
src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java
Normal file
132
src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java
Normal file
@ -0,0 +1,132 @@
|
||||
package paymentInfoUpdate;
|
||||
import java.math.BigDecimal;
|
||||
import java.rmi.RemoteException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.BC_PAY_INFO_LOG;
|
||||
|
||||
import org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Application;
|
||||
import org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Request;
|
||||
import org.datacontract.schemas._2004._07.Cap_Infrastructure_Entities_UpdateStatus.Response;
|
||||
import org.tempuri.IUpdateStatusProxy;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
|
||||
public class UpdatePaymentInfo {
|
||||
private String Ids;
|
||||
public String action(List<Map<String,String>> requests) {
|
||||
String resulst="FAIL";
|
||||
JBOTransaction bcLogs = null;
|
||||
String url= "http://219.141.202.98:8000/UpdateStatusService/NFS.Business.UpdateStatusService.ServicesImpl.UpdateStatus.svc";
|
||||
IUpdateStatusProxy Iudsp = new IUpdateStatusProxy(url);
|
||||
Request request = new Request();
|
||||
List<Application> requestList = new ArrayList<Application>();
|
||||
for(int i=0;i<requests.size();i++){
|
||||
Map<String,String> requestInfo = requests.get(i);
|
||||
Application alct = new Application();
|
||||
String fact_money = requestInfo.get("fact_money");
|
||||
String project_no = requestInfo.get("project_no");
|
||||
String customername = requestInfo.get("customername");
|
||||
String certid = requestInfo.get("certid");
|
||||
alct.setAmount_Disbursed(new BigDecimal(fact_money));
|
||||
alct.setApplication_Number(project_no);
|
||||
alct.setBorrower_Name(customername);
|
||||
alct.setID_Card_No(certid);
|
||||
requestList.add(alct);
|
||||
}
|
||||
//将遍历的信息放进Application[]中
|
||||
Application[] alcts = requestList.toArray(new Application[requestList.size()]);
|
||||
request.setApplications(alcts);
|
||||
//发送信息并解析回复结果
|
||||
Response results = null;
|
||||
String message_Code = null;
|
||||
String message_Description = null;
|
||||
try {
|
||||
results = Iudsp.updateApplicationStatus(request);
|
||||
} catch (RemoteException e1) {
|
||||
System.out.println("调用通信异常!!!");
|
||||
e1.printStackTrace();
|
||||
}
|
||||
if(results != null){
|
||||
message_Code = results.getMessage_Code();
|
||||
message_Description = results.getMessage_Description();
|
||||
}
|
||||
try {
|
||||
bcLogs =JBOFactory.createJBOTransaction();
|
||||
BizObjectManager BJM_bcPay = JBOFactory.getBizObjectManager(BC_PAY_INFO_LOG.CLASS_NAME,bcLogs);
|
||||
|
||||
for(int i=0;i<requests.size();i++){
|
||||
Map<String,String> requestInfo = requests.get(i);
|
||||
String fact_money = requestInfo.get("fact_money");
|
||||
String project_no = requestInfo.get("project_no");
|
||||
String customername = requestInfo.get("customername");
|
||||
String certid = requestInfo.get("certid");
|
||||
BizObject BJ_Info = BJM_bcPay.newObject();
|
||||
BJ_Info.setAttributeValue("project_no",project_no);
|
||||
BJ_Info.setAttributeValue("customername",customername);
|
||||
BJ_Info.setAttributeValue("certid",certid);
|
||||
BJ_Info.setAttributeValue("fact_money",fact_money);
|
||||
BJ_Info.setAttributeValue("INPUTTIME",StringFunction.getTodayNow());
|
||||
BJ_Info.setAttributeValue("result","成功");
|
||||
BJ_Info.setAttributeValue("resultInfo","付款信息更新成功");
|
||||
BJ_Info.setAttributeValue("final_result","Y");
|
||||
if(results==null||message_Code==null||"".equals(message_Code)){
|
||||
BJ_Info.setAttributeValue("result","失败");
|
||||
BJ_Info.setAttributeValue("resultInfo","通信异常");
|
||||
BJ_Info.setAttributeValue("final_result","N");
|
||||
}
|
||||
if(project_no==null||"".equals(project_no)
|
||||
||customername==null||"".equals(customername)
|
||||
||certid==null||"".equals(certid)
|
||||
||fact_money==null||"".equals(fact_money)){
|
||||
BJ_Info.setAttributeValue("final_result","失败");
|
||||
BJ_Info.setAttributeValue("resultInfo","发送信息有空值");
|
||||
BJ_Info.setAttributeValue("final_result","N");
|
||||
}
|
||||
if("Fail".equalsIgnoreCase(message_Code)&&(message_Description.indexOf(project_no))!=-1){
|
||||
BJ_Info.setAttributeValue("result","失败");
|
||||
BJ_Info.setAttributeValue("resultInfo","付款信息更新失败");
|
||||
BJ_Info.setAttributeValue("responseInfo",message_Description);
|
||||
BJ_Info.setAttributeValue("final_result","N");
|
||||
}
|
||||
BJM_bcPay.saveObject(BJ_Info);
|
||||
String sql = "update BC_PAY_INFO_LOG set final_result='Y' where project_no='"+project_no+"'";
|
||||
if("Y".equals(BJ_Info.getAttribute("final_result").toString())){
|
||||
BJM_bcPay.createQuery(sql).executeUpdate();
|
||||
}
|
||||
}
|
||||
bcLogs.commit();
|
||||
|
||||
System.out.println("北汽财务数据更新状态:"+message_Code);
|
||||
System.out.println("描述信息:"+message_Description);
|
||||
resulst="SUCCESS";
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return resulst;
|
||||
}
|
||||
public String requestAndAction (JBOTransaction tx) throws SQLException{
|
||||
Conn conn = new Conn(tx);
|
||||
String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID in(?)";
|
||||
List<Map<String, String>> requests = conn.executeQuery(sql, Ids);
|
||||
if(!(requests.size()>0)){
|
||||
return "FAIL";
|
||||
}
|
||||
return this.action(requests);
|
||||
}
|
||||
public String getIds() {
|
||||
return Ids;
|
||||
}
|
||||
public void setIds(String ids) {
|
||||
Ids = ids;
|
||||
}
|
||||
}
|
||||
1
src_cmb/paymentInfoUpdate/UpdateStatus.wsdl
Normal file
1
src_cmb/paymentInfoUpdate/UpdateStatus.wsdl
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,38 @@
|
||||
package com.tenwa.flow.fund.actualpayment;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import paymentInfoUpdate.UpdatePaymentInfo;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
/**
|
||||
* 发送付款信息到北汽财务(实际付款通过)
|
||||
* @author
|
||||
*
|
||||
*/
|
||||
|
||||
public class SendPaymentInfoToBEICAI extends BaseBussiness{
|
||||
public Object run(Transaction Sqlca) throws Exception{
|
||||
this.initBussinessParam(Sqlca.getTransaction());
|
||||
Conn conn = new Conn(Sqlca);
|
||||
String sMessage="";
|
||||
String sFlowUnid = (String)this.getAttribute("ObjectNo");
|
||||
//查询出申请号,姓名,证件号,付款金额
|
||||
String sql = "SELECT lpi.project_no,ci.customername,ci.certid,lfi.fact_money FROM lc_fund_income lfi "+
|
||||
"LEFT JOIN LC_FUND_INCOME_TEMP lfit ON lfit.contract_id=lfi.contract_id "+
|
||||
"LEFT JOIN lb_union_lessee lul ON lul.contract_id=lfi.contract_id "+
|
||||
"LEFT JOIN customer_info ci ON ci.customerid=lul.customer_id "+
|
||||
"LEFT JOIN lb_project_info lpi ON lpi.id=lul.project_id "+
|
||||
"LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid=lpi.product_id "+
|
||||
"WHERE lfi.pay_status='have_paid' AND lfi.ebank_status='05' AND psl.operationType='BAIC_MOTOR' AND lfit.flowunid=?";
|
||||
//将查询结果封装成List
|
||||
List<Map<String, String>> requests = conn.executeQuery(sql, sFlowUnid);
|
||||
if(requests.size()>0){
|
||||
//执行发送并解析结果
|
||||
UpdatePaymentInfo upi = new UpdatePaymentInfo();
|
||||
upi.action(requests);
|
||||
}
|
||||
sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user