Exemple #1
0
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         Info = (cp_retencion_Info)this.gridViewConsRet.GetFocusedRow();
         if (Info == null)
         {
             MessageBox.Show("Seleccione un Registro", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             return;
         }
         else
         {
             frmMant = new frmCP_RetencionMant();
             frmMant.Set_Accion(Cl_Enumeradores.eTipo_action.consultar);
             frmMant.event_frmCP_RetencionMant_FormClosing += frmMant_event_frmCP_RetencionMant_FormClosing;
             frmMant.Text = frmMant.Text + " ***CONSULTAR REGISTRO***";
             frmMant.Set_Info_Retencion(Info);
             frmMant.Show();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #2
0
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         frmMant = new frmCP_RetencionMant();
         frmMant.Set_Accion(Cl_Enumeradores.eTipo_action.grabar);
         frmMant.event_frmCP_RetencionMant_FormClosing += frmMant_event_frmCP_RetencionMant_FormClosing;
         frmMant.Text = frmMant.Text + " ***NUEVO REGISTRO***";
         frmMant.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #3
0
 private void UltraGrid_OrdenGiro_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     try
     {
         if (e.Column.Name == colTotal_Retencion.Name)
         {
             Info_OrdenGiro = (cp_orden_giro_Info)UltraGrid_OrdenGiro.GetFocusedRow();
             cp_retencion_Info InfoRetencion = new cp_retencion_Info();
             cp_retencion_Bus  BusRetencion  = new cp_retencion_Bus();
             InfoRetencion = BusRetencion.Get_Info_retencion(Convert.ToInt32(Info_OrdenGiro.IdEmpresa_ret), Convert.ToDecimal(Info_OrdenGiro.IdRetencion));
             frmCP_RetencionMant frm = new frmCP_RetencionMant();
             frm.Set_Accion(Cl_Enumeradores.eTipo_action.consultar);
             frm.Set_Info_Retencion(InfoRetencion);
             frm.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }