<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SingleBusinessObject.aspx.cs" Inherits="SingleBusinessObject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Testowanie obiektu biznesowego</title>
	<link href="chapterStyles.css" type="text/css" rel="stylesheet" />
	<style type="text/css">
		.dataValues { font-weight: bold; }
		.singleBook { border-top: 1pt solid #E7E7E7;
		              border-left: 1pt solid #E7E7E7;
		              border-bottom: 1pt solid #D2D2D2;
		              border-right: 1pt solid #D2D2D2;
		              padding: 1em;	
		              margin: 1em;              
		              background: #FFFFE0;		              
		               }
		 .singleBookTitle {
                    vertical-align: middle;
                    text-align: center;
		              background: #FFFFCC;
		              }
		  .entireForm {
		            border: 2pt solid #D7D7D7; 
		  }
		  .actionBar { background: #FFFFCC; margin-top: 0.5em; padding: 0.5em; border: 1pt solid #E7E7E7;}
	</style>
</head>
<body>
	<form id="form1" runat="server">
		<div id="container">
			<h1>Testowanie obiektu biznesowego</h1>
			<p>
			W przykładzie pokazano, jak używać obiektu biznesowego
			</p>
         <asp:DetailsView ID="frmvBooks" runat="server" DataSourceID="dsBusiness" 
               CssClass="entireForm" DataKeyNames="Id"
               AutoGenerateRows="false"
               AutoGenerateEditButton="true" >

            <Fields>
               <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="true"/>
               <asp:BoundField DataField="Name" HeaderText="Nazwa"/>
            </Fields>

            <HeaderStyle CssClass="singleBookTitle" />            
            <EmptyDataTemplate>
               Wydawcy nie odnaleziono
            </EmptyDataTemplate>
         </asp:DetailsView>

	</div>
<asp:ObjectDataSource ID="dsBusiness" runat="server"
	 TypeName="ThreeLayer.Business.PublisherBO"  
	 SelectMethod="CreatePublisher" 
	 UpdateMethod="UpdatePublisher"  
	 DataObjectTypeName="ThreeLayer.Business.PublisherBO">
	 
   <SelectParameters>
      <asp:QueryStringParameter Name="pubId" QueryStringField="id" />
   </SelectParameters>

</asp:ObjectDataSource>
	                

	</form>
</body>
</html>


