public DataSet BuscarCuentaSocio(CuentaSocioBE BE)
        {
            DataSet dsResult;

            try
            {
                cmd = db.GetStoredProcCommand("BuscarCuentaSocio");
                db.AddInParameter(cmd, "OPCION", DbType.Int32, BE.OPCION);
                db.AddInParameter(cmd, "valorTipoCuentaID", DbType.Decimal, BE.valorTipoCuentaID);
                db.AddInParameter(cmd, "valorTipoCuentaAhoID", DbType.Decimal, BE.valorTipoCuentaAhoID);
                db.AddInParameter(cmd, "razonSocial", DbType.String, BE.razonSocial);
                db.AddInParameter(cmd, "numDoc", DbType.String, BE.numDoc);
                db.AddInParameter(cmd, "comunTipoCliID", DbType.String, BE.comunTipoCliID);
                db.AddInParameter(cmd, "clienteID", DbType.String, BE.clienteID);
                db.AddInParameter(cmd, "numCuentaID", DbType.String, BE.numCuentaID);
                db.AddInParameter(cmd, "productoID", DbType.String, BE.productoID);
                db.AddInParameter(cmd, "valorMonedaID", DbType.Decimal, BE.valorMonedaID);


                dsResult = db.ExecuteDataSet(cmd);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(dsResult);
        }
Exemple #2
0
 private void frmBusquedaCtaAhorros_Load(object sender, EventArgs e)
 {
     try
     {
         this.Text = "Buscar cuenta de ahorros";
         if (fTipoOpcion == 2 && fClienteID != null)
         {
             DataSet       dsSocio    = new DataSet();
             CuentaSocioBE ctaSocioBE = new CuentaSocioBE()
             {
                 OPCION               = 1,
                 USUARIO              = General.General.GetCodigoUsuario,
                 valorTipoCuentaID    = 1,
                 valorTipoCuentaAhoID = fValorTipoCuentaAhoD,
                 productoID           = fProductoID,
                 valorMonedaID        = fValorTipoMonedaID,
                 clienteID            = fClienteID,
             };
             txtRazonSocial.ReadOnly       = true;
             dgvSocios.AutoGenerateColumns = false;
             dsSocio = CuentaSocioLogic.BuscarCuentaSocio(ctaSocioBE);
             dgvSocios.DataSource = dsSocio.Tables[0];
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #3
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(txtRazonSocial.Text.Trim()))
                {
                    return;
                }

                DataSet       dsSocio    = new DataSet();
                CuentaSocioBE ctaSocioBE = new CuentaSocioBE()
                {
                    OPCION               = 1,
                    USUARIO              = General.General.GetCodigoUsuario,
                    razonSocial          = txtRazonSocial.Text.Trim(),
                    valorTipoCuentaID    = 1,
                    valorTipoCuentaAhoID = fValorTipoCuentaAhoD,
                    productoID           = fProductoID,
                    valorMonedaID        = fValorTipoMonedaID,
                };
                dgvSocios.AutoGenerateColumns = false;
                dsSocio = CuentaSocioLogic.BuscarCuentaSocio(ctaSocioBE);
                dgvSocios.DataSource = dsSocio.Tables[0];
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #4
0
 public DataSet BuscarCuentaSocio(CuentaSocioBE BE)
 {
     return(CuentaSocioData.BuscarCuentaSocio(BE));
 }