示例#1
0
        public GestionHabitacion(ABM_de_Hotel.GestionHoteles parent, int inIdHotel, String inHotelDesc, DataGridViewRow inHabitacion)
        {
            idHotel    = inIdHotel;
            hotelDesc  = inHotelDesc;
            habitacion = inHabitacion;
            InitializeComponent();
            this.CenterToScreen();
            parentForm     = parent;
            parent.Enabled = false;
            lblHotel.Text  = hotelDesc;
            getTipos();
            tbNumHabitacion.Text           = habitacion.Cells[0].Value.ToString();
            cbTipoHabitacion.SelectedValue = habitacion.Cells[1].Value;
            tbPisoHabitacion.Text          = habitacion.Cells[3].Value.ToString();

            if (habitacion.Cells[4].Value.ToString() == "Contrafrente")
            {
                cbUbicacionHab.SelectedIndex = 0;
            }
            else
            {
                cbUbicacionHab.SelectedIndex = 1;
            }
            tbDescHabitacion.Text = habitacion.Cells[5].Value.ToString();

            optype = 1; //modificacion
            //cbTipoHabitacion.Enabled = false;
        }
示例#2
0
 public GestionHabitacion(ABM_de_Hotel.GestionHoteles parent, int inIdHotel, String inHotelDesc)
 {
     idHotel   = inIdHotel;
     hotelDesc = inHotelDesc;
     InitializeComponent();
     this.CenterToScreen();
     parentForm     = parent;
     parent.Enabled = false;
     lblHotel.Text  = hotelDesc;
     getTipos();
     optype = 0; //alta
 }
 public GestionHabitacion(ABM_de_Hotel.GestionHoteles parent, int inIdHotel, String inHotelDesc)
 {
     idHotel = inIdHotel;
     hotelDesc = inHotelDesc;
     InitializeComponent();
     this.CenterToScreen();
     parentForm = parent;
     parent.Enabled = false;
     lblHotel.Text = hotelDesc;
     getTipos();
     optype = 0; //alta
 }
        public GestionHabitacion(ABM_de_Hotel.GestionHoteles parent, int inIdHotel, String inHotelDesc, DataGridViewRow inHabitacion)
        {
            idHotel = inIdHotel;
            hotelDesc = inHotelDesc;
            habitacion = inHabitacion;
            InitializeComponent();
            this.CenterToScreen();
            parentForm = parent;
            parent.Enabled = false;
            lblHotel.Text = hotelDesc;
            getTipos();
            tbNumHabitacion.Text = habitacion.Cells[0].Value.ToString();
            cbTipoHabitacion.SelectedValue = habitacion.Cells[1].Value;
            tbPisoHabitacion.Text = habitacion.Cells[3].Value.ToString();

            if (habitacion.Cells[4].Value.ToString() == "Contrafrente")
                cbUbicacionHab.SelectedIndex = 0;
            else
                cbUbicacionHab.SelectedIndex = 1;
            tbDescHabitacion.Text = habitacion.Cells[5].Value.ToString();

            optype = 1; //modificacion
            //cbTipoHabitacion.Enabled = false;
        }