BuildPayManage.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.util.*,com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>生成月工资管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkBuildPay()
- {
- if(document.BuildPay.Year.value=='')
- {
- alert("请输入年份!");
- document.BuildPay.Year.focus();
- return false;
- }
- if(isNaN(parseInt(document.BuildPay.Year.value)))
- {
- alert("请输入正确的年份!");
- document.BuildPay.Year.select();
- document.BuildPay.Year.focus();
- return false;
- }
- esave.style.visibility="visible";
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">生成月工资</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <div id="esave" style="filter:alpha(opacity=80); position:absolute; top:50; left:40; z-index:10; visibility:hidden">
- <TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0 align="center">
- <TR><td width=20%> </td>
- <TD bgcolor='<%=m_session.GetString("TopBackColor")%>' width="60%">
- <TABLE WIDTH=100% height=300 BORDER=0 CELLSPACING=2 CELLPADDING=0>
- <TR>
- <td bgcolor='<%=m_session.GetString("TopBackColor")%>' align=center id=textmsg>正在生成月工资,请稍候...</td>
- </tr>
- </table>
- </td>
- <td width=20%> </td>
- </tr></table></div>
- <%
- Request m_request = new Request(request);
- String strDelete = m_request.GetString("action");
- int iMonth=m_request.GetInt("Month");
- int iYear=m_request.GetInt("Year");
- if (strDelete.equals("delete")&&iMonth>0&&iMonth<13&&iYear>0)
- {
- if (PayManager.delPayByYearMonth(iYear,iMonth)>0)
- {
- out.println("<script>alert('" + iYear+ "年" + iMonth+ "月工资删除成功!')</script>");
- }else
- {
- out.println("<script>alert('" + iYear+ "年" + iMonth+ "月工资删除失败!')</script>");
- }
- }
- if (strDelete.equals("savedefault")&&iMonth>0&&iMonth<13&&iYear>0)
- {
- if (PayManager.updateBasePayByYearMonth(iYear,iMonth)>0)
- {
- out.println("<script>alert('将" + iYear+ "年" + iMonth+ "月工资保存为基本工资信息成功!')</script>");
- }else
- {
- out.println("<script>alert('将" + iYear+ "年" + iMonth+ "月工资保存为基本工资信息失败!')</script>");
- }
- }
- %>
- <table width="95%" border="0" cellspacing="0">
- <form name="BuildPay" method="post" action="BuildPayAction.jsp" onSubmit="checkBuildPay()">
- <tr>
- <td align="right"> </td>
- <td> </td>
- <td rowspan="6"> </td>
- </tr>
- <tr>
- <td align="right"> </td>
- <td> </td>
- </tr>
- <tr>
- <td align="right">年份:</td>
- <td>
- <%java.util.Date t_Date = new java.util.Date();%>
- <input type="text" name="Year" size="4" maxlength="4" value="<%=StringNew.GetDateString(t_Date,"yyyy")%>">
- </td>
- </tr>
- <tr>
- <td align="right">月份:</td>
- <td> <select name="Month">
- <option value="<%=StringNew.GetDateString(t_Date,"M")%>" selected><%=StringNew.GetDateString(t_Date,"M")%></option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- </select> </td>
- </tr>
- <tr>
- <td height="16" align="right"> </td>
- <td> </td>
- </tr>
- <tr>
- <td align="right"> </td>
- <td><input name="Submit" type="submit" value="生成月工资" onClick="document.BuildPay.action='BuildPayAction.jsp';textmsg.innerText='正在生成月工资,请稍候...';return confirm('您确实要生成月工资吗?');">
-
- <input type="submit" value="删除该月工资记录" onClick="document.BuildPay.action='BuildPayManage.jsp?action=delete';textmsg.innerText='正在删除月工资,请稍候...';return confirm('您确实要删除该月工资记录吗?');">
-
- <input type="submit" value="将该月工资记录保存为基本工资信息" onClick="document.BuildPay.action='BuildPayManage.jsp?action=savedefault';textmsg.innerText='正在将该月工资记录保存为基本工资信息,请稍候...';return confirm('您确实要将该月工资记录保存为基本工资信息吗?');"> </td>
- </tr>
- </form>
- </table>
- </body>
- </html>