You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/06/19 16:45:25 UTC

svn commit: r191346 [14/16] - in /ibatis/trunk/cs/npetshop2: ./ External-bin/ NPetshop.Domain/ NPetshop.Domain/Accounts/ NPetshop.Domain/Billing/ NPetshop.Domain/Catalog/ NPetshop.Domain/Shopping/ NPetshop.Persistence/ NPetshop.Persistence/Ddl/ NPetsho...

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Header.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Header.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Header.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Header.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/NPetshopUC.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/NPetshopUC.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/NPetshopUC.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/NPetshopUC.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,24 @@
+using System;
+
+using Castle.MVC.Views;
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls
+{
+	/// <summary>
+	/// An NPetshop User Control
+	/// </summary>
+	public class NPetshopUC : WebUserControlView 
+	{
+		/// <summary>
+		/// Get user context.
+		/// </summary>
+		public NPetshopState NPetshopState
+		{
+			get
+			{
+				return this.State as NPetshopState;
+			}
+		}
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,63 @@
+<%@ Register TagPrefix="uc1" TagName="TopBar" Src="../TopBar.ascx" %>
+<%@ Register TagPrefix="uc1" TagName="Banner" Src="../Banner.ascx" %>
+<%@ Register TagPrefix="cc1" Namespace="NPetshop.Web.Controls" Assembly="NPetshop.Web" %>
+<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Cart.ascx.cs" Inherits="NPetshop.Web.UserControls.Shopping.Cart" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
+<uc1:banner id="Banner" runat="server"></uc1:banner><uc1:topbar id="TopBar" runat="server"></uc1:topbar>
+<div style="MARGIN-TOP: 50px; MARGIN-LEFT: 50px">
+	<span class="title">Shopping Cart</span>
+	<p>
+		<cc1:ExtendedRepeater id="RepeaterCart" OnItemCommand="RepeaterCart_ItemCommand" runat="server">
+			<HEADERTEMPLATE>
+				<TABLE cellSpacing="0" cellPadding="0" width="600" border="0">
+					<TBODY>
+						<TR class="gridHead">
+							<TD>&nbsp;</TD>
+							<TD>Item</TD>
+							<TD>Product</TD>
+							<TD>In Stock</TD>
+							<TD>Price</TD>
+							<TD>Quantity</TD>
+							<TD>Subtotal</TD>
+						</TR>
+			</HEADERTEMPLATE>
+			<ITEMTEMPLATE>
+				<TR class="gridItem">
+					<TD>
+						<asp:LinkButton id=LinkButtonRemove runat="server" CommandName="removeItem" CommandArgument="<%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Id %>">
+					Remove
+					</asp:LinkButton></TD>
+					<TD>
+						<asp:LinkButton id=LinkButtonShowItem runat="server" CommandName="showItem" CommandArgument="<%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Id %>">
+							<%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Id %>
+						</asp:LinkButton></TD>
+					<TD><%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Product.Name %></TD>
+					<TD><%# DataBinder.Eval(Container.DataItem, "IsInStock") %></TD>
+					<TD class="num"><%# DataBinder.Eval(Container.DataItem, "Item.ListPrice", "{0:c}") %></TD>
+					<TD>
+						<asp:textbox id=TextboxQuantity runat="server" OnTextChanged="QuantityChanged" cssclass="num" text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>' columns="3" maxlength="5">
+						</asp:textbox>
+						<asp:RegularExpressionValidator id="valInteger" runat="server" ErrorMessage="The amount must be an integer" ControlToValidate="TextboxQuantity"
+							ValidationExpression="\d+" Display="Dynamic"></asp:RegularExpressionValidator></TD>
+					<TD class="num"><%# DataBinder.Eval(Container.DataItem, "Total", "{0:c}") %></TD>
+				</TR>
+			</ITEMTEMPLATE>
+			<FOOTERTEMPLATE>
+  <TR class="gridFoot">
+					<TD>
+						<asp:LinkButton id="LinkButtonUpdateCart" runat="server" CommandName="update" Text="Update"></asp:LinkButton></TD>
+					<TD class="num" colSpan="6"><SPAN class="label">Total:</SPAN><%= Total.ToString("c") %></TD>
+				</TR></TBODY></TABLE></FOOTERTEMPLATE>
+			<NODATATEMPLATE>
+<P>No item in cart ! </NODATATEMPLATE>
+		</cc1:ExtendedRepeater>
+		<table cellSpacing="0" cellPadding="0" border="0" width="600">
+			<tr>
+				<td align="center"><asp:LinkButton id="LinkButtonPrev" runat="server"><< Prev</asp:LinkButton></td>
+				<td align="center"><asp:LinkButton id="LinkbuttonNext" runat="server">Next >></asp:LinkButton></td>
+			<tr>
+			<tr>
+				<td align="center" colspan="2"><asp:LinkButton id="LinkbuttonProceedCheckout" CommandName="checkout" runat="server">Proceed to Checkout &gt;&gt;</asp:LinkButton></td>
+			</tr>
+		</table>
+	</p>
+</div>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,164 @@
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls.Shopping
+{
+	using System;
+	using System.Data;
+	using System.Drawing;
+	using System.Web;
+	using System.Web.UI.WebControls;
+	using System.Web.UI.HtmlControls;
+
+	using NPetshop.Domain.Shopping;
+
+	/// <summary>
+	/// Description résumée de Cart.
+	/// </summary>
+	public class Cart : NPetshopUC
+	{
+		protected System.Web.UI.WebControls.Literal LiteralTotal;
+		protected NPetshop.Web.Controls.ExtendedRepeater RepeaterCart;
+		protected System.Web.UI.WebControls.LinkButton LinkButtonPrev;
+		protected System.Web.UI.WebControls.LinkButton LinkbuttonNext;
+		protected System.Web.UI.WebControls.LinkButton LinkbuttonProceedCheckout;
+		protected System.Web.UI.WebControls.LinkButton LinkButtonRemove;
+		protected System.Web.UI.WebControls.LinkButton LinkButtonItem;
+		protected System.Web.UI.WebControls.TextBox TextboxQuantity;
+		protected System.Web.UI.WebControls.RegularExpressionValidator valInteger;
+		protected System.Web.UI.WebControls.LinkButton LinkButtonUpdateCart;
+		private ShoppingCart _cart = null; 
+		private ShoppingController _shoppingController = null;
+		private CatalogController _catalogController = null;
+
+		public ShoppingController ShoppingController
+		{
+			set { _shoppingController = value; }
+		}
+
+		public CatalogController CatalogController
+		{
+			set { _catalogController = value; }
+
+		}
+		//Property to show total
+		protected decimal Total
+		{
+			get { return _cart.Total; }
+		}
+
+		private void Page_Load(object sender, System.EventArgs e)
+		{
+			_cart = this.NPetshopState.CurrentShoppingCart;
+			if(!IsPostBack)
+			{
+				DataBind();	
+			}
+		}
+
+		public override void DataBind()
+		{
+			bool empty = ((_cart == null) || _cart.IsEmpty);
+			if (! empty)
+			{
+				RepeaterCart.DataSource = _cart;
+				RepeaterCart.DataBind();
+
+				if (_cart.Lines.IsNextPageAvailable)
+				{
+					LinkbuttonNext.Visible = true;
+				}
+				else
+				{
+					LinkbuttonNext.Visible = false;
+				}
+				if (_cart.Lines.IsPreviousPageAvailable)
+				{
+					LinkButtonPrev.Visible = true;
+				}
+				else
+				{
+					LinkButtonPrev.Visible = false;
+				}
+			}	
+			else
+			{
+				LinkbuttonNext.Visible = false;
+				LinkButtonPrev.Visible = false;
+				LinkbuttonProceedCheckout.Visible = false;
+			}
+		}
+
+		protected void QuantityChanged(object o, System.EventArgs e)
+		{
+			Page.Validate();
+			if (Page.IsValid)
+			{
+				TextBox textboxQuantity = o as System.Web.UI.WebControls.TextBox;
+				LinkButton linkButtonRemove = textboxQuantity.Parent.FindControl("LinkButtonRemove") as LinkButton;			
+
+				int quantity = int.Parse(textboxQuantity.Text);
+				string itemId = linkButtonRemove.CommandArgument.ToString();
+
+				_shoppingController.UpdateQuantityByItemId(itemId, quantity);
+			}
+			DataBind();	
+		}
+
+		protected void RepeaterCart_ItemCommand(object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e)
+		{
+			if (e.CommandName == "removeItem")
+			{
+				_shoppingController.RemoveItemFromCart(e.CommandArgument.ToString());
+			}
+			else if (e.CommandName == "update")
+			{
+				//nothing to do	
+			}
+			else if (e.CommandName == "showItem")
+			{
+				_catalogController.ShowItem( e.CommandArgument.ToString() );
+			}
+		}
+
+		private void LinkButtonPrev_Click(object sender, System.EventArgs e)
+		{
+			_cart.Lines.PreviousPage();
+		}
+
+		private void LinkbuttonNext_Click(object sender, System.EventArgs e)
+		{
+			_cart.Lines.NextPage();
+		}
+
+		private void LinkbuttonProceedCheckout_Click(object sender, System.EventArgs e)
+		{
+			_shoppingController.ProceedCheckout();
+		}
+
+		#region Code généré par le Concepteur Web Form
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN : Cet appel est requis par le Concepteur Web Form ASP.NET.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		///		Méthode requise pour la prise en charge du concepteur - ne modifiez pas
+		///		le contenu de cette méthode avec l'éditeur de code.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.LinkButtonPrev.Click += new System.EventHandler(this.LinkButtonPrev_Click);
+			this.LinkbuttonNext.Click += new System.EventHandler(this.LinkbuttonNext_Click);
+			this.LinkbuttonProceedCheckout.Click += new System.EventHandler(this.LinkbuttonProceedCheckout_Click);
+			this.Load += new System.EventHandler(this.Page_Load);
+
+		}
+		#endregion
+
+
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,50 @@
+<%@ Register TagPrefix="cc1" Namespace="NPetshop.Web.Controls" Assembly="NPetshop.Web" %>
+<%@ Register TagPrefix="uc1" TagName="TopBar" Src="../TopBar.ascx" %>
+<%@ Register TagPrefix="uc1" TagName="Banner" Src="../Banner.ascx" %>
+<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Checkout.ascx.cs" Inherits="NPetshop.Web.UserControls.Shopping.Checkout" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
+<uc1:Banner id="Banner" runat="server"></uc1:Banner>
+<uc1:TopBar id="TopBar" runat="server"></uc1:TopBar>
+<div style="MARGIN-TOP: 50px; MARGIN-LEFT: 50px">
+	<span class="title">Checkout Summary</span>
+	<p>
+		<cc1:ExtendedRepeater id="RepeaterCart" runat="server">
+			<HEADERTEMPLATE>
+				<TABLE cellSpacing="0" cellPadding="0" width="600" border="0">
+					<TBODY>
+						<TR class="gridHead">
+							<TD>Item ID</TD>
+							<TD>Product</TD>
+							<TD>In Stock</TD>
+							<TD>Price</TD>
+							<TD>Quantity</TD>
+							<TD>Subtotal</TD>
+						</TR>
+			</HEADERTEMPLATE>
+			<ITEMTEMPLATE>
+				<TR class="gridItem">
+					<TD><%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Id %></TD>
+					<TD><%# ((NPetshop.Domain.Shopping.ShoppingCartLine)Container.DataItem).Item.Product.Name %></TD>
+					<TD><%# DataBinder.Eval(Container.DataItem, "IsInStock") %></TD>
+					<TD class="num"><%# DataBinder.Eval(Container.DataItem, "Item.ListPrice", "{0:c}") %></TD>
+					<TD><%# DataBinder.Eval(Container.DataItem, "Quantity") %></TD>
+					<TD class="num"><%# DataBinder.Eval(Container.DataItem, "Total", "{0:c}") %></TD>
+				</TR>
+			</ITEMTEMPLATE>
+			<FOOTERTEMPLATE>
+  <TR class="gridFoot">
+					<TD class="num" colSpan="6"><SPAN class="label">Total:</SPAN><%= Total.ToString("c") %></TD>
+				</TR></TBODY></TABLE></FOOTERTEMPLATE>
+			<NODATATEMPLATE>
+<P>No item in cart ! </NODATATEMPLATE>
+		</cc1:ExtendedRepeater>
+		<table cellSpacing="0" cellPadding="0" border="0" width="600">
+			<tr>
+				<td align="center"><asp:LinkButton id="LinkButtonPrev" runat="server"><< Prev</asp:LinkButton></td>
+				<td align="center"><asp:LinkButton id="LinkbuttonNext" runat="server">Next >></asp:LinkButton></td>
+			<tr>
+			<tr>
+				<td align="center" colspan="2"><asp:LinkButton id="LinkbuttonContinueCheckout" CommandName="pay" runat="server">Continue Checkout &gt;&gt;</asp:LinkButton></td>
+			</tr>
+		</table>
+	</p>
+</div>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,114 @@
+using System;
+using System.Web.UI.WebControls;
+using NPetshop.Domain.Shopping;
+using NPetshop.Presentation;
+using NPetshop.Web.Controls;
+
+namespace NPetshop.Web.UserControls.Shopping
+{
+	/// <summary>
+	///		Summary description for Checkout.
+	/// </summary>
+	public class Checkout : NPetshopUC
+	{
+		protected ExtendedRepeater RepeaterCart;
+		protected LinkButton LinkButtonPrev;
+		protected LinkButton LinkbuttonNext;
+		protected LinkButton LinkbuttonContinueCheckout;
+		private ShoppingCart _cart = null; 
+		private ShoppingController _shoppingController = null;
+
+		public ShoppingController ShoppingController
+		{
+			set { _shoppingController = value; }
+		}
+
+		//Property to show total
+		protected decimal Total
+		{
+			get { return _cart.Total; }
+		}
+
+		private void Page_Load(object sender, EventArgs e)
+		{
+			_cart = this.NPetshopState.CurrentShoppingCart;
+			DataBind();
+		}
+
+		public override void DataBind()
+		{
+			bool empty = ((_cart == null) || _cart.IsEmpty);
+			if (! empty)
+			{
+				RepeaterCart.DataSource = _cart;
+				RepeaterCart.DataBind();
+
+				if (_cart.Lines.IsNextPageAvailable)
+				{
+					LinkbuttonNext.Visible = true;
+				}
+				else
+				{
+					LinkbuttonNext.Visible = false;
+				}
+				if (_cart.Lines.IsPreviousPageAvailable)
+				{
+					LinkButtonPrev.Visible = true;
+				}
+				else
+				{
+					LinkButtonPrev.Visible = false;
+				}
+			}	
+			else
+			{
+				LinkbuttonNext.Visible = false;
+				LinkButtonPrev.Visible = false;
+				LinkbuttonContinueCheckout.Visible = false;
+			}
+		}
+		private void LinkbuttonContinueCheckout_Click(object sender, EventArgs e)
+		{
+			_shoppingController.ContinueCheckout();
+		}
+
+		private void LinkButtonPrev_Click(object sender, EventArgs e)
+		{
+			_cart.Lines.PreviousPage();
+//			this.CurrentController.NextView = WebViews.CART;
+		}
+
+		private void LinkbuttonNext_Click(object sender, EventArgs e)
+		{
+			_cart.Lines.NextPage();
+//			this.CurrentController.NextView = WebViews.CART;
+		}
+
+		#region Web Form Designer generated code
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		///		Required method for Designer support - do not modify
+		///		the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.LinkButtonPrev.Click += new EventHandler(this.LinkButtonPrev_Click);
+			this.LinkbuttonNext.Click += new EventHandler(this.LinkbuttonNext_Click);
+			this.LinkbuttonContinueCheckout.Click += new EventHandler(this.LinkbuttonContinueCheckout_Click);
+			this.Load += new EventHandler(this.Page_Load);
+
+		}
+		#endregion
+
+
+
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Checkout.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,40 @@
+<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SideBar.ascx.cs" Inherits="NPetshop.Web.UserControls.SideBar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
+<table cellspacing="0" cellpadding="0" border="0">
+	<tr>
+		<td valign="top" width="20"><img src="../@Images/space.gif" width="20" height="1"></td>
+		<td bgcolor="#f6e19e" valign="top" width="40"><img src="../@Images/space.gif" width="40" height="1"></td>
+		<td valign="top" bgcolor="#f6e19e" width="132">
+			<asp:LinkButton CssClass="catLink" id="LinkbuttonFish" CommandArgument="FISH" CommandName="showCategory" OnCommand="LinkButton_Command"
+				runat="server">Fish</asp:LinkButton><br>
+			<font class="text">&nbsp;&nbsp;Saltwater<br>
+				&nbsp;&nbsp;Freshwater<p></p>
+			</font>
+			<asp:LinkButton CssClass="catLink" id="Linkbutton1" CommandArgument="DOGS" CommandName="showCategory" OnCommand="LinkButton_Command"
+				runat="server">Dogs</asp:LinkButton><br>
+			<font class="text">&nbsp;&nbsp;Poodle<br>
+				&nbsp;&nbsp;Greyhounds<p></p>
+			</font>
+			<asp:LinkButton CssClass="catLink" id="Linkbutton2" CommandArgument="REPTILES" CommandName="showCategory" OnCommand="LinkButton_Command"
+				runat="server">Reptiles</asp:LinkButton><br>
+			<font class="text">&nbsp;&nbsp;Iguanas<br>
+				&nbsp;&nbsp;Snakes<br>
+				&nbsp;&nbsp;Turtles<p></p>
+			</font>
+			<asp:LinkButton CssClass="catLink" id="Linkbutton3" CommandArgument="CATS" CommandName="showCategory" OnCommand="LinkButton_Command"
+				runat="server">Cats</asp:LinkButton><br>
+			<font class="text">&nbsp;&nbsp;Manx<br>
+				&nbsp;&nbsp;Persian<p></p>
+			</font>
+			<asp:LinkButton CssClass="catLink" id="Linkbutton4" CommandArgument="BIRDS" CommandName="showCategory" OnCommand="LinkButton_Command"
+				runat="server">Birds</asp:LinkButton><br>
+			<font class="text">&nbsp;&nbsp;Eclectus<br>
+				&nbsp;&nbsp;African Greys<br>
+				&nbsp;&nbsp;Macaws </font>
+			<P></P>
+			</FONT><img src="@Images/space.gif" width="1" height="30"><br>
+		</td>
+		<td width="20">
+			<img src="@Images/space.gif" width="20" height="1">
+		</td>
+	</tr>
+</table>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,56 @@
+using System;
+using System.Web.UI.WebControls;
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls
+{
+	/// <summary>
+	/// Description résumée de SideBar.
+	/// </summary>
+	public class SideBar : NPetshopUC
+	{
+		protected LinkButton Linkbutton1;
+		protected LinkButton Linkbutton2;
+		protected LinkButton Linkbutton3;
+		protected LinkButton Linkbutton4;
+		protected LinkButton LinkbuttonFish;
+		private CatalogController _catalogController = null;
+
+		public CatalogController CatalogController
+		{
+			set { _catalogController = value; }
+		}
+
+		private void Page_Load(object sender, EventArgs e)
+		{
+			// Placer ici le code utilisateur pour initialiser la page
+		}
+
+		public void LinkButton_Command(object sender, CommandEventArgs e)
+		{
+			_catalogController.ShowProductsByCategory(e.CommandArgument.ToString());
+		}
+
+		#region Code généré par le Concepteur Web Form
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN : Cet appel est requis par le Concepteur Web Form ASP.NET.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		///		Méthode requise pour la prise en charge du concepteur - ne modifiez pas
+		///		le contenu de cette méthode avec l'éditeur de code.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.Load += new EventHandler(this.Page_Load);
+
+		}
+		#endregion
+
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/SideBar.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,26 @@
+<%@ Register TagPrefix="uc1" TagName="SideBar" Src="SideBar.ascx" %>
+<%@ Control Language="c#" AutoEventWireup="false" Codebehind="StartUp.ascx.cs" Inherits="NPetshop.Web.UserControls.StartUp" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
+<table border="0" class="normal" height="100%" width="100%">
+	<tr>
+		<td width="200" height="200" valign="top">
+			<uc1:SideBar id="SideBar" runat="server"></uc1:SideBar>
+		</td>
+		<td width="800" height="500" valign="top">
+			<map name="mainMap">
+				<area href="javascript:__doPostBack('checkMap','BIRDS')" alt="Birds" coords="408,133,514,239"
+					shape="RECT">
+				<area href="javascript:__doPostBack('checkMap','FISH')" alt="Fish" coords="2,250,108,356"
+					shape="RECT">
+				<area href="javascript:__doPostBack('checkMap','DOGS')" alt="Dogs" coords="108,326,214,432"
+					shape="RECT">
+				<area href="javascript:__doPostBack('checkMap','REPTILES')" alt="Reptiles" coords="348,254,454,358"
+					shape="RECT">
+				<area href="javascript:__doPostBack('checkMap','CATS')" alt="Cats" coords="242,334,348,440"
+					shape="RECT">
+				<area href="javascript:__doPostBack('checkMap','BIRDS')" alt="Birds" coords="280,180,350,250"
+					shape="RECT">
+			</map><img src="@images/splash.jpg" alt="Pet Selection Map" usemap="#mainMap" width="548"
+				height="466" border="0" ID="Img1">
+		</td>
+	</tr>
+</table>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,54 @@
+using System;
+using System.Web.UI.HtmlControls;
+
+using Castle.MVC.Controllers;
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls
+{
+	/// <summary>
+	///	Summary description for Initial.
+	/// </summary>
+	public class StartUp : NPetshopUC
+	{
+		protected HtmlImage Img1;
+		private CatalogController _catalogController = null;
+
+		public CatalogController CatalogController
+		{
+			set { _catalogController = value; }
+		}
+
+		private void Page_Load(object sender, EventArgs e)
+		{
+			if (IsPostBack && this.Request.Form["__EVENTTARGET"]=="checkMap")
+			{
+				this.State.Command = "showCategory";
+				_catalogController.ShowProductsByCategory(Request.Form["__EVENTARGUMENT"]);
+			}
+		}
+
+		#region Web Form Designer generated code
+
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+
+		/// <summary>
+		///		Required method for Designer support - do not modify
+		///		the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.Load += new EventHandler(this.Page_Load);
+
+		}
+
+		#endregion
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/StartUp.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,21 @@
+<%@ Control Language="c#" AutoEventWireup="false" Codebehind="TopBar.ascx.cs" Inherits="NPetshop.Web.UserControls.TopBar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
+<table cellspacing="0" cellpadding="0" width="100%" height="35" background="@Images/top_stripe3.gif"
+	border="0">
+	<tr>
+		<td><img runat="server" src="@Images/space.gif" width="20" height="1" ID="Img1"></td>
+		<td>
+			<font class="menuBlack">
+				<asp:LinkButton CssClass="menuBlack" id="LinkbuttonFish" CommandName="showCategory" CommandArgument="FISH" OnCommand="LinkButton_Command"
+					runat="server">Fish</asp:LinkButton>&nbsp;&nbsp;|&nbsp;
+				<asp:LinkButton CausesValidation="False" CssClass="menuBlack" id="LinkbuttonDogs" CommandName="showCategory"  CommandArgument="DOGS"
+					OnCommand="LinkButton_Command" runat="server">Dogs</asp:LinkButton>&nbsp;&nbsp;|&nbsp;
+				<asp:LinkButton CausesValidation="False" CssClass="menuBlack" id="LinkbuttonReptiles" CommandName="showCategory"  CommandArgument="REPTILES"
+					OnCommand="LinkButton_Command" runat="server">Reptiles</asp:LinkButton>&nbsp;&nbsp;|&nbsp;
+				<asp:LinkButton CausesValidation="False" CssClass="menuBlack" id="LinkbuttonCats" CommandName="showCategory"  CommandArgument="CATS"
+					OnCommand="LinkButton_Command" runat="server">Cats</asp:LinkButton>&nbsp;&nbsp;|&nbsp;
+				<asp:LinkButton CausesValidation="False" CssClass="menuBlack" id="LinkbuttonBirds" CommandName="showCategory"  CommandArgument="BIRDS"
+					OnCommand="LinkButton_Command" runat="server">Birds</asp:LinkButton>
+			</font>
+		</td>
+	</tr>
+</table>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,60 @@
+using System;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using Castle.MVC.Controllers;
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls
+{
+	/// <summary>
+	/// Description résumée de TopBar.
+	/// </summary>
+	public class TopBar : NPetshopUC
+	{
+		protected LinkButton LinkbuttonFish;
+		protected LinkButton LinkbuttonDogs;
+		protected LinkButton LinkbuttonReptiles;
+		protected LinkButton LinkbuttonCats;
+		protected LinkButton LinkbuttonBirds;
+		protected HtmlImage Img1;
+		private CatalogController _catalogController = null;
+
+		public CatalogController CatalogController
+		{
+			set { _catalogController = value; }
+		}
+
+		private void Page_Load(object sender, EventArgs e)
+		{
+			// Placer ici le code utilisateur pour initialiser la page
+		}
+
+		public void LinkButton_Command(object sender, CommandEventArgs e)
+		{
+			_catalogController.ShowProductsByCategory(e.CommandArgument.ToString());
+		}
+
+		#region Code généré par le Concepteur Web Form
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN : Cet appel est requis par le Concepteur Web Form ASP.NET.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		///		Méthode requise pour la prise en charge du concepteur - ne modifiez pas
+		///		le contenu de cette méthode avec l'éditeur de code.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.Load += new System.EventHandler(this.Page_Load);
+
+		}
+		#endregion
+
+
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/TopBar.ascx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/UserControl.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/UserControl.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/UserControl.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/UserControl.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,46 @@
+using System;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+using System.Configuration;
+
+using NPetshop.Presentation;
+
+namespace NPetshop.Web.UserControls
+{
+	/// <summary>
+	/// Summary description for UserControl.
+	/// </summary>
+	public class UserControl : System.Web.UI.UserControl
+	{
+		protected NPetshop.Web.Index currentRouter;
+
+		public UserControl()
+		{
+		}
+
+		/// <summary>
+		/// currentRouter
+		/// </summary>
+		public NPetshop.Web.Index CurrentRouter
+		{
+			get
+			{
+				return currentRouter;
+			}
+			set
+			{
+				this.currentRouter=value;
+			}
+		}
+
+		public string GetNetxtView(string forwardName)
+		{
+			ControllerConfiguration config = (ControllerConfiguration) Context.Items["ControllerConfig"];
+			return config.GetForwardAction( this.CurrentRouter.CurrentView, forwardName);
+		}
+
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,25 @@
+<%@ Register TagPrefix="uc1" TagName="AccountEdition" Src="../../UserControls/Accounts/AccountEdition.ascx" %>
+<%@ Page language="c#" Codebehind="AccountEdition.aspx.cs" AutoEventWireup="false" Inherits="NPetshop.Web.Views.Account.AccountEdition" %>
+<%@ Register TagPrefix="uc1" TagName="Header" Src="../../UserControls/Header.ascx" %>
+<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../UserControls/Footer.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+	<HEAD>
+		<title>AccountEdition</title>
+		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
+		<meta name="CODE_LANGUAGE" Content="C#">
+		<meta name="vs_defaultClientScript" content="JavaScript">
+		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
+		<base href="http://localhost/Npetshop.Web/">
+		<LINK href="@css/Styles.css" type="text/css" rel="stylesheet">			
+	</HEAD>
+	<body MS_POSITIONING="FlowLayout">
+		<form id="Form1" method="post" runat="server">
+			<uc1:Header id="Header" runat="server"></uc1:Header>
+			<div style="HEIGHT:500px">
+				<uc1:AccountEdition id="AccountEdition" runat="server"></uc1:AccountEdition>
+			</div>
+			<uc1:Footer id="Footer" runat="server"></uc1:Footer>
+		</form>
+	</body>
+</HTML>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,45 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+namespace NPetshop.Web.Views.Account
+{
+	/// <summary>
+	/// Summary description for AccountEdition.
+	/// </summary>
+	public class AccountEdition : NPetshopView
+	{
+		private void Page_Load(object sender, System.EventArgs e)
+		{
+			// Put user code to initialize the page here
+		}
+
+		#region Web Form Designer generated code
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		/// Required method for Designer support - do not modify
+		/// the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{    
+			this.Load += new System.EventHandler(this.Page_Load);
+
+		}
+		#endregion
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/AccountEdition.aspx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,25 @@
+<%@ Register TagPrefix="uc1" TagName="Header" Src="../../UserControls/Header.ascx" %>
+<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../UserControls/Footer.ascx" %>
+<%@ Page language="c#" Codebehind="Register.aspx.cs" AutoEventWireup="false" Inherits="NPetshop.Web.Views.Account.Register" %>
+<%@ Register TagPrefix="uc1" TagName="NewAccount" Src="../../UserControls/Accounts/NewAccount.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+	<HEAD>
+		<title>Register</title>
+		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
+		<meta name="CODE_LANGUAGE" Content="C#">
+		<meta name="vs_defaultClientScript" content="JavaScript">
+		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
+		<base href="http://localhost/Npetshop.Web/">
+		<LINK href="@css/Styles.css" type="text/css" rel="stylesheet">			
+	</HEAD>
+	<body MS_POSITIONING="FlowLayout">
+		<form id="Form1" method="post" runat="server">
+			<uc1:Header id="Header" runat="server"></uc1:Header>
+			<div style="HEIGHT:500px">
+				<uc1:NewAccount id="NewAccount" runat="server"></uc1:NewAccount>
+			</div>
+			<uc1:Footer id="Footer" runat="server"></uc1:Footer>
+		</form>
+	</body>
+</HTML>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,45 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+namespace NPetshop.Web.Views.Account
+{
+	/// <summary>
+	/// Summary description for Register.
+	/// </summary>
+	public class Register : NPetshopView
+	{
+		private void Page_Load(object sender, System.EventArgs e)
+		{
+			// Put user code to initialize the page here
+		}
+
+		#region Web Form Designer generated code
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		/// Required method for Designer support - do not modify
+		/// the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{    
+			this.Load += new System.EventHandler(this.Page_Load);
+
+		}
+		#endregion
+	}
+}

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.resx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.resx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.resx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/Register.aspx.resx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 1.3
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">1.3</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1">this is my long string</data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        [base64 mime encoded serialized .NET Framework object]
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        [base64 mime encoded string representing a byte array form of the .NET Framework object]
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used forserialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>1.3</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </data>
+  <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>Private</value>
+  </data>
+  <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </data>
+</root>
\ No newline at end of file

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx Sun Jun 19 07:45:17 2005
@@ -0,0 +1,25 @@
+<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../UserControls/Footer.ascx" %>
+<%@ Register TagPrefix="uc1" TagName="Header" Src="../../UserControls/Header.ascx" %>
+<%@ Page language="c#" Codebehind="SignIn.aspx.cs" AutoEventWireup="false" Inherits="NPetshop.Web.Views.Account.SignIn" %>
+<%@ Register TagPrefix="uc1" TagName="SignIn" Src="../../UserControls/Accounts/SignIn.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+	<HEAD>
+		<title>SignIn</title>
+		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
+		<meta name="CODE_LANGUAGE" Content="C#">
+		<meta name="vs_defaultClientScript" content="JavaScript">
+		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
+		<base href="http://localhost/Npetshop.Web/">
+		<LINK href="@css/Styles.css" type="text/css" rel="stylesheet">
+	</HEAD>
+	<body MS_POSITIONING="FlowLayout">
+		<form id="Form1" method="post" runat="server">
+			<uc1:Header id="Header" runat="server"></uc1:Header>
+			<div style="HEIGHT:500px">
+				<uc1:SignIn id="SignIn" runat="server"></uc1:SignIn>
+			</div>
+			<uc1:Footer id="Footer" runat="server"></uc1:Footer>
+		</form>
+	</body>
+</HTML>

Added: ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx.cs?rev=191346&view=auto
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx.cs (added)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/Views/Account/SignIn.aspx.cs Sun Jun 19 07:45:17 2005
@@ -0,0 +1,45 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+namespace NPetshop.Web.Views.Account
+{
+	/// <summary>
+	/// Summary description for SignIn.
+	/// </summary>
+	public class SignIn : NPetshopView
+	{
+		private void Page_Load(object sender, System.EventArgs e)
+		{
+			// Put user code to initialize the page here
+		}
+
+		#region Web Form Designer generated code
+		override protected void OnInit(EventArgs e)
+		{
+			//
+			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
+			//
+			InitializeComponent();
+			base.OnInit(e);
+		}
+		
+		/// <summary>
+		/// Required method for Designer support - do not modify
+		/// the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{    
+			this.Load += new System.EventHandler(this.Page_Load);
+
+		}
+		#endregion
+	}
+}