git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C308
This commit is contained in:
parent
f756460234
commit
2b9ee2cec4
6 changed files with 36 additions and 31 deletions
|
|
@ -23,13 +23,13 @@ namespace webAgenciaVirtual
|
|||
string pathrefer = context.Request.UrlReferrer.ToString();
|
||||
//string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT");
|
||||
string Serverpath = ConfigurationManager.AppSettings["FileRepository"].ToString();
|
||||
if (context.Request.QueryString["id"] != null)
|
||||
{
|
||||
Serverpath += context.Request.QueryString["tipo"].ToString() + "\\" + context.Request.QueryString["id"].ToString() + "\\" + context.Request.QueryString["carpeta"].ToString();
|
||||
}else
|
||||
{
|
||||
Serverpath += context.Request.QueryString["tipo"].ToString();
|
||||
}
|
||||
//if (context.Request.QueryString["id"] != null)
|
||||
//{
|
||||
//Serverpath += context.Request.QueryString["tipo"].ToString() + "\\" + context.Request.QueryString["id"].ToString() + "\\" + context.Request.QueryString["carpeta"].ToString();
|
||||
//}else
|
||||
//{
|
||||
//Serverpath += context.Request.QueryString["tipo"].ToString();
|
||||
//}
|
||||
var postedFile = context.Request.Files[0];
|
||||
string ext = Path.GetExtension(postedFile.FileName);
|
||||
//if (ext == ".pdf" || ext == ".PDF")
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
|||
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
||||
|
||||
var server = window.location.protocol + "//" + window.location.hostname + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||
var SinorLoginWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc";
|
||||
var SinorLoginWCF = "http://10.50.1.123:2070/Sinort.svc";
|
||||
var string_empty = "";
|
||||
var Atesa = {};
|
||||
var StarterTemplateVisible = true;
|
||||
|
|
@ -1841,7 +1841,7 @@ this.EntrarPantallaSolicitud = function (codigo) {
|
|||
document.location.href = url;
|
||||
}
|
||||
|
||||
this.AddSelectOption = function (selectId, optionId, _text) {
|
||||
this.AddSelectOption = function (_selectId, _optionId, _text) {
|
||||
|
||||
$(_selectId)
|
||||
.append($("<option></option>")
|
||||
|
|
|
|||
|
|
@ -22,12 +22,11 @@ this.CargarTablaFichas = function (data) {
|
|||
|
||||
|
||||
var columnDefinition = [
|
||||
{ "data": 'IdFichaTecnica'},
|
||||
{ "data": "DescripcionDocumento" },
|
||||
{ "data": 'IdFichaTecnica' },
|
||||
{ "data": "DescripcionEmisor" },
|
||||
{ "data": "DescripcionDocumentoTecnico" },
|
||||
{ "data": "DescripcionAplicacion" },
|
||||
{ "data": "FechaPublicacionDocumentoTecnico", "render": function (value) { return DateFormatNoTime(value); } },
|
||||
//{ "data": "FechaPublicacionDocumentoTecnico", "render": function (value) { return DateFormatNoTime(value); } },
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||
];
|
||||
|
||||
|
|
@ -45,17 +44,24 @@ this.CargarTablaFichas = function (data) {
|
|||
|
||||
this.CargarFiltros = function () {
|
||||
|
||||
var listaEmisor = $.grep(FichaTecnica, function (data) {
|
||||
return data.IdTipoComentario == Comentarios.Foro.Codigo && data.Respuesta == null;
|
||||
});
|
||||
StartSelectControlRequest('#drpEmisor');
|
||||
CleanSelectControl('#drpEmisor');
|
||||
AddSelectOption('#drpEmisor', );
|
||||
var emisor;
|
||||
emisor = $("#ucSeleccionarEmisor").html();
|
||||
emisor = replaceAll('[$Emisor]', DescTipoSolicitud, emisor);
|
||||
$('#drpEmisor').empty();
|
||||
$('#drpEmisor').append(emisor);
|
||||
|
||||
var ArrayEmisores = [];
|
||||
var data = FichaTecnica;
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
var exist = $.grep(ArrayEmisores, function (data) {
|
||||
return data == item.DescripcionEmisor;
|
||||
});
|
||||
|
||||
if (exist.length == 0) {
|
||||
ArrayEmisores.push(item.DescripcionEmisor);
|
||||
AddSelectOption('#drpEmisor', item.DescripcionEmisor, item.DescripcionEmisor);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
$('#tableFichas').on('click', 'button', function () {
|
||||
|
|
|
|||
|
|
@ -17,11 +17,10 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-1">ID</th>
|
||||
<th class="col-sm-3">Nombre</th>
|
||||
<th class="col-sm-2">Emisor</th>
|
||||
<th class="col-sm-3">Documento Técnico</th>
|
||||
<th class="col-sm-5">Aplicación</th>
|
||||
<th class="col-sm-4">Fecha publicación</th>
|
||||
@*<th class="col-sm-4">Palabra Clave</th>*@
|
||||
<th class="col-sm-2">Acción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -45,7 +44,7 @@
|
|||
|
||||
</form>
|
||||
|
||||
<div id="ucSeleccionarEmisor" style="display:none;">
|
||||
<div id="ucSeleccionarEmisor">
|
||||
<select name="drpEmisor" id="drpEmisor">
|
||||
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -153,19 +153,19 @@
|
|||
<ul class="treeview-menu">
|
||||
<span><i class="fa fa-circle text-success"> Acciones</i> </span>
|
||||
|
||||
<li><a href="javascript: EntrarPantallaSolicitud('1');"> Consulta al administrador </a></li>
|
||||
@*<li><a href="javascript: EntrarPantallaSolicitud('1');"> Consulta al administrador </a></li>
|
||||
<li><a href="javascript: EntrarPantallaSolicitud('2');"> Compra de documento técnica </a></li>
|
||||
<li><a href="javascript: EntrarPantallaSolicitud('3');"> Modificación de documento </br> técnico</a></li>
|
||||
<li><a href="#"> Ver mis solicitudes </a></li>
|
||||
<li><a href="#"> Ver mis solicitudes </a></li>*@
|
||||
|
||||
<span><i class="fa fa-circle text-success"> Sitios</i> </span>
|
||||
<li><a href="#"> Encuestas </a></li>
|
||||
@*<li><a href="#"> Encuestas </a></li>*@
|
||||
<span><i class="fa fa-circle text-success"> Administar</i> </span>
|
||||
<li><a href="@Url.Action("FichaTecnica", "NormativaReglamentacionTecnica")"> Ficha Técnica</a></li>
|
||||
@*<li><a href="@Url.Action("FichaTecnica", "NormativaReglamentacionTecnica")"> Ficha Técnica</a></li>
|
||||
<li><a href="#"> Ver fichas técnicas inactivas</a></li>
|
||||
<li><a href="#"> Ver solicitudes de compra</a></li>
|
||||
<li><a href="#"> Ver solicitudes de modificación</a></li>
|
||||
<li><a href="#"> Ver solicitudes de consulta</a></li>
|
||||
<li><a href="#"> Ver solicitudes de consulta</a></li>*@
|
||||
<li><a href="javascript: ValidarAcceder('Mantenimiento','Catalogos','Ingreso y actualización de mantenimientos');"> Configuración de la </br> aplicación</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
<!--<add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://10.50.1.123:2070/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\" />
|
||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://10.50.1.97:6075/DocumentosSinort/" />
|
||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://10.50.1.97:6075/dist/img/" />
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="C:\DocumentosSinort\" />
|
||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://localhost/AYA.SlnSinort/dist/img/" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue