protected void Page_Load(object sender, EventArgs e) { id = Request.QueryString["Id"]; cticket = new ET.DB.Control.CGZticket(); ticket = cticket.QueryTicket(id); //景点介绍; CGZticketIntroduction tintroduction=new CGZticketIntroduction(); Introduction = tintroduction.Query(id); //Response.Write("<script>getIntroduction()</script>"); CGZPriceIntroduction priceIntro = new CGZPriceIntroduction(); priceIntroduction = priceIntro.Query(id); CGZbookIntroduction bookintro = new CGZbookIntroduction(); bookIntroduction = bookintro.Query(id); }
protected void btn_ticket_info_Click(object sender, EventArgs e) { string ticketname = Request.Form["ticketname"]; string ticketTitle = Request.Form["ticketTitle"]; string ticketprice = Request.Form["ticketprice"]; string ticketType = Request.Form["ticketType"]; string starttime = Request.Form["startTime"]; string endtime=Request.Form["endTime"]; string level = Request.Form["level"]; string theme = Request.Form["theme"]; string isRecommend = Request.Form["isRecommend"]; string city = Request.Form["city"]; string isInvoice = Request.Form["ticketStock"]; string ticketStock = Request.Form["ticketStock"]; string isReducStock = Request.Form["isReducStock"]; AddFile(); GZticket ticket = new GZticket(null, ticketname, city, level, theme, path, ticketprice, starttime, endtime, isRecommend, ticketTitle, ticketType, isInvoice, isReducStock, ticketStock); CGZticket cticket = new CGZticket(); cticket.Insert(ticket); string Id=cticket.Query(ticketTitle); string ticketIntrodection = Request.Form["ticketIntrodection"]; CGZticketIntroduction ticketintroduction = new CGZticketIntroduction(); ticketintroduction.Insert(new GZTicketIntroduction(Id, ticketIntrodection)); string priceIntroduction = Request.Form["priceintrodection"]; CGZPriceIntroduction cpriceIntroduction = new CGZPriceIntroduction(); cpriceIntroduction.Insert(new GZPriceIntroduction(Id, priceIntroduction)); string bookIntrodection = Request.Form["bookintrodection"]; CGZbookIntroduction cbookIntroduction = new CGZbookIntroduction(); cbookIntroduction.Insert(new GZbookIntroduction(Id, bookIntrodection)); //GZTourismTicket ticket = new GZTourismTicket(null, ticketname, ticketprice, path, introduction); //CGZTourismTicket insert = new CGZTourismTicket(); //insert.Insert(ticket); Upload_ServerFile(); }