Dim S_Month
Dim Rs
S_Month=Request.Form("SelectMonth")
If Request.form("OK")="工资计算" and Request.Form("Send")=1 Then
If Trim(S_month)<>"" Then
%>
<SCRIPT LANGUAGE="JavaScript">
alert("开始运行(<%=S_Month%>)月份工资!");
</SCRIPT>
<% Err.Clear
On Error Resume Next
'开始事务
ConnMain.BeginTrans
ConnMain.Execute("Exec other_store_exponent_proc '"&S_Month&"' ")
ConnMain.Execute("Exec whisper_store_exponent_proc '"&S_Month&"' ")
ConnMain.Execute("Exec VS_store_exponent_proc '"&S_Month&"' ")
ConnMain.Execute("Exec HC_store_exponent_proc '"&S_Month&"'")
ConnMain.Execute("Exec Salary_Temp '"&S_Month&"'")
If Err.Number <> 0 then
' 出错,则回滚
ConnMain.RollbackTrans
Else
' 正常,则提交
ConnMain.CommitTrans
End if
%>
<SCRIPT LANGUAGE="JavaScript">
alert("工资计算成功!");
</SCRIPT>
<%
Else
%>
<SCRIPT LANGUAGE="JavaScript">
alert("选择不能为空!");
</SCRIPT>
<% Call ListForm
Response.End
End If