public void cargar()
 {
     datArticulo da = new datArticulo();
     gridControl1.DataSource = da.consultaArt();
 }
        private void frmArticulo_Load(object sender, EventArgs e)
        {
            int a = datos.getIdSiguiente();
            txt_codigo.Text = Convert.ToString(a);

            datArticulo data = new datArticulo();
            datEstado data1 = new datEstado();
            cbx_tipoArticulo.Properties.DataSource = data.consultaTipoArticulo();
            cbx_grupoArticulo.Properties.DataSource = data.consultaGrupoArticulo();
            cbx_marca.Properties.DataSource = data.consultaMarca();
            cbx_Modelo.Properties.DataSource = data.consultaModelo();
            cbx_Color.Properties.DataSource = data.consultaColor();
            cbx_TipoMotor.Properties.DataSource = data.consultaTipoMotor();
            cbx_TipoChasis.Properties.DataSource = data.consultaTipoChasis();
            cbx_TipoCombustible.Properties.DataSource = data.consultaTipoCombustible();
            cbx_MarcaAcc.Properties.DataSource = data.consultaMarca();
            cbx_UMedAcc.Properties.DataSource = data.consultaUMedida();
            cbx_tipoMatAcc.Properties.DataSource = data.consultaTipoMaterial();
            cbx_tMatSO.Properties.DataSource = data.consultaTipoMaterial();
            cbx_UMedSO.Properties.DataSource = data.consultaUMedida();
            cbx_MarcaSO.Properties.DataSource = data.consultaMarca();
            cbx_tMaterialAL.Properties.DataSource = data.consultaTipoMaterial();
            cbx_uMedAL.Properties.DataSource = data.consultaUMedida();
            cbx_MarcaAL.Properties.DataSource = data.consultaMarca();
            cbx_tMatAF.Properties.DataSource = data.consultaTipoMaterial();
            cbx_uMedidaAF.Properties.DataSource = data.consultaUMedida();
            cbx_MarcaAF.Properties.DataSource = data.consultaMarca();
            cbx_ModeloAF.Properties.DataSource = data.consultaModelo();
            cbx_ColorAF.Properties.DataSource = data.consultaColor();
            txt_estado.Properties.DataSource = data1.ConsultaTodos();

            if (accion == "M")
            {
                set();
            }
            if (accion == "E")
            {
                set();
            }
        }
        private void frmIngresoEgresoBodega_Load(object sender, EventArgs e)
        {
            try
            {
                List<clsIngresoEgresoDET> lst = new List<clsIngresoEgresoDET>();
                //gcIE.DataSource=lst;
                //clsIngresoEgresoDETBindingSource.Clear();
                //gcIE.DataSource = clsIngresoEgresoDETBindingSource;

                cmbArticulo.DataSource = dat.consultainventario();
                cmbPercha.DataSource = dat.consultapercha();

            int a = datos.getIdSiguiente();
            //txtNoMovimiento.Text = Convert.ToString(a);

            datEstado data1 = new datEstado();
            cbxEstado.Properties.DataSource = data1.ConsultaTodos();
            datBodega data2 = new datBodega();
            cbxBodega.Properties.DataSource = data2.consulta();
            clsDatosPersona data3 = new clsDatosPersona();
            cbxResponsable.Properties.DataSource = data3.ConsultaPersona();
            datTipoMovimiento data4 = new datTipoMovimiento();
            cbxTipoMovimiento.Properties.DataSource = data4.consulta();
            datMotivo data5 = new datMotivo();
            cbxMotivo.Properties.DataSource = data5.consulta();
            datPercha data6 = new datPercha();
            cbxPercha.Properties.DataSource = data6.consulta();
            cbxPercha1.Properties.DataSource = data6.consulta();
            cbxPercha2.Properties.DataSource = data6.consulta();

            datArticulo data7 = new datArticulo();
            cbxArticulo.Properties.DataSource = data7.consultaArt();
            cbxArt1.Properties.DataSource = data7.consultaArt();
            cbxArticulo2.Properties.DataSource = data7.consultaArt();
            }
            catch (Exception)
            {
            }
        }