<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Base_BaseTable, App_Web_ktzrxbyd" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <%--<asp:HyperLink ID="hy_add" Text="[添加后台用户]" runat="server"/>  
            <asp:HyperLink ID="hy_list" Text="[后台用户列表]" runat="server"/> --%>
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="基础项目类别表管理" Version="120402" runat="server"/>
    <html:CurrImage ID="CurrImage1" Title="修改用户信息" 
            Tips="在这里您可以修改用户信息。" runat="server" />
  </div>
  <div class="clear"> </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="content-table" style="margin-bottom:10px;">
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trBaseType">
            <td ><asp:Literal runat="server" ID="LitBaseType" Text="类别："></asp:Literal></td>
            <td>&nbsp;
              <asp:TextBox ID="BaseType" runat="server" onkeyup="onlyNumAndEng(this)" MaxLength="2"></asp:TextBox>
              如：01;02</td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trTypeName">
            <td><asp:Literal runat="server" ID="LitTypeName" Text="类别名称："></asp:Literal></td>
            <td>&nbsp;
              <asp:TextBox ID="txtTypeName" runat="server" MaxLength="20"></asp:TextBox>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="15%"><asp:Literal runat="server" ID="LitBaseName" Text="名称"></asp:Literal></td>
            <td class="BotDas" align="left" width="85%">&nbsp;
              <asp:TextBox ID="BaseName" runat="server" MaxLength="20"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td><asp:Literal runat="server" ID="LitBaseNo" Text="编号"></asp:Literal></td>
            <td class="BotDas" align="left">&nbsp;
              <asp:TextBox ID="BaseNo" runat="server" MaxLength="10"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td><asp:Literal runat="server" ID="LitBaseMemo" Text="备注"></asp:Literal></td>
            <td class="BotDas" align="left">&nbsp;
              <asp:TextBox ID="BaseMemo" runat="server" TextMode="MultiLine" Width="300px"
                                Height="80px" MaxLength="50"></asp:TextBox>
              &nbsp;<asp:Label runat="server" ID="lbBaseMemo"></asp:Label>
              </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td>排序</td>
            <td class="BotDas" align="left">&nbsp;
              <asp:TextBox ID="txtSort" runat="server" MaxLength="5" Text="10" onkeyup="Onlynumber(this)"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td align="center" colspan="2"><asp:Button ID="BtnInsert" Text="新 增" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
              <asp:Button ID="BtnEdit" Text="修 改" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
              <asp:Button ID="BtnDelete" Text="删 除" runat="server" CssClass="button" OnClick="BtnDelete_Click" /></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td colspan="2">请选择类别：
              <asp:DropDownList ID="DropBaseType" runat="server" AutoPostBack="true" DataTextField="TypeName" DataValueField="BaseType"
                              onselectedindexchanged="DropBaseType_SelectedIndexChanged"></asp:DropDownList></td>
          </tr>
        </table>
            <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="content-table"
                    CellPadding="0" GridLines="None" Width="100%" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
                <SelectedItemStyle CssClass="linkDown" />
                <ItemStyle CssClass="BotDas" />
                <Columns>
                <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
                  <ItemTemplate> &nbsp; </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="选择">
                  <ItemTemplate>
                    <asp:LinkButton runat="server" CommandName="Select" CausesValidation="False" Text="选择"></asp:LinkButton>
                  </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="BaseName" HeaderText="名称" />
                <asp:BoundColumn DataField="BaseNo" HeaderText="编号" />
                <asp:BoundColumn DataField="BaseType" HeaderText="所在类别" />
                <asp:BoundColumn DataField="TypeName" HeaderText="类别名称" />
                <asp:BoundColumn DataField="BaseMemo" HeaderText="备注" />
                <asp:TemplateColumn HeaderText="变量" ItemStyle-Width="2px"
                            HeaderStyle-Width="2px" Visible="false">
                  <ItemTemplate>
                    <asp:Literal runat="server" Visible="false" ID="Uid" Text='<%#DataBinder.Eval(Container.DataItem,"Bid") %>'></asp:Literal>
                    <asp:Literal runat="server" Visible="false" ID="LitSort" Text='<%#DataBinder.Eval(Container.DataItem,"Sort") %>'></asp:Literal>
                  </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
                  <ItemTemplate> &nbsp; </ItemTemplate>
                </asp:TemplateColumn>
                </Columns>
                <HeaderStyle CssClass="tableTitle" />
              </asp:DataGrid>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
  <asp:HiddenField ID="hidId" runat="server" Visible="false"/>
  <asp:HiddenField ID="hidUserCard" runat="server" Visible="false"/>
  <asp:HiddenField ID="hidParentClassCards" runat="server" Visible="false"/>
</asp:Content>
