Cambios para el Web Service KLB

git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C530
This commit is contained in:
kledezma 2021-02-03 23:17:11 +00:00
parent 630a3eaa10
commit a33001d8f5
7 changed files with 50 additions and 19 deletions

View file

@ -736,6 +736,24 @@ namespace AyABL.Tran
} }
} }
public int ObtenerDiferenciaDias(DateTime FechaIngreso, DateTime FechaResolucion)
{
if (FechaResolucion.Date == FechaIngreso.Date)
return 0;
int n = 0;
DateTime nextDate = FechaIngreso;
while (nextDate <= FechaResolucion.Date)
{
if (nextDate.DayOfWeek != DayOfWeek.Saturday && nextDate.DayOfWeek != DayOfWeek.Sunday)
n++;
nextDate = nextDate.AddDays(1);
}
return n - 1;
}
public DataSet dsListaUsuariosXActividades(ArrayList arlCondicionesFiltroBusqueda) public DataSet dsListaUsuariosXActividades(ArrayList arlCondicionesFiltroBusqueda)
{ {
try try

Binary file not shown.

Binary file not shown.

View file

@ -1706,7 +1706,19 @@ public partial class Forms_Trans_frwBusquedaSolicitud : General
lblTituloActividad.Text = "Actividad N°" + n_pActividad.ToString(); lblTituloActividad.Text = "Actividad N°" + n_pActividad.ToString();
lblEstadoA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["DESCRIPCIONESTADO"].ToString(); lblEstadoA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["DESCRIPCIONESTADO"].ToString();
lblFechaIngresoA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["FECHAASIGNACIONRESPONSABLEACTIVIDAD"].ToString(); lblFechaIngresoA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["FECHAASIGNACIONRESPONSABLEACTIVIDAD"].ToString();
lblFechaResolucionA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["FECHADEVOLUCIONRESPONSABLEACTIVIDAD"].ToString();
if (dsEncargadosActividades.Tables[0].Rows[0]["FECHADEVOLUCIONRESPONSABLEACTIVIDAD"].ToString() != "")
{
int DiasDiferencia = objSolicitudBL.ObtenerDiferenciaDias(Convert.ToDateTime(dsEncargadosActividades.Tables[0].Rows[0]["FECHAASIGNACIONRESPONSABLEACTIVIDAD"]), Convert.ToDateTime(dsEncargadosActividades.Tables[0].Rows[0]["FECHADEVOLUCIONRESPONSABLEACTIVIDAD"]));
lblFechaResolucionA1.Text = "("+DiasDiferencia+"Dias)"+" " + dsEncargadosActividades.Tables[0].Rows[0]["FECHADEVOLUCIONRESPONSABLEACTIVIDAD"].ToString();
}
else
{
lblFechaResolucionA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["FECHADEVOLUCIONRESPONSABLEACTIVIDAD"].ToString();
}
Session["NACTIVIDAD"] = n_pActividad; Session["NACTIVIDAD"] = n_pActividad;
Session["DESCRIPCIONACTIVIDAD"] = strDescripcionActividad; Session["DESCRIPCIONACTIVIDAD"] = strDescripcionActividad;
@ -1738,6 +1750,8 @@ public partial class Forms_Trans_frwBusquedaSolicitud : General
} }
} }
/// <summary> /// <summary>
/// Carga el grid de tareas /// Carga el grid de tareas
/// </summary> /// </summary>

View file

@ -337,7 +337,7 @@
</tr> </tr>
<tr style="vertical-align: text-top;"> <tr style="vertical-align: text-top;">
<td style="font-weight: 700;"> <td style="font-weight: 700;">
Actividad N°1 Ingreso y asignación del expediente Actividad N°1 Ingreso y asignación del expeduuuuuiente
</td> </td>
<td> <td>

View file

@ -921,7 +921,6 @@ public partial class Forms_TRA_frwRequisitos : General
string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc); string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc);
if (strResultado == string.Empty) if (strResultado == string.Empty)
{ {
File.Delete(nombreAdjunto + ".pdf"); File.Delete(nombreAdjunto + ".pdf");
@ -1035,20 +1034,20 @@ public partial class Forms_TRA_frwRequisitos : General
p_strDocHtml = p_strDocHtml.Replace("strNumeroPlanoCatastro", strNumeroPlanoCatastro); p_strDocHtml = p_strDocHtml.Replace("strNumeroPlanoCatastro", strNumeroPlanoCatastro);
string strListaRequisitos = verificarRequisitos(); string strListaRequisitos = verificarRequisitos();
//foreach (GridViewRow row in grvListaDatosRequisitos.Rows) foreach (GridViewRow row in grvListaDatosRequisitos.Rows)
//{ {
// HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[0].Controls[1]; HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[0].Controls[1];
// if (chkTemp != null) if (chkTemp != null)
// { {
// if (chkTemp.Checked == false) if (chkTemp.Checked == false)
// strListaRequisitos += "<tr><td> " + row.Cells[3].Text + "<tr><td> "; strListaRequisitos += "<tr><td> " + row.Cells[3].Text + "<tr><td> ";
// } }
//} }
p_strDocHtml = p_strDocHtml.Replace("strListaRequisitos", strListaRequisitos); p_strDocHtml = p_strDocHtml.Replace("strListaRequisitos", strListaRequisitos);
ASPDF.Service1Client clsGenerarDocumento = new ASPDF.Service1Client(); ASPDF.Service1Client clsGenerarDocumento = new ASPDF.Service1Client();
string strResult = clsGenerarDocumento.Generar_Documento_PDF(p_strDocHtml, "RequisitosIncompleto_"+ DateTime.Now.ToShortDateString().Replace("/","_") + "_" + Session["SOLICITUD"].ToString() ); string strResult = clsGenerarDocumento.Generar_Documento_PDF(p_strDocHtml, "RequisitosIncompleto_" + DateTime.Now.ToShortDateString().Replace("/", "_") + "_" + Session["SOLICITUD"].ToString());
string sourcePath = strResult; string sourcePath = strResult;
string strNombreArchivo = System.IO.Path.GetFileName(strResult); string strNombreArchivo = System.IO.Path.GetFileName(strResult);
@ -1070,7 +1069,7 @@ public partial class Forms_TRA_frwRequisitos : General
string nombreAdjunto = pdfPath + @"\" + strNombreArchivo.Replace(".pdf", ""); string nombreAdjunto = pdfPath + @"\" + strNombreArchivo.Replace(".pdf", "");
//se carga el archivo y el registro a vision 2020 //se carga el archivo y el registro a vision 2020
string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_") , bDoc); string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc);
if (strResultado == string.Empty) if (strResultado == string.Empty)
{ {

View file

@ -246,7 +246,7 @@
</identity> </identity>
</endpoint> </endpoint>
<endpoint address="https://apc2.cfia.or.cr/APCR_WCF_Respuesta/WS_RespuestaAPCR.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServicio" contract="APCR_WCF_Respuesta.IServicio" name="BasicHttpBinding_IServicio"/> <endpoint address="https://apc2.cfia.or.cr/APCR_WCF_Respuesta/WS_RespuestaAPCR.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServicio" contract="APCR_WCF_Respuesta.IServicio" name="BasicHttpBinding_IServicio"/>
<endpoint address="http://vsrv-sdigetrans.intranet.aya.go.cr:5055/Service1.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService11" contract="ASPDF.IService1" name="BasicHttpBinding_IService11"/> <endpoint address="http://localhost/Servicio/Service1.svc?wsdl" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService11" contract="ASPDF.IService1" name="BasicHttpBinding_IService11"/>
<endpoint address="http://aya-vsrv-webws:2000/service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap1" contract="wsOpenConstruccion.ServiceSoap" name="ServiceSoap1"/> <endpoint address="http://aya-vsrv-webws:2000/service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap1" contract="wsOpenConstruccion.ServiceSoap" name="ServiceSoap1"/>
</client> </client>
<behaviors> <behaviors>