<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ClientDataMaintenance.aspx.vb"
Inherits="GGIADeploy.ClientDataMaintenance" %>
<%@ Register TagPrefix="uc" TagName="theNav" Src="TopNav.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>GGIA Client Data Maintenance</title>
<meta content="JavaScript" name="vs_defaultClientScript"/>
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
<link href="../Styles.css" type="text/css" rel="stylesheet" />
</head>
<body id="theBodyTag" runat="server">
<form id = "form1" runat="server" defaultfocus = "txtlastname">
<asp:SqlDataSource ID="SqlDataSource" runat="server" SelectCommand="Select * FROM ggia_Clients.*,ggia_Organizations INNER JOIN ggia_Logins ON ggia_Organization.OrganationID = ggia_Logins.OrgID RIGHT OUTER JOIN ggia_Clients ON ggia_Login.UserName = ggia_Clients.vchrEditedBy
WHERE (ggia_Clients.vchrEditedBy = Session(username.Text) AND RecordStatus = 'DRAFT') or (RecordStatus = 'PERMIMENT') ORDERED BY 'SortExpression'"
ConnectionString="<%$ ConnectionStrings:GGIAConnectionString %>"></asp:SqlDataSource>
<uc:theNav ID="TopNav" runat="server"></uc:theNav>
<br />
<asp:Label ID="lblHeader" runat="server" Font-Bold="True" Height="31px" Width="465px"
Font-Names="Arial" CssClass="Header" Font-Size="Large" ForeColor="Navy">GGIA ClientData Maintenance</asp:Label>
<br /><br />
<asp:LinkButton ID="lbAddNew" runat="server" Font-Bold="True" Font-Names="Arial">Add New
</asp:LinkButton>
<asp:LinkButton ID="lbSearch" runat="server" Font-Bold="True" Font-Names="Arial"
CommandName="SubSearchClick">Search</asp:LinkButton>
<asp:LinkButton ID="lbShowAll" runat="server" Visible="False" Font-Bold="True" Font-Names="Arial">Show All</asp:LinkButton>
<br /><br />
<asp:Label ID="lblFind_LastName" runat="server" Visible="False" ForeColor="Navy"
Font-Bold="True" Height="20px" Width="72px" Font-Names="Arial"> Last Name:</asp:Label>
<asp:TextBox ID="txtFind_LastName" runat="server" Visible="False" Width="120px" BorderColor="DimGray"
BorderStyle="Solid" BorderWidth="1px" Height="20px"></asp:TextBox>
<asp:DropDownList ID="cboFilter" runat="server" Visible="False" Height="20px">
<asp:ListItem Value="starts">Starts with</asp:ListItem>
<asp:ListItem Value="contains">Contains</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="lblFind_FirstName" runat="server" Visible="False" ForeColor="Navy"
Font-Bold="True" Height="20px" Width="125px" Font-Names="Arial">(And) First Name:</asp:Label>
<asp:TextBox ID="txtFind_FirstName" runat="server" Visible="False" Width="120px"
BorderColor="DimGray" BorderStyle="Solid" BorderWidth="1px" Height="20px"></asp:TextBox>
<asp:Button ID="cmdFind" runat="server" Visible="False" Font-Bold="True" Height="24px"
Width="64px" Font-Names="Arial" Text="Find"></asp:Button>
<asp:Button ID="cmdCancel" runat="server" Visible="False" Font-Bold="True" Width="72px" Height="24px"
Font-Names="Arial" Text="Cancel"></asp:Button>
<br />
<asp:Label ID="lblFeedback" runat="server" Font-Bold="True" Height="16px" Width="721px"
Font-Names="Arial" Font-Size="Medium"></asp:Label>
<br />
<asp:DataGrid runat="server" ID="dgClients" ForeColor="#333333" Width="808px" AllowSorting="True"
AllowPaging="True" PageSize="15" CellPadding="4" AutoGenerateColumns="False"
DataSourceID="SqlDataSource" GridLines="None">
<AlternatingItemStyle BackColor="White" ForeColor="#284775"></AlternatingItemStyle>
<ItemStyle BackColor="#F7F6F3" ForeColor="#333333"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#5D7B9D"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn Text="Edit" DataNavigateUrlFormatString="javascript:Edit({0});" DataNavigateUrlField="ClientID" />
<asp:EditCommandColumn ButtonType="PushButton" EditText="View"></asp:EditCommandColumn>
<asp:BoundColumn DataField="ClientID" SortExpression="ClientID" HeaderText="ID">
</asp:BoundColumn>
<asp:BoundColumn DataField="ClientLastName" SortExpression="ClientLastName" HeaderText="Last">
<ItemStyle Width="100px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ClientFirstName" SortExpression="ClientFirstName" HeaderText="First">
</asp:BoundColumn>
<asp:BoundColumn DataField="ClientCity" SortExpression="ClientCity" HeaderText="City">
</asp:BoundColumn>
<asp:BoundColumn DataField="ClientChurch" SortExpression="ClientChurch" HeaderText="Church">
</asp:BoundColumn>
<asp:BoundColumn DataField="DateAdded" SortExpression="DateAdded" HeaderText="Added"
DataFormatString="{0:d}"></asp:BoundColumn>
<asp:BoundColumn DataField="vchrReasonAdded" SortExpression="vchrReasonAdded" HeaderText="Reason">
</asp:BoundColumn>
<asp:ButtonColumn Text="Delete" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
</Columns>
<PagerStyle NextPageText="Next" PrevPageText="Previous" ForeColor="White" Position="TopAndBottom"
BackColor="#284775" HorizontalAlign="Center"></PagerStyle>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditItemStyle BackColor="#999999" />
<SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
</asp:DataGrid>
</form>
</body>
</html>
|