Ejemplo n.º 1
0
        private void CargarDatos()
        {
            try
            {
                BitacoraComercialBE oEntity = new BitacoraComercialBE();
                oEntity.OPCION  = 1;
                oEntity.USUARIO = General.General.GetUsuario;
                oEntity.IdSocio = Codigo;
                DataSet ds = new BitacoraComercialBL().ProcesarBitacoraComercial(oEntity);

                if (ds.Tables.Count > 0)
                {
                    dgvReporteDetalle.DataSource = ds.Tables[0];
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        public void CargarBitacoraComercial()
        {
            try
            {
                DataSet             dsBitacoraComercial = new DataSet();
                BitacoraComercialBE BitacoraComercialBE = new BitacoraComercialBE()
                {
                    OPCION   = 1,
                    USUARIO  = General.General.GetUsuario,
                    IdSocio  = Codigo,
                    IdGestor = _IdGestor,
                };

                dsBitacoraComercial             = new BitacoraComercialBL().ProcesarBitacoraComercial(BitacoraComercialBE);
                dgvBitacoraComercial.DataSource = dsBitacoraComercial.Tables[0];
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void CargarBitacoraComercial()
        {
            try
            {
                DataSet             dsBitacoraComercial = new DataSet();
                BitacoraComercialBE BitacoraComercialBE = new BitacoraComercialBE()
                {
                    OPCION   = 4,
                    USUARIO  = General.General.GetUsuario,
                    IdSocio  = Codigo,
                    IdGestor = cboEjecutivo.SelectedValue.ToString()
                };

                dsBitacoraComercial             = new BitacoraComercialBL().ProcesarBitacoraComercial(BitacoraComercialBE);
                dgvBitacoraComercial.DataSource = dsBitacoraComercial.Tables[0];
                lblRegistros.Text = dsBitacoraComercial.Tables[0].Rows.Count.ToString() + " registro(s)";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }