Example #1
0
        public string dsg(string pnr)
        {
            return(ibe.wsDSG(pnr));

            wsIBE.HiWSService hi = new wsIBE.HiWSService();
            return(hi.wsDSG(pnr));
        }
Example #2
0
        private string fd(string org, string dst, string dt, string al, string planeModel, string passType, bool fullFareBasis)
        {
            try
            {
                return(ibe.wsFD(
                           org.ToUpper(),
                           dst.ToUpper(),
                           dt.ToUpper(),
                           al.ToUpper(),
                           planeModel.ToUpper(),
                           passType.ToUpper(),
                           true));

                wsIBE.HiWSService ws = new wsIBE.HiWSService();
                return(ws.wsFD(
                           org.ToUpper(),
                           dst.ToUpper(),
                           dt.ToUpper(),
                           al.ToUpper(),
                           planeModel.ToUpper(),
                           passType.ToUpper(),
                           true));
            }
            catch
            {
            }
            return("");
        }
Example #3
0
        public string xepnr(string pnr, string office)
        {
            return(ibe.wsXePnr(pnr, office));

            wsIBE.HiWSService hi = new wsIBE.HiWSService();
            return(hi.wsXePnr(pnr, office));
        }
Example #4
0
        public string rt2(string pnr)
        {
            return(ibe.wsRT2(pnr));

            wsIBE.HiWSService hi = new wsIBE.HiWSService();
            return(hi.wsRT2(pnr));
        }
Example #5
0
        public string fd2(string org, string dst, string dt, string al)
        {
            try
            {
                return(ibe.wsFD2(
                           org.ToUpper(),
                           dst.ToUpper(),
                           dt.ToUpper(),
                           al.ToUpper(),
                           "", //planeModel.ToUpper(),
                           "", //passType.ToUpper(),
                           true));

                wsIBE.HiWSService ws = new wsIBE.HiWSService();
                return(ws.wsFD2(
                           org.ToUpper(),
                           dst.ToUpper(),
                           dt.ToUpper(),
                           al.ToUpper(),
                           "", //planeModel.ToUpper(),
                           "", //passType.ToUpper(),
                           true));
            }
            catch
            {
            }
            return("");
        }
Example #6
0
        /// <summary>
        /// 订座
        /// </summary>
        /// <param name="flightno">航班组</param>
        /// <param name="actioncode">行动代码组</param>
        /// <param name="flightdate">乘机日组:2007-09-01</param>
        /// <param name="orgcity">起始点组</param>
        /// <param name="destcity"></param>
        /// <param name="bunk"></param>
        /// <param name="name"></param>
        /// <param name="limitdate"></param>
        /// <param name="cardids"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public string ss(string[] flightno, string[] actioncode, string[] flightdate, string[] orgcity, string[] destcity, string[] bunk, string[] name, string limitdate, string[] cardids, string[] remarks)
        {
            try
            {
                string fn  = "";
                string ac  = "";
                string fd  = "";
                string oc  = "";
                string dc  = "";
                string bk  = "";
                string nm  = "";
                string ci  = "";
                string rmk = "";
                for (int i = 0; i < flightno.Length; i++)
                {
                    fn += flightno[i] + (i == flightno.Length - 1 ? "" : "~");
                    ac += actioncode[i] + (i == flightno.Length - 1 ? "" : "~");
                    fd += flightdate[i] + (i == flightno.Length - 1 ? "" : "~");
                    oc += orgcity[i] + (i == flightno.Length - 1 ? "" : "~");
                    dc += destcity[i] + (i == flightno.Length - 1 ? "" : "~");
                    bk += bunk[i] + (i == flightno.Length - 1 ? "" : "~");
                }
                for (int i = 0; i < name.Length; i++)
                {
                    nm += name[i] + (i == name.Length - 1 ? "" : "~");
                }
                if (cardids != null)
                {
                    for (int i = 0; i < cardids.Length; i++)
                    {
                        if (cardids[i] == "")
                        {
                            continue;
                        }
                        ci += cardids[i] + (i == cardids.Length - 1 ? "" : "~");
                    }
                }
                if (remarks != null)
                {
                    for (int i = 0; i < remarks.Length; i++)
                    {
                        rmk += remarks[i] + (i == remarks.Length - 1 ? "" : "~");
                    }
                }

                return(ibe.wsSS(fn, ac, fd, oc, dc, bk, nm, limitdate, ci, rmk));

                wsIBE.HiWSService hi = new wsIBE.HiWSService();
                return(hi.wsSS(fn, ac, fd, oc, dc, bk, nm, limitdate, ci, rmk));
            }
            catch
            {
                return("");
            }
        }
Example #7
0
        private string av(string org, string dst, string dt, string al, bool d, bool e)
        {
            try
            {
                string ret = ibe.wsAV(org.ToUpper(), dst.ToUpper(), dt, al.ToUpper(), d, e);
                return(ret);

                wsIBE.HiWSService ws = new wsIBE.HiWSService();
                return(ws.wsAV(org.ToUpper(), dst.ToUpper(), dt, al.ToUpper(), d, e));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            return("");
        }