git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C141
This commit is contained in:
parent
ba25924c31
commit
055a284db5
6 changed files with 29 additions and 17 deletions
|
|
@ -16,6 +16,9 @@ using System.ServiceModel;
|
||||||
using System.ServiceModel.Web;
|
using System.ServiceModel.Web;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
////using AYA.SlnSinort.WCF.ServiciosUsuariosWCF;
|
////using AYA.SlnSinort.WCF.ServiciosUsuariosWCF;
|
||||||
|
|
||||||
namespace AYA.SlnSinort.WCF
|
namespace AYA.SlnSinort.WCF
|
||||||
|
|
@ -238,6 +241,10 @@ namespace AYA.SlnSinort.WCF
|
||||||
string fileDirectory = Serverpath;
|
string fileDirectory = Serverpath;
|
||||||
file = model.Nombre.Replace(" ", "_");
|
file = model.Nombre.Replace(" ", "_");
|
||||||
fileDirectory = fileDirectory + "\\" + file;
|
fileDirectory = fileDirectory + "\\" + file;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (File.Exists(fileDirectory))
|
if (File.Exists(fileDirectory))
|
||||||
{
|
{
|
||||||
File.Delete(fileDirectory);
|
File.Delete(fileDirectory);
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,9 @@ namespace webAgenciaVirtual
|
||||||
if (context.Request.QueryString["carpeta"] != null)
|
if (context.Request.QueryString["carpeta"] != null)
|
||||||
{
|
{
|
||||||
string pathrefer = context.Request.UrlReferrer.ToString();
|
string pathrefer = context.Request.UrlReferrer.ToString();
|
||||||
string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT");
|
//string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT");
|
||||||
Serverpath += "\\" + context.Request.QueryString["carpeta"].ToString();
|
string Serverpath = ConfigurationManager.AppSettings["FileRepository"].ToString();
|
||||||
|
Serverpath += context.Request.QueryString["carpeta"].ToString();
|
||||||
|
|
||||||
var postedFile = context.Request.Files[0];
|
var postedFile = context.Request.Files[0];
|
||||||
string ext = Path.GetExtension(postedFile.FileName);
|
string ext = Path.GetExtension(postedFile.FileName);
|
||||||
|
|
|
||||||
|
|
@ -559,19 +559,20 @@ this.AbrirAdjuntos = function () {
|
||||||
// Carpeta: 1,
|
// Carpeta: 1,
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// var uri = SinortWCF + '/api/RemoverAdjunto';
|
// //var uri = SinortWCF + '/api/RemoverAdjunto';
|
||||||
// AjaxPostData(uri, model, false, false, null, null, null);
|
// //AjaxPostData(uri, model, false, false, null, null, null);
|
||||||
// var tableAdjuntos = $('#tableAdjuntos').DataTable();
|
// //var tableAdjuntos = $('#tableAdjuntos').DataTable();
|
||||||
// tableAdjuntos.row($(this).parents('tr')).remove().draw();
|
// //tableAdjuntos.row($(this).parents('tr')).remove().draw();
|
||||||
|
|
||||||
|
// window.open('C:\\AYA\\SINORT\\AYA.SlnSynor\\AYA.SlnSynor\\FileUploadHandler\\DocumentosSINORT\\1\\Captura.PNG');
|
||||||
|
|
||||||
|
|
||||||
//});
|
//});
|
||||||
|
|
||||||
this.AbrirDocumento = function (value) {
|
this.AbrirDocumento = function (value) {
|
||||||
|
|
||||||
EsRespuesta = true;
|
window.open('http://localhost/AYA.SlnSinort/DocumentosSINORT/1/Captura.PNG');
|
||||||
Nombre = value;
|
|
||||||
var a = '';
|
|
||||||
alert('prueba');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -598,7 +599,7 @@ $(function () {
|
||||||
|
|
||||||
$.each(data.files, function (index, file) {
|
$.each(data.files, function (index, file) {
|
||||||
var optionVer = $("#ucbtnVerAdjuntos").html();
|
var optionVer = $("#ucbtnVerAdjuntos").html();
|
||||||
optionVer = replaceAll("[$Nombre]", file.name, optionVer);
|
optionVer = replaceAll("[$value]", file.name, optionVer);
|
||||||
var optionRemover = $("#ucbtnRemoverAdjuntos").html();
|
var optionRemover = $("#ucbtnRemoverAdjuntos").html();
|
||||||
|
|
||||||
tableAdjuntos.row.add(
|
tableAdjuntos.row.add(
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div id="ucbtnVerAdjuntos" style=" display:none;">
|
<div id="ucbtnVerAdjuntos" style=" display:none;">
|
||||||
<button type="button" id="btnVerAdjuntos" class="btn btn-default btn-xs" onclick="AbrirDocumento([$value])">
|
<button type="button" id="btnVerAdjuntos" class="btn btn-default btn-xs" onclick="javascript: AbrirDocumento('[$value]')">
|
||||||
<i class=" fa fa-search">
|
<i class=" fa fa-search">
|
||||||
</i> Ver
|
</i> Ver
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Para obtener más información acerca de cómo configurar una aplicación ASP.NET, consulte
|
Para obtener más información acerca de cómo configurar una aplicación ASP.NET, consulte
|
||||||
http://go.microsoft.com/fwlink/?LinkId=301880
|
http://go.microsoft.com/fwlink/?LinkId=301880
|
||||||
|
|
@ -27,8 +27,8 @@
|
||||||
<add key="webpages:Enabled" value="false" />
|
<add key="webpages:Enabled" value="false" />
|
||||||
<add key="ClientValidationEnabled" value="true" />
|
<add key="ClientValidationEnabled" value="true" />
|
||||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||||
<add key="FileRepository" value="C:\AYA_RESPALDO\Archivos\" />
|
<add key="FileRepository" value="C:\DocumentosSINORT\" />
|
||||||
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/Archivos/" />
|
<add key="HttpRepository" value="http://localhost/DocumentosSINORT/" />
|
||||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||||
<add key="MaxCountFileLoad" value="3" />
|
<add key="MaxCountFileLoad" value="3" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
|
||||||
namespace Atesa.Utilitarios
|
namespace Atesa.Utilitarios
|
||||||
{
|
{
|
||||||
class Encriptar
|
class Encriptar
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue