chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
@@ -0,0 +1,72 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true"
CodeBehind="組織類別處理.aspx.cs" Inherits="Education.Forms.組織.組織類別處理" %>
<%@ 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">
<asp:ObjectDataSource ID="dsGrid" runat="server" DataObjectTypeName="Education.組織類別"
DeleteMethod="DeleteOne" OldValuesParameterFormatString="original_{0}" OnObjectCreating="dsGrid_ObjectCreating"
SelectMethod="SelectAll" TypeName="Education.DAC_組織類別" UpdateMethod="UpdateOne">
</asp:ObjectDataSource>
<table border="1" class="fixedwithborder" style="border-bottom: none;">
<tr>
<th class="" style="width: 140px;">&nbsp;</th>
<th style="width: 90px;">組織類別ID</th>
<th style="width: 450px;">組織類別名稱</th>
</tr>
<tr>
<td class="datainput" style="text-align: left; border-bottom: none">
<asp:LinkButton runat="server" ID="btnInsert" Text="新增" CssClass="button blue60"
ValidationGroup="insert" OnClick="btnInsert_Click"></asp:LinkButton>
</td>
<td class="datainput" style="text-align: center; border-bottom: none">(自動編號)</td>
<td class="datainput" style="text-align: left; border-bottom: none">
<asp:TextBox ID="txt組織類別名稱" runat="server" Text="" MaxLength="50" CssClass="inputFull"
ValidationGroup="insert"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="rfv組織類別名稱" ControlToValidate="txt組織類別名稱"
ErrorMessage="請輸入" CssClass="ErrorMessage" Display="Dynamic" ValidationGroup="insert" />
</td>
</tr>
</table>
<asp:GridView ID="GridView1" runat="server" DataKeyNames="組織類別ID,DB_APPNO"
AutoGenerateColumns="False" EnableModelValidation="True" AllowPaging="True"
ShowHeader="False" DataSourceID="dsGrid">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton runat="server" ID="btnEdit" Text="更正" CommandName="Edit" CssClass="button green60"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnDelete" Text="刪除" CommandName="Delete" CssClass="button red60"
OnClientClick="javascript:return confirm('是否確定刪除此筆資料?');" CausesValidation="false"></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" ID="btnSave" Text="存檔" CommandName="Update" CssClass="button blue60"></asp:LinkButton>
<asp:LinkButton runat="server" ID="btnCancel" Text="取消" CommandName="Cancel" CssClass="button red60"
OnClientClick="javascript:return confirm('是否確定取消更正?');" CausesValidation="false"></asp:LinkButton>
</EditItemTemplate>
<HeaderStyle Width="140px" />
<ItemStyle Width="140px" />
</asp:TemplateField>
<asp:BoundField DataField="組織類別ID" HeaderText="組織類別ID" SortExpression="組織類別ID" ReadOnly="true">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="90px" />
<ItemStyle Width="90px" />
</asp:BoundField>
<asp:TemplateField HeaderText="組織類別名稱" SortExpression="組織類別名稱">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("組織類別名稱") %>' CssClass="inputFull"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="rfv組織類別名稱" ControlToValidate="TextBox1"
ErrorMessage="請輸入" CssClass="ErrorMessage" Display="Dynamic" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("組織類別名稱") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Width="450px" />
<ItemStyle Width="450px" />
</asp:TemplateField>
</Columns>
<PagerTemplate>
<weblib:GridViewPager ID="GridViewPager1" runat="server" />
</PagerTemplate>
</asp:GridView>
</asp:Content>