";
- stringHtml += " | ";
+ stringHtml += " | ";
//stringHtml += " | ";
stringHtml += " | ";
stringHtml += "";
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Startup.cs b/AYA.SlnSynor/AYA.SlnSynor/Startup.cs
index f9695154b..3e4da286f 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Startup.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Startup.cs
@@ -1,8 +1,8 @@
using Microsoft.Owin;
using Owin;
-[assembly: OwinStartupAttribute(typeof(AYA.SlnSynor.Startup))]
-namespace AYA.SlnSynor
+[assembly: OwinStartupAttribute(typeof(AYA.SlnSinort.Startup))]
+namespace AYA.SlnSinort
{
public partial class Startup
{
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml
index ad60d33e2..dd8c0e497 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ExternalLoginConfirmationViewModel
+@model AYA.SlnSinort.Models.ExternalLoginConfirmationViewModel
@{
ViewBag.Title = "Registrarse";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml
index b85924d27..aaec426d1 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ForgotPasswordViewModel
+@model AYA.SlnSinort.Models.ForgotPasswordViewModel
@{
ViewBag.Title = "¿Olvidó la contraseña?";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml
index 0512971b0..907341778 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml
@@ -1,4 +1,4 @@
-@using AYA.SlnSynor.Models
+@using AYA.SlnSinort.Models
@model LoginViewModel
@{
ViewBag.Title = "Iniciar sesión";
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml
index feef7885a..fbb39a41c 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.RegisterViewModel
+@model AYA.SlnSinort.Models.RegisterViewModel
@{
ViewBag.Title = "Registrarse";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml
index 5e699ac6a..ea7a714d2 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ResetPasswordViewModel
+@model AYA.SlnSinort.Models.ResetPasswordViewModel
@{
ViewBag.Title = "Restablecer contraseña";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml
index 7bc2f26f3..80690ecfc 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.SendCodeViewModel
+@model AYA.SlnSinort.Models.SendCodeViewModel
@{
ViewBag.Title = "Enviar";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml
index 468f107a4..93487b066 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.VerifyCodeViewModel
+@model AYA.SlnSinort.Models.VerifyCodeViewModel
@{
ViewBag.Title = "Verificar";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml
index 15ebbf0ce..d5a96054c 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ExternalLoginListViewModel
+@model AYA.SlnSinort.Models.ExternalLoginListViewModel
@using Microsoft.Owin.Security
Use otro servicio para iniciar sesión.
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml
index 89e9062b0..7c1f34ac0 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.AddPhoneNumberViewModel
+@model AYA.SlnSinort.Models.AddPhoneNumberViewModel
@{
ViewBag.Title = "Número de teléfono";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml
index 9ea80998c..139c6730d 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ChangePasswordViewModel
+@model AYA.SlnSinort.Models.ChangePasswordViewModel
@{
ViewBag.Title = "Cambiar contraseña";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml
index 114ad6705..1c8d77e83 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.IndexViewModel
+@model AYA.SlnSinort.Models.IndexViewModel
@{
ViewBag.Title = "Gestionar";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml
index 888345234..56f99de7b 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.ManageLoginsViewModel
+@model AYA.SlnSinort.Models.ManageLoginsViewModel
@using Microsoft.Owin.Security
@{
ViewBag.Title = "Administrar los inicios de sesión externos";
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml
index 9cc8b846e..8fb8a5675 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.SetPasswordViewModel
+@model AYA.SlnSinort.Models.SetPasswordViewModel
@{
ViewBag.Title = "Crear contraseña";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml
index 7cc098141..85bfdd9d9 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml
@@ -1,4 +1,4 @@
-@model AYA.SlnSynor.Models.VerifyPhoneNumberViewModel
+@model AYA.SlnSinort.Models.VerifyPhoneNumberViewModel
@{
ViewBag.Title = "Verificar número de teléfono";
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Web.config b/AYA.SlnSynor/AYA.SlnSynor/Views/Web.config
index 8d800ab85..b4263aee3 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Web.config
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Web.config
@@ -17,7 +17,7 @@
-
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Web.config b/AYA.SlnSynor/AYA.SlnSynor/Web.config
index da3350d98..a7a7c88e7 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Web.config
+++ b/AYA.SlnSynor/AYA.SlnSynor/Web.config
@@ -12,7 +12,7 @@
@@ -22,8 +22,8 @@
-
-
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSynorModel.DAL.csproj b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSinortModel.DAL.csproj
similarity index 66%
rename from AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSynorModel.DAL.csproj
rename to AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSinortModel.DAL.csproj
index ee4becbf1..9b2b3408a 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSynorModel.DAL.csproj
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSinortModel.DAL.csproj
@@ -7,8 +7,8 @@
{6188D201-EC99-47F0-BCD5-5C48EC354CD5}
Library
Properties
- AYA.SlnSynorModel.DAL
- AYA.SlnSynorModel.DAL
+ AYA.SlnSinortModel.DAL
+ AYA.SlnSinortModel.DAL
v4.5
512
SAK
@@ -52,18 +52,40 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ {df92655d-08ea-4e25-a1e1-ee13cb7902d7}
+ Atesa.Utilitarios
+
+
{9ecd985b-2354-4156-ad6a-3ebd888c0241}
- AYA.SlnSynorModel
+ AYA.SlnSinortModel
-
-
-
+
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSynorModel.DAL.csproj.vspscc b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSinortModel.DAL.csproj.vspscc
similarity index 100%
rename from AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSynorModel.DAL.csproj.vspscc
rename to AYA.SlnSynor/AYA.SlnSynorModel.DAL/AYA.SlnSinortModel.DAL.csproj.vspscc
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Catalogos/CatalogosDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Catalogos/CatalogosDAL.cs
deleted file mode 100644
index 9658565c0..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Catalogos/CatalogosDAL.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using AYA.SlnSynorModel.BD;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace AYA.SlnSynorModel.DAL.Catalogos
-{
- public class CatalogosDAL
- {
- public string InsertarActualizarEmisorPN(EmisorPN model)
- {
- using (SinortContext db = new SinortContext())
- {
- model.fecha_creacion = System.DateTime.Now;
- model.usuario_creacion = "prueba";
- db.EmisorPN.Add(model);
- db.SaveChanges();
- db.Commit();
- }
-
- return null;
- }
-
- public List ObtnerEmisorPN(EmisorPN model)
- {
- List ListaEmisores = new List();
- using (SinortContext db = new SinortContext())
- {
- ListaEmisores = db.EmisorPN.ToList();
- }
-
- return ListaEmisores;
- }
-
- }
-
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Properties/AssemblyInfo.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Properties/AssemblyInfo.cs
index 8d457a2f9..34e338d75 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Properties/AssemblyInfo.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos atributos para modificar la información
// asociada con un ensamblado.
-[assembly: AssemblyTitle("AYA.SlnSynorModel.DAL")]
+[assembly: AssemblyTitle("AYA.SlnSinortModel.DAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("AYA.SlnSynorModel.DAL")]
+[assembly: AssemblyProduct("AYA.SlnSinortModel.DAL")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/AplicacionDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/AplicacionDAL.cs
new file mode 100644
index 000000000..b4a769dc1
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/AplicacionDAL.cs
@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using AYA.SlnSinortModel;
+using AYA.SlnSinortModel.Entidades;
+using AYA.SlnSinortModel.Synort;
+
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class AplicacionDAL
+ {
+
+ #region ObtenerAplicacion
+
+ public List ObtenerAplicacion(string filtro = null)
+ {
+ List registros = null;
+ try
+ {
+ using (SinortContex db = new SinortContex())
+ {
+ registros = (string.IsNullOrWhiteSpace(filtro) ? db.Aplicacion.Where(t => t.Estado == true) : db.Aplicacion.Where(t => t.Estado == true && t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()) == true))
+ .Select(t => new CatalogosJSON()
+ {
+ codigo = t.IdAplicacion.ToString(),
+ descripcion = t.Descripcion,
+ }).ToList();
+ }
+ }
+ catch (Exception ex)
+ {
+ //log.Error(ex);
+ }
+
+ return registros;
+ }
+
+ public List ObtenerAplicacion()
+ {
+ List respuesta = null;
+ try
+ {
+ using (SinortContex db = new SinortContex())
+ {
+ respuesta = db.Aplicacion.Where(t => t.Estado == true).ToList();
+ }
+ }
+ catch (Exception ex)
+ {
+ //log.Error(ex);
+ }
+
+ return respuesta;
+ }
+ #endregion
+
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/BitacoraDocumentosDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/BitacoraDocumentosDAL.cs
new file mode 100644
index 000000000..236a2fbe0
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/BitacoraDocumentosDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class BitacoraDocumentosDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/CategoriaDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/CategoriaDAL.cs
new file mode 100644
index 000000000..f6bc3ea74
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/CategoriaDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class CategoriaDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosForoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosForoDAL.cs
new file mode 100644
index 000000000..bc8232e93
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosForoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class ComentariosForoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosMatrizDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosMatrizDAL.cs
new file mode 100644
index 000000000..7edf3b906
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ComentariosMatrizDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class ComentariosMatrizDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ConvocatoriaDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ConvocatoriaDAL.cs
new file mode 100644
index 000000000..badc236b2
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ConvocatoriaDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class ConvocatoriaDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosAdjuntosDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosAdjuntosDAL.cs
new file mode 100644
index 000000000..07906a783
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosAdjuntosDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class DocumentosAdjuntosDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosDAL.cs
new file mode 100644
index 000000000..80676fe23
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/DocumentosDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class DocumentosDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EmisorDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EmisorDAL.cs
new file mode 100644
index 000000000..7cf942e0c
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EmisorDAL.cs
@@ -0,0 +1,117 @@
+using AYA.SlnSinortModel.Entidades;
+using AYA.SlnSinortModel.Synort;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Data.Entity;
+using System.Data.Entity.Validation;
+using Atesa.Utilitarios;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class EmisorDAL
+ {
+
+ #region ObtenerEmisor
+
+ public List ObtenerEmisor(string filtro = null)
+ {
+ List registros = null;
+ try
+ {
+ using (SinortContex db = new SinortContex())
+ {
+ registros = (string.IsNullOrWhiteSpace(filtro) ? db.Emisor.Where(t => t.Estado == true) : db.Emisor.Where(t => t.Estado == true && t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()) == true))
+ .Select(t => new CatalogosJSON()
+ {
+ codigo = t.IdEmisor.ToString(),
+ descripcion = t.Descripcion,
+ }).ToList();
+ }
+ }
+ catch (Exception ex)
+ {
+ //log.Error(ex);
+ }
+
+ return registros;
+ }
+
+ public List ObtenerEmisor()
+ {
+ List respuesta = null;
+ try
+ {
+ using (SinortContex db = new SinortContex())
+ {
+ respuesta = db.Emisor.Where(t => t.Estado == true)
+ .Include(t=>t.TipoEmisor).ToList();
+ }
+ }
+ catch (Exception ex)
+ {
+ //log.Error(ex);
+ }
+
+ return respuesta;
+ }
+ #endregion
+
+
+ #region InsertarActualizar
+
+ public BaseJson InsertarActualizarCliente(Emisor model)
+ {
+ Emisor Actual = new Emisor();
+ BaseJson Respuesta = new BaseJson();
+ try
+ {
+ model.ClearProperties();
+
+ using (SinortContex Conn = new SinortContex())
+ {
+ Actual = Conn.Emisor.Where(x => x.IdEmisor == model.IdEmisor).FirstOrDefault();
+ if (Actual == null)
+ {
+ int? Next_id = Conn.Emisor.Max(t => (int?)t.IdEmisor);
+ model.IdEmisor = (Next_id == null) ? 1 : Next_id.Value + 1;
+ model.FechaCreacion = DateTime.Now;
+ Conn.Emisor.Add(model);
+ }
+ else
+ {
+ model.FechaModificacion = DateTime.Now;
+ model.UsuarioModificacion = model.UsuarioModificacion;
+ model.FechaCreacion = Actual.FechaCreacion;
+ model.UsuarioCreacion = Actual.UsuarioCreacion;
+ Conn.Entry(Actual).State = System.Data.Entity.EntityState.Detached;
+ Conn.Emisor.Attach(model);
+ Conn.Entry(model).State = System.Data.Entity.EntityState.Modified;
+ }
+ Conn.SaveChanges();
+ Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.EXITOSO.ToString();
+ }
+ }
+ catch (DbEntityValidationException ex)
+ {
+ //logger.Error(exs);
+ Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
+ }
+ catch (Exception ex)
+ {
+ //logger.Error(ex);
+ Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
+ }
+ finally
+ {
+ Actual = null;
+ }
+ return Respuesta;
+ }
+
+ #endregion
+
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EstadoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EstadoDAL.cs
new file mode 100644
index 000000000..8b095b1e2
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/EstadoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class EstadoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ForoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ForoDAL.cs
new file mode 100644
index 000000000..3d569c41f
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/ForoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class ForoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/MatrizDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/MatrizDAL.cs
new file mode 100644
index 000000000..173772246
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/MatrizDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class MatrizDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PermisosUsuarioDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PermisosUsuarioDAL.cs
new file mode 100644
index 000000000..d324563a7
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PermisosUsuarioDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class PermisosUsuarioDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PlantillaEmailDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PlantillaEmailDAL.cs
new file mode 100644
index 000000000..93065d06c
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/PlantillaEmailDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class PlantillaEmailDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/RolesDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/RolesDAL.cs
new file mode 100644
index 000000000..1c703b2ef
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/RolesDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class RolesDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoDocumentoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoDocumentoDAL.cs
new file mode 100644
index 000000000..181a5abc6
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoDocumentoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class TipoDocumentoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEmisorDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEmisorDAL.cs
new file mode 100644
index 000000000..26f121b16
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEmisorDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class TipoEmisorDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEstadoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEstadoDAL.cs
new file mode 100644
index 000000000..b4dfb4886
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoEstadoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class TipoEstadoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoForoDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoForoDAL.cs
new file mode 100644
index 000000000..b4e4a8cf8
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoForoDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class TipoForoDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoMatrizDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoMatrizDAL.cs
new file mode 100644
index 000000000..b78d74749
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/TipoMatrizDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class TipoMatrizDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/UsuarioDAL.cs b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/UsuarioDAL.cs
new file mode 100644
index 000000000..15a4788a6
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel.DAL/Sinort/UsuarioDAL.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AYA.SlnSinortModel.DAL.Sinort
+{
+ public class UsuarioDAL
+ {
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSynorModel.csproj b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj
similarity index 67%
rename from AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSynorModel.csproj
rename to AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj
index 2d312b9e0..cb1bf77e2 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSynorModel.csproj
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj
@@ -7,8 +7,8 @@
{9ECD985B-2354-4156-AD6A-3EBD888C0241}
Library
Properties
- AYA.SlnSynorModel
- AYA.SlnSynorModel
+ AYA.SlnSinortModel
+ AYA.SlnSinortModel
v4.5
512
SAK
@@ -55,41 +55,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {df92655d-08ea-4e25-a1e1-ee13cb7902d7}
+ Atesa.Utilitarios
+
-
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSynorModel.csproj.vspscc b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj.vspscc
similarity index 100%
rename from AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSynorModel.csproj.vspscc
rename to AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj.vspscc
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/App.config b/AYA.SlnSynor/AYA.SlnSynorModel/App.config
index 6ead0c684..22718f0ce 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/App.config
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/App.config
@@ -16,5 +16,6 @@
+
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocStreams.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocStreams.cs
deleted file mode 100644
index 936a38cc4..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocStreams.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class AllDocStreams
- {
- [Key]
- [Column(Order = 0)]
- public Guid Id { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 2)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int InternalVersion { get; set; }
-
- public byte[] Content { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocVersions.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocVersions.cs
deleted file mode 100644
index 5e8e10217..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocVersions.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class AllDocVersions
- {
- [Key]
- [Column(Order = 0)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid Id { get; set; }
-
- [Key]
- [Column(Order = 2)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int UIVersion { get; set; }
-
- public int? InternalVersion { get; set; }
-
- public DateTime? TimeCreated { get; set; }
-
- public int? Size { get; set; }
-
- public byte[] MetaInfo { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocs.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocs.cs
deleted file mode 100644
index 37584d269..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllDocs.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class AllDocs
- {
- [Key]
- [Column(Order = 0)]
- public Guid Id { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid SiteId { get; set; }
-
- [Required]
- [StringLength(256)]
- public string DirName { get; set; }
-
- [Required]
- [StringLength(128)]
- public string LeafName { get; set; }
-
- public Guid? ListId { get; set; }
-
- public int? Size { get; set; }
-
- public int? InternalVersion { get; set; }
-
- public int UIVersion { get; set; }
-
- public DateTime TimeCreated { get; set; }
-
- public DateTime TimeLastModified { get; set; }
-
- [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
- [StringLength(128)]
- public string Extension { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLinks.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLinks.cs
deleted file mode 100644
index b921505d4..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLinks.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class AllLinks
- {
- [Key]
- [Column(Order = 0)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid ParentId { get; set; }
-
- [Key]
- [Column(Order = 2)]
- public Guid DocId { get; set; }
-
- public Guid? WebPartId { get; set; }
-
- public Guid? FieldId { get; set; }
-
- [Key]
- [Column(Order = 3)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int LinkNumber { get; set; }
-
- [Key]
- [Column(Order = 4)]
- [StringLength(256)]
- public string TargetDirName { get; set; }
-
- [Key]
- [Column(Order = 5)]
- public string TargetLeafName { get; set; }
-
- [Key]
- [Column(Order = 6)]
- public string Search { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLists.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLists.cs
deleted file mode 100644
index 5d6a9fb02..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AllLists.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class AllLists
- {
- [Key]
- [Column(Order = 0)]
- public Guid tp_WebId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid tp_ID { get; set; }
-
- [Required]
- [StringLength(255)]
- public string tp_Title { get; set; }
-
- public DateTime tp_Created { get; set; }
-
- public Guid? tp_FeatureId { get; set; }
-
- public Guid tp_RootFolder { get; set; }
-
- public Guid? tp_Template { get; set; }
-
- [Required]
- [StringLength(255)]
- public string tp_ImageUrl { get; set; }
-
- [Required]
- public string tp_Description { get; set; }
-
- public Guid tp_ScopeId { get; set; }
-
- public byte[] tp_Fields { get; set; }
-
- public byte[] tp_ContentTypes { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionNyRT.cs
deleted file mode 100644
index 993965435..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionNyRT.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("AplicacionNyRT")]
- public partial class AplicacionNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public AplicacionNyRT()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_aplicacion { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionPN.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionPN.cs
deleted file mode 100644
index 9ccf31f05..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AplicacionPN.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("AplicacionPN")]
- public partial class AplicacionPN
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public AplicacionPN()
- {
- PropuestaNormativa = new HashSet();
- }
-
- [Key]
- public int id_aplicacion { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection PropuestaNormativa { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AsignacionRol.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/AsignacionRol.cs
deleted file mode 100644
index b717506d2..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/AsignacionRol.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("AsignacionRol")]
- public partial class AsignacionRol
- {
- [Key]
- public int id_asignacion { get; set; }
-
- public int? id_usuario { get; set; }
-
- public int? id_rol { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- public virtual Rol Rol { get; set; }
-
- public virtual Usuario Usuario { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/ContenidoNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/ContenidoNyRT.cs
deleted file mode 100644
index 12b867920..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/ContenidoNyRT.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("ContenidoNyRT")]
- public partial class ContenidoNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public ContenidoNyRT()
- {
- SubCatContenidoNyRT = new HashSet();
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_contenido { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection SubCatContenidoNyRT { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/ConvocadosPropuestaNormativa.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/ConvocadosPropuestaNormativa.cs
deleted file mode 100644
index 51e55a503..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/ConvocadosPropuestaNormativa.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("ConvocadosPropuestaNormativa")]
- public partial class ConvocadosPropuestaNormativa
- {
- [Key]
- [Column(Order = 0)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int id_propuesta { get; set; }
-
- [Key]
- [Column(Order = 1)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int id_usuario { get; set; }
-
- public bool? participar { get; set; }
-
- [StringLength(500)]
- public string justificacion { get; set; }
-
- public DateTime? fecha_max_confirmar { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public virtual PropuestaNormativa PropuestaNormativa { get; set; }
-
- public virtual Usuario Usuario { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/DocumentoTecnicoNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/DocumentoTecnicoNyRT.cs
deleted file mode 100644
index 22ef4de12..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/DocumentoTecnicoNyRT.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("DocumentoTecnicoNyRT")]
- public partial class DocumentoTecnicoNyRT
- {
- [Key]
- public int id_documento { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorNyRT.cs
deleted file mode 100644
index 1f567fa90..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorNyRT.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("EmisorNyRT")]
- public partial class EmisorNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public EmisorNyRT()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_emisor { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorPN.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorPN.cs
deleted file mode 100644
index 8892d1f02..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EmisorPN.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("EmisorPN")]
- public partial class EmisorPN
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public EmisorPN()
- {
- PropuestaNormativa = new HashSet();
- }
-
- [Key]
- public int id_emisor { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection PropuestaNormativa { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EstadoFichaTecnica.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/EstadoFichaTecnica.cs
deleted file mode 100644
index fd79e9b18..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EstadoFichaTecnica.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("EstadoFichaTecnica")]
- public partial class EstadoFichaTecnica
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public EstadoFichaTecnica()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_estado { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Estado_PropuestaNormativa.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Estado_PropuestaNormativa.cs
deleted file mode 100644
index d1f86f87e..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Estado_PropuestaNormativa.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class Estado_PropuestaNormativa
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Estado_PropuestaNormativa()
- {
- PropuestaNormativa = new HashSet();
- }
-
- [Key]
- public int id_estado { get; set; }
-
- [StringLength(50)]
- public string titulo { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection PropuestaNormativa { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EventLog.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/EventLog.cs
deleted file mode 100644
index 4de06279d..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/EventLog.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("EventLog")]
- public partial class EventLog
- {
- [Key]
- [Column(Order = 0)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public long Id { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 2)]
- public DateTime EventTime { get; set; }
-
- [Key]
- [Column(Order = 3)]
- public Guid ListId { get; set; }
-
- [Key]
- [Column(Order = 4)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int ItemId { get; set; }
-
- [StringLength(255)]
- public string ItemName { get; set; }
-
- [StringLength(260)]
- public string ItemFullUrl { get; set; }
-
- [Key]
- [Column(Order = 5)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int EventType { get; set; }
-
- [StringLength(255)]
- public string ModifiedBy { get; set; }
-
- public byte[] EventData { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Features.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Features.cs
deleted file mode 100644
index 73363cd4a..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Features.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class Features
- {
- [Key]
- [Column(Order = 0)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid WebId { get; set; }
-
- [Key]
- [Column(Order = 2)]
- public Guid FeatureId { get; set; }
-
- [Required]
- [StringLength(64)]
- public string Version { get; set; }
-
- public DateTime TimeActivated { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/FichaTecnica.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/FichaTecnica.cs
deleted file mode 100644
index 7bbc15051..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/FichaTecnica.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("FichaTecnica")]
- public partial class FichaTecnica
- {
- [Key]
- public int id_ficha_tecnica { get; set; }
-
- [StringLength(200)]
- public string nombre { get; set; }
-
- [StringLength(500)]
- public string identificacion { get; set; }
-
- public int? estado { get; set; }
-
- [StringLength(100)]
- public string documento_ingreso { get; set; }
-
- [StringLength(100)]
- public string documento_egreso { get; set; }
-
- public int? aplicacion { get; set; }
-
- public int? contenido { get; set; }
-
- public int? subcategoria_contenido { get; set; }
-
- public int? grupo_tematico { get; set; }
-
- public int? subcategoria_grupo_tematico { get; set; }
-
- public int? emisor { get; set; }
-
- public int? palabra_clave { get; set; }
-
- public DateTime? fecha_publicacion { get; set; }
-
- [StringLength(100)]
- public string numero_publicacion { get; set; }
-
- [StringLength(200)]
- public string enlace_documento { get; set; }
-
- public int? cantidad_accesos { get; set; }
-
- public bool? solicitar_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public virtual AplicacionNyRT AplicacionNyRT { get; set; }
-
- public virtual ContenidoNyRT ContenidoNyRT { get; set; }
-
- public virtual EmisorNyRT EmisorNyRT { get; set; }
-
- public virtual EstadoFichaTecnica EstadoFichaTecnica { get; set; }
-
- public virtual GrupoTematicoNyRT GrupoTematicoNyRT { get; set; }
-
- public virtual PalabraClaveNyRT PalabraClaveNyRT { get; set; }
-
- public virtual SubCatContenidoNyRT SubCatContenidoNyRT { get; set; }
-
- public virtual SubCatGrupoTematicoNyRT SubCatGrupoTematicoNyRT { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Groups.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Groups.cs
deleted file mode 100644
index 4308620b3..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Groups.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class Groups
- {
- [Key]
- [Column(Order = 0)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int ID { get; set; }
-
- [Required]
- [StringLength(255)]
- public string Title { get; set; }
-
- [StringLength(512)]
- public string Description { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/GrupoTematicoNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/GrupoTematicoNyRT.cs
deleted file mode 100644
index 1247e2e34..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/GrupoTematicoNyRT.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("GrupoTematicoNyRT")]
- public partial class GrupoTematicoNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public GrupoTematicoNyRT()
- {
- FichaTecnica = new HashSet();
- SubCatGrupoTematicoNyRT = new HashSet();
- }
-
- [Key]
- public int id_grupo { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection SubCatGrupoTematicoNyRT { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/PalabraClaveNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/PalabraClaveNyRT.cs
deleted file mode 100644
index 75bb2d00c..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/PalabraClaveNyRT.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("PalabraClaveNyRT")]
- public partial class PalabraClaveNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public PalabraClaveNyRT()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_palabra { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/PropuestaNormativa.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/PropuestaNormativa.cs
deleted file mode 100644
index ec6facee4..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/PropuestaNormativa.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("PropuestaNormativa")]
- public partial class PropuestaNormativa
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public PropuestaNormativa()
- {
- ConvocadosPropuestaNormativa = new HashSet();
- }
-
- [Key]
- public int id_propuesta { get; set; }
-
- public int? proyecto_normativo { get; set; }
-
- public int? emisor { get; set; }
-
- public int? aplicacion { get; set; }
-
- public DateTime? fecha_inicio_consulta { get; set; }
-
- public DateTime? fecha_fin_consulta { get; set; }
-
- public int? promotor { get; set; }
-
- public int? estado_propuesta { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- public virtual AplicacionPN AplicacionPN { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection ConvocadosPropuestaNormativa { get; set; }
-
- public virtual EmisorPN EmisorPN { get; set; }
-
- public virtual Estado_PropuestaNormativa Estado_PropuestaNormativa { get; set; }
-
- public virtual Usuario Usuario { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Rol.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Rol.cs
deleted file mode 100644
index 9d6e6e2ed..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Rol.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("Rol")]
- public partial class Rol
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Rol()
- {
- AsignacionRol = new HashSet();
- }
-
- [Key]
- public int id_rol { get; set; }
-
- [StringLength(50)]
- public string nombre { get; set; }
-
- [StringLength(100)]
- public string descripcion { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection AsignacionRol { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Roles.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Roles.cs
deleted file mode 100644
index 94b147b97..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Roles.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- public partial class Roles
- {
- [Key]
- [Column(Order = 0)]
- public Guid SiteId { get; set; }
-
- [Key]
- [Column(Order = 1)]
- public Guid WebId { get; set; }
-
- [Key]
- [Column(Order = 2)]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int RoleId { get; set; }
-
- [Required]
- [StringLength(255)]
- public string Title { get; set; }
-
- [StringLength(512)]
- public string Description { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SinortContext.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/SinortContext.cs
deleted file mode 100644
index f2ec29dd2..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SinortContext.cs
+++ /dev/null
@@ -1,349 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Data.Entity;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Configuration;
-
- public partial class SinortContext : DbContext
- {
-
- public virtual DbSet AllDocs { get; set; }
- public virtual DbSet AllDocVersions { get; set; }
- public virtual DbSet AllLists { get; set; }
- public virtual DbSet AplicacionNyRT { get; set; }
- public virtual DbSet AplicacionPN { get; set; }
- public virtual DbSet AsignacionRol { get; set; }
- public virtual DbSet ContenidoNyRT { get; set; }
- public virtual DbSet ConvocadosPropuestaNormativa { get; set; }
- public virtual DbSet DocumentoTecnicoNyRT { get; set; }
- public virtual DbSet EmisorNyRT { get; set; }
- public virtual DbSet EmisorPN { get; set; }
- public virtual DbSet Estado_PropuestaNormativa { get; set; }
- public virtual DbSet EstadoFichaTecnica { get; set; }
- public virtual DbSet Features { get; set; }
- public virtual DbSet FichaTecnica { get; set; }
- public virtual DbSet Groups { get; set; }
- public virtual DbSet GrupoTematicoNyRT { get; set; }
- public virtual DbSet PalabraClaveNyRT { get; set; }
- public virtual DbSet PropuestaNormativa { get; set; }
- public virtual DbSet Rol { get; set; }
- public virtual DbSet Roles { get; set; }
- public virtual DbSet SubCatContenidoNyRT { get; set; }
- public virtual DbSet SubCatGrupoTematicoNyRT { get; set; }
- public virtual DbSet Usuario { get; set; }
- public virtual DbSet AllDocStreams { get; set; }
- public virtual DbSet AllLinks { get; set; }
- public virtual DbSet EventLog { get; set; }
-
- protected override void OnModelCreating(DbModelBuilder modelBuilder)
- {
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.AplicacionNyRT)
- .HasForeignKey(e => e.aplicacion);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.PropuestaNormativa)
- .WithOptional(e => e.AplicacionPN)
- .HasForeignKey(e => e.aplicacion);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.ContenidoNyRT)
- .HasForeignKey(e => e.contenido);
-
- modelBuilder.Entity()
- .Property(e => e.justificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.EmisorNyRT)
- .HasForeignKey(e => e.emisor);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.PropuestaNormativa)
- .WithOptional(e => e.EmisorPN)
- .HasForeignKey(e => e.emisor);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.PropuestaNormativa)
- .WithOptional(e => e.Estado_PropuestaNormativa)
- .HasForeignKey(e => e.estado_propuesta);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.EstadoFichaTecnica)
- .HasForeignKey(e => e.estado);
-
- modelBuilder.Entity()
- .Property(e => e.nombre)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.identificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.documento_ingreso)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.documento_egreso)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.numero_publicacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.enlace_documento)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.GrupoTematicoNyRT)
- .HasForeignKey(e => e.grupo_tematico);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.PalabraClaveNyRT)
- .HasForeignKey(e => e.palabra_clave);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.ConvocadosPropuestaNormativa)
- .WithRequired(e => e.PropuestaNormativa)
- .WillCascadeOnDelete(false);
-
- modelBuilder.Entity()
- .Property(e => e.nombre)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.descripcion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.SubCatContenidoNyRT)
- .HasForeignKey(e => e.subcategoria_contenido);
-
- modelBuilder.Entity()
- .Property(e => e.titulo)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.FichaTecnica)
- .WithOptional(e => e.SubCatGrupoTematicoNyRT)
- .HasForeignKey(e => e.subcategoria_grupo_tematico);
-
- modelBuilder.Entity()
- .Property(e => e.usuario1)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.nombre)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.email)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.password)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_creacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .Property(e => e.usuario_modificacion)
- .IsUnicode(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.ConvocadosPropuestaNormativa)
- .WithRequired(e => e.Usuario)
- .WillCascadeOnDelete(false);
-
- modelBuilder.Entity()
- .HasMany(e => e.PropuestaNormativa)
- .WithOptional(e => e.Usuario)
- .HasForeignKey(e => e.promotor);
- }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatContenidoNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatContenidoNyRT.cs
deleted file mode 100644
index 6169ccb02..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatContenidoNyRT.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("SubCatContenidoNyRT")]
- public partial class SubCatContenidoNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public SubCatContenidoNyRT()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_sub_contenido { get; set; }
-
- public int? id_contenido { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- public virtual ContenidoNyRT ContenidoNyRT { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatGrupoTematicoNyRT.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatGrupoTematicoNyRT.cs
deleted file mode 100644
index 3b1111225..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/SubCatGrupoTematicoNyRT.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("SubCatGrupoTematicoNyRT")]
- public partial class SubCatGrupoTematicoNyRT
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public SubCatGrupoTematicoNyRT()
- {
- FichaTecnica = new HashSet();
- }
-
- [Key]
- public int id_sub_grupo { get; set; }
-
- public int? id_grupo { get; set; }
-
- [StringLength(100)]
- public string titulo { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection FichaTecnica { get; set; }
-
- public virtual GrupoTematicoNyRT GrupoTematicoNyRT { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Usuario.cs b/AYA.SlnSynor/AYA.SlnSynorModel/BD/Usuario.cs
deleted file mode 100644
index 9307fafbe..000000000
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Usuario.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-namespace AYA.SlnSynorModel.BD
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.Spatial;
-
- [Table("Usuario")]
- public partial class Usuario
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Usuario()
- {
- AsignacionRol = new HashSet();
- ConvocadosPropuestaNormativa = new HashSet();
- PropuestaNormativa = new HashSet();
- }
-
- [Key]
- public int id_usuario { get; set; }
-
- [Column("usuario")]
- [StringLength(50)]
- public string usuario1 { get; set; }
-
- [StringLength(100)]
- public string nombre { get; set; }
-
- [StringLength(100)]
- public string email { get; set; }
-
- [StringLength(200)]
- public string password { get; set; }
-
- public DateTime? fecha_creacion { get; set; }
-
- [StringLength(50)]
- public string usuario_creacion { get; set; }
-
- public DateTime? fecha_modificacion { get; set; }
-
- [StringLength(50)]
- public string usuario_modificacion { get; set; }
-
- public bool? estado { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection AsignacionRol { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection ConvocadosPropuestaNormativa { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection PropuestaNormativa { get; set; }
- }
-}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Constantes/Constantes.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Constantes/Constantes.cs
index 70e64bdae..5d9cfd8bc 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/Constantes/Constantes.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Constantes/Constantes.cs
@@ -4,14 +4,15 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace AYA.SlnSynorModel.Constantes
+namespace AYA.SlnSinortModel.Constantes
{
class Constantes
{
}
- public class EnumRespuesta
+ public enum TipoCodigoRespuesta
{
- public static string EXITOSO = "1";
- public static string FALLIDO = "0";
+ EXITOSO = 0,
+ ERROR = 1,
+ ADVERTENCIA = 2,
}
}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/CatalogosJSON.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/CatalogosJSON.cs
index 1e7b50624..ce2a9370f 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/CatalogosJSON.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/CatalogosJSON.cs
@@ -1,18 +1,17 @@
-using AYA.SlnSynorModel.BD;
+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace AYA.SlnSynorModel.Entidades
+namespace AYA.SlnSinortModel.Entidades
{
public class CatalogosJSON
{
+ public string codigo { get; set; }
+ public string descripcion { get; set; }
}
- public class EmisorPNJSON : Info
- {
- public List ListaEmisores { get; set; }
- }
+
}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Info.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs
similarity index 69%
rename from AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Info.cs
rename to AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs
index c37881e8c..8aec24782 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Info.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs
@@ -4,10 +4,12 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace AYA.SlnSynorModel.Entidades
+namespace AYA.SlnSinortModel.Entidades
{
- public class Info
+ public class BaseJson
{
+ public BaseJson();
+
public string CodigoRespuesta { get; set; }
public string DescripcionRespuesta { get; set; }
}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Properties/AssemblyInfo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Properties/AssemblyInfo.cs
index cf5cd1c35..ac216a75f 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/Properties/AssemblyInfo.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos atributos para modificar la información
// asociada con un ensamblado.
-[assembly: AssemblyTitle("AYA.SlnSynorModel")]
+[assembly: AssemblyTitle("AYA.SlnSinortModel")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("AYA.SlnSynorModel")]
+[assembly: AssemblyProduct("AYA.SlnSinortModel")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs
new file mode 100644
index 000000000..ef779bd27
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs
@@ -0,0 +1,31 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.Aplicacion")]
+ public partial class Aplicacion
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdAplicacion { get; set; }
+
+ [StringLength(200)]
+ public string Descripcion { get; set; }
+ public bool? Estado { get; set; }
+
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/BitacoraDocumentos.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/BitacoraDocumentos.cs
new file mode 100644
index 000000000..070b11aea
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/BitacoraDocumentos.cs
@@ -0,0 +1,45 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Expediente.BitacoraDocumentos")]
+ public partial class BitacoraDocumentos
+ {
+ [Key]
+ [Column(Order = 0)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdBitacoraDocumentos { get; set; }
+
+ [Key]
+ [Column(Order = 1)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int NumeroPublicacion { get; set; }
+
+ [Key]
+ [Column(Order = 2)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdDocumento { get; set; }
+
+ public int? IdDocumentoAdjunto { get; set; }
+
+ public int? NumeroAccesos { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual Documentos Documentos { get; set; }
+
+ public virtual DocumentosAdjuntos DocumentosAdjuntos { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Categoria.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Categoria.cs
new file mode 100644
index 000000000..a92daf46d
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Categoria.cs
@@ -0,0 +1,31 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.Categoria")]
+ public partial class Categoria
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdCategoria { get; set; }
+
+ [StringLength(500)]
+ public string Descripcion { get; set; }
+
+ public bool? Estado { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs
new file mode 100644
index 000000000..395e9f543
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs
@@ -0,0 +1,43 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Global.ComentariosForo")]
+ public partial class ComentariosForo
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdComentarioForo { get; set; }
+
+ public int? IdForo { get; set; }
+
+ [StringLength(200)]
+ public string Asunto { get; set; }
+
+ public int? IdUsuario { get; set; }
+
+ public string Respuesta { get; set; }
+
+ public int? IdDocumento { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual Usuario Usuario { get; set; }
+
+ public virtual Documentos Documentos { get; set; }
+
+ public virtual Foro Foro { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosMatriz.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosMatriz.cs
new file mode 100644
index 000000000..f4cd9019a
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosMatriz.cs
@@ -0,0 +1,53 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Global.ComentariosMatriz")]
+ public partial class ComentariosMatriz
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdComtarioMatriz { get; set; }
+
+ public int? IdMatriz { get; set; }
+
+ public int? IdDocumento { get; set; }
+
+ public int? IdUsuario { get; set; }
+
+ [StringLength(200)]
+ public string Asunto { get; set; }
+
+ [StringLength(100)]
+ public string Capitulo { get; set; }
+
+ [StringLength(200)]
+ public string ApartadoSeccionParrafo { get; set; }
+
+ public string TextoOriginal { get; set; }
+
+ public string TextoPropuesto { get; set; }
+
+ public string ComentarioObservacionJustificacion { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual Usuario Usuario { get; set; }
+
+ public virtual Documentos Documentos { get; set; }
+
+ public virtual Matriz Matriz { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Convocatoria.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Convocatoria.cs
new file mode 100644
index 000000000..9ab2dd3f4
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Convocatoria.cs
@@ -0,0 +1,36 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Global.Convocatoria")]
+ public partial class Convocatoria
+ {
+ [Key]
+ [Column(Order = 0)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdUsuario { get; set; }
+
+ [Key]
+ [Column(Order = 1)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdForo { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual Usuario Usuario { get; set; }
+
+ public virtual Foro Foro { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Documentos.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Documentos.cs
new file mode 100644
index 000000000..8c655efb3
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Documentos.cs
@@ -0,0 +1,50 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Expediente.Documentos")]
+ public partial class Documentos
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public Documentos()
+ {
+ BitacoraDocumentos = new HashSet();
+ ComentariosForo = new HashSet();
+ ComentariosMatriz = new HashSet();
+ }
+
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdDocumento { get; set; }
+
+ [StringLength(200)]
+ public string NombreDocumento { get; set; }
+
+ public int? IdTipoDocumento { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual TipoDocumento TipoDocumento { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection BitacoraDocumentos { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection ComentariosForo { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection ComentariosMatriz { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentosAdjuntos.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentosAdjuntos.cs
new file mode 100644
index 000000000..b0bdc4139
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentosAdjuntos.cs
@@ -0,0 +1,49 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Expediente.DocumentosAdjuntos")]
+ public partial class DocumentosAdjuntos
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public DocumentosAdjuntos()
+ {
+ BitacoraDocumentos = new HashSet();
+ }
+
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdDocumentoAdjunto { get; set; }
+
+ public int? FechaAdjunto { get; set; }
+
+ [StringLength(200)]
+ public string Nombre { get; set; }
+
+ [Column(TypeName = "ntext")]
+ public string RutaFisica { get; set; }
+
+ [Column(TypeName = "ntext")]
+ public string RutaDescarga { get; set; }
+
+ [StringLength(10)]
+ public string TipoArchivo { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection BitacoraDocumentos { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs
new file mode 100644
index 000000000..33065dc5d
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs
@@ -0,0 +1,35 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.Emisor")]
+ public partial class Emisor
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdEmisor { get; set; }
+
+ public int? IdTipoEmisor { get; set; }
+
+ [StringLength(500)]
+ public string Descripcion { get; set; }
+
+ public bool Estado { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual TipoEmisor TipoEmisor { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Estado.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Estado.cs
new file mode 100644
index 000000000..a3de58f69
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Estado.cs
@@ -0,0 +1,36 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.Estado")]
+ public partial class Estado
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdEstado { get; set; }
+
+ [StringLength(200)]
+ public string Descripcion { get; set; }
+
+ public int? IdTipoEstado { get; set; }
+
+ [Column("Estado")]
+ public bool? Estado1 { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual TipoEstado TipoEstado { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs
new file mode 100644
index 000000000..528e4b25f
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs
@@ -0,0 +1,43 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Global.Foro")]
+ public partial class Foro
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public Foro()
+ {
+ ComentariosForo = new HashSet();
+ Convocatoria = new HashSet();
+ }
+
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdForo { get; set; }
+
+ public int? IdTipoForo { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual TipoForo TipoForo { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection ComentariosForo { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection Convocatoria { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs
new file mode 100644
index 000000000..483b73c7c
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs
@@ -0,0 +1,39 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Global.Matriz")]
+ public partial class Matriz
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public Matriz()
+ {
+ ComentariosMatriz = new HashSet();
+ }
+
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdMatriz { get; set; }
+
+ public int? IdTipoMatriz { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual TipoMatriz TipoMatriz { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection ComentariosMatriz { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Partial/SinortContext.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Partial/Contex.cs
similarity index 73%
rename from AYA.SlnSynor/AYA.SlnSynorModel/BD/Partial/SinortContext.cs
rename to AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Partial/Contex.cs
index b2fd29b3f..010e6b77f 100644
--- a/AYA.SlnSynor/AYA.SlnSynorModel/BD/Partial/SinortContext.cs
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Partial/Contex.cs
@@ -5,29 +5,25 @@ using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-
-namespace AYA.SlnSynorModel.BD
+namespace AYA.SlnSinortModel.Sinort.Partial
{
- public partial class SinortContext : DbContext
+ public partial class Contex : DbContext
{
private DbContextTransaction DatabaseTransaction { get; set; }
private bool WasCommitted = false;
private bool disposed = false;
-
- public SinortContext()
- : base("data source=192.168.1.37;initial catalog=PruebaAyA;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework")
+ public Contex()
+ : base(new Atesa.Utilitarios.ObtieneParametros().GetValueKeyRegedit("ParametrosSinort", "SinortAyAConnectionString", true))
{
- Database.SetInitializer(null);
+ Database.SetInitializer(null);
Configuration.ProxyCreationEnabled = false;
Configuration.LazyLoadingEnabled = true;
DatabaseTransaction = this.Database.BeginTransaction();
WasCommitted = false;
}
-
-
- protected virtual void Dispose(bool disposing)
+ protected virtual void Dispose(bool disposing)
{
if (disposed)
return;
@@ -59,11 +55,9 @@ namespace AYA.SlnSynorModel.BD
WasCommitted = true;
}
- ~SinortContext()
+ ~Contex()
{
Dispose(false);
}
-
}
-
}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PermisosUsuario.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PermisosUsuario.cs
new file mode 100644
index 000000000..3c50e2d59
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PermisosUsuario.cs
@@ -0,0 +1,36 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.PermisosUsuario")]
+ public partial class PermisosUsuario
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdPermisosUsuario { get; set; }
+
+ public int? IdRol { get; set; }
+
+ public int? IdUsuario { get; set; }
+
+ public bool? Estado { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ public virtual Roles Roles { get; set; }
+
+ public virtual Usuario Usuario { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs
new file mode 100644
index 000000000..20e62c079
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs
@@ -0,0 +1,36 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.PlantillaEmail")]
+ public partial class PlantillaEmail
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdPlantilla { get; set; }
+
+ [StringLength(200)]
+ public string NombrePlatilla { get; set; }
+
+ public string Body { get; set; }
+
+ public bool? Estado { get; set; }
+
+ [StringLength(200)]
+ public string Subject { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Roles.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Roles.cs
new file mode 100644
index 000000000..e593ecd7b
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Roles.cs
@@ -0,0 +1,40 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("Catalogos.Roles")]
+ public partial class Roles
+ {
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public Roles()
+ {
+ PermisosUsuario = new HashSet();
+ }
+
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int IdRol { get; set; }
+
+ [StringLength(500)]
+ public string Descripcion { get; set; }
+
+ public bool? Estado { get; set; }
+
+ public DateTime? FechaCreacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioCreacion { get; set; }
+
+ public DateTime? FechaModificacion { get; set; }
+
+ [StringLength(200)]
+ public string UsuarioModificacion { get; set; }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection PermisosUsuario { get; set; }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
new file mode 100644
index 000000000..f5a0da244
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs
@@ -0,0 +1,330 @@
+namespace AYA.SlnSinortModel.Synort
+{
+ using System;
+ using System.Data.Entity;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Linq;
+ using AYA.SlnSinortModel.Sinort.Partial;
+
+ public partial class SinortContex : Contex
+ {
+
+
+ public virtual DbSet Aplicacion { get; set; }
+ public virtual DbSet Categoria { get; set; }
+ public virtual DbSet Emisor { get; set; }
+ public virtual DbSet Estado { get; set; }
+ public virtual DbSet PermisosUsuario { get; set; }
+ public virtual DbSet PlantillaEmail { get; set; }
+ public virtual DbSet Roles { get; set; }
+ public virtual DbSet TipoDocumento { get; set; }
+ public virtual DbSet TipoEmisor { get; set; }
+ public virtual DbSet TipoEstado { get; set; }
+ public virtual DbSet TipoForo { get; set; }
+ public virtual DbSet TipoMatriz { get; set; }
+ public virtual DbSet Usuario { get; set; }
+ public virtual DbSet sysdiagrams { get; set; }
+ public virtual DbSet BitacoraDocumentos { get; set; }
+ public virtual DbSet Documentos { get; set; }
+ public virtual DbSet DocumentosAdjuntos { get; set; }
+ public virtual DbSet ComentariosForo { get; set; }
+ public virtual DbSet ComentariosMatriz { get; set; }
+ public virtual DbSet Convocatoria { get; set; }
+ public virtual DbSet Foro { get; set; }
+ public virtual DbSet Matriz { get; set; }
+
+ protected override void OnModelCreating(DbModelBuilder modelBuilder)
+ {
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.NombrePlatilla)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Body)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Subject)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Descripcion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioSistema)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.NombreUsuario)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.EmailUsuario)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .HasMany(e => e.Convocatoria)
+ .WithRequired(e => e.Usuario)
+ .WillCascadeOnDelete(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.NombreDocumento)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .HasMany(e => e.BitacoraDocumentos)
+ .WithRequired(e => e.Documentos)
+ .WillCascadeOnDelete(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Nombre)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.TipoArchivo)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Asunto)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.Respuesta)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioCreacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity()
+ .Property(e => e.UsuarioModificacion)
+ .IsUnicode(false);
+
+ modelBuilder.Entity |