Ejemplo n.º 1
0
 private void btnTao_Click(object sender, EventArgs e)
 {
     if (ValidateOfMe.ValidateOfMe.isHaveEmptyTextBox(ref panel1))
     {
         return;
     }
     try {
         DAOkeHoachVe.InsertKeHoachVe(taoKeHoach());
         taoGiaGhe();
         MessageBox.Show("Tạo kế hoạch vé thành công rồi nha!!!");
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kế Hoanch Vé Này Bị Trùng Lặp!!!");
     }
     DAOphim.UpdateDa(cbTenPhim.SelectedValue + "");
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["accSession"] == null)
                {
                    btnAccount.ImageUrl = "~/images/unknowPerson.PNG";
                }
                else
                {
                    btnAccount.ImageUrl = "~/images/person.PNG";
                }

                rap  = "%";
                phim = Request.QueryString["phim"];
                #region bin list rap
                rblRap.DataSource     = DAOKeHoachVe.LoadRapByPhim(phim);
                rblRap.DataTextField  = "tenRap";
                rblRap.DataValueField = "tenRap";
                rblRap.DataBind();
                Session["lstGheDangChon"] = new Dictionary <string, int>();
                #endregion
            }
            rptPaging.DataSource = DAOphim.GetInfoByTitle(Request.QueryString["phim"]);
            rptPaging.DataBind();
            BinSpecialDayToCalendar();
            lstGheDangChon = Session["lstGheDangChon"] as Dictionary <string, int>;
            try
            {
                HienGiaVe();
            }
            catch (Exception ex) { }
            if (IsPostBack)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "hash", "location.hash = '#rblRap';", true);
            }
        }