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

<!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; height:80%; width:80%; left:10%; right:10%; top:15%; margin-top:2px; margin-bottom:2px; 
    	}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ObjectDataSource ID="ODSNetResChg" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
            TypeName="ResMangSys.DAL.NetResChgTableAdapters.T_NetResChgTableAdapter" 
            UpdateMethod="Update">
            <UpdateParameters>
                <asp:Parameter Name="BaStaId" Type="String" />
                <asp:Parameter Name="BaStaName" Type="String" />
                <asp:Parameter Name="ChgEquiCate" Type="String" />
                <asp:Parameter Name="ChgRecord" Type="String" />
                <asp:Parameter Name="Original_Id" Type="Int64" />
            </UpdateParameters>
        </asp:ObjectDataSource>
    <center><h2>网络资源变更管理</h2></center>
    <hr />
    <div id="content">
        <asp:ListView ID="LVNetResChg" runat="server" DataKeyNames="Id" 
            DataSourceID="ODSNetResChg" EnableModelValidation="True">
            <AlternatingItemTemplate>
                <tr style="background-color:#FFF8DC;">
                    <td>
                        <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
                    </td>
                    <td>
                        <asp:Label ID="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                    </td>
                    <td>
                        <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgEquiCateLabel" runat="server" 
                            Text='<%# Eval("ChgEquiCate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgRecordLabel" runat="server" Text='<%# Eval("ChgRecord") %>' />
                    </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="BaStaIdTextBox" runat="server" Text='<%# Bind("BaStaId") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="BaStaNameTextBox" runat="server" 
                            Text='<%# Bind("BaStaName") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ChgEquiCateTextBox" runat="server" 
                            Text='<%# Bind("ChgEquiCate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ChgRecordTextBox" runat="server" 
                            Text='<%# Bind("ChgRecord") %>' />
                    </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="BaStaIdTextBox" runat="server" Text='<%# Bind("BaStaId") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="BaStaNameTextBox" runat="server" 
                            Text='<%# Bind("BaStaName") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ChgEquiCateTextBox" runat="server" 
                            Text='<%# Bind("ChgEquiCate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ChgRecordTextBox" runat="server" 
                            Text='<%# Bind("ChgRecord") %>' />
                    </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="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                    </td>
                    <td>
                        <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgEquiCateLabel" runat="server" 
                            Text='<%# Eval("ChgEquiCate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgRecordLabel" runat="server" Text='<%# Eval("ChgRecord") %>' />
                    </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>
                                </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>
            <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="BaStaIdLabel" runat="server" Text='<%# Eval("BaStaId") %>' />
                    </td>
                    <td>
                        <asp:Label ID="BaStaNameLabel" runat="server" Text='<%# Eval("BaStaName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgEquiCateLabel" runat="server" 
                            Text='<%# Eval("ChgEquiCate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ChgRecordLabel" runat="server" Text='<%# Eval("ChgRecord") %>' />
                    </td>
                </tr>
            </SelectedItemTemplate>
        </asp:ListView>
    </div>
    </div>
    </form>
</body>
</html>
