feat: fmBpab/fmBpabBig/fmBpabSmall GridView 改用 ObjectDataSource

- 新增 BpabDAC(SelectPage/SelectCount,mode 區分 科目/大類/小類)

- 三檔 dsBPABGrid 改 ObjectDataSource(EnablePaging)

- Search/Selected 調整

- 計畫文檔更新
This commit is contained in:
2026-09-10 10:38:27 +08:00
parent 1bd01e0275
commit a525bf2610
8 changed files with 141 additions and 73 deletions
+8 -4
View File
@@ -72,10 +72,14 @@
</table>
</asp:View>
<asp:View ID="EditView" runat="server">
<asp:SqlDataSource ID="dsBPABGrid" runat="server" ConflictDetection="CompareAllValues"
SelectCommand="SELECT * FROM BPAB WHERE 1=0" ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa"
ProviderName="System.Data.SqlClient" OnSelected="dsBPABGrid_Selected">
</asp:SqlDataSource>
<asp:ObjectDataSource ID="dsBPABGrid" runat="server"
TypeName="BpabDAC" SelectMethod="SelectPage" SelectCountMethod="SelectCount"
EnablePaging="true" OnSelected="dsBPABGrid_Selected">
<SelectParameters>
<asp:Parameter Name="BPPYN" Type="String" />
<asp:Parameter Name="mode" Type="String" DefaultValue="ALL" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:SqlDataSource ID="dsBPABForm" runat="server" InsertCommand="INSERT INTO BPAB
(BPPYN, BPACC, BPAME, BPBGT, BPCLS, BPORD,
APPNO, TRDAT, TRMOD, TRUSR)