示例#1
0
 private void btnMostrarResultados_Click(object sender, EventArgs e)
 {
     try
     {
         Checador DatosAux = new Checador {
             Conexion = Comun.Conexion, FechaChecador = this.dtpFecha.Value, IDSucursal = Comun.IDSucursalCaja
         };
         Checador_Negocio CN = new Checador_Negocio();
         CN.ObtenerResumenChecador(DatosAux);
         this.LlenarGridResumen(DatosAux.TablaDatos);
     }
     catch (Exception ex)
     {
         MessageBox.Show(Comun.MensajeError, Comun.Sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
         LogError.AddExcFileTxt(ex, "frmChecador ~ btnMostrarResultados_Click");
     }
 }
示例#2
0
 private void btnMostrarResultados_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.cmbSucursal.Items.Count > 0)
         {
             if (this.cmbSucursal.SelectedIndex != -1)
             {
                 Sucursal SucAux = (Sucursal)this.cmbSucursal.SelectedItem;
                 if (!string.IsNullOrEmpty(SucAux.IDSucursal))
                 {
                     Checador DatosAux = new Checador {
                         Conexion = Comun.Conexion, FechaChecador = this.dtpFecha.Value, IDSucursal = SucAux.IDSucursal
                     };
                     Checador_Negocio CN = new Checador_Negocio();
                     CN.ObtenerResumenChecador(DatosAux);
                     this.LlenarGridResumen(DatosAux.TablaDatos);
                 }
                 else
                 {
                     this.LlenarGridResumen(null);
                 }
             }
             else
             {
                 this.LlenarGridResumen(null);
             }
         }
         else
         {
             this.LlenarGridResumen(null);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Comun.MensajeError, Comun.Sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
         LogError.AddExcFileTxt(ex, "frmChecador ~ btnMostrarResultados_Click");
     }
 }