Пример #1
0
 private void Cargar_Tablas_Logs()
 {
     if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSSAP)
     {
         grdv_LogServicioWMSSAP.DataSource = ClaseLogServicioWMSSAP.CargaLogError();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicoEmail)
     {
         grdv_LogServicioEmail.DataSource = ClaseLogServicioMail.CargaLogError_ServicoMail();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioReplicaCD)
     {
         grdv_LogServicioReplicaCD.DataSource = ClaseLogServicioReplicaCD.CargaLogError_ServicoReplicaCD();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSOleada)
     {
         grdv_LogServicioWMSOleada.DataSource = ClaseLogServicioWMSOleada.CargaLogError_ServicioWMSOleada();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioServInfo)
     {
         grdv_LogServicioServInfo.DataSource = ClaseLogServicioServInfo.CargaLogError_ServicioServInfo();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioSmartphone)
     {
         grdv_LogServicioSmartphone.DataSource = ClaseLogServicioSmartphone.CargaLogError_ServicioSmartphone();
     }
 }
Пример #2
0
 // button2_Click Su unica funcion es refrescar los datos de todas las tablas Log.
 private void button2_Click(object sender, EventArgs e)
 {
     if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSSAP)
     {
         grdv_LogServicioWMSSAP.DataSource = ClaseLogServicioWMSSAP.CargaLogError();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicoEmail)
     {
         grdv_LogServicioEmail.DataSource = ClaseLogServicioMail.CargaLogError_ServicoMail();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioReplicaCD)
     {
         grdv_LogServicioReplicaCD.DataSource = ClaseLogServicioReplicaCD.CargaLogError_ServicoReplicaCD();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSOleada)
     {
         grdv_LogServicioWMSOleada.DataSource = ClaseLogServicioWMSOleada.CargaLogError_ServicioWMSOleada();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioServInfo)
     {
         grdv_LogServicioServInfo.DataSource = ClaseLogServicioServInfo.CargaLogError_ServicioServInfo();
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioSmartphone)
     {
         grdv_LogServicioSmartphone.DataSource = ClaseLogServicioSmartphone.CargaLogError_ServicioSmartphone();
     }
 }
Пример #3
0
 private void buscar()
 {
     //Consulta cual tabPage esta selecionada para aplicarle el filtro seleccionado
     if (tab_TablasLog.SelectedTab == tabp_LogServicoEmail)
     {
         //verifica cual de las 3 opciones de friltro esta selecionada y al precionar el boton buscar carga el stored procedure correspondiente
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioEmail.DataSource = ClaseLogServicioMail.Carga24hrs_ServicioMail();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioEmail.DataSource = ClaseLogServicioMail.Carga1000_ServicioMail();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioEmail.DataSource = ClaseLogServicioMail.CargaLogError_ServicoMail();
         }
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioReplicaCD)
     {
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioReplicaCD.DataSource = ClaseLogServicioReplicaCD.Carga24hrs_ServicioReplicaCD();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioReplicaCD.DataSource = ClaseLogServicioReplicaCD.Carga1000_ServicioReplicaCD();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioReplicaCD.DataSource = ClaseLogServicioReplicaCD.CargaLogError_ServicoReplicaCD();
         }
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSSAP)
     {
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioWMSSAP.DataSource = ClaseLogServicioWMSSAP.Carga24hrs();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioWMSSAP.DataSource = ClaseLogServicioWMSSAP.Carga1000();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioWMSSAP.DataSource = ClaseLogServicioWMSSAP.CargaLogError();
         }
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioWMSOleada)
     {
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioWMSOleada.DataSource = ClaseLogServicioWMSOleada.carga24hrs_ServicioWMNSOleada();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioWMSOleada.DataSource = ClaseLogServicioWMSOleada.Carga1000_ServicioWMSOleada();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioWMSOleada.DataSource = ClaseLogServicioWMSOleada.CargaLogError_ServicioWMSOleada();
         }
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioServInfo)
     {
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioServInfo.DataSource = ClaseLogServicioServInfo.Carga24hrs_ServicioServInfo();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioServInfo.DataSource = ClaseLogServicioServInfo.Carga1000_ServicioServInfo();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioServInfo.DataSource = ClaseLogServicioServInfo.CargaLogError_ServicioServInfo();
         }
     }
     else if (tab_TablasLog.SelectedTab == tabp_LogServicioSmartphone)
     {
         if (rdo_ErroresUltimas24Hrs.Checked == true)
         {
             grdv_LogServicioSmartphone.DataSource = ClaseLogServicioSmartphone.Carga24hrs_ServicioSmartphone();
         }
         else if (rdo_Ultimos1000Errores.Checked == true)
         {
             grdv_LogServicioSmartphone.DataSource = ClaseLogServicioSmartphone.Carga1000_ServicioSmartphone();
         }
         else if (rdo_Default.Checked == true)
         {
             grdv_LogServicioSmartphone.DataSource = ClaseLogServicioSmartphone.CargaLogError_ServicioSmartphone();
         }
     }
 }