public String getRecMsgIdPathByMsgType(CustomsMessageType cmt, String des) { if (cmt == CustomsMessageType.GOODS) { return doc.SelectSingleNode("config/responseHelper/" + des + "/goods/recMsgId").InnerText; } else if (cmt == CustomsMessageType.MANIFEST) { return doc.SelectSingleNode("config/responseHelper/" + des + "/manifest/recMsgId").InnerText; } else if (cmt == CustomsMessageType.ORDER) { return doc.SelectSingleNode("config/responseHelper/" + des + "/order/recMsgId").InnerText; } return ""; }
public static string getRecMsgIdFromResp(XmlDocument doc, CustomsMessageType cmt, SendPlace sp) { string des = getTheSendPlace(sp); string recMsgId = doc.SelectSingleNode(cu.getRecMsgIdPathByMsgType(cmt, des)).InnerText; return recMsgId; }
public static string getOutIdFromResp(XmlDocument doc, CustomsMessageType cmt, SendPlace sp) { string des = getTheSendPlace(sp); string outDeclNo = doc.SelectSingleNode(cu.getOutIdPath(cmt,des)).InnerText; return outDeclNo; }
public MsgListen(MsgQueue respQueue, CustomsMessageType cmt, SendPlace sp) { this.respQueue = respQueue; this.cmt = cmt; this.sendPlace = sp; }