36 lines
2.0 KiB
Plaintext
36 lines
2.0 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true"
|
|
CodeBehind="Test01.aspx.cs" Inherits="Education.Forms.Test01" %>
|
|
|
|
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="weblib" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
<weblib:LookupTextBox ID="LookupTextBox1" runat="server" LookupConfigName="BPSN"
|
|
OutputControl="TextBox1" />
|
|
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
|
|
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
|
|
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
|
|
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
|
|
<Columns>
|
|
<asp:BoundField DataField="組織ID" HeaderText="組織ID" />
|
|
<asp:BoundField DataField="組織名稱" HeaderText="組織名稱" />
|
|
<asp:BoundField DataField="組織類別ID" HeaderText="組織類別ID" />
|
|
<asp:TemplateField HeaderText="上層ID">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" ID="lb上層ID" Text='<%# Eval("上層ID", "{0}") != "0" ? Eval("上層ID") : null %>' />
|
|
<weblib:WDropDownList ID="DropDownList1" runat="server"
|
|
SelectedValue='<%# Bind("上層ID") %>' OnDataBinding="DropDownList1_DataBinding">
|
|
<asp:ListItem Value="1">1</asp:ListItem>
|
|
<asp:ListItem Value="2">2</asp:ListItem>
|
|
<asp:ListItem Value="3">3</asp:ListItem>
|
|
<asp:ListItem Value="4">4</asp:ListItem>
|
|
<asp:ListItem Value="5">5</asp:ListItem>
|
|
</weblib:WDropDownList>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="排序" HeaderText="排序" />
|
|
<asp:BoundField DataField="部門主管" HeaderText="部門主管" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</asp:Content>
|