git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C485
This commit is contained in:
parent
dac0faaca5
commit
e5f584487e
24 changed files with 287 additions and 228 deletions
|
|
@ -110,7 +110,7 @@
|
|||
|
||||
<connectionStrings>
|
||||
<!--<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<!-- <add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;Timeout=0;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<!--<add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -52,7 +52,23 @@ namespace AYA.SlnSinort.Controllers
|
|||
InitControllers();
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public JsonResult VisualizarDocumentos(LoginJSON model)
|
||||
{
|
||||
Documento oDoc = new Documento();
|
||||
string strResultado = "";
|
||||
try
|
||||
{
|
||||
strResultado = oDoc.Visor_Documento(model.Usuario, model.Contrasena);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
return Json(strResultado, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +33,23 @@ namespace AYA.SlnSinort.Controllers.PropuestaNormativa
|
|||
InitControllers();
|
||||
return View();
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public JsonResult VisualizarDocumentos(LoginJSON model)
|
||||
{
|
||||
Documento oDoc = new Documento();
|
||||
string strResultado = "";
|
||||
try
|
||||
{
|
||||
strResultado = oDoc.Visor_Documento(model.Usuario, model.Contrasena);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
return Json(strResultado, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -13,14 +13,12 @@ using AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters;
|
|||
|
||||
namespace AYA.SlnSinort.Controllers.Reportes
|
||||
{
|
||||
[LoggingFilter]
|
||||
[LoggingFilter]
|
||||
public class ReportesController : BaseController
|
||||
{
|
||||
|
||||
private DataSet tds = new DataSet();
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
|
||||
|
||||
#region Controllers
|
||||
|
||||
|
|
@ -29,10 +27,12 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
{
|
||||
return View();
|
||||
}
|
||||
public ActionResult FichaTecnica(string emisor, string documentotecnico, string aplicacion, string contenido, string subcontenido, string grupotematico, string subgrupotematico, string versionvigente, string fechainicio, string fechafin)
|
||||
public ActionResult FichaTecnica(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? subgrupotematico, string versionvigente, string fechainicio, string fechafin)
|
||||
{
|
||||
InitControllers();
|
||||
|
||||
|
||||
|
||||
if (emisor == null)
|
||||
{
|
||||
CargarReporte();
|
||||
|
|
@ -42,7 +42,6 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
CargarReporteParemetros(emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechainicio, fechafin);
|
||||
}
|
||||
|
||||
ViewBag.ReportViewer = reportViewer;
|
||||
return PartialView("FichaTecnica");
|
||||
|
||||
}
|
||||
|
|
@ -57,19 +56,32 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
|
||||
#region Configuracion y Parametrizacion
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public void CargarReporteParemetros(string emisor,string documentotecnico,string aplicacion,string contenido,string subcontenido,string grupotematico,string subgrupotematico,string versionvigente,string fechainicio,string fechafin)
|
||||
public ActionResult CargarReporteParemetros(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? subgrupotematico, string versionvigente, string fechainicio, string fechafin)
|
||||
{
|
||||
|
||||
InitControllers();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
reportViewer.SizeToReportContent = true;
|
||||
reportViewer.Width = Unit.Percentage(100);
|
||||
reportViewer.Width = Unit.Percentage(90);
|
||||
reportViewer.Height = Unit.Percentage(100);
|
||||
|
||||
|
||||
DateTime fechasinparametro = DateTime.Today;
|
||||
fechasinparametro = fechasinparametro.AddYears(20);
|
||||
DateTime fechai = fechainicio == "" ? Convert.ToDateTime("1900-01-01") : Convert.ToDateTime(fechainicio);
|
||||
DateTime fechaf = fechafin == "" ? DateTime.Today : Convert.ToDateTime(fechafin);
|
||||
|
||||
DateTime fechaf = fechafin == "" ? fechasinparametro : Convert.ToDateTime(fechafin);
|
||||
versionvigente = versionvigente == "" ? null : versionvigente;
|
||||
|
||||
|
||||
dtta.Fill(dts.DataTable1, emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechai, fechaf);
|
||||
|
||||
reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
|
|
@ -79,31 +91,45 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
reportViewer.LocalReport.Refresh();
|
||||
|
||||
|
||||
|
||||
ViewBag.ReportViewer = reportViewer;
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Response.Write(ex.Message.ToString());
|
||||
}
|
||||
return PartialView("FichaTecnica");
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public void CargarReporte( )
|
||||
{
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
reportViewer.SizeToReportContent = true;
|
||||
reportViewer.Width = Unit.Percentage(100);
|
||||
reportViewer.Width = Unit.Percentage(90);
|
||||
reportViewer.Height = Unit.Percentage(100);
|
||||
DateTime fechainicio = Convert.ToDateTime("1900-01-01");
|
||||
DateTime fechafin = DateTime.Today;
|
||||
|
||||
dtta.Fill(dts.DataTable1, "", "", "", "", "", "", "", "", fechainicio, fechafin);
|
||||
fechafin = fechafin.AddYears(20);
|
||||
dtta.Fill(dts.DataTable1, null, null, null,null, null, null, null, null, fechainicio, fechafin);
|
||||
|
||||
reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
//reportViewer.LocalReport.ReportPath = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||
//reportViewer.LocalReport.ReportPath = @"D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||
reportViewer.LocalReport.DataSources.Clear();
|
||||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
|
||||
reportViewer.LocalReport.Refresh();
|
||||
|
||||
ViewBag.ReportViewer = reportViewer;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1177,100 +1177,87 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
|
|||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT [IdFichaTecnica],[Nombre],[Identificacion],[DescripcionDocumentoTecnico],
|
||||
[DescripcionAplicacion],[DescripcionContenido],[DescripcionsubCategoriaContenido],[DescripcionGrupoTematico],
|
||||
[DescripcionSubCategoriaGrupoTematico],[DescripcionEmisor],[NumeroPublicacionVersion] FROM
|
||||
[Global].[FichaTecnica] f, [Expediente].[DocumentosAdjuntos] d
|
||||
WHERE f.[IdDocumento] = d.[IdDocumentoAdjunto] and
|
||||
f.IdEstado = 8 and
|
||||
([DescripcionEmisor] = @parametro1 or @parametro1 = '') and
|
||||
([DescripcionDocumentoTecnico] = @parametro2 or @parametro2 = '') and
|
||||
([DescripcionAplicacion] = @parametro3 or @parametro3 = '') and
|
||||
([DescripcionContenido] = @parametro4 or @parametro4 = '') and
|
||||
([DescripcionsubCategoriaContenido] = @parametro5 or @parametro5 = '') and
|
||||
([DescripcionGrupoTematico] = @parametro6 or @parametro6 = '') and
|
||||
([DescripcionSubCategoriaGrupoTematico] = @parametro7 or @parametro7 = '') and
|
||||
([NumeroPublicacionVersion] like @parametro8 or @parametro8 like '%%') and
|
||||
([FechaPublicacionDocumentoTecnico] between @parametro9 and @parametro10 )";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro1", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionEmisor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro2", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro3", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionAplicacion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro4", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionContenido", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro5", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionsubCategoriaContenido", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro6", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionGrupoTematico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro7", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionSubCategoriaGrupoTematico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro8", global::System.Data.SqlDbType.NText, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroPublicacionVersion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro9", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "FechaPublicacionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro10", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "FechaPublicacionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].CommandText = "dbo.sp_consultar_ficha_tecnica";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_emisor", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_documento_tecnico", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_aplicacion", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_contenido", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_sub_contenido", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_grupo_tematico", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_sub_grupo_tematico", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_numero_publicacion", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_fecha_inicio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_fecha_fin", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(dtsFichaTecnicaFinal.DataTable1DataTable dataTable, string parametro1, string parametro2, string parametro3, string parametro4, string parametro5, string parametro6, string parametro7, string parametro8, global::System.Nullable<global::System.DateTime> parametro9, global::System.Nullable<global::System.DateTime> parametro10) {
|
||||
public virtual int Fill(dtsFichaTecnicaFinal.DataTable1DataTable dataTable, global::System.Nullable<int> p_id_emisor, global::System.Nullable<int> p_id_documento_tecnico, global::System.Nullable<int> p_id_aplicacion, global::System.Nullable<int> p_id_contenido, global::System.Nullable<int> p_id_sub_contenido, global::System.Nullable<int> p_id_grupo_tematico, global::System.Nullable<int> p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable<global::System.DateTime> p_fecha_inicio, global::System.Nullable<global::System.DateTime> p_fecha_fin) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((parametro1 == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
if ((p_id_emisor.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(parametro1));
|
||||
}
|
||||
if ((parametro2 == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(parametro2));
|
||||
if ((p_id_documento_tecnico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(p_id_documento_tecnico.Value));
|
||||
}
|
||||
if ((parametro3 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(parametro3));
|
||||
if ((p_id_aplicacion.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((int)(p_id_aplicacion.Value));
|
||||
}
|
||||
if ((parametro4 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(parametro4));
|
||||
if ((p_id_contenido.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((int)(p_id_contenido.Value));
|
||||
}
|
||||
if ((parametro5 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(parametro5));
|
||||
if ((p_id_sub_contenido.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((int)(p_id_sub_contenido.Value));
|
||||
}
|
||||
if ((parametro6 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(parametro6));
|
||||
if ((p_id_grupo_tematico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((int)(p_id_grupo_tematico.Value));
|
||||
}
|
||||
if ((parametro7 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(parametro7));
|
||||
if ((p_id_sub_grupo_tematico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((int)(p_id_sub_grupo_tematico.Value));
|
||||
}
|
||||
if ((parametro8 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(parametro8));
|
||||
}
|
||||
if ((parametro9.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((System.DateTime)(parametro9.Value));
|
||||
}
|
||||
else {
|
||||
if ((p_numero_publicacion == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((parametro10.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(parametro10.Value));
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(p_numero_publicacion));
|
||||
}
|
||||
if ((p_fecha_inicio.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(p_fecha_inicio.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((p_fecha_fin.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((System.DateTime)(p_fecha_fin.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
|
|
@ -1282,68 +1269,68 @@ f.IdEstado = 8 and
|
|||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual dtsFichaTecnicaFinal.DataTable1DataTable GetData(string parametro1, string parametro2, string parametro3, string parametro4, string parametro5, string parametro6, string parametro7, string parametro8, global::System.Nullable<global::System.DateTime> parametro9, global::System.Nullable<global::System.DateTime> parametro10) {
|
||||
public virtual dtsFichaTecnicaFinal.DataTable1DataTable GetData(global::System.Nullable<int> p_id_emisor, global::System.Nullable<int> p_id_documento_tecnico, global::System.Nullable<int> p_id_aplicacion, global::System.Nullable<int> p_id_contenido, global::System.Nullable<int> p_id_sub_contenido, global::System.Nullable<int> p_id_grupo_tematico, global::System.Nullable<int> p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable<global::System.DateTime> p_fecha_inicio, global::System.Nullable<global::System.DateTime> p_fecha_fin) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((parametro1 == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
if ((p_id_emisor.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(parametro1));
|
||||
}
|
||||
if ((parametro2 == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(parametro2));
|
||||
if ((p_id_documento_tecnico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(p_id_documento_tecnico.Value));
|
||||
}
|
||||
if ((parametro3 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(parametro3));
|
||||
if ((p_id_aplicacion.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((int)(p_id_aplicacion.Value));
|
||||
}
|
||||
if ((parametro4 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(parametro4));
|
||||
if ((p_id_contenido.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((int)(p_id_contenido.Value));
|
||||
}
|
||||
if ((parametro5 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(parametro5));
|
||||
if ((p_id_sub_contenido.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((int)(p_id_sub_contenido.Value));
|
||||
}
|
||||
if ((parametro6 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(parametro6));
|
||||
if ((p_id_grupo_tematico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((int)(p_id_grupo_tematico.Value));
|
||||
}
|
||||
if ((parametro7 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(parametro7));
|
||||
if ((p_id_sub_grupo_tematico.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((int)(p_id_sub_grupo_tematico.Value));
|
||||
}
|
||||
if ((parametro8 == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(parametro8));
|
||||
}
|
||||
if ((parametro9.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((System.DateTime)(parametro9.Value));
|
||||
}
|
||||
else {
|
||||
if ((p_numero_publicacion == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((parametro10.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(parametro10.Value));
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(p_numero_publicacion));
|
||||
}
|
||||
if ((p_fecha_inicio.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(p_fecha_inicio.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((p_fecha_fin.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((System.DateTime)(p_fecha_fin.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
dtsFichaTecnicaFinal.DataTable1DataTable dataTable = new dtsFichaTecnicaFinal.DataTable1DataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
|
|
|
|||
|
|
@ -11,35 +11,22 @@
|
|||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable1TableAdapter" GeneratorDataComponentClassName="DataTable1TableAdapter" Name="DataTable1" UserDataComponentName="DataTable1TableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="Contex (AYA.SlnSinort.WCF)1" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="Contex (AYA.SlnSinort.WCF)1" DbObjectName="SINORT.dbo.sp_consultar_ficha_tecnica" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT [IdFichaTecnica],[Nombre],[Identificacion],[DescripcionDocumentoTecnico],
|
||||
[DescripcionAplicacion],[DescripcionContenido],[DescripcionsubCategoriaContenido],[DescripcionGrupoTematico],
|
||||
[DescripcionSubCategoriaGrupoTematico],[DescripcionEmisor],[NumeroPublicacionVersion] FROM
|
||||
[Global].[FichaTecnica] f, [Expediente].[DocumentosAdjuntos] d
|
||||
WHERE f.[IdDocumento] = d.[IdDocumentoAdjunto] and
|
||||
f.IdEstado = 8 and
|
||||
([DescripcionEmisor] = @parametro1 or @parametro1 = '') and
|
||||
([DescripcionDocumentoTecnico] = @parametro2 or @parametro2 = '') and
|
||||
([DescripcionAplicacion] = @parametro3 or @parametro3 = '') and
|
||||
([DescripcionContenido] = @parametro4 or @parametro4 = '') and
|
||||
([DescripcionsubCategoriaContenido] = @parametro5 or @parametro5 = '') and
|
||||
([DescripcionGrupoTematico] = @parametro6 or @parametro6 = '') and
|
||||
([DescripcionSubCategoriaGrupoTematico] = @parametro7 or @parametro7 = '') and
|
||||
([NumeroPublicacionVersion] like @parametro8 or @parametro8 like '%%') and
|
||||
([FechaPublicacionDocumentoTecnico] between @parametro9 and @parametro10 )</CommandText>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_consultar_ficha_tecnica</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro1" ColumnName="DescripcionEmisor" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro1" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionEmisor" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro2" ColumnName="DescripcionDocumentoTecnico" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro2" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionDocumentoTecnico" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro3" ColumnName="DescripcionAplicacion" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro3" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionAplicacion" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro4" ColumnName="DescripcionContenido" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro4" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionContenido" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro5" ColumnName="DescripcionsubCategoriaContenido" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro5" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionsubCategoriaContenido" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro6" ColumnName="DescripcionGrupoTematico" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro6" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionGrupoTematico" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro7" ColumnName="DescripcionSubCategoriaGrupoTematico" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(500)" DbType="AnsiString" Direction="Input" ParameterName="@parametro7" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumn="DescripcionSubCategoriaGrupoTematico" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro8" ColumnName="NumeroPublicacionVersion" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@parametro8" Precision="0" ProviderType="NText" Scale="0" Size="2147483647" SourceColumn="NumeroPublicacionVersion" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro9" ColumnName="FechaPublicacionDocumentoTecnico" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@parametro9" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="FechaPublicacionDocumentoTecnico" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="parametro10" ColumnName="FechaPublicacionDocumentoTecnico" DataSourceName="SINORT.Global.FichaTecnica" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@parametro10" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="FechaPublicacionDocumentoTecnico" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_emisor" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_documento_tecnico" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_aplicacion" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_contenido" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_sub_contenido" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_grupo_tematico" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@p_id_sub_grupo_tematico" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@p_numero_publicacion" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@p_fecha_inicio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@p_fecha_fin" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="389" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="806" Y="108" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="639" Y="564" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
|
|
@ -37,13 +37,13 @@
|
|||
<TablixBody>
|
||||
<TablixColumns>
|
||||
<TablixColumn>
|
||||
<Width>1.30937cm</Width>
|
||||
<Width>0.96541cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>3.70827cm</Width>
|
||||
<Width>3.26792cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>3.42604cm</Width>
|
||||
<Width>4.35208cm</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>3.69063cm</Width>
|
||||
|
|
@ -838,7 +838,7 @@
|
|||
<Top>0.88209cm</Top>
|
||||
<Left>0.26141cm</Left>
|
||||
<Height>1.2cm</Height>
|
||||
<Width>30.86493cm</Width>
|
||||
<Width>31.00666cm</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
|
|
@ -950,7 +950,7 @@
|
|||
<Height>1.86475in</Height>
|
||||
<Style />
|
||||
</Body>
|
||||
<Width>12.44035in</Width>
|
||||
<Width>12.51327in</Width>
|
||||
<Page>
|
||||
<PageHeader>
|
||||
<Height>1.89286cm</Height>
|
||||
|
|
@ -994,7 +994,7 @@
|
|||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox15</rd:DefaultName>
|
||||
<Top>0.64904cm</Top>
|
||||
<Left>10.71245cm</Left>
|
||||
<Left>9.38953cm</Left>
|
||||
<Height>0.9175cm</Height>
|
||||
<Width>13.08208cm</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
|
|
|
|||
|
|
@ -142,55 +142,72 @@ this.getDataModel = function () {
|
|||
}
|
||||
});
|
||||
|
||||
$("#btn_eliminarFechaInicio").unbind("click");
|
||||
$("#btn_eliminarFechaInicio").click(function () {
|
||||
$('#txtFechaInicio').val('');
|
||||
});
|
||||
$("#btn_eliminarFechaFin").unbind("click");
|
||||
$("#btn_eliminarFechaFin").click(function () {
|
||||
$('#txtFechaFinal').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarDocumentoTecnico").unbind("click");
|
||||
$("#btn_eliminarDocumentoTecnico").click(function () {
|
||||
$('#txtDocumentoTecnico').val('');
|
||||
$('#hiddenDocumentoTecnico').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarContenido").unbind("click");
|
||||
$("#btn_eliminarContenido").click(function () {
|
||||
$('#txtContenido').val('');
|
||||
$('#txtSubCategoriaContenido').val('');
|
||||
$('#hiddenContenido').val('');
|
||||
$('#hiddenSubCategoriaContenido').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarSubCategoriaContenido").unbind("click");
|
||||
$("#btn_eliminarSubCategoriaContenido").click(function () {
|
||||
$('#txtSubCategoriaContenido').val('');
|
||||
$('#hiddenSubCategoriaContenido').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarGrupoTematico").unbind("click");
|
||||
$("#btn_eliminarGrupoTematico").click(function () {
|
||||
$('#txtGrupoTematico').val('');
|
||||
$('#txtSubCategoriaGrupoTematico').val('');
|
||||
$('#hiddenGrupoTematico').val('');
|
||||
$('#hiddenSubCategoriaGrupoTematico').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarSubCategoriaGrupoTematico").unbind("click");
|
||||
$("#btn_eliminarSubCategoriaGrupoTematico").click(function () {
|
||||
$('#txtSubCategoriaGrupoTematico').val('');
|
||||
$('#hiddenSubCategoriaGrupoTematico').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarEmisor").unbind("click");
|
||||
$("#btn_eliminarEmisor").click(function () {
|
||||
$('#txtEmisor').val('');
|
||||
$('#hiddenEmisor').val('');
|
||||
});
|
||||
|
||||
$("#btn_eliminarAplicacion").unbind("click");
|
||||
$("#btn_eliminarAplicacion").click(function () {
|
||||
$('#txtAplicacion').val('');
|
||||
$('#hiddenAplicacion').val('');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
this.LeerFormulario = function (){
|
||||
var reporte
|
||||
= {
|
||||
emisor: $('#txtEmisor').val(),
|
||||
documentotecnico: $('#txtDocumentoTecnico').val(),
|
||||
aplicacion:$('#txtAplicacion').val(),
|
||||
contenido: $('#txtContenido').val(),
|
||||
subcontenido: $('#txtSubCategoriaContenido').val(),
|
||||
grupotematico: $('#txtGrupoTematico').val(),
|
||||
subgrupotematico: $('#txtSubCategoriaGrupoTematico').val(),
|
||||
emisor: $('#hiddenEmisor').val(),
|
||||
documentotecnico: $('#hiddenDocumentoTecnico').val(),
|
||||
aplicacion: $('#hiddenAplicacion').val(),
|
||||
contenido: $('#hiddenContenido').val(),
|
||||
subcontenido: $('#hiddenSubCategoriaContenido').val(),
|
||||
grupotematico: $('#hiddenGrupoTematico').val(),
|
||||
subgrupotematico: $('#hiddenSubCategoriaGrupoTematico').val(),
|
||||
versionvigente: $('#txtVersionVigente').val(),
|
||||
fechainicio:$("#txtFechaInicio").DateFormatWCF(),
|
||||
fechafin: $("#txtFechaFinal").DateFormatWCF()
|
||||
|
|
@ -199,8 +216,11 @@ this.LeerFormulario = function (){
|
|||
model = reporte;
|
||||
}
|
||||
this.BuscarReporte = function (){
|
||||
var uri = server + 'Reportes/FichaTecnica';
|
||||
var uri = server + 'Reportes/CargarReporteParemetros';
|
||||
LeerFormulario();
|
||||
|
||||
|
||||
|
||||
var container = document.getElementById('rptFichaTecnica');
|
||||
var refreshContent = container.innerHTML;
|
||||
$.ajax({
|
||||
|
|
@ -224,6 +244,14 @@ this.BuscarReporte = function (){
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
this.RefrescarReporte = function () {
|
||||
var container = document.getElementById('rptFichaTecnica');
|
||||
var refreshContent = container.innerHTML;
|
||||
container.innerHTML = refreshContent;
|
||||
|
||||
ENDREQUEST();
|
||||
}
|
||||
this.CargarEmisor = function (filtro) {
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerEmisorPopUp';
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@ var RepositorioVirtual = $("#hiddenRepositorioVirtual").val();
|
|||
var RepositorioLocal = $("#hiddenRepositorioLocal").val();
|
||||
var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
||||
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
||||
//var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
|
||||
//var LinkSolicitudTarea = "http://aya-vsrv-apptt:2525/Home/TareasPendientes";
|
||||
//var LinkSolicitudResponder = "http://aya-vsrv-apptt:2525/NormativaReglamentacionTecnica/VerSolicitudes?";
|
||||
//var LinkBusquedaFichaTecnica = "http://aya-vsrv-apptt:2525/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
|
||||
var LinkPropuesta = "http://10.50.1.97:6075/PropuestaNormativa/DetallePropuesta?";
|
||||
var LinkSolicitudTarea = "http://10.50.1.97:6075/Home/TareasPendientes";
|
||||
var LinkSolicitudResponder = "http://10.50.1.97:6075/NormativaReglamentacionTecnica/VerSolicitudes?";
|
||||
|
|
@ -15,9 +19,9 @@ var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamenta
|
|||
//http://aya-vsrv-apptt:2525/Home/TareasPendientes
|
||||
//http://aya-vsrv-wstt:2005/Sinort.svc
|
||||
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
|
||||
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||
var SinorLoginWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc";
|
||||
var SinorSignupWCF = "http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc";
|
||||
var server = window.location.protocol + "//" + "10.50.1.97:6075" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||
var SinorLoginWCF = "http://10.50.1.123:2070/Sinort.svc";
|
||||
var SinorSignupWCF = "http://10.50.1.123:2070/SinortCatalogos.svc";
|
||||
var string_empty = "";
|
||||
var Atesa = {};
|
||||
var StarterTemplateVisible = true;
|
||||
|
|
@ -746,7 +750,7 @@ this.LoadMessage = function (Message) {
|
|||
stringHtml += "<div id=\"loadingGif\" class=\"toast toast-default\" style=\"font-size:14px;\">";
|
||||
stringHtml += "<table>";
|
||||
stringHtml += "<tr>";
|
||||
stringHtml += "<td><img src=\"http://10.50.1.97:6075/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
|
||||
stringHtml += "<td><img src=\"http://aya-vsrv-apptt:2525/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
|
||||
stringHtml += "<td> </td>";
|
||||
stringHtml += "<td>";
|
||||
stringHtml += "<div class=\"toast-title\">" + Message + "</div>";
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ $('#tableDocGotita').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocGotita').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ $('#tableDocGotita').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocGotita').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
|
|||
|
|
@ -1308,28 +1308,12 @@ $('#tableDocFichaTecnica').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocFichaTecnica').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: uri,
|
||||
data: JSON.stringify(model),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
success: function () {
|
||||
|
||||
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
|
||||
},
|
||||
error: function () {
|
||||
|
||||
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
|
||||
|
||||
//var uri = 'Login/VisualizarDocumentos';
|
||||
//model = {
|
||||
|
|
@ -1337,7 +1321,7 @@ $('#tableDocFichaTecnica').on('click', 'button', function () {
|
|||
// Contrasena: data[5]
|
||||
//}
|
||||
|
||||
//AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
|
||||
//
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ $('#tableSolicitudes').on('click', 'button', function () {
|
|||
});
|
||||
this.AbrirArchivoAdjunto = function () {
|
||||
if ($("#hiddenRutaDescarga").val() != '') {
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaDescarga").val()
|
||||
|
|
@ -246,7 +246,7 @@ this.AbrirArchivoAdjunto = function () {
|
|||
this.AbrirArchivoAdjuntoRespuesta = function () {
|
||||
if ($("#hiddenRutaRespuestaDescarga").val() != '') {
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaRespuestaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaRespuestaDescarga").val()
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ $('#tableDocSolicitud').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocSolicitud').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ $('#tableSolicitudes').on('click', 'button', function () {
|
|||
|
||||
this.AbrirArchivoAdjunto = function () {
|
||||
if ($("#hiddenRutaDescarga").val() != '') {
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaDescarga").val()
|
||||
|
|
@ -238,7 +238,7 @@ this.AbrirArchivoAdjunto = function () {
|
|||
this.AbrirArchivoAdjuntoRespuesta = function () {
|
||||
if ($("#hiddenRutaRespuestaDescarga").val() != '') {
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaRespuestaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaRespuestaDescarga").val()
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ $('#tableSolicitudes').on('click', 'button', function () {
|
|||
|
||||
this.AbrirArchivoAdjunto = function () {
|
||||
if ($("#hiddenRutaDescarga").val() != '') {
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaDescarga").val()
|
||||
|
|
@ -239,7 +239,7 @@ this.AbrirArchivoAdjunto = function () {
|
|||
this.AbrirArchivoAdjuntoRespuesta = function () {
|
||||
if ($("#hiddenRutaRespuestaDescarga").val() != '') {
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaRespuestaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaRespuestaDescarga").val()
|
||||
|
|
|
|||
|
|
@ -1978,7 +1978,7 @@ $('#tableDocForo').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocForo').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
@ -2069,7 +2069,7 @@ $('#tableDocEvento').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocEvento').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
@ -2154,7 +2154,7 @@ $('#tableDocMatriz').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocMatriz').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ this.ObtenerRutaDocumento = function (data) {
|
|||
this.AbrirArchivoAdjunto = function () {
|
||||
if ($("#hiddenRutaDescarga").val() != '') {
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: $("#hiddenRutaFisica").val(),
|
||||
Contrasena: $("#hiddenRutaDescarga").val()
|
||||
|
|
@ -450,7 +450,7 @@ $('#tableDocFichaTecnica').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableDocFichaTecnica').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var uri = server + 'NormativaReglamentacionTecnica/VisualizarDocumentos';
|
||||
var uri = server + 'VisualizarDocumentos';
|
||||
model = {
|
||||
Usuario: data[4],
|
||||
Contrasena: data[5]
|
||||
|
|
@ -738,7 +738,19 @@ this.EnviarCorreoSolicitud = function () {
|
|||
}
|
||||
this.EnviarCorreoSuperUsuario = function (data)
|
||||
{
|
||||
ListaUsuariosCorreo = data;
|
||||
|
||||
var ArrayParticipante = [];
|
||||
|
||||
$.each(data, function (key, item) {
|
||||
|
||||
|
||||
Convocatoria = {
|
||||
UsuarioSistema: item.UsuarioSistema
|
||||
}
|
||||
|
||||
ArrayParticipante.push(Convocatoria);
|
||||
|
||||
});
|
||||
|
||||
if (EstadoConfirmacion) {
|
||||
var Plantilla
|
||||
|
|
@ -755,7 +767,7 @@ this.EnviarCorreoSuperUsuario = function (data)
|
|||
model.Mensaje = justificacion;
|
||||
}
|
||||
|
||||
model.ListaUsuariosCorreo = ListaUsuariosCorreo;
|
||||
model.ListaUsuariosCorreo = ArrayParticipante;
|
||||
model.PlantillaEmail = Plantilla;
|
||||
model.Solicitud = Solicitud;
|
||||
model.UsuarioSistema = UsuarioSistema;
|
||||
|
|
@ -763,6 +775,7 @@ this.EnviarCorreoSuperUsuario = function (data)
|
|||
AjaxPostData(uri, model, false, false, null, null, null);
|
||||
}
|
||||
this.ObtenerRolPantalla = function () {
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerRolesPantalla';
|
||||
var model = {
|
||||
codigo: Pantallas.SuperUser.Codigo
|
||||
|
|
@ -784,8 +797,12 @@ this.ObtenerUsuarioRol = function (data) {
|
|||
if (modelPost.listaCodigos.indexOf(1) == -1)
|
||||
modelPost.listaCodigos.push(Roles.FuncionalExperto.Codigo);
|
||||
|
||||
if (modelPost.listaCodigos.indexOf(2) == -1)
|
||||
modelPost.listaCodigos.push(Roles.LiderSuplente.Codigo);
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerUsuariosRol';
|
||||
AjaxPostData(uri, modelPost, false, false, EnviarCorreoSuperUsuario, null, null);
|
||||
|
||||
}
|
||||
|
||||
this.LeerFormulario = function () {
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@
|
|||
<div class="form-group " id="divJustifiacion">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblJustifiacion">Justificación de la solicitud</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<textarea name="txtAreaJustifiacion" rows="6" cols="60" id="txtAreaJustifiacion" style="resize: none; cursor: not-allowed;" readonly></textarea>
|
||||
<textarea name="txtAreaJustifiacion" rows="6" cols="45" id="txtAreaJustifiacion" style="resize: none; cursor: not-allowed;" readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
@*<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</footer>*@
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@
|
|||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaInicio"></i></span>
|
||||
<input name="txtFechaInicio" class="form-control imput-xs" id="txtFechaInicio" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarFechaInicio" type="button">
|
||||
<i class="fa fa-close"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -36,6 +41,11 @@
|
|||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaInicio"></i></span>
|
||||
<input name="txtFechaFinal" class="form-control imput-xs" id="txtFechaFinal" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarFechaFin" type="button">
|
||||
<i class="fa fa-close"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -204,10 +214,9 @@
|
|||
|
||||
<div class="col-md-12" style="width:100%" id="rptFichaTecnica">
|
||||
|
||||
@if (ViewBag.ReportViewer != null)
|
||||
{
|
||||
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
|
||||
}
|
||||
|
||||
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -23,21 +23,21 @@
|
|||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
|
||||
<!-- <add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
|
||||
<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="HttpRepository" value="http://10.50.1.97:6075/DocumentosSinort/" />
|
||||
<add key="FileUploadHandler" value="http://10.50.1.97:6075/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://10.50.1.97:6075/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" /> -->
|
||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" />
|
||||
|
||||
<!--<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||
<!--<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" /> -->
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" /> -->
|
||||
|
||||
<add key="MaxSizeFileLoadKB" value="2147483647" />
|
||||
<add key="MaxCountFileLoad" value="3" />
|
||||
|
|
@ -49,13 +49,13 @@
|
|||
<add key="const_strGaveta" value="Sinort"/>
|
||||
<add key="const_strLlaves" value="Nombre_Documento"/>
|
||||
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||
<!-- <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="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/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" /> -->
|
||||
|
||||
</appSettings>
|
||||
<system.web>
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
|
||||
|
||||
<sessionState timeout="20">
|
||||
<sessionState timeout="200">
|
||||
</sessionState>
|
||||
<authentication mode="None" />
|
||||
<compilation debug="true" targetFramework="4.5">
|
||||
|
|
|
|||
|
|
@ -135,21 +135,6 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
if (model != null && !string.IsNullOrWhiteSpace(model.codigo))
|
||||
{
|
||||
//var opciones = (from ru in db.RolesUsuario
|
||||
// join u in db.Usuario on ru.UsuarioSistema equals u.UsuarioSistema
|
||||
// join ue in db.UsuarioExterno on ru.UsuarioSistema equals ue.Usuario into user from us in user.DefaultIfEmpty()
|
||||
// where ru.UsuarioSistema == model.codigo
|
||||
// select new
|
||||
// {
|
||||
// IdRolesUsuario = ru.IdRolesUsuario,
|
||||
// Usuario = (user == null) ? ru.UsuarioSistema : us.Usuario,
|
||||
// Nombre = (user == null) ? ru.Usuario.NombreUsuario : us.Nombre + " " + us.Apellido1 + " " + us.Apellido2,
|
||||
// Estado = (user == null) ? ru.Usuario.Estado : us.
|
||||
// }
|
||||
// ).ToList();
|
||||
|
||||
//registros = opciones.ToList();
|
||||
|
||||
registros = db.RolesUsuario.Where(r => r.IdRol.ToString() == model.codigo).Include(u => u.Usuario).OrderBy(u => u.IdRolesUsuario).AsNoTracking().ToList();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue