<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_addDicValue, App_Web_wrcbq7tn" %>

<!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 >
    <title>添加枚举记录                                                                                                                                                                             </title>
    <link href="../CssHtml1.css" rel="stylesheet" type="text/css" />
</head>
<body >
    <form id="form1" runat="server">
    <div style=" width :723px; height :318px;  border-bottom: #0066ff 1px solid; border-left: #0066ff 1px solid; border-top: #0066ff 1px solid; border-right: #0066ff 1px solid;">

        
                <table style="width: 100%;  border-right: #ff0000 2px solid; border-top: #ff0000 2px solid; border-left: #ff0000 2px solid; border-bottom: #ff0000 2px solid;" cellpadding="0" cellspacing="1">
                   <tr><td colspan =4 style="font-weight: bold;">  枚举名称：
                            <asp:Label ID="lbl_dname" runat="server" ForeColor="Red"></asp:Label></td></tr>
                    <tr >
                        <td style=" border-top: #0033ff 1px solid;  width :20%; background-image: url(../Images/bg04.gif); height :26px; border-left: #0033ff 1px solid;" align="center">&nbsp;枚举值</td>
                        <td style=" border-top: #0033ff 1px solid;width: 30%; " align="left">
                            <asp:TextBox ID="TextBox6" runat="server" ValidationGroup="rty" Width="178px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox6" ValidationGroup="rty">*</asp:RequiredFieldValidator></td>
                        <td style=" border-top: #0033ff 1px solid;background-image: url(../Images/bg04.gif); height :26px;width: 20%;" align="center">
                            &nbsp;排序
                            </td>
                        <td style="  border-top: #0033ff 1px solid; width: 30%; border-top: #0033ff 1px solid; border-right: #0033ff 1px solid;" valign="middle" align="left">
                         <asp:TextBox ID="txtssss" runat="server" ValidationGroup="rty" Width="60px"  OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57))) {event.returnValue=true;} else{event.returnValue=false;}"></asp:TextBox>
                         </td>
                    </tr>
                    <tr>
                    <td style=" border-bottom: #0033ff 1px solid; width: 20%; background-image: url(../Images/bg04.gif);height :26px; border-left: #0033ff 1px solid;" align="center">&nbsp;关联枚举</td>
                    <td style="border-bottom: #0033ff 1px solid; width: 30%; " align="left">
                        <asp:DropDownList ID="drop_mapDataName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drop_mapDataName_SelectedIndexChanged" Width="184px" Height="21px">
                        </asp:DropDownList></td>
                    <td style="border-bottom: #0033ff 1px solid;  background-image: url(../Images/bg04.gif);height :26px; width: 20%;" align="center">
                        &nbsp;关联枚举值</td>
                         <td style=" width: 30%; border-bottom: #0033ff 1px solid; border-right: #0033ff 1px solid;" valign="middle" align="left">
                         <asp:DropDownList ID="drop_mapNameValue" runat="server" Height="21px">
                        </asp:DropDownList>
                         </td>
                    
                    </tr>
                    <tr> <td colspan =4 align=right >   <asp:Button ID="Button3" runat="server" Text="保 存" OnClick="Button3_Click" ValidationGroup="rty" Width="60px" Height="23px" />
                          
                            <input id="Button1" type="button" value="取 消" onclick="window.close()" style="width: 60px; height: 23px;" />
                          </td></tr>
                </table>
                 <div style=" width :100%; height :203px; overflow :auto ;">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged" style="width:100%;  text-align:center" BackColor="Azure" AlternatingRowStyle-VerticalAlign="Bottom" HeaderStyle-BackColor="InactiveCaption" HeaderStyle-Height="21" HeaderStyle-ForeColor="White" DataKeyNames="id" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound" >
                   <EmptyDataTemplate >
                   <table width="100%">
                                    <tr style=" background-color: #1471b0; ">
                                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid; height: 22px;">
                                            操作
                                        </td>
                                         <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white; height: 22px;">
                                            枚举名称
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white; height: 22px;">
                                            枚举值
                                        </td>
                                        
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white; height: 22px;">
                                            排序
                                        </td>
                                         <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white; height: 22px;">
                                            关联枚举
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white; height: 22px;">
                                            关联枚举值
                                        </td>
                                       
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt; height: 26px;">
                                            没有数据................................
                                        </td>
                                    </tr>
                                </table>
                   
                   </EmptyDataTemplate>
                   
                   
                    <Columns>
                        <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                            <EditItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  HeaderText ="编辑">
                            <EditItemTemplate>
                                <asp:LinkButton ID="link_update" runat="server"  ForeColor ="Blue" CausesValidation="True" CommandName="Update"
                                    Text="更新" ></asp:LinkButton>
                                <asp:LinkButton ID="link_cancel" runat="server" ForeColor ="Blue" CausesValidation="False" CommandName="Cancel"
                                    Text="取消" ></asp:LinkButton>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="link_edit" runat="server"  ForeColor ="Blue" CausesValidation="False" CommandName="Edit"
                                    Text="编辑" ></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" ForeColor ="Blue" OnClick="LinkButton1_Click" CommandName='<%# Bind("id") %>' OnClientClick="return confirm('确认删除？')">删除</asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="枚举名称" SortExpression="dataname">
                            <EditItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("dataname") %>'></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("dataname") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="枚举值" SortExpression="nameValue" >
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="txt_value" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("nameValue") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="排序" SortExpression="orderid">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("orderid") %>' OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57))) {event.returnValue=true;} else{event.returnValue=false;}"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("orderid") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="关联枚举" SortExpression="dataname">
                            <EditItemTemplate>
                                <asp:DropDownList ID="dropd_gname" runat="server"  AutoPostBack =true   OnSelectedIndexChanged="dropd_gname_SelectedIndexChanged">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("mapDataName") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="关联枚举值" SortExpression="mapnamevalue">
                            <EditItemTemplate>
                                <asp:DropDownList ID="dropd_gvalues" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("mapnameValue") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Size="9pt" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#1471B0" ForeColor="White" Height="21px" Font-Size="9pt" Font-Bold=True  HorizontalAlign=Center/>
                    <AlternatingRowStyle VerticalAlign="Bottom" />
                    <EditRowStyle BackColor="#FFFF80" />
                </asp:GridView>
                     <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                </asp:SqlDataSource>
         
     
    </div>
    </form>
</body>
</html>
