<%@ Page Title="单站查询" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="SingleBaStaQuery.aspx.cs" Inherits="ResMangSys.SingleBaStaQuery" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Styles/tableStyle.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="Scripts/SingleBaStaQuery.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
<div id="heard">
<center><h2>单站查询</h2></center>
<hr />
</div>
        <asp:ObjectDataSource ID="ODSNetResLedg" runat="server"  OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter" >
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ODSNetResLedgById" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetBaStaDataById" 
            TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter"> 
            <SelectParameters>
                <asp:ControlParameter ControlID="baStaIdddl" Name="id" 
                    PropertyName="SelectedValue" Type="Int64" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ODSNetResLedgByName" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetBaStaDataByName" 
            TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
            <SelectParameters>
                <asp:ControlParameter ControlID="baStaNametxt" Name="bastaname" 
                    PropertyName="Text" DefaultValue="N0N" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ODSNetResChgByBaStaId" runat="server" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetNetResChgDataByBaStaId" 
            TypeName="ResMangSys.DAL.NetResChgTableAdapters.T_NetResChgTableAdapter">
            <SelectParameters>
                <asp:ControlParameter ControlID="baStaIdddl" Name="bastaid" 
                    PropertyName="SelectedItem.Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ODSNetResChgByBaStaName" runat="server" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetNetResChgDataByBaStaName" 
            TypeName="ResMangSys.DAL.NetResChgTableAdapters.T_NetResChgTableAdapter">
            <SelectParameters>
                <asp:ControlParameter ControlID="baStaNametxt" Name="bastaname" 
                    PropertyName="Text" DefaultValue="N0N" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" >
    </asp:ToolkitScriptManager>
    <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
        TargetControlID="baStaNametxt" ServicePath="~/GetBaStaNames.svc" ServiceMethod="GetBaStaNameList" 
        MinimumPrefixLength="2" CompletionInterval="1000" EnableCaching="true" CompletionSetCount="10"
        CompletionListCssClass="autocomplete_listItem" 
        CompletionListItemCssClass="autocomplete_completionListElement" 
        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
        UseContextKey="True">
    </asp:AutoCompleteExtender>
    <div class="condiation">
    <label id="lab1" for="baStaNametxt">基站名称：</label><asp:TextBox ID="baStaNametxt" 
            Width="260" runat="server" AutoPostBack="true"></asp:TextBox>&nbsp&nbsp&nbsp
    <label id="lab2" for="baStaIdddl">基站编号：</label>
    <asp:DropDownList ID="baStaIdddl" runat="server" AppendDataBoundItems="True" 
            DataSourceID="ODSNetResLedg" DataTextField="BaStaId" DataValueField="Id">
         <asp:ListItem Value="-1">--请选择--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp<asp:Button ID="Button1" runat="server" Text="查询" />
    </div>
    <hr />
    <div id="content">
        <asp:Repeater ID="RepNetResLedg" runat="server">
        <HeaderTemplate><table border="1" class="table"><caption>网络资源台账</caption><tr class="tr"><th>基站编号</th><th>基站名称</th><th>基站等级</th><th>归属地</th><th>基站归属期别</th><th>基站设备情况</th><th>机房类型</th><th>基站空调厂家</th><th>是否为自建变压器</th></tr></HeaderTemplate>
        <ItemTemplate><tr class="tr"><td id="tdBaStaId"><a href="NetResLedgDetail.aspx?action=readonly&bastaid=<%#Eval("BaStaId") %>" target="_blank" ><%#Eval("BaStaId") %></a></td><td><%#Eval("BaStaName") %></td><td><%#Eval("BaStaLevel") %></td><td><%#Eval("AttrLocal") %></td><td><%#Eval("AttrOfOther") %></td><td><%#Eval("EquiSitu") %></td><td><%#Eval("EngRomType") %></td><td><%#Eval("AirCondFact") %></td><td><%#Eval("IsSelfCreaTrans") %></td></tr></ItemTemplate>
        <FooterTemplate></table></FooterTemplate>
        </asp:Repeater>
        <hr style="width:100%;" />
        <asp:Repeater ID="RepNetResChg" runat="server">
        <HeaderTemplate><table border="1" class="table"><caption>网络资源变更明细&nbsp&nbsp&nbsp&nbsp<a id="alink" >导出EXCEL表</a></caption><tr class="tr"><th>基站编号</th><th>基站名称</th><th>变更设备类别</th><th>变更记录</th></tr></HeaderTemplate>
        <ItemTemplate><tr class="tr"><td><%#Eval("BaStaId") %></td><td><%#Eval("BaStaName") %></td><td><%#Eval("ChgEquiCate") %></td><td><%#Eval("ChgRecord") %></td></tr></ItemTemplate>
        <FooterTemplate></table></FooterTemplate>
        </asp:Repeater>
    </div>
</div>

</asp:Content>
