예제 #1
0
        private void btn_AltaPrenda_Click(object sender, EventArgs e)
        {
            controller.AltaPrenda(txt_Codigo.Text, txt_Descripcion.Text, int.Parse(txt_Cantidad.Text), txt_Talle.Text);
            PrendaGestor prendaGestor = new PrendaGestor();

            dgv_Prendas.DataSource = null;
            dgv_Prendas.DataSource = prendaGestor.GetListPrendaSinConfeccionar();
        }
예제 #2
0
        private void AreaConfeccionadoMenu_Load(object sender, EventArgs e)
        {
            IniciarControles();
            PrendaGestor prendaGestor = new PrendaGestor();

            dgv_Prendas.DataSource = null;
            dgv_Prendas.DataSource = prendaGestor.GetListPrendaSinConfeccionar();
            dgv_PrendasConfeccionadas.DataSource = null;
            dgv_PrendasConfeccionadas.DataSource = prendaGestor.GetListPrendaConfeccionada();
        }
예제 #3
0
        private void btn_Confeccionar_Click(object sender, EventArgs e)
        {
            Prenda prenda         = dgv_Prendas.SelectedRows[0].DataBoundItem as Prenda;
            int    cantidadPrenda = int.Parse(Interaction.InputBox("Ingrese la cantidad de prendas a confeccionar."));
            string codigoPrenda   = Interaction.InputBox("Ingrese el código que tendrán las prendas resultantes.");

            controller.Confeccionar(prenda, cantidadPrenda, codigoPrenda);
            PrendaGestor prendaGestor = new PrendaGestor();

            dgv_Prendas.DataSource = null;
            dgv_Prendas.DataSource = prendaGestor.GetListPrendaSinConfeccionar();
            dgv_PrendasConfeccionadas.DataSource = null;
            dgv_PrendasConfeccionadas.DataSource = prendaGestor.GetListPrendaConfeccionada();
        }