<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NetResLedgManager.aspx.cs" Inherits="ResMangSys.NetResLedgManager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" 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>台账管理</title>
    <link href="Styles/tableStyle.css" rel="stylesheet" type="text/css" />
    <link href="Styles/NetResLedgManager.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center><h2>网络资源台账管理</h2></center>
    <hr />
        <asp:ObjectDataSource ID="ODSNetResLedg" runat="server"  OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter" >
        </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" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    <div>
    <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 style="text-align:center">
    <label id="lab1" for="baStaNametxt">基站名称：</label><asp:TextBox ID="baStaNametxt" 
            Width="260" runat="server" AutoPostBack="true"></asp:TextBox>
    </div>
    </div>
    <div id="content">
    <asp:ListView ID="LVRepNetResLedg" runat="server">

        <EmptyDataTemplate>
            <table id="Table1" runat="server" 
                style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                <tr>
                    <td>
                        所要查询的数据不存在。</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr class="tr">
                <td>
                    <a href="NetResLedgDetail.aspx?action=edit&bastaid=<%#Eval("BaStaId") %>" target="_blank">编辑</a>
                </td>
                <td>
                    <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("IronTowType")%>
                </td>
                <td>
                    <%#Eval("IsSelfCreaTrans") %>
                </td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table id="Table2" runat="server">
                <tr id="Tr1" runat="server">
                    <td id="Td1" runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="1" class="table" >
                            <tr id="Tr2" runat="server" class="tr">
                                <th runat="server">
                                    </th>
                                <th id="Th1" runat="server">
                                    基站编号</th>
                                <th id="Th2" runat="server">
                                    基站名称</th>
                                <th id="Th3" runat="server">
                                    基站等级</th>
                                <th id="Th4" runat="server">
                                    归属地</th>
                                <th id="Th5" runat="server">
                                    基站归属期别</th>
                                <th id="Th6" runat="server">
                                    基站设备情况</th>
                                <th id="Th7" runat="server">
                                    机房类型</th>
                                <th id="Th8" runat="server">
                                    基站空调厂家</th>
                                <th id="Th9" runat="server">
                                    铁塔类型</th>
                                <th id="Th10" runat="server">
                                    是否为自建变压器</th>
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="Tr3" runat="server">
                    <td id="Td2" runat="server" 
                            style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                            <asp:DataPager ID="DataPager1" runat="server">
                                <Fields>
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="false" 
                                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                    <asp:NumericPagerField />
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="false" 
                                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                </Fields>
                            </asp:DataPager>
                     </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
</div>
    </div>
    </form>
</body>
</html>
