changeset 251:0d65ebf63aed

Combinar
author juanjose.montesdeocaarbos
date Wed, 12 Oct 2011 00:32:07 -0300
parents 9e1e2435388e (current diff) 7cf64cd790ab (diff)
children ed1c7a0196c8
files
diffstat 7 files changed, 19 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.NHibernate/EventoRepository.cs	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Repositories.NHibernate/EventoRepository.cs	Wed Oct 12 00:32:07 2011 -0300
@@ -19,11 +19,6 @@
 			Session.Delete(evento);
 		}
 
-		public new Evento Get(Guid vanId)
-		{
-			return Session.Get<Evento>(vanId);
-		}
-
 		public IList<Evento> GetActivos()
 		{
 			return
--- a/Agendas/trunk/src/Agendas.Repositories.NHibernate/RepositoryBase.cs	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Repositories.NHibernate/RepositoryBase.cs	Wed Oct 12 00:32:07 2011 -0300
@@ -8,7 +8,7 @@
 	{
 		private readonly ISessionFactory _sessionFactory;
 
-		public RepositoryBase(ISessionFactory sessionFactory)
+		protected RepositoryBase(ISessionFactory sessionFactory)
 		{
 			_sessionFactory = sessionFactory;
 		}
@@ -22,7 +22,8 @@
 
         public T Get(Guid id)
         {
-            return Session.QueryOver<T>().Where(i => i.Id == id).SingleOrDefault();
+			return Session.Get<T>(id);
+			//return Session.QueryOver<T>().Where(i => i.Id == id).SingleOrDefault();
         }
 
 	}
--- a/Agendas/trunk/src/Agendas.Web/Content/Site.css	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Content/Site.css	Wed Oct 12 00:32:07 2011 -0300
@@ -132,6 +132,11 @@
 	background: transparent url("themes/altnethispano/images/ul_topsponsors_li.gif") repeat-x 0 0;
 	text-align: center;
 }
+
+#version {
+	float: right;
+}
+
 .userGroupLogo 
 {
 	padding: 0 10px;
--- a/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Wed Oct 12 00:32:07 2011 -0300
@@ -41,5 +41,10 @@
 		{
 			return new[] {Roles.Administrador, Roles.Usuario};
 		}
+
+		public static string Version(this HtmlHelper helper)
+		{
+			return typeof (DataProviders).Assembly.GetName().Version.ToString();
+		}
 	}
 }
--- a/Agendas/trunk/src/Agendas.Web/Properties/AssemblyInfo.cs	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Properties/AssemblyInfo.cs	Wed Oct 12 00:32:07 2011 -0300
@@ -30,5 +30,5 @@
 //
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.0.3.0")]
+[assembly: AssemblyFileVersion("1.0.3.0")]
--- a/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Ponentes.cshtml	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Ponentes.cshtml	Wed Oct 12 00:32:07 2011 -0300
@@ -1,7 +1,7 @@
 @model IEnumerable<Guid>
 <script type="text/javascript">
 	$(document).ready(function () {
-		$("#agregarPonente").subpanel({ success: add_new_otro_ponente, url: '/PersonaApi/Nueva' });
+		$("#agregarPonente").subpanel({ success: add_new_otro_ponente, url: '@Url.Action("Nueva", "PersonaApi")' });
 		$("#add").click(select_otro_ponente);
 		$("#remove").click(remove_otro_ponente);
 
--- a/Agendas/trunk/src/Agendas.Web/Views/Shared/_Layout.cshtml	Fri Oct 07 22:50:45 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/_Layout.cshtml	Wed Oct 12 00:32:07 2011 -0300
@@ -58,6 +58,9 @@
 			        <a target="_blank" title="DiscountASP" href="http://www.discountasp.com/">
 				        <img src="@Url.Content("~/Content/themes/altnethispano/images/logoDiscountASPNET.gif")" title="DiscountASP.NET" alt="DiscountASP.NET" height="25" />
 			        </a>
+					<div id="version">
+						versión: @Html.Version()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+					</div>
                 </div>
             </div>
         </div>