コード例 #1
0
 private void ucGe_Menu_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         frmRo_Liquidacion_Vacaciones_Mant_Graf frm = new frmRo_Liquidacion_Vacaciones_Mant_Graf();
         info = new ro_SolicitudVacaciones_Info();
         info = (ro_SolicitudVacaciones_Info)gridViewVacaciones.GetFocusedRow();
         frm.Set(info);
         frm.Accion = Cl_Enumeradores.eTipo_action.consultar;
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
コード例 #2
0
        private void ucGe_Menu_event_btnCancelarCuotas_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                info = new ro_SolicitudVacaciones_Info();
                info = (ro_SolicitudVacaciones_Info)gridViewVacaciones.GetFocusedRow();

                if (info.IdOrdenPago != null)
                {
                    MessageBox.Show(" La solicitud de vacaciones ya fue liquidada; ¡revise las ordenes de pagos! ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                frmRo_Liquidacion_Vacaciones_Mant_Graf frm = new frmRo_Liquidacion_Vacaciones_Mant_Graf();
                frm.Accion = Cl_Enumeradores.eTipo_action.grabar;
                frm.Set(info);
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }