<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Suppliers.aspx.vb" Inherits="NovamMonetan01.Suppliers" %>
<!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 runat="server">
<title>Página sin título</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Suppliers<br />
<asp:DropDownList ID="ddlSearchSuppliers" runat="server" Height="16px"
Width="118px">
<asp:ListItem>Cédula</asp:ListItem>
<asp:ListItem>Nombre y ApellidoNombre y ApellidoNombre y Apellido</asp:ListItem>
<asp:ListItem>Teléfono</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="txtSearchSuppliers" runat="server" BorderColor="#009900"
Height="25px" Width="200px"></asp:TextBox>
<asp:ImageButton ID="btnSearchSuppliers" runat="server" Width="22px" />
<br />
<br />
<br />
<asp:GridView ID="grdSuppliers" runat="server" ShowFooter="True"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="supplierId" AutoGenerateColumns="False"
DataSourceID="SqlDataSourceSuppliers" >
<EditRowStyle BackColor="Beige" />
<Columns>
<asp:BoundField HeaderText="supplierId" DataField="supplierId" ReadOnly="True"
SortExpression="supplierId" />
<asp:BoundField DataField="supplierUser" HeaderText="supplierUser"
SortExpression="supplierUser" />
<asp:BoundField DataField="supplierPassword" HeaderText="supplierPassword"
SortExpression="supplierPassword" />
<asp:BoundField DataField="supplierPhone1" HeaderText="supplierPhone1"
SortExpression="supplierPhone1" />
<asp:BoundField DataField="supplierPhone2" HeaderText="supplierPhone2"
SortExpression="supplierPhone2" />
<asp:BoundField DataField="supplierHome" HeaderText="supplierHome"
SortExpression="supplierHome" />
<asp:BoundField DataField="supplierFirstName" HeaderText="supplierFirstName"
SortExpression="supplierFirstName" />
<asp:BoundField DataField="supplierLastname" HeaderText="supplierLastname"
SortExpression="supplierLastname" />
<asp:BoundField DataField="supplierEmail" HeaderText="supplierEmail"
SortExpression="supplierEmail" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSourceSuppliers" runat="server"
ConnectionString="Data Source=LUIS-SERVER\SQL1;Initial Catalog=InvoiceSystem;User ID=SA;Password=Next2011"
DeleteCommand="DELETE FROM [Suppliers] WHERE [supplierId] = @supplierId"
UpdateCommand="UPDATE [Suppliers] SET [supplierUser] = @supplierUser, [supplierPassword] = @supplierPassword, [supplierPhone1] = @supplierPhone1, [supplierPhone2] = @supplierPhone2, [supplierHome] = @supplierHome, [supplierFirstName] = @supplierFirstName, [supplierLastname] = @supplierLastname, [supplierEmail] = @supplierEmail WHERE [supplierId] = @supplierId"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Suppliers]">
<DeleteParameters>
<asp:Parameter Name="supplierId" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="supplierUser" Type="String" />
<asp:Parameter Name="supplierPassword" Type="String" />
<asp:Parameter Name="supplierPhone1" Type="Int32" />
<asp:Parameter Name="supplierPhone2" Type="Int32" />
<asp:Parameter Name="supplierHome" Type="String" />
<asp:Parameter Name="supplierFirstName" Type="String" />
<asp:Parameter Name="supplierLastname" Type="String" />
<asp:Parameter Name="supplierEmail" Type="String" />
<asp:Parameter Name="original_supplierId" Type="Int32" />
<asp:Parameter Name="original_supplierUser" Type="String" />
<asp:Parameter Name="original_supplierPassword" Type="String" />
<asp:Parameter Name="original_supplierPhone1" Type="Int32" />
<asp:Parameter Name="original_supplierPhone2" Type="Int32" />
<asp:Parameter Name="original_supplierHome" Type="String" />
<asp:Parameter Name="original_supplierFirstName" Type="String" />
<asp:Parameter Name="original_supplierLastname" Type="String" />
<asp:Parameter Name="original_supplierEmail" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>
<br />
<asp:Label ID="lblNoRecords" runat="server"></asp:Label>
</div>
</form>
</body>
</html>