download SearchComponent.aspx
Language: NonCode
LOC: 0
Project Info
common-component-mng-sys - Common Componen...e ...(common-component-mng-sys)
Server: Google
Type: svn
...on‑component‑mng‑sys\trunk\
   AddNewComponent.aspx
   AddNewComponent.aspx.cs
   ADLogin.aspx
   ADLogin.aspx.cs
   ...SearchActionChoice.aspx
   ...rchActionChoice.aspx.cs
   CathayBkRSS.xml
   Comment.aspx
   Comment.aspx.cs
   ...n-component-mng-sys.sln
   ...onent-mng-sys_Model.tgs
   ComponentsList.html
   Default.aspx
   Default.aspx.cs
   Downloading.aspx
   Downloading.aspx.cs
   ErrorPage.htm
   Global.asax
   Logon.aspx
   Logon.aspx.cs
   ManagerMain.aspx
   ManagerMain.aspx.cs
   MasterPage.master
   MasterPage.master.cs
   ReviseComponent.aspx
   ReviseComponent.aspx.cs
   SearchComponent.aspx
   SearchComponent.aspx.cs
   SearchResult.aspx
   SearchResult.aspx.cs
   StatisticsReport.aspx
   StatisticsReport.aspx.cs
   ...oDownloadComponent.aspx
   ...wnloadComponent.aspx.cs
   web.config
   Web.sitemap
   ...ejectReasonAndMail.aspx
   ...ctReasonAndMail.aspx.cs

<%@ 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>        &nbsp; Framework/Language:&nbsp;<br />
        &nbsp; &nbsp;
        &nbsp; &nbsp;<br />
        &nbsp;<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>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
        <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>
        &nbsp; &nbsp; &nbsp;&nbsp;<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>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <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" />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<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>
        &nbsp; &nbsp;&nbsp;<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>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp;
    
        <asp:SqlDataSource ID="SqlDSFrameworkType" runat="server" ConnectionString="<%$ ConnectionStrings:CCSConnectionString %>"
            SelectCommand="SELECT [FRAMEWORK] FROM [FRAMEWORK_TYPE] ORDER BY [FRAMEWORK]"></asp:SqlDataSource>
    </form>
</body>
</html>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us