Ejemplo n.º 1
0
        public void cargaEmpresas()
        {
            bBusiExtractor loBusiExtract = new bBusiExtractor();

            GrdEmpresas.DataSource = loBusiExtract.ListadoEmpresa();

            DataGridViewCheckBoxColumn lodgvChk = new DataGridViewCheckBoxColumn();

            lodgvChk.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
            lodgvChk.Name         = "V";

            GrdEmpresas.Columns.Add(lodgvChk);

            GrdEmpresas.Columns["BusinessUnitId"].DisplayIndex        = 4;
            GrdEmpresas.Columns["OrgID"].DisplayIndex                 = 3;
            GrdEmpresas.Columns["BusinessUnitName"].DisplayIndex      = 2;
            GrdEmpresas.Columns["LegalEntityIdentifier"].DisplayIndex = 1;

            GrdEmpresas.Columns["BusinessUnitId"].Visible           = false;
            GrdEmpresas.Columns["OrgID"].Visible                    = false;
            GrdEmpresas.Columns["BusinessUnitName"].HeaderText      = "DESCRIPCION EMPRESA";
            GrdEmpresas.Columns["LegalEntityIdentifier"].HeaderText = "CLAVE EMPRESA";

            GrdEmpresas.Columns["LegalEntityIdentifier"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;

            GrdEmpresas.Columns["BusinessUnitName"].ReadOnly      = true;
            GrdEmpresas.Columns["LegalEntityIdentifier"].ReadOnly = true;

            GrdEmpresas.Cursor = Cursors.Hand;
        }
Ejemplo n.º 2
0
        private void btnConsultarEmp_Click(object sender, EventArgs e)
        {
            try
            {
                bBusiExtractor obj = new bBusiExtractor();

                grdEmpresa.DataSource = obj.ConsultaEmpresa(txtClave.Text);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            //servicieCompanies.GetFusionCompaniesReqMsgType messageType = new servicieCompanies.GetFusionCompaniesReqMsgType();
            //servicieCompanies.GetFusionCompaniesReqMsgType response = new servicieCompanies.GetFusionCompaniesReqMsgType();
            //servicieCompanies.FusionCompaniesService_FusionCompaniesTrigger_REQUESTClient ws = new servicieCompanies.FusionCompaniesService_FusionCompaniesTrigger_REQUESTClient();

            //messageType.Input = string.Empty;
            //System.Net.ICredentials cred = new System.Net.NetworkCredential("*****@*****.**", "J0rg3_12345#");

            bBusiExtractor obj = new bBusiExtractor();


            grdEmpresa.DataSource = obj.ListadoEmpresa();
        }
Ejemplo n.º 4
0
        public void cargaDatosEnt()
        {
            bBusiExtractor loBusiExtract = new bBusiExtractor();

            GrdDatosEnt.DataSource = loBusiExtract.ListadoDatosEntrada();

            DataGridViewCheckBoxColumn lodgvChk = new DataGridViewCheckBoxColumn();

            lodgvChk.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
            lodgvChk.Name         = "V";

            GrdDatosEnt.Columns.Add(lodgvChk);

            GrdDatosEnt.Cursor = Cursors.Hand;
        }