コード例 #1
0
        /*protected void btnSalida_Click(object sender, EventArgs e)
         * {
         *
         *      if (doCheckout(fecCont))
         *      {
         *          bool ok = docoPases();
         *          btnSalida.Enabled = false;
         *          //impresion del pase de salida
         *          string folio = obtenerFolioPaseSalida();
         *          imprimePase(folio, true,hostname,ipName);
         *          if (!lang) { ShowNotification("Check out realizado", "Favor de entregar el pase de salida al bellboy", NotificationType.ok); }
         *          else { ShowNotification("Check out done", "Please deliver the exit pass to bellboy ", NotificationType.ok); }
         *          inserta_pase(folio);
         *          Timer1.Enabled = true;
         *      }
         *      else
         *      {
         *          if (lang) { ShowNotification("System problem", "Please go to the front desk.", NotificationType.error); }
         *          else { ShowNotification("Error en sistema", "Favor de ir a recepción.", NotificationType.error); }
         *          Timer1.Enabled = true;
         *      }
         *
         *
         * }*/


        protected void btnlimpiar_Click(object sender, EventArgs e)
        {
            lblaviso.Text        = "";
            txtBrazalete.Text    = "";
            txthabi.Text         = "";
            GridView1.DataSource = null;
            GridView1.DataBind();
            Arrgrid.DataSource = null;
            Arrgrid.DataBind();
            btnEnviar.Visible = true;
            //btnSalida.Visible = false;
        }
コード例 #2
0
        protected void Timer1_Tick(object sender, EventArgs e)
        {
            Timer1.Enabled    = false;
            lblaviso.Text     = "";
            txtBrazalete.Text = "";
            txthabi.Text      = "";
            if (!IsPostBack)
            {
                GridView1.DataSource = null;
                GridView1.DataBind();

                Arrgrid.DataSource = null;
                Arrgrid.DataBind();
            }
            btnEnviar.Visible = true;
            //btnSalida.Visible = false;
        }
コード例 #3
0
        private void ArraytoGrid()
        {
            DataTable dt = new DataTable();

            dt.Columns.Add("Reserva");
            dt.Columns.Add("Room");
            dt.Columns.Add("#Bracelet");
            dt.Columns.Add("Name");

            for (int i = 0; i < arrbr.Count; i++)
            {
                dt.Rows.Add();
                dt.Rows[i]["Reserva"]   = ((BrazaR)arrbr[i]).Reserva;
                dt.Rows[i]["Room"]      = ((BrazaR)arrbr[i]).Habi;
                dt.Rows[i]["#Bracelet"] = ((BrazaR)arrbr[i]).Folio;
                dt.Rows[i]["Name"]      = ((BrazaR)arrbr[i]).Nombre;
            }
            Arrgrid.DataSource = dt;
            Arrgrid.DataBind();
        }