Cambios para el Web Service KLB
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C530
This commit is contained in:
parent
630a3eaa10
commit
a33001d8f5
7 changed files with 50 additions and 19 deletions
|
|
@ -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)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -1706,7 +1706,19 @@ public partial class Forms_Trans_frwBusquedaSolicitud : General
|
|||
lblTituloActividad.Text = "Actividad N°" + n_pActividad.ToString();
|
||||
lblEstadoA1.Text = dsEncargadosActividades.Tables[0].Rows[0]["DESCRIPCIONESTADO"].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["DESCRIPCIONACTIVIDAD"] = strDescripcionActividad;
|
||||
|
|
@ -1738,6 +1750,8 @@ public partial class Forms_Trans_frwBusquedaSolicitud : General
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Carga el grid de tareas
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@
|
|||
</tr>
|
||||
<tr style="vertical-align: text-top;">
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -921,7 +921,6 @@ public partial class Forms_TRA_frwRequisitos : General
|
|||
string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc);
|
||||
|
||||
if (strResultado == string.Empty)
|
||||
|
||||
{
|
||||
|
||||
File.Delete(nombreAdjunto + ".pdf");
|
||||
|
|
@ -1035,20 +1034,20 @@ public partial class Forms_TRA_frwRequisitos : General
|
|||
p_strDocHtml = p_strDocHtml.Replace("strNumeroPlanoCatastro", strNumeroPlanoCatastro);
|
||||
|
||||
string strListaRequisitos = verificarRequisitos();
|
||||
//foreach (GridViewRow row in grvListaDatosRequisitos.Rows)
|
||||
//{
|
||||
// HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[0].Controls[1];
|
||||
// if (chkTemp != null)
|
||||
// {
|
||||
// if (chkTemp.Checked == false)
|
||||
// strListaRequisitos += "<tr><td> " + row.Cells[3].Text + "<tr><td> ";
|
||||
// }
|
||||
foreach (GridViewRow row in grvListaDatosRequisitos.Rows)
|
||||
{
|
||||
HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[0].Controls[1];
|
||||
if (chkTemp != null)
|
||||
{
|
||||
if (chkTemp.Checked == false)
|
||||
strListaRequisitos += "<tr><td> " + row.Cells[3].Text + "<tr><td> ";
|
||||
}
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
p_strDocHtml = p_strDocHtml.Replace("strListaRequisitos", strListaRequisitos);
|
||||
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 strNombreArchivo = System.IO.Path.GetFileName(strResult);
|
||||
|
|
@ -1070,7 +1069,7 @@ public partial class Forms_TRA_frwRequisitos : General
|
|||
string nombreAdjunto = pdfPath + @"\" + strNombreArchivo.Replace(".pdf", "");
|
||||
|
||||
//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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@
|
|||
</identity>
|
||||
</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="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"/>
|
||||
</client>
|
||||
<behaviors>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue