- | Correo Electrónico
+ | Correo Electrónico 2
|
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs
index 9f2f0889e..4c1af28e0 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs
@@ -40,6 +40,7 @@ using AyABL.Tran;
using AyABL.Usuario;
using AyABL.TRA;
using AyABL.AUT.Encripta;
+using System.Drawing;
@@ -452,6 +453,38 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
{
//modificar el registro de la tabla solicitud poner en true valor temporal
+ if (txtTelefono1.Text == String.Empty || txtCorreo.Text == String.Empty)
+ {
+ if (txtTelefono1.Text == String.Empty)
+ {
+ reqTel.Text = "* Campo Obligatorio";
+ reqTel.Visible = true;
+ reqTel.ForeColor = Color.Red;
+ }
+ else
+ {
+ reqTel.Visible = false;
+ }
+
+ if (txtCorreo.Text == String.Empty )
+ {
+ reqCorreo.Text = "* Campo Obligatorio";
+ reqCorreo.Visible = true;
+ reqCorreo.ForeColor = Color.Red;
+ }
+ else
+ {
+ reqCorreo.Visible = false;
+
+ }
+
+
+ }
+ else
+ {
+ reqCorreo.Visible = txtCorreo.Text != String.Empty ? false : true;
+ reqTel.Visible = txtTelefono1.Text != String.Empty ? false : true;
+
ViewState["MODO"] = "Nuevo";
int pkRegistro = GuardarDatosSolicitud();
if (pkRegistro != -1)
@@ -467,6 +500,8 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
EjecutarScript("$('#accordion').accordion({active:1});$('#accordion').context.activeElement.id = 'requisitos';limpiarFrame(3);inicializaAcordeon('TipoDisponibilidad','exitoGuardado');");
//MensajeInformativo(AyABL.BASESDEDATOS.ADS + "Interfaz: " + MensajesAplicacion.GuardadoExitoso.ToString());
}
+ }
+
//else
//{
// EjecutarScript("inicializaAcordeon('TipoDisponibilidad','errorGuardado');");
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs
index 743f6176f..1616d019f 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs
@@ -382,7 +382,7 @@ public partial class Forms_Trans_frwProgramacionTrabajo : General
string strAccion = string.Empty;
strAccion = verificarTarea2();
if (strAccion == "aprobar")
- {
+ {
GuardarDatosActividad(verificarTarea2());
EjecutarScript("VentanaAbrir();;toastr.success('Se asignó la actividad exitosamente', 'Información',toastr.options ={closeButton: true})");
}
@@ -1135,7 +1135,7 @@ public partial class Forms_Trans_frwProgramacionTrabajo : General
objNotificacionBL.objnotificacionEL.ID_DOCUMENTO = Session["SOLICITUD"].ToString() + " - Programación de trabajo";
objNotificacionBL.objnotificacionEL.status = "00";
objNotificacionBL.objnotificacionEL.message = "OK";
- nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL);
+ //nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL);
GuardarEventoBitacora(
Session["LOGIN"].ToString(),
AccionBitacora.INSERT.ToString(),
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs
index 9753254e7..e4a855865 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs
@@ -2189,34 +2189,34 @@ protected void grvLista_RowCommand(object sender, GridViewCommandEventArgs e)
if (respuestaAPCR.Respuesta == true)
{
EjecutarScript("MensajeInformativoPersonalizado('Se ha enviado la notificación a APCR para que ellos notifiquen al cliente registrado.');");
- GuardarEventoBitacora(
+ GuardarEventoBitacora(
- Session["LOGIN"].ToString(),
+ Session["LOGIN"].ToString(),
- AccionBitacora.INSERT.ToString(),
+ AccionBitacora.INSERT.ToString(),
- MensajesBitacora.IngresarRegistro + ": Se envió el correo de notificación de requisitos incompletos a APCR, referente a la solcitud " + lblNumSolicitud.Text,
+ MensajesBitacora.IngresarRegistro + ": Se envió el correo de notificación de requisitos incompletos a APCR, referente a la solcitud " + lblNumSolicitud.Text,
- "frwRequisitosSolicitud.aspx",
+ "frwRequisitosSolicitud.aspx",
- Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"])
+ Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"])
);
}
else
{
EjecutarScript("MensajeError('Se presento el siguiente problema a la hora de notificar al CFIA: " + respuestaAPCR.DescripcionError + "');");
- GuardarEventoBitacora(
+ GuardarEventoBitacora(
- Session["LOGIN"].ToString(),
+ Session["LOGIN"].ToString(),
- AccionBitacora.INSERT.ToString(),
+ AccionBitacora.INSERT.ToString(),
- MensajesBitacora.IngresarRegistro + ": Se presentó el siguiente problema a la hora de notificar al CFIA" + respuestaAPCR.DescripcionError ,
+ MensajesBitacora.IngresarRegistro + ": Se presentó el siguiente problema a la hora de notificar al CFIA" + respuestaAPCR.DescripcionError ,
- "frwRequisitosSolicitud.aspx",
+ "frwRequisitosSolicitud.aspx",
- Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"])
+ Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"])
);
}
|