protected void BtnEnviar_Click(object sender, EventArgs e) { try { DataTable vDatos = new DataTable(); String vQuery = "RSP_TiempoExtraordinarioGenerales 50,'1'," + "'" + TxProyecto.Text + "','" + TxDescripcion.Text + "','" + TxHrs.Text + "','" + TxPago.Text + "','" + Session["USUARIO"] + "',1"; Int32 vRespuesta = vConexion.ejecutarSql(vQuery); if (vRespuesta == 1) { Mensaje("Proyecto agregado con exito", WarningType.Success); } else { Mensaje("Ha ocurrido un error. Favor comunicarse con sistemas.", WarningType.Danger); } limpiarCreacion(); UpdatePanel21.Update(); ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "closeModal();", true); } catch (Exception Ex) { Mensaje(Ex.Message, WarningType.Danger); } }
protected void FinalButton_Click(object sender, EventArgs e) { if (questionsAnswered < 8) { Label6.Text = "Please answer all the questions."; } if (questionsAnswered == 8) { if (score <= 3) { Label6.Text = "You scored " + score + " out of 8. Someone needs to go to the cinema more... But good try."; UpdatePanel21.Update(); } else if (score <= 5) { Label6.Text = "You scored " + score + " out of 8. Not too bad.. You missed some easy ones though."; UpdatePanel21.Update(); } else if (score <= 7) { Label6.Text = "You scored " + score + " out of 8. Nice work. You know your stuff"; UpdatePanel21.Update(); } else { Label6.Text = "You scored " + score + " out of 8. Wow.. You really know your stuff. Congratualte yourself with a pat on the back"; UpdatePanel21.Update(); } } }
protected void BtnDescargar_Click(object sender, EventArgs e) { String vError = String.Empty; try { validaciones(); if (DdlReporte.SelectedValue.Equals("1") || DdlReporte.SelectedValue.Equals("2")) { LbInformacion.Text = "Buen dia. " + "<br /><br />" + "Reporte a descargar: <b>" + DdlReporte.SelectedItem + "</b><br /><br />"; LbInformacionPregunta.Text = "<b>¿Está seguro que desea descargar el reporte seleccionado?</b>"; UpdatePanel24.Update(); } else if (DdlReporte.SelectedValue.Equals("3")) { LbInformacion.Text = "Buen dia. " + "<br /><br />" + "Reporte a enviar: <b>" + DdlReporte.SelectedItem + "</b><br /><br />"; LbInformacionPregunta.Text = "<b>¿Está seguro que desea enviar el consolidado a todos los colaboradores que ingresaron tiempo extraordinario?</b>"; UpdatePanel24.Update(); } ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "OpenInformacion();", true); limpiar(); UpdatePanel21.Update(); } catch (Exception Ex) { Mensaje(Ex.Message, WarningType.Danger); } }
protected void BtnCancelar_Click(object sender, EventArgs e) { try { limpiarCreacion(); UpdatePanel21.Update(); Mensaje("Creación cancelada con exito.", WarningType.Success); } catch (Exception Ex) { Mensaje(Ex.Message, WarningType.Danger); } }
protected void drpWorkStatus_SelectedIndexChanged(object sender, EventArgs e) { try { if (drpWorkStatus.SelectedValue == "Open") { lblheading.Text = "Comments"; } else if (drpWorkStatus.SelectedValue == "On Process") { lblheading.Text = "Comments"; } else if (drpWorkStatus.SelectedValue == "Resolved") { lblheading.Text = "Resolution Details"; } UpdatePanel21.Update(); } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
protected void BtnCancelar_Click(object sender, EventArgs e) { limpiar(); UpdatePanel21.Update(); }