public Dictionary <int, int> GetCount(string _pcc)
        {
            int intQNum = 0;
            int intQKnt = 0;
            Dictionary <int, int> pccKnt = new Dictionary <int, int>();

            XmlElement requestXml  = GetQueueCountRequest(-1, _pcc);
            XmlElement responseXml = _GalConn.GalConnSubmitRequest(GalWebMethod.SubmitXml, requestXml);

            var kntNodes = responseXml.SelectNodes("//GenRmkInfo");

            foreach (XmlNode node in kntNodes)
            {
                intQNum = 0;
                intQKnt = 0;

                var qNumNode = XmlDomUtil.GetChildNodeString(node, "QNum");
                var qKntNode = XmlDomUtil.GetChildNodeString(node, "TotPNRBFCnt");

                if (!string.IsNullOrEmpty(qNumNode) && !string.IsNullOrEmpty(qKntNode))
                {
                    if (int.TryParse(qNumNode, out intQNum) &&
                        int.TryParse(qKntNode, out intQKnt))
                    {
                        pccKnt.Add(intQNum, intQKnt);
                    }
                }
            }

            return(pccKnt);
        }
예제 #2
0
        public static string GetReclocFromPNRXml(XmlElement _pnrXml)
        {
            string strRecloc = string.Empty;

            if (_pnrXml != null)
            {
                strRecloc = XmlDomUtil.GetChildNodeString(_pnrXml, "//GenPNRInfo/RecLoc");
            }

            return(strRecloc);
        }
예제 #3
0
        public static List <string> GetVendorRemarks(XmlElement _pnrXml)
        {
            List <string> vendorRemarks = new List <string>();

            XmlNodeList vndRmkList = _pnrXml.SelectNodes("//VndRmk");

            for (int i = 0; i < vndRmkList.Count; i++)
            {
                string remark = XmlDomUtil.GetChildNodeString(vndRmkList[i], "Rmk").Trim();
                vendorRemarks.Add(remark);
            }

            return(vendorRemarks);
        }
예제 #4
0
        public static List <string> GetGeneralRemarks(XmlElement _pnrXml)
        {
            List <string> genRemarks = new List <string>();
            XmlNodeList   nodes      = _pnrXml.SelectNodes("//GenRmkInfo");

            if (nodes != null)
            {
                for (int i = 0; i < nodes.Count; i++)
                {
                    string remark = XmlDomUtil.GetChildNodeString(nodes[i], "GenRmk").Trim();
                    genRemarks.Add(remark);
                }
            }

            nodes = null;
            return(genRemarks);
        }