Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                llenarComboMeses();
                llenarComboAnnos();
                llenarComboMetodosPago();
                esconderDetallePago();

                //cargar la comanda
                comanda = (Comanda)Session["comanda_actual"];

                //cargar el balance inicial que es eventualmente el mismo total de la orden
                comanda.actualizarBalance(comanda.obtenerTotal());

                //cargar estados comandas
                cargarEstadosComadas();

                //Cargar detalle de comanda actual
                asignarDatosSegunComanda(comanda);

                txtComandaID.Attributes.Add("readonly", "readonly");
                txtFecha.Attributes.Add("readonly", "readonly");
                txtNombreCliente.Attributes.Add("readonly", "readonly");
                txtEstadoCuenta.Attributes.Add("readonly", "readonly");
                cboEstadoComanda.Attributes.Add("readonly", "readonly");
                txtMesa.Attributes.Add("readonly", "readonly");
            }
        }