<%@ Page Title="维修查询汇总" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="RepRecordQuery.aspx.cs" Inherits="ResMangSys.RepRecordQuery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="Scripts/RepRecordQuery.js" type="text/javascript"></script>
    <link href="Styles/tableStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<div id="heard">
<center><h2>维修记录查询</h2></center>
<hr />
    <asp:ObjectDataSource ID="ODSRepRegistByTimeLocal" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByTimeLocal" 
        TypeName="ResMangSys.DAL.RepRegistTableAdapters.T_RepRegistTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtStarTime" Name="startime" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="txtEndTime" Name="endtime" PropertyName="Text" 
                Type="String" />
            <asp:ControlParameter ControlID="ddlAttrLocal" Name="attrlocal" 
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSRepRegistByTimeBaStaId" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetDataByTimeBaStaId" 
        TypeName="ResMangSys.DAL.RepRegistTableAdapters.T_RepRegistTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtStarTime" Name="startime" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="txtEndTime" Name="endtime" PropertyName="Text" 
                Type="String" />
            <asp:ControlParameter ControlID="ddlBaStaId" Name="bastaid" 
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    <div class="condiation">
        <asp:TextBox ID="txtStarTime" time="time" runat="server" star="star" CssClass="Wdate" style="color:Gray"  Text="请选择时间"></asp:TextBox><asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtStarTime" Operator="NotEqual" ValidationGroup="Time" ValueToCompare="请选择时间"></asp:CompareValidator><asp:Label ID="Label1" runat="server"
            Text="=<>="></asp:Label><asp:TextBox ID="txtEndTime" time="time" runat="server" end="end" CssClass="Wdate" style="color:Gray" Text="请选择时间"></asp:TextBox><asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtEndTime" Operator="NotEqual" ValidationGroup="Time" ValueToCompare="请选择时间"></asp:CompareValidator><asp:CompareValidator
                ID="CompareValidator3" runat="server" ErrorMessage="前者要小于后者" ControlToValidate="txtEndTime" ValidationGroup="Time" ControlToCompare="txtStarTime" Operator="GreaterThan" Type="Date"></asp:CompareValidator>
    </div>

    <div class="condiation">
<asp:DropDownList ID="ddlAttrLocal" runat="server" Local="local" AppendDataBoundItems="True">
    <asp:ListItem>--归属地--</asp:ListItem>
    </asp:DropDownList>&nbsp&nbsp&nbsp
<asp:DropDownList ID="ddlBaStaId" runat="server" BaStaId="bastaid" AppendDataBoundItems="True">
    <asp:ListItem>--基站编号--</asp:ListItem>
    </asp:DropDownList>
    </div>

    <div class="condiation">
        <asp:Button ID="btnQuery" ValidationGroup="Time" runat="server" Text="查询" />&nbsp&nbsp&nbsp&nbsp<a id="a1" target="_blank" >单站维护费用TOP30</a>
    </div>
</div>
<hr />
<div id="content">
               <center><h3>维修登记表&nbsp&nbsp&nbsp&nbsp<a id="alink" >导出EXCEL表</a></h3></center>
               <center>总条数：<asp:Literal ID="ltCount" Text="0" runat="server"></asp:Literal>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;总金额(元)：<asp:Literal
        ID="ltMoney" Text="0" runat="server"></asp:Literal></center>
    <asp:ListView ID="LVRepRegist" runat="server" DataKeyNames="Id"  EnableModelValidation="True">

        <EmptyDataTemplate>
            <table 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>
                    <%# Eval("AttrLocal") %>
                </td>
                <td>
                    <%# Eval("RepAssName") %>
                </td>
                <td>
                    <%# Eval("AssId") %>
                </td>
                <td>
                    <%# Eval("SpecModel") %>
                </td>
                <td>
                    <%# Eval("RepCount") %>
                </td>
                <td>
                    <%# Eval("RepContent") %>
                </td>
                <td>
                    <%# Eval("BaStaName") %>
                </td>
                <td>
                    <%# Eval("ActRepCost") %>
                </td>
                <td>
                    <%# Eval("Charge") %>
                </td>
                <td>
                    <%# Eval("SubPayDate") %>
                </td>
                <td>
                    <%# Eval("CostSort") %>
                </td>
                <td>
                    <%# Eval("MonProp") %>
                </td>
                <td>
                    <%# Eval("BaStaId") %>
                </td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="1" class="table">
                            <tr runat="server" class="tr">
                                <th runat="server">
                                    归属地</th>
                                <th runat="server">
                                    维修资产名称</th>
                                <th runat="server">
                                    资产编号</th>
                                <th runat="server">
                                    规格型号</th>
                                <th runat="server">
                                    维修数量</th>
                                <th runat="server">
                                    维修具体内容</th>
                                <th runat="server">
                                    基站名称</th>
                                <th runat="server">
                                    实际维修金额</th>
                                <th runat="server">
                                    资产责任人</th>
                                <th runat="server">
                                    提交给财务付款资料日期</th>
                                <th runat="server">
                                    费用分类</th>
                                <th runat="server">
                                    资金属性</th>
                                <th runat="server">
                                    基站编号</th>
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td id="Td1" 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>
