Esempio n. 1
0
        private void CargarCombos()
        {
            this.cboAMBid.DataSource    = NacfAMBt_Ambiente.Mostrar();
            this.cboAMBid.ValueMember   = "AMBid";
            this.cboAMBid.DisplayMember = "AMBid";
            this.cboAMBid.SelectedIndex = -1;

            this.cboACFid.DataSource    = NacfACFp_Activo_Fijo.MostrarRegistro("");
            this.cboACFid.ValueMember   = "ACFid";
            this.cboACFid.DisplayMember = "ACFid";
            this.cboACFid.SelectedIndex = -1;

            this.cboPERNR.DataSource    = NbdiXPEpExtraccionSAP_Personal.Mostrar();
            this.cboPERNR.ValueMember   = "PERNR";
            this.cboPERNR.DisplayMember = "PERNR";
            this.cboPERNR.SelectedIndex = -1;

            this.cboCRP.DataSource    = NacfCRPt_Centro_Responsabilidad.Mostrar();
            this.cboCRP.ValueMember   = "CRPid_crp";
            this.cboCRP.DisplayMember = "CRPid_crp";
            this.cboCRP.SelectedIndex = -1;
        }
 private void button1_Click(object sender, EventArgs e)
 {
     dataListado.DataSource = NacfACFp_Activo_Fijo.MostrarRegistro(this.TextBox1.Text);
     OcultarColumnas();
 }