コード例 #1
0
        private void Limpiar()
        {
            ArticuloActual= new Articulo();
            ArticuloFarmaciaActual = new ArticuloFarmacia();

            CatPartidaActual= new CatPartida();

            bisArticulo.DataSource = new Articulo();
            bisArticuloFarmacia.DataSource = new ArticuloFarmacia();

            txtPartida.Text = string.Empty;
            lblDesPartida.Text = string.Empty;
            txtCveArt.Text = string.Empty;
            txtCuadroBasico.Text = string.Empty;
        }
コード例 #2
0
        private void EnlaceDatos()
        {
            rtbDesArticulo.DataBindings.Add(new Binding("Text", bisArticulo, "DesArticulo", true));
            cmbUnidad.DataBindings.Add(new Binding("Text", bisArticulo, "CatUnidad", true));
            cmbPresentacion.DataBindings.Add(new Binding("Text", bisArticulo, "Presentacion", true));
            txtCantidad.DataBindings.Add(new Binding("Text", bisArticulo, "PresentacionCant", true));
            cmbPresentacionUnidad.DataBindings.Add(new Binding("Text", bisArticulo, "PresentacionUnid", true));
            txtMaximo.DataBindings.Add(new Binding("Text", bisArticulo, "Maximo", true));
            txtMinimo.DataBindings.Add(new Binding("Text", bisArticulo, "Minimo", true));
            txtReorden.DataBindings.Add(new Binding("Text", bisArticulo, "PuntoReorden", true));
            txtArea.DataBindings.Add(new Binding("Text", bisArticulo, "AreaLocaliza", true));
            txtAnaquel.DataBindings.Add(new Binding("Text", bisArticulo, "AnaquelLocaliza", true));
            txtNivel.DataBindings.Add(new Binding("Text", bisArticulo, "NivelLocaliza", true));
            ArticuloActual = new Articulo();
            bisArticulo.DataSource = ArticuloActual;

            cmbAdministracion.DataBindings.Add(new Binding("SelectedValue", bisArticuloFarmacia, "ViaAdministracion", true));
            cmbTipoMed.DataBindings.Add(new Binding("SelectedValue", bisArticuloFarmacia, "TipoMedicamento", true));
            txtGrupo.DataBindings.Add(new Binding("Text", bisArticuloFarmacia, "Grupo", true));
            txtDosis.DataBindings.Add(new Binding("Text", bisArticuloFarmacia, "Dosis", true));
            txtGramaje.DataBindings.Add(new Binding("Text", bisArticuloFarmacia, "Gramaje", true));
            ArticuloFarmaciaActual = new ArticuloFarmacia();
            bisArticuloFarmacia.DataSource = ArticuloFarmaciaActual;
        }