예제 #1
0
        public static int GetTur_ID(string turName)
        {
            Tur     OneTur;
            DataSet ds = TurAgentDLL.Tur.GetTur_ID(turName);
            DataRow dr = ds.Tables["Tur"].Rows[0];

            OneTur = new Tur(int.Parse(dr[0].ToString()), dr[1].ToString(), dr[2].ToString(), dr[3].ToString(), int.Parse(dr[4].ToString()), dr[5].ToString());

            return(OneTur.TurID);
        }
예제 #2
0
        public static Tur GetExpensive_tour(int sesonID)
        {
            Tur     maxprise;
            DataSet ds = TurAgentDLL.Tur.GetExpensive_tour(sesonID);
            DataRow dr = ds.Tables["Tur"].Rows[0];

            maxprise = new Tur(int.Parse(dr[0].ToString()), dr[1].ToString(), dr[2].ToString(), dr[3].ToString(), int.Parse(dr[4].ToString()), dr[5].ToString());

            return(maxprise);
        }
예제 #3
0
        public static List <Tur> GetSesDirTur(int sesonid, int directid)
        {
            Tur        OneTur;
            DataSet    ds     = TurAgentDLL.Tur.GetSesDirTur(sesonid, directid);
            List <Tur> listCL = new List <Tur>();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                OneTur = new Tur(int.Parse(dr[0].ToString()), dr[1].ToString(), dr[2].ToString(), dr[3].ToString(), int.Parse(dr[4].ToString()), dr[5].ToString());
                listCL.Add(OneTur);
            }
            return(listCL);
        }