コード例 #1
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     try
     {
         foreach (DataGridViewRow row in dgvDocumento.Rows)
         {
             DataGridViewCheckBoxCell chk = (DataGridViewCheckBoxCell)row.Cells["CheckSel"];
             if (chk.Value.ToString() == "1")
             {
                 PagadoraAutorizaDocBE IEntity = new PagadoraAutorizaDocBE()
                 {
                     OPCION      = 2,
                     USUARIO     = General.General.GetUsuario,
                     IdPagadora  = Codigo,
                     IdSocio     = row.Cells["IdSocio"].Value.ToString(),
                     IdDocumento = row.Cells["IdDocumento"].Value.ToString(),
                 };
                 new PagadoraAutorizaDocBL().ProcesarPagadoraAutorizaDoc(IEntity);
             }
         }
         this.Dispose();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
        public DataSet ProcesarPagadoraAutorizaDoc(PagadoraAutorizaDocBE BE)
        {
            DataSet dsResult;

            try
            {
                cmd = db.GetStoredProcCommand("PagadoraAutorizaDoc_Mnt");
                db.AddInParameter(cmd, "OPCION", DbType.Int32, BE.OPCION);
                db.AddInParameter(cmd, "USUARIO", DbType.String, BE.USUARIO);
                db.AddInParameter(cmd, "IdPagadora", DbType.String, BE.IdPagadora);
                db.AddInParameter(cmd, "IdSocio", DbType.String, BE.IdSocio);
                db.AddInParameter(cmd, "IdDocumento", DbType.String, BE.IdDocumento);
                dsResult = db.ExecuteDataSet(cmd);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(dsResult);
        }
コード例 #3
0
 private void CargarDatos()
 {
     try
     {
         PagadoraAutorizaDocBE IEntity = new PagadoraAutorizaDocBE()
         {
             OPCION      = 4,
             USUARIO     = General.General.GetUsuario,
             IdPagadora  = Codigo,
             IdSocio     = txtIdSocio.Text,
             IdDocumento = cboIdDocumento.SelectedValue.ToString()
         };
         DataSet ds = new DataSet();
         ds = new PagadoraAutorizaDocBL().ProcesarPagadoraAutorizaDoc(IEntity);
         dgvDocumento.DataSource = ds.Tables[0];
         lblRegistros.Text       = ds.Tables[0].Rows.Count.ToString() + " registro(s)";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #4
0
 public DataSet ProcesarPagadoraAutorizaDoc(PagadoraAutorizaDocBE BE)
 {
     return(PagadoraAutorizaDocDA.ProcesarPagadoraAutorizaDoc(BE));
 }