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

📄 submitclient.java

📁 采用JAVA开发
💻 JAVA
字号:
/*
 * Created on 2004-8-9
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.gctech.cmpp3.client;

import com.gctech.cmpp3.msg.CmppSubmit;
import com.gctech.util.CmppSocket;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) Gctech 2004-8-9</p>
 * <p>Company: 吉芙德资讯有限公司</p>
 *
 * @version 1.0
 * @author liyi
 *
 */
public class SubmitClient {
	public static void sendSubmit(String linkID,String phon){
		CmppSocket conn = new CmppSocket("127.0.0.1",7890);
		conn.InitialSock();
		CmppSubmit submit = new CmppSubmit(conn);
		submit.setMsgFmt(15);
		submit.setValidTime("");
		submit.setDestTerminalType(0);
		submit.setFeeterminalid(phon);
		submit.setFeeTerminalType(0);
		submit.setLinkID(linkID);
		submit.setMsgFmt(15);
		submit.setMsgSrc("915067");
		submit.setPkNumber(1);
		submit.setPkTotal(1);
		submit.setServiceId("DBXH");
		submit.setSrcTerminalId("04007");
		submit.setRequiredItems(phon,5,"hello".getBytes());
		int i  = submit.sendCmppSubmit();
		System.out.println("返回值:"+i);
	}
}

⌨️ 快捷键说明

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