GatherInfoAnalysis.java 2.1 KB
package com.sy.bwAnalysis;

import com.sy.bwAssist.GatherInfo;
import com.sy.bwAssist.Message;
import com.sy.bwAssist.Meta;
import com.sy.model.gatherinfo;



public class GatherInfoAnalysis {

	public gatherinfo toJavaBean(Message msg) {
		gatherinfo bean = new gatherinfo();
		GatherInfo info = msg.getInfo();
		Meta meta = msg.getMeta();
		bean.setSender(meta.getSender());
		bean.setReceiver(meta.getReceiver());
		bean.setSeqn(meta.getSeqn());
		bean.setSendtime(meta.getSendTime());
		bean.setType(meta.getType());
		bean.setSmtype(meta.getSmType());
		bean.setAreaid(info.getAREA_ID());
		bean.setChnlno(info.getCHNL_NO());
		bean.setIetype(info.getI_E_TYPE());
		bean.setBarcode(info.getBarCode());
		bean.setSeqno(info.getSEQ_NO());
		bean.setCarecno(info.getCar().getCarEcNo());
		bean.setCarecno2(info.getCar().getCarEcNo2());
		bean.setVename(info.getCar().getVeName());
		bean.setVecustomsno(info.getCar().getVeCustomsNo());
		bean.setVewt((info.getCar().getVeWt()));
		bean.setContaidb(info.getConta().getContaIdB());
		bean.setContaidf(info.getConta().getContaIdF());
		bean.setContamodelf(info.getConta().getContaModelF());
		bean.setContamodelf(info.getConta().getContaModelB());
		bean.setContanum(info.getConta().getContaNum());
		bean.setContareco(info.getConta().getContaReco());
		bean.setDricno(info.getIc().getDRICNO());
		bean.setIcdrcustomsno(info.getIc().getIcDrCustomsNo());
		bean.setIccocustomsno(info.getIc().getIcCoCustomsNo());
		bean.setIcbillno(info.getIc().getIcBillNo());
		bean.setIcgrosswt(info.getIc().getIcGrossWt());
		bean.setIcvecustomsno(info.getIc().getIcVeCustomsNo());
		bean.setIcvename(info.getIc().getIcVeName());
		bean.setIccontaid(info.getIc().getIcContaId());
		bean.setIcesealid(info.getIc().getIcEsealId());
		bean.setIcbusstype(info.getIc().getIcBussType());
		bean.setIcexdata(info.getIc().getIcExData());
		bean.setGrosswt((info.getWeight().getGrossWt()));
		bean.setTrecno(info.getTrailer().getTrEcNo());
		bean.setTrname(info.getTrailer().getTrName());
		bean.setTrwt((info.getTrailer().getTrWt()));
		bean.setEsealicno(info.getSeal().getEsealIcNo());
		bean.setEsealid(info.getSeal().getEsealId());
		return bean;
	}
	
}