⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 projcompactimpl.java

📁 sso呵呵
💻 JAVA
字号:
package com.mdcl.mocha.jlcmcc.interfaceforWS;

import org.apache.axis.client.Service;
import org.apache.axis.client.Call;

import com.mdcl.mocha.bpm.sdk.ServiceManager;
import com.mdcl.mocha.bpm.sdk.license.ExpiryException;
import com.mdcl.mocha.bpm.sdk.license.LicenseException;
import com.mdcl.mocha.bpm.sdk.license.NotFoundModuleException;
import com.mdcl.mocha.jlcmcc.configmanager.ConfigManager;

import java.util.List;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: shenshibo
 * Date: 2007-9-21
 * Time: 15:26:11
 * To change this template use File | Settings | File Templates.
 */
public class ProjCompactImpl implements ProjCompact{

    private String url = "";

    private Service service;

    private Call call;

    public ProjCompactImpl() throws Exception {

        this.service = new Service();
        call = (Call) service.createCall();
        url=this.getPath("url.WS.gongcheng");
        call.setTargetEndpointAddress(new java.net.URL(this.url));

    }

    public List getProjSheetList() throws Exception {

        call.setOperationName("getProjSheetList");

        Object[] obj = (Object[]) this.call.invoke(new Object[]{});
        List list = new ArrayList();

        for (int i = 0; i < obj.length; i++) {
            list.add(obj[i]);
        }

        return list;
    }

    public String insertCompact(String compactStr) throws Exception {

        call.setOperationName("insertCompact");
        return (String) this.call.invoke(new Object[]{compactStr});

    }

    public String getCompactPayment(String compactCode) throws Exception {
        call.setOperationName("getCompactPayment");
        return (String) this.call.invoke(new Object[]{compactCode});
    }

    /**
	 *
	 * 读取配置文件
	 *
	 * @return 值
	 */
	private String getPath(String path)
	{
      String result="";
      ConfigManager cm;
     	try {
			cm = (ConfigManager)ServiceManager.getInstance().getService(ConfigManager.class);
			result = cm.getPath("jlcmcc-serviceinf.properties",path);
		} catch (NotFoundModuleException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExpiryException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LicenseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
      return result;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -