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); }
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); }
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); }