private void lunboImgLoad() { List <MovieInfoModel> list = new List <MovieInfoModel>(); list = new MovieInfoBLL().SelectMovieInfo(1); this.Repeater7.DataSource = list; this.Repeater7.DataBind(); }
private void SelectMovieInfo() { List <MovieInfoModel> ls1 = new MovieInfoBLL().SelectMovieInfo(); List <MovieInfoModel> ls2 = new MovieInfoBLL().SelectNoUpMovieInfo(); List <MovieInfoModel> ls3 = new MovieInfoBLL().SelectScoreMovieInfo(); IsHot = ls1.Count; NoUp = ls2.Count; Score = ls3.Count; this.Repeater1.DataSource = ls1; this.Repeater1.DataBind(); this.Repeater2.DataSource = ls2; this.Repeater2.DataBind(); this.Repeater3.DataSource = ls3; this.Repeater3.DataBind(); }
private void SelectMovieMoneyTop() { List <MovieMoneyTopModel> ls = new MovieInfoBLL().SelectMovieMoneyTopModel(); if (ls.Count > 0) { M_MovieID = ls[0].MovieID; M_MovieName = ls[0].MovieName; M_MovieCover = ls[0].MovieCover; M_SumMoney = ls[0].SumMoney; //移出首个 ls.RemoveAt(0); this.Repeater4.DataSource = ls; this.Repeater4.DataBind(); } }
private void SelectScoreMovieInfo() { List <MovieInfoModel> ls = new MovieInfoBLL().SelectScoreMovieInfo(); if (ls.Count > 0) { M_MovieID = ls[0].MovieID; M_MovieName = ls[0].MovieName; M_MovieCover = ls[0].MovieCover; M_MovieType = ls[0].MovieType; //移出首个 ls.RemoveAt(0); this.Repeater5.DataSource = ls; this.Repeater5.DataBind(); } }
private void search() { List <MovieInfoModel> ls = new MovieInfoBLL().search(Request["MovieName"]); if (ls.Count > 0) { state model = new state(); model.MovieID = ls[0].MovieID; model.State = "ok"; Response.Write(JsonConvert.SerializeObject(model)); Response.End(); } else { state model = new state(); model.MovieID = 0; model.State = "no"; Response.Write(JsonConvert.SerializeObject(model)); Response.End(); } }