Etiquetas Identificar Cambios Requerimientos
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C541
This commit is contained in:
parent
a26a2b774f
commit
c040bf5092
8 changed files with 168 additions and 144 deletions
|
|
@ -1988,7 +1988,7 @@ public partial class Forms_Trans_frwCartaSolicitud : General
|
||||||
if (nResultadoActualizar > 0)
|
if (nResultadoActualizar > 0)
|
||||||
{
|
{
|
||||||
#region Envio de correo
|
#region Envio de correo
|
||||||
|
//Requerimiento 13
|
||||||
//AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
//AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
||||||
|
|
||||||
//nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
//nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
||||||
|
|
@ -2977,7 +2977,8 @@ public partial class Forms_Trans_frwCartaSolicitud : General
|
||||||
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
||||||
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
|
||||||
int nValorRetornado = objcorreoBL.insertarCorreo();
|
//Requerimiento 13
|
||||||
|
//int nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
MensajeAlerta("Falta finalizar la firma de documentos por parte del usuario " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(row["NOMBRECOMPLETO"].ToString().ToLower()));
|
MensajeAlerta("Falta finalizar la firma de documentos por parte del usuario " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(row["NOMBRECOMPLETO"].ToString().ToLower()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3181,8 +3182,8 @@ public partial class Forms_Trans_frwCartaSolicitud : General
|
||||||
objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
||||||
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
||||||
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
//Requerimiento 13
|
||||||
nValorRetornado = objcorreoBL.insertarCorreo();
|
//nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1327,7 +1327,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
<br />
|
<br />
|
||||||
|
<%-- Requerimiento 12 --%>
|
||||||
|
|
||||||
<asp:TextBox ID="txtObservacionesCritec" TextMode="MultiLine" Rows="25" Width="98%" runat="server" ></asp:TextBox>
|
<asp:TextBox ID="txtObservacionesCritec" TextMode="MultiLine" Rows="25" Width="98%" runat="server" ></asp:TextBox>
|
||||||
|
<%-- Requerimiento 12 --%>
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1150,7 +1150,9 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
<br />
|
<br />
|
||||||
|
<%-- Requerimiento 12 --%>
|
||||||
<asp:TextBox ID="txtObservacionesCritec" TextMode="MultiLine" Rows="25" Width="98%" runat="server"></asp:TextBox>
|
<asp:TextBox ID="txtObservacionesCritec" TextMode="MultiLine" Rows="25" Width="98%" runat="server"></asp:TextBox>
|
||||||
|
<%-- Requerimiento 12 --%>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1689,6 +1689,7 @@ public partial class Forms_Trans_frwGestionTrabajo : General
|
||||||
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row6["FKUSUARIOXDEPENDENCIA"].ToString());
|
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row6["FKUSUARIOXDEPENDENCIA"].ToString());
|
||||||
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
|
||||||
|
//Requerimiento 13
|
||||||
//nValorRetornado = objcorreoBL.insertarCorreo();
|
//nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
}
|
}
|
||||||
GuardarEventoBitacora(
|
GuardarEventoBitacora(
|
||||||
|
|
@ -1729,12 +1730,9 @@ public partial class Forms_Trans_frwGestionTrabajo : General
|
||||||
nResultadoActualizar = objSolicitud.actualizarActividadSolicitud();
|
nResultadoActualizar = objSolicitud.actualizarActividadSolicitud();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Requerimiento 13
|
||||||
#region Envio de correo
|
#region Envio de correo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//int nActividad = int.Parse(Session["NACTIVIDAD"].ToString());
|
//int nActividad = int.Parse(Session["NACTIVIDAD"].ToString());
|
||||||
////if (nActividad > 2)
|
////if (nActividad > 2)
|
||||||
//// nActividad = 2;//SE ENVIA PARA REPROGRAMAR11
|
//// nActividad = 2;//SE ENVIA PARA REPROGRAMAR11
|
||||||
|
|
@ -1808,6 +1806,7 @@ public partial class Forms_Trans_frwGestionTrabajo : General
|
||||||
//}
|
//}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
//Requerimiento 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if (p_accion == "aprueba")
|
//if (p_accion == "aprueba")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<%@ Page Title="Busqueda de solicitudes" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="frwNuevaSolicitud.aspx.cs" Inherits="Forms_Trans_frwNuevaSolicitud" %>
|
<%@ Page Title="Busqueda de solicitudes" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="frwNuevaSolicitud.aspx.cs" Inherits="Forms_Trans_frwNuevaSolicitud"%>
|
||||||
|
|
||||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
|
||||||
|
|
||||||
|
|
@ -285,10 +285,13 @@
|
||||||
if ($("#MainContent_txtApellido1Solicitante").val() == '' || $("#MainContent_txtApellido1Solicitante").val() == 'N/A' && indice > 2) {
|
if ($("#MainContent_txtApellido1Solicitante").val() == '' || $("#MainContent_txtApellido1Solicitante").val() == 'N/A' && indice > 2) {
|
||||||
MensajeError('Debe digitar el apellido del solicitante', 'datosCliente');
|
MensajeError('Debe digitar el apellido del solicitante', 'datosCliente');
|
||||||
nRespuesta = 0;
|
nRespuesta = 0;
|
||||||
} else if ($("#MainContent_txtApellido2Solicitante").val() == '' || $("#MainContent_txtApellidoSolicitante").val() == 'N/A' && indice > 2) {
|
}
|
||||||
|
//Requerimiento 1
|
||||||
|
else if ($("#MainContent_txtApellido2Solicitante").val() == '' || $("#MainContent_txtApellidoSolicitante").val() == 'N/A' && indice > 2) {
|
||||||
MensajeError('Debe digitar el segundo apellido del solicitante', 'datosCliente');
|
MensajeError('Debe digitar el segundo apellido del solicitante', 'datosCliente');
|
||||||
nRespuesta = 0;
|
nRespuesta = 0;
|
||||||
}
|
}
|
||||||
|
// Requerimiento 1
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($("#MainContent_txtCedulaSolicitante").val() == '' || $("#MainContent_txtCedulaSolicitante").val() == 'N/A' && indice > 2) {
|
if ($("#MainContent_txtCedulaSolicitante").val() == '' || $("#MainContent_txtCedulaSolicitante").val() == 'N/A' && indice > 2) {
|
||||||
|
|
@ -301,19 +304,14 @@
|
||||||
|
|
||||||
MensajeError('Debe digitar el número de NIS', 'datosCliente');
|
MensajeError('Debe digitar el número de NIS', 'datosCliente');
|
||||||
nRespuesta = 0;
|
nRespuesta = 0;
|
||||||
} else if ($("#MainContent_rdlTieneServicios_0").is(':checked') && ($("#MainContent_txtNIS").val() == 'N/A' || $("#MainContent_txtNIS").val() == 'n/a' || $("#MainContent_txtNIS").val() == 'N/a' || $("#MainContent_txtNIS").val() == 'n/A' || $("#MainContent_txtNIS").val() == '')) {
|
}
|
||||||
|
//Requerimiento 1
|
||||||
|
else if ($("#MainContent_rdlTieneServicios_0").is(':checked') && ($("#MainContent_txtNIS").val() == 'N/A' || $("#MainContent_txtNIS").val() == 'n/a' || $("#MainContent_txtNIS").val() == 'N/a' || $("#MainContent_txtNIS").val() == 'n/A' || $("#MainContent_txtNIS").val() == '')) {
|
||||||
|
|
||||||
MensajeError('Debe digitar el número de NIS', 'datosCliente');
|
MensajeError('Debe digitar el número de NIS', 'datosCliente');
|
||||||
nRespuesta = 0;
|
nRespuesta = 0;
|
||||||
}
|
}
|
||||||
//else if ($('#MainContent_txtTelefono1').val() == '' && indice == 5) {
|
//Requerimiento 1
|
||||||
// MensajeError('Debe ingresar el Número de Teléfono 1', 'datosCliente');
|
|
||||||
// nRespuesta = 4;
|
|
||||||
//}
|
|
||||||
//else if ($('#MainContent_txtCorreo').val() == '' && indice == 5) {
|
|
||||||
// MensajeError('Debe ingresar el Correo Electrónico', 'datosCliente');
|
|
||||||
// nRespuesta = 4;
|
|
||||||
//}
|
|
||||||
else {
|
else {
|
||||||
if ($("#MainContent_txtDescripcionUsoEdificaciones").val() == '' && indice > 2) {
|
if ($("#MainContent_txtDescripcionUsoEdificaciones").val() == '' && indice > 2) {
|
||||||
MensajeError('Debe digitar una especificación del uso de edificaciones o si no aplica digite N/A', 'datosCliente');
|
MensajeError('Debe digitar una especificación del uso de edificaciones o si no aplica digite N/A', 'datosCliente');
|
||||||
|
|
@ -1080,8 +1078,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
<asp:RegularExpressionValidator ID="rfvCantidad" ControlToValidate="txtValor" runat="server" ErrorMessage="Solo se permiten valores numéricos" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
|
<asp:RegularExpressionValidator ID="rfvCantidad" ControlToValidate="txtValor" runat="server" ErrorMessage="Solo se permiten valores numéricos" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
|
||||||
|
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1124,9 +1125,12 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="auto-style6"></td>
|
<td class="auto-style6"></td>
|
||||||
<td class="auto-style10"></td>
|
<td class="auto-style10"></td>
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
<td class="auto-style7">
|
<td class="auto-style7">
|
||||||
<asp:RegularExpressionValidator ID="rfvCaudalSolicitado" runat="server" ControlToValidate="txtCaudalSolicitado" ValidationExpression="^\d{1,6}(\.\d{1,2})?$" ErrorMessage="Solo se permiten números."></asp:RegularExpressionValidator>
|
<asp:RegularExpressionValidator ID="rfvCaudalSolicitado" runat="server" ControlToValidate="txtCaudalSolicitado" ValidationExpression="^\d{1,6}(\.\d{1,2})?$" ErrorMessage="Solo se permiten números."></asp:RegularExpressionValidator>
|
||||||
</td>
|
</td >
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
|
|
||||||
|
|
||||||
<td class="auto-style11"></td>
|
<td class="auto-style11"></td>
|
||||||
|
|
||||||
|
|
@ -1349,7 +1353,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="auto-style7">
|
<td class="auto-style7">
|
||||||
<asp:TextBox ID="txtTelefono1" runat="server"></asp:TextBox>
|
<asp:TextBox ID="txtTelefono1" runat="server"></asp:TextBox>
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
<asp:Label id="reqTel" Text="" runat="server"/>
|
<asp:Label id="reqTel" Text="" runat="server"/>
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
</td>
|
</td>
|
||||||
<td class="auto-style10"> </td>
|
<td class="auto-style10"> </td>
|
||||||
<td class="auto-style11">Fax</td>
|
<td class="auto-style11">Fax</td>
|
||||||
|
|
@ -1367,14 +1373,18 @@
|
||||||
<td class="auto-style11">Correo Electrónico</td>
|
<td class="auto-style11">Correo Electrónico</td>
|
||||||
<td class="auto-style7">
|
<td class="auto-style7">
|
||||||
<asp:TextBox ID="txtCorreo" runat="server"></asp:TextBox>
|
<asp:TextBox ID="txtCorreo" runat="server"></asp:TextBox>
|
||||||
|
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
<asp:Label id="reqCorreo" Text="" runat="server"/>
|
<asp:Label id="reqCorreo" Text="" runat="server"/>
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="auto-style6">Correo Electrónico 2
|
<%-- Requerimiento 1 --%>
|
||||||
</td>
|
<td class="auto-style6">Correo Electrónico 2</td>
|
||||||
|
<%-- Requerimiento 1 --%>
|
||||||
<td class="auto-style7">
|
<td class="auto-style7">
|
||||||
<asp:TextBox ID="txtCorreo2" runat="server"></asp:TextBox>
|
<asp:TextBox ID="txtCorreo2" runat="server"></asp:TextBox>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
||||||
if (Session["SOLICITUD"]!= null)
|
if (Session["SOLICITUD"]!= null)
|
||||||
{
|
{
|
||||||
//modificar el registro de la tabla solicitud poner en true valor temporal
|
//modificar el registro de la tabla solicitud poner en true valor temporal
|
||||||
|
//Requerimiento 1
|
||||||
if (txtTelefono1.Text == String.Empty || txtCorreo.Text == String.Empty)
|
if (txtTelefono1.Text == String.Empty || txtCorreo.Text == String.Empty)
|
||||||
{
|
{
|
||||||
if (txtTelefono1.Text == String.Empty)
|
if (txtTelefono1.Text == String.Empty)
|
||||||
|
|
@ -478,12 +478,14 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
reqCorreo.Visible = txtCorreo.Text != String.Empty ? false : true;
|
reqCorreo.Visible = txtCorreo.Text != String.Empty ? false : true;
|
||||||
reqTel.Visible = txtTelefono1.Text != String.Empty ? false : true;
|
reqTel.Visible = txtTelefono1.Text != String.Empty ? false : true;
|
||||||
|
//Requerimiento 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ViewState["MODO"] = "Nuevo";
|
ViewState["MODO"] = "Nuevo";
|
||||||
int pkRegistro = GuardarDatosSolicitud();
|
int pkRegistro = GuardarDatosSolicitud();
|
||||||
|
|
@ -1054,6 +1056,7 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
||||||
/// guarda y modifica registros en la tabla.
|
/// guarda y modifica registros en la tabla.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
//Requerimiento 1
|
||||||
private int GuardarDatosTipoProyecto() //M0
|
private int GuardarDatosTipoProyecto() //M0
|
||||||
{
|
{
|
||||||
int nValorRetornado = 0;
|
int nValorRetornado = 0;
|
||||||
|
|
@ -1061,12 +1064,10 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string strModo = ViewState["MODO"].ToString();
|
string strModo = ViewState["MODO"].ToString();
|
||||||
decimal value;
|
|
||||||
if (ddlTipoProyecto.SelectedValue != "-1")
|
if (ddlTipoProyecto.SelectedValue != "-1")
|
||||||
{
|
{
|
||||||
if (txtValor.Text != "" && int.Parse(txtValor.Text) >= 1)
|
if (txtValor.Text != "" && int.Parse(txtValor.Text) >= 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (txtCaudalSolicitado.Text != "" && Convert.ToDecimal(txtCaudalSolicitado.Text) > 0)
|
if (txtCaudalSolicitado.Text != "" && Convert.ToDecimal(txtCaudalSolicitado.Text) > 0)
|
||||||
{
|
{
|
||||||
if (txtNivelesConstruccion.Text != "" && txtAreaConstruccion.Text != "" )
|
if (txtNivelesConstruccion.Text != "" && txtAreaConstruccion.Text != "" )
|
||||||
|
|
@ -1159,7 +1160,7 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
||||||
}
|
}
|
||||||
return nValorRetornado;
|
return nValorRetornado;
|
||||||
}
|
}
|
||||||
|
//Requerimiento 1
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// guarda y modifica registros en la tabla.
|
/// guarda y modifica registros en la tabla.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1110,7 +1110,7 @@ public partial class Forms_Trans_frwProgramacionTrabajo : General
|
||||||
if (nResultadoActualizar > 0)
|
if (nResultadoActualizar > 0)
|
||||||
{
|
{
|
||||||
#region Envio de correo
|
#region Envio de correo
|
||||||
|
//Requerimiento 13
|
||||||
//AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
//AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
||||||
|
|
||||||
//nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
//nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
||||||
|
|
|
||||||
|
|
@ -415,6 +415,8 @@ public partial class Forms_TRA_frwRequisitos : General
|
||||||
//}
|
//}
|
||||||
//else
|
//else
|
||||||
//{
|
//{
|
||||||
|
|
||||||
|
//Requerimiento 13
|
||||||
EnvioCorreo("cumplido");
|
EnvioCorreo("cumplido");
|
||||||
GuardarDatosActividad("aprueba");
|
GuardarDatosActividad("aprueba");
|
||||||
EjecutarScript("MensajeInformativoPersonalizado('Se completó el ingreso de requisitos por lo que se puede continuar con la programación de las actividades.');EscoderBoton();");
|
EjecutarScript("MensajeInformativoPersonalizado('Se completó el ingreso de requisitos por lo que se puede continuar con la programación de las actividades.');EscoderBoton();");
|
||||||
|
|
@ -490,6 +492,7 @@ public partial class Forms_TRA_frwRequisitos : General
|
||||||
|
|
||||||
if (blIncompleto)
|
if (blIncompleto)
|
||||||
{
|
{
|
||||||
|
// Requerimiento 13
|
||||||
//accion incompleto
|
//accion incompleto
|
||||||
EnvioCorreo("incumplido");
|
EnvioCorreo("incumplido");
|
||||||
#region Envio de correo
|
#region Envio de correo
|
||||||
|
|
@ -508,7 +511,7 @@ public partial class Forms_TRA_frwRequisitos : General
|
||||||
//objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
//objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
|
||||||
//nValorRetornado = objcorreoBL.insertarCorreo();
|
//nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
|
// Requerimiento 13
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
EjecutarScript("EscoderBoton();");
|
EjecutarScript("EscoderBoton();");
|
||||||
|
|
@ -745,7 +748,8 @@ public partial class Forms_TRA_frwRequisitos : General
|
||||||
else
|
else
|
||||||
objcorreoExternoBL.objcorreoExternoEL.p_file_attachments = string.Empty;
|
objcorreoExternoBL.objcorreoExternoEL.p_file_attachments = string.Empty;
|
||||||
|
|
||||||
int nValorRetornado = objcorreoExternoBL.EnviarCorreoExterno();
|
//Requerimiento 13
|
||||||
|
//int nValorRetornado = objcorreoExternoBL.EnviarCorreoExterno();
|
||||||
|
|
||||||
GuardarEventoBitacora(
|
GuardarEventoBitacora(
|
||||||
Session["LOGIN"].ToString(),
|
Session["LOGIN"].ToString(),
|
||||||
|
|
@ -1936,50 +1940,53 @@ public partial class Forms_TRA_frwRequisitos : General
|
||||||
nResultadoActualizar = objSolicitud.actualizarActividadSolicitud();
|
nResultadoActualizar = objSolicitud.actualizarActividadSolicitud();
|
||||||
if (nResultadoActualizar > 0)
|
if (nResultadoActualizar > 0)
|
||||||
{
|
{
|
||||||
#region Envio de correo
|
#region Envio de correo--
|
||||||
|
//Requerimiento 13
|
||||||
|
|
||||||
AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
//AyABL.TRA.correoBL objcorreoBL = new AyABL.TRA.correoBL();
|
||||||
|
|
||||||
nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
//nPkSolicitud = Convert.ToInt32(row[1].ToString());//AQUI INSERTAMOS LA PK DE LA SOLICITUD
|
||||||
|
|
||||||
objcorreoBL.objcorreoEL.FKNUMSOLICITUD = nPkSolicitud;
|
//objcorreoBL.objcorreoEL.FKNUMSOLICITUD = nPkSolicitud;
|
||||||
// objcorreoBL.objcorreoEL.CORREO = dsActividad.Tables[0].Rows[0]["LOGINUSUARIO"].ToString() + "@aya.go.cr";
|
//// objcorreoBL.objcorreoEL.CORREO = dsActividad.Tables[0].Rows[0]["LOGINUSUARIO"].ToString() + "@aya.go.cr";
|
||||||
objcorreoBL.objcorreoEL.ASUNTO = strAsuntoCorreo;
|
//objcorreoBL.objcorreoEL.ASUNTO = strAsuntoCorreo;
|
||||||
objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
//objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
||||||
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
//objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row["FKUSUARIOXDEPENDENCIA"].ToString());
|
||||||
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
//objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
|
||||||
nValorRetornado = objcorreoBL.insertarCorreo();
|
//nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
|
|
||||||
//poner la siguiente actividad en pendiente
|
////poner la siguiente actividad en pendiente
|
||||||
|
|
||||||
objSolicitudBL = new solicitudBL();
|
//objSolicitudBL = new solicitudBL();
|
||||||
objSolicitudBL.objSolicitudEL.PK = int.Parse(Session["PKPROGRAMACION"].ToString());
|
//objSolicitudBL.objSolicitudEL.PK = int.Parse(Session["PKPROGRAMACION"].ToString());
|
||||||
objSolicitudBL.objSolicitudEL.ORDEN = 2;
|
//objSolicitudBL.objSolicitudEL.ORDEN = 2;
|
||||||
|
|
||||||
DataSet dsEncargadosActividadesSiguiente = objSolicitudBL.dsListaActividadesEncargado(null);
|
//DataSet dsEncargadosActividadesSiguiente = objSolicitudBL.dsListaActividadesEncargado(null);
|
||||||
foreach (DataRow row6 in dsEncargadosActividadesSiguiente.Tables[0].Rows)
|
//foreach (DataRow row6 in dsEncargadosActividadesSiguiente.Tables[0].Rows)
|
||||||
{
|
//{
|
||||||
|
|
||||||
objSolicitud.objresponsableActividadEL.PK = int.Parse(row6["PKRESPONSABLEACTIVIDAD"].ToString()); ;
|
// objSolicitud.objresponsableActividadEL.PK = int.Parse(row6["PKRESPONSABLEACTIVIDAD"].ToString()); ;
|
||||||
objSolicitud.objresponsableActividadEL.FKESTADO = 3;//pendiente t_sgm_estadoactividad
|
// objSolicitud.objresponsableActividadEL.FKESTADO = 3;//pendiente t_sgm_estadoactividad
|
||||||
objSolicitud.objresponsableActividadEL.FECHARECIBIDO = DateTime.Now;
|
// objSolicitud.objresponsableActividadEL.FECHARECIBIDO = DateTime.Now;
|
||||||
nResultadoActualizar = objSolicitud.actualizarActividadSolicitudSiguiente();
|
// nResultadoActualizar = objSolicitud.actualizarActividadSolicitudSiguiente();
|
||||||
|
|
||||||
objcorreoBL.objcorreoEL.ASUNTO = strAsuntoCorreo;
|
// objcorreoBL.objcorreoEL.ASUNTO = strAsuntoCorreo;
|
||||||
objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
// objcorreoBL.objcorreoEL.CONTENIDO = strMensajeContenido;
|
||||||
objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row6["FKUSUARIOXDEPENDENCIA"].ToString());
|
// objcorreoBL.objcorreoEL.FKUSUARIO = Convert.ToInt32(row6["FKUSUARIOXDEPENDENCIA"].ToString());
|
||||||
objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
// objcorreoBL.objcorreoEL.Fecha = DateTime.Now;
|
||||||
|
|
||||||
nValorRetornado = objcorreoBL.insertarCorreo();
|
// nValorRetornado = objcorreoBL.insertarCorreo();
|
||||||
}
|
//}
|
||||||
//cancelar notificacion
|
////cancelar notificacion
|
||||||
notificacionBL objNotificacionBL = new notificacionBL();
|
//notificacionBL objNotificacionBL = new notificacionBL();
|
||||||
|
|
||||||
objNotificacionBL.objnotificacionEL.ID_DOCUMENTO = Session["SOLICITUD"].ToString() + " - Ingreso y asignación de expedientes";
|
//objNotificacionBL.objnotificacionEL.ID_DOCUMENTO = Session["SOLICITUD"].ToString() + " - Ingreso y asignación de expedientes";
|
||||||
objNotificacionBL.objnotificacionEL.status = "00";
|
//objNotificacionBL.objnotificacionEL.status = "00";
|
||||||
objNotificacionBL.objnotificacionEL.message = "OK";
|
//objNotificacionBL.objnotificacionEL.message = "OK";
|
||||||
nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL);
|
//nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL);
|
||||||
|
|
||||||
|
//Requerimiento 13
|
||||||
#endregion
|
#endregion
|
||||||
GuardarEventoBitacora(
|
GuardarEventoBitacora(
|
||||||
Session["LOGIN"].ToString(),
|
Session["LOGIN"].ToString(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue