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