public static string getTheSendPlace(SendPlace sp) { String des = ""; if (sp == SendPlace.CUSTOMS) { des = "customs"; } else if (sp == SendPlace.GOVERNMENT) { des = "government"; } return des; }
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 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 MsgListen(MsgQueue respQueue, CustomsMessageType cmt, SendPlace sp) { this.respQueue = respQueue; this.cmt = cmt; this.sendPlace = sp; }