|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchComponent.aspx.cs" Inherits="SearchComponent" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>@ΤztΡGjM</title>
</head>
<body>
<form id="form1" runat="server">
<div><h1>@ΤztΡGjM</h1></div>
<div> Framework/Language: <br />
<br />
<asp:DropDownList ID="ddlFrameworkType" runat="server" Height="30px"
Width="160px" Font-Size="Small" AutoPostBack="True" DataSourceID="SqlDSFrameworkType" DataTextField="FRAMEWORK" DataValueField="FRAMEWORK" OnSelectedIndexChanged="ddlFrameworkType_SelectedIndexChanged">
</asp:DropDownList>
<asp:Label ID="lblName" runat="server" BackColor="#C00000" BorderColor="#E0E0E0"
Font-Bold="True" ForeColor="White" Style="z-index: 100; left: 361px;
position: absolute; top: 85px" Text="ComponentName =" Width="144px"></asp:Label>
<asp:Label ID="lblPath" runat="server" BackColor="#C00000" Font-Bold="True" ForeColor="White"
Style="z-index: 101; left: 362px; position: absolute; top: 113px" Text="Path ="
Width="143px"></asp:Label>
<asp:TextBox ID="tbxPath" runat="server" BackColor="Moccasin" Style="z-index: 102;
left: 523px; position: absolute; top: 113px" Width="170px">%</asp:TextBox>
<asp:TextBox ID="tbxComponentName" runat="server" BackColor="Moccasin" Style="z-index: 102;
left: 523px; position: absolute; top: 79px" Width="170px">%</asp:TextBox>
<asp:TreeView ID="TreeViewOfPath" runat="server" Height="457px"
Style="z-index: 103; left: 3px; position: relative; top: 10px" Width="301px" Font-Size="Small" ShowLines="True" OnSelectedNodeChanged="TreeViewOfPath_SelectedNodeChanged" PathSeparator=":">
</asp:TreeView>
<asp:TextBox ID="tbxContributor" runat="server" BackColor="Moccasin" Style="z-index: 109;
left: 523px; position: absolute; top: 141px" Width="170px">%</asp:TextBox>
<asp:Label ID="lblContributor" runat="server" BackColor="#C00000" Font-Bold="True" ForeColor="White"
Style="z-index: 105; left: 362px; position: absolute; top: 140px" Text="Contributor ="
Width="142px"></asp:Label>
<asp:GridView
ID="gvComponentDetails" runat="server" Width="284px" DataSourceID="SqlDSComponentNameQuery" Height="392px" Font-Size="Small" style="z-index: 106; left: 358px; position: absolute; top: 225px" AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="PATH" OnSelectedIndexChanged="gvComponentDetails_SelectedIndexChanged" AutoGenerateColumns="False">
<FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="NAME" HeaderText="NAME" SortExpression="NAME" />
<asp:BoundField DataField="CONTRIBUTOR" HeaderText="CONTRIBUTOR" SortExpression="CONTRIBUTOR" />
<asp:BoundField DataField="FRAMEWORK" HeaderText="FRAMEWORK" SortExpression="FRAMEWORK" />
<asp:BoundField DataField="PATH" HeaderText="PATH" SortExpression="PATH" />
<asp:BoundField DataField="VERSION" HeaderText="VERSION" SortExpression="VERSION" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDSComponentNameQuery" runat="server" ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>"
SelectCommand="SELECT DISTINCT [NAME], [CONTRIBUTOR], [FRAMEWORK], [PATH], [VERSION] FROM [COMPONENT] WHERE (([FRAMEWORK] = @FRAMEWORK) AND ([PATH] LIKE '%' + @PATH + '%') AND ([CONTRIBUTOR] LIKE '%' + @CONTRIBUTOR + '%') AND ([NAME] LIKE '%' + @NAME + '%') AND ([STATUS] = @STATUS)) ORDER BY [NAME]">
<SelectParameters>
<asp:ControlParameter ControlID="ddlFrameworkType" Name="FRAMEWORK" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="tbxPath" Name="PATH" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="tbxContributor" Name="CONTRIBUTOR" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="tbxComponentName" Name="NAME" PropertyName="Text"
Type="String" />
<asp:Parameter DefaultValue="P" Name="STATUS" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSContributorQuery" runat="server"
ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>" SelectCommand="SELECT DISTINCT [NAME], [FRAMEWORK], [CONTRIBUTOR], [VERSION], [DL_LINK], [PATH] FROM [COMPONENT] WHERE (([CONTRIBUTOR] = @CONTRIBUTOR) AND ([FRAMEWORK] = @FRAMEWORK))">
<SelectParameters>
<asp:ControlParameter ControlID="tbxContributor" Name="CONTRIBUTOR" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="ddlFrameworkType" Name="FRAMEWORK" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:Button ID="btnFilter" runat="server" Height="33px" OnClick="btnFilter_Click"
Style="z-index: 107; left: 361px; position: absolute; top: 178px" Text="Filter"
Width="124px" />
<asp:SqlDataSource
ID="SqlDSPathQuery" runat="server" ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>"
SelectCommand="SELECT DISTINCT [NAME], [CONTRIBUTOR], [PATH], [FRAMEWORK], [VERSION], [DL_LINK] FROM [COMPONENT] WHERE (([PATH] LIKE '%' + @PATH + '%') AND ([FRAMEWORK] = @FRAMEWORK))">
<SelectParameters>
<asp:ControlParameter ControlID="tbxPath" Name="PATH" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="ddlFrameworkType" Name="FRAMEWORK" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSFullTextQuery" runat="server" ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>" SelectCommand="SELECT DISTINCT [NAME], [PATH], [VERSION], [FRAMEWORK], [CONTRIBUTOR], [DL_LINK] FROM [COMPONENT] WHERE ([FRAMEWORK] = @FRAMEWORK)">
<SelectParameters>
<asp:ControlParameter ControlID="ddlFrameworkType" Name="FRAMEWORK" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSFrameworkType" runat="server" ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>"
SelectCommand="SELECT [FRAMEWORK] FROM [FRAMEWORK_TYPE] ORDER BY [FRAMEWORK]"></asp:SqlDataSource>
</form>
</body>
</html>
|