<%@ Page Title="组合查询" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="CombineBaStaQuery.aspx.cs" Inherits="ResMangSys.CombineBaStaQuery" %>
<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/CombineBaStaQuery.js" type="text/javascript"></script>
<style type="text/css">
.left
{
	float:left;
	}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<div>
<center><h2>高级查询</h2><p><a id="a1" href="NetResLedg.ashx?sign=7" >资源台账全部导出EXCEL表</a></p></center>
<hr />
</div>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalAir" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByLocalAir" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlAirCondFact" Name="aircondfact" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalEngRom" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByLocalEngRom" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlEngRomType" Name="engromtype" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalEqui" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByLocalEqui" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlEquiSitu" Name="equisitu" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalIronTow" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByLocalIronTow" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlIronTowType" Name="irontowtype" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalLevel" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByLocalLevel" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlBaStaLevel" Name="bastalevel" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByLocalTrans" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByLocalTrans" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
            <asp:ControlParameter ControlID="ddlIsSelfCreaTrans" Name="isselfcreatrans" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSNetResLedgByAttrLocal" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByAttrLocal" 
        TypeName="ResMangSys.DAL.NetResLedgTableAdapters.T_NetResLedgTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedItem.Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
<div class="condiation">
    <asp:DropDownList ID="ddlBaStaLevel" ddlgroup="true" Level="level" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--基站等级--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
    
    
    <asp:DropDownList ID="ddlEquiSitu" ddlgroup="true" Equi="equi" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--设备情况--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
    
    <asp:DropDownList ID="ddlEngRomType" ddlgroup="true" EngRom="engrom" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--机房类型--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
    
    <asp:DropDownList ID="ddlAirCondFact" ddlgroup="true" AirCond="aircond" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--空调厂家--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
    
    <asp:DropDownList ID="ddlIronTowType" ddlgroup="true" IronTow="irontow" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--铁塔类型--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
    
    <asp:DropDownList ID="ddlIsSelfCreaTrans" ddlgroup="true" Trans="trans" runat="server" AppendDataBoundItems="True">
    <asp:ListItem>--自建变压器--</asp:ListItem>
    </asp:DropDownList>
    
    </div>
    <div class="condiation">
    <asp:DropDownList ID="ddlAttrLocal" runat="server" Local="local" AppendDataBoundItems="True" ControlToValidate="ddlAttrLocal">
    <asp:ListItem>--归属地--</asp:ListItem>
    </asp:DropDownList>
        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="*" 
            ControlToValidate="ddlAttrLocal" ValueToCompare="--归属地--" Operator="NotEqual"></asp:CompareValidator>

        &nbsp&nbsp&nbsp<asp:Button ID="btnQuery" runat="server" Text="查询" />
</div>
<hr />


<div id="content">
               <center><h3>网络资源台账&nbsp&nbsp&nbsp&nbsp<a id="alink" >导出EXCEL表</a></h3></center>
    <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 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("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 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="True" 
                                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                    <asp:NumericPagerField />
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                </Fields>
                            </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
</div>
</div>

</asp:Content>
