Ejemplo n.º 1
0
        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 "";
        }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
0
 public MsgListen(MsgQueue respQueue, CustomsMessageType cmt, SendPlace sp)
 {
     this.respQueue = respQueue;
     this.cmt = cmt;
     this.sendPlace = sp;
 }