feat: fmBprm GridView 改用 ObjectDataSource

- BprmDAC 新增 SelectPage/SelectCount

- dsBPRMGrid 改 ObjectDataSource;dsBPRM_Selected 拆分為 grid/form
This commit is contained in:
2026-09-10 10:43:56 +08:00
parent 10f73526bc
commit dd8a26206f
4 changed files with 74 additions and 19 deletions
+7 -6
View File
@@ -80,12 +80,13 @@
</table>
</asp:View>
<asp:View ID="View3" runat="server">
<asp:SqlDataSource ID="dsBPRMGrid" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa"
OnSelected="dsBPRM_Selected"
ProviderName="System.Data.SqlClient"
SelectCommand="SELECT * FROM BPRM"></asp:SqlDataSource>
<asp:ObjectDataSource ID="dsBPRMGrid" runat="server"
TypeName="BprmDAC" SelectMethod="SelectPage" SelectCountMethod="SelectCount"
EnablePaging="true" OnSelected="dsBPRMGrid_Selected">
<SelectParameters>
<asp:Parameter Name="BPPNM" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:SqlDataSource ID="dsBPRMForm" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa" DeleteCommand="DELETE FROM BPRM