예제 #1
0
 private void btn_buscar_Click(object sender, EventArgs e)
 {
     try
     {
         CargarGrid();
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #2
0
 private void gridView_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     try
     {
         _Info = (prod_GestionProductivaLaminado_CusTalme_Info)gridView.GetFocusedRow();
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #3
0
 void frm_Event_frmProd_Diaria_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         CargarGrid();
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #4
0
 public frmProd_Diara_Consulta()
 {
     try
     {
         InitializeComponent();
         frm.Event_frmProd_Diaria_FormClosing += new frmProd_Diaria_Man.delegate_frmProd_Diaria_FormClosing(frm_Event_frmProd_Diaria_FormClosing);
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #5
0
 public void CargarGrid()
 {
     try
     {
         DateTime FechaIni = Convert.ToDateTime(dtpFechaIni.Value.ToShortDateString());
         DateTime FechaFin = Convert.ToDateTime(dtpFechaFin.Value.ToShortDateString());
         gridControlOrdeCompra.DataSource = _BusProd_B.ConulstaGenerla(param.IdEmpresa, FechaIni, FechaFin);
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #6
0
 private void frmProd_Diara_Consulta_Load(object sender, EventArgs e)
 {
     try
     {
         frm.Event_frmProd_Diaria_FormClosing += new frmProd_Diaria_Man.delegate_frmProd_Diaria_FormClosing(frm_Event_frmProd_Diaria_FormClosing);
         dtpFechaIni.Value = DateTime.Now.AddDays(-30);
         CargarGrid();
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }
예제 #7
0
 private void btn_nuevo_Click(object sender, EventArgs e)
 {
     try
     {
         frmProd_Diaria_Man frm = new frmProd_Diaria_Man();
         frm.Event_frmProd_Diaria_FormClosing += new frmProd_Diaria_Man.delegate_frmProd_Diaria_FormClosing(frm_Event_frmProd_Diaria_FormClosing);
         frm.setAccion(Core.Erp.Info.General.Cl_Enumeradores.eTipo_action.grabar);
         frm.Show();
     }
     catch (Exception ex)
     {
         Cl_VisorSucucesos Visor = new Cl_VisorSucucesos();
         Visor.GuardarVisor(this.ToString(), ex);
         MessageBox.Show(ex.ToString());
     }
 }