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

<!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>
    <style type="text/css">
    #content
    {
    	position:absolute; top:15%; margin-top:2px; margin-bottom:2px; text-align:center;
    	}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:100%;">
    <center><h2>维修备查登记管理</h2></center>
    <hr />
        <asp:ObjectDataSource ID="ODSRepRegist" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
            TypeName="ResMangSys.DAL.RepRegistTableAdapters.T_RepRegistTableAdapter" 
            UpdateMethod="Update">
            <UpdateParameters>
                <asp:Parameter Name="AttrLocal" Type="String" />
                <asp:Parameter Name="RepAssName" Type="String" />
                <asp:Parameter Name="AssId" Type="String" />
                <asp:Parameter Name="SpecModel" Type="String" />
                <asp:Parameter Name="RepCount" Type="Int32" />
                <asp:Parameter Name="RepContent" Type="String" />
                <asp:Parameter Name="BaStaName" Type="String" />
                <asp:Parameter Name="ActRepCost" Type="Double" />
                <asp:Parameter Name="Charge" Type="String" />
                <asp:Parameter Name="SubPayDate" Type="DateTime" />
                <asp:Parameter Name="CostSort" Type="String" />
                <asp:Parameter Name="MonProp" Type="String" />
                <asp:Parameter Name="BaStaId" Type="String" />
                <asp:Parameter Name="Original_Id" Type="Int64" />
            </UpdateParameters>
        </asp:ObjectDataSource>
        <div id="content">
            <asp:ListView ID="LVRepRegist" runat="server" DataKeyNames="Id" 
                DataSourceID="ODSRepRegist" EnableModelValidation="True">
                <AlternatingItemTemplate>
                    <tr style="background-color:#FFF8DC;">
                        <td>
                            <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
                        </td>
                        <td>
                            <asp:Label ID="AttrLocalLabel" runat="server" Text='<%# Eval("AttrLocal") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepAssNameLabel" runat="server" 
                                Text='<%# Eval("RepAssName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="AssIdLabel" runat="server" Text='<%# Eval("AssId") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SpecModelLabel" runat="server" Text='<%# Eval("SpecModel") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepCountLabel" runat="server" Text='<%# Eval("RepCount") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepContentLabel" runat="server" 
                                Text='<%# Eval("RepContent") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ActRepCostLabel" runat="server" 
                                Text='<%# Eval("ActRepCost") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ChargeLabel" runat="server" Text='<%# Eval("Charge") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SubPayDateLabel" runat="server" 
                                Text='<%# Eval("SubPayDate") %>' />
                        </td>
                        <td>
                            <asp:Label ID="CostSortLabel" runat="server" Text='<%# Eval("CostSort") %>' />
                        </td>
                        <td>
                            <asp:Label ID="MonPropLabel" runat="server" Text='<%# Eval("MonProp") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <EditItemTemplate>
                    <tr style="background-color:#008A8C;color: #FFFFFF;">
                        <td>
                            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="更新" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="取消" />
                        </td>
                        <td>
                            <asp:TextBox ID="AttrLocalTextBox" runat="server" 
                                Text='<%# Bind("AttrLocal") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepAssNameTextBox" runat="server" 
                                Text='<%# Bind("RepAssName") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="AssIdTextBox" runat="server" Text='<%# Bind("AssId") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="SpecModelTextBox" runat="server" 
                                Text='<%# Bind("SpecModel") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepCountTextBox" runat="server" 
                                Text='<%# Bind("RepCount") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepContentTextBox" runat="server" 
                                Text='<%# Bind("RepContent") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="BaStaNameTextBox" runat="server" 
                                Text='<%# Bind("BaStaName") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="ActRepCostTextBox" runat="server" 
                                Text='<%# Bind("ActRepCost") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="ChargeTextBox" runat="server" Text='<%# Bind("Charge") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="SubPayDateTextBox" runat="server" 
                                Text='<%# Bind("SubPayDate") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="CostSortTextBox" runat="server" 
                                Text='<%# Bind("CostSort") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="MonPropTextBox" runat="server" Text='<%# Bind("MonProp") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="BaStaIdTextBox" runat="server" Text='<%# Bind("BaStaId") %>' />
                        </td>
                    </tr>
                </EditItemTemplate>
                <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>
                <InsertItemTemplate>
                    <tr style="">
                        <td>
                            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="插入" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="清除" />
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:TextBox ID="AttrLocalTextBox" runat="server" 
                                Text='<%# Bind("AttrLocal") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepAssNameTextBox" runat="server" 
                                Text='<%# Bind("RepAssName") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="AssIdTextBox" runat="server" Text='<%# Bind("AssId") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="SpecModelTextBox" runat="server" 
                                Text='<%# Bind("SpecModel") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepCountTextBox" runat="server" 
                                Text='<%# Bind("RepCount") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="RepContentTextBox" runat="server" 
                                Text='<%# Bind("RepContent") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="BaStaNameTextBox" runat="server" 
                                Text='<%# Bind("BaStaName") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="ActRepCostTextBox" runat="server" 
                                Text='<%# Bind("ActRepCost") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="ChargeTextBox" runat="server" Text='<%# Bind("Charge") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="SubPayDateTextBox" runat="server" 
                                Text='<%# Bind("SubPayDate") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="CostSortTextBox" runat="server" 
                                Text='<%# Bind("CostSort") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="MonPropTextBox" runat="server" Text='<%# Bind("MonProp") %>' />
                        </td>
                        <td>
                            <asp:TextBox ID="BaStaIdTextBox" runat="server" Text='<%# Bind("BaStaId") %>' />
                        </td>
                    </tr>
                </InsertItemTemplate>
                <ItemTemplate>
                    <tr style="background-color:#DCDCDC;color: #000000;">
                        <td>
                            <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
                        </td>
                        <td>
                            <asp:Label ID="AttrLocalLabel" runat="server" Text='<%# Eval("AttrLocal") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepAssNameLabel" runat="server" 
                                Text='<%# Eval("RepAssName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="AssIdLabel" runat="server" Text='<%# Eval("AssId") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SpecModelLabel" runat="server" Text='<%# Eval("SpecModel") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepCountLabel" runat="server" Text='<%# Eval("RepCount") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepContentLabel" runat="server" 
                                Text='<%# Eval("RepContent") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ActRepCostLabel" runat="server" 
                                Text='<%# Eval("ActRepCost") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ChargeLabel" runat="server" Text='<%# Eval("Charge") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SubPayDateLabel" runat="server" 
                                Text='<%# Eval("SubPayDate") %>' />
                        </td>
                        <td>
                            <asp:Label ID="CostSortLabel" runat="server" Text='<%# Eval("CostSort") %>' />
                        </td>
                        <td>
                            <asp:Label ID="MonPropLabel" runat="server" Text='<%# Eval("MonProp") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
                <LayoutTemplate>
                    <table runat="server">
                        <tr runat="server">
                            <td runat="server">
                                <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                    style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                                    <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                        <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>
                                        <th runat="server">
                                            基站编号</th>
                                    </tr>
                                    <tr ID="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr runat="server">
                            <td 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>
                <SelectedItemTemplate>
                    <tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
                        <td>
                            <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
                        </td>
                        <td>
                            <asp:Label ID="IdLabel" runat="server" Text='<%# Eval("Id") %>' />
                        </td>
                        <td>
                            <asp:Label ID="AttrLocalLabel" runat="server" Text='<%# Eval("AttrLocal") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepAssNameLabel" runat="server" 
                                Text='<%# Eval("RepAssName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="AssIdLabel" runat="server" Text='<%# Eval("AssId") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SpecModelLabel" runat="server" Text='<%# Eval("SpecModel") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepCountLabel" runat="server" Text='<%# Eval("RepCount") %>' />
                        </td>
                        <td>
                            <asp:Label ID="RepContentLabel" runat="server" 
                                Text='<%# Eval("RepContent") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ActRepCostLabel" runat="server" 
                                Text='<%# Eval("ActRepCost") %>' />
                        </td>
                        <td>
                            <asp:Label ID="ChargeLabel" runat="server" Text='<%# Eval("Charge") %>' />
                        </td>
                        <td>
                            <asp:Label ID="SubPayDateLabel" runat="server" 
                                Text='<%# Eval("SubPayDate") %>' />
                        </td>
                        <td>
                            <asp:Label ID="CostSortLabel" runat="server" Text='<%# Eval("CostSort") %>' />
                        </td>
                        <td>
                            <asp:Label ID="MonPropLabel" runat="server" Text='<%# Eval("MonProp") %>' />
                        </td>
                        <td>
                            <asp:Label ID="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                        </td>
                    </tr>
                </SelectedItemTemplate>
            </asp:ListView>
        </div>
    </div>
    </form>
</body>
</html>
