feat: fmSendSalaryStrip GridView 改用 ObjectDataSource

- SsmsDAC 新增 SelectSalaryStrip/SelectSalaryStripSum

- dsSSMS 改 ObjectDataSource;dsSSMSSum 移除,footer 改用 SsmsDAC
This commit is contained in:
2026-09-10 11:04:33 +08:00
parent b66279e5fa
commit 439e941268
4 changed files with 124 additions and 71 deletions
+8 -6
View File
@@ -69,12 +69,14 @@
OnClick="btnSSPYN_Click"></cc1:WButton></td>
</tr>
</table>
<asp:SqlDataSource ID="dsSSMS" runat="server"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa"
ProviderName="System.Data.SqlClient"></asp:SqlDataSource>
<asp:SqlDataSource ID="dsSSMSSum" runat="server"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa"
ProviderName="System.Data.SqlClient"></asp:SqlDataSource>
<asp:ObjectDataSource ID="dsSSMS" runat="server"
TypeName="SsmsDAC" SelectMethod="SelectSalaryStrip">
<SelectParameters>
<asp:Parameter Name="tableName" Type="String" />
<asp:Parameter Name="SSYMM" Type="DateTime" />
<asp:Parameter Name="SSPYN" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Button ID="btnSend" runat="server" OnClick="btnSend_Click"
Text="S.發送" CssClass="button" AccessKey="S"
OnClientClick='if (confirm("是否確定發送薪資單郵件?")) {ShowProcessing(2000); return true;} else return false;' />