📄 fiscal_year_period_modify.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@page import="java.text.*" %>
<%@page import="java.util.*" %>
<%@page import="com.bjsxt.drp.basedata.*" %>
<%
int id = Integer.parseInt(request.getParameter("id"));
String command = request.getParameter("command");
FiscalYearPeriod fiscalYearPeriod = null;
if (command != null && command.equals("modify")) {
fiscalYearPeriod = new FiscalYearPeriod();
fiscalYearPeriod.setId(id);
fiscalYearPeriod.setBeginDate(new SimpleDateFormat("yyyy-MM-dd").parse(request.getParameter("beginDate")));
fiscalYearPeriod.setEndDate(new SimpleDateFormat("yyyy-MM-dd").parse(request.getParameter("endDate")));
fiscalYearPeriod.setPeriodSts(request.getParameter("periodSts")==null?"N":"Y");
FiscalYearPeriodManager.getInstance().modifyFiscalYearPeriod(fiscalYearPeriod);
out.println("提示:修改核算期间成功!");
}
fiscalYearPeriod = FiscalYearPeriodManager.getInstance().findFiscalYearPeriodById(id);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>修改会计核算期间</title>
<link rel="stylesheet" href="../style/drp.css">
<link href="../style/JSCalendar.css" rel=stylesheet type=text/css>
<script src="../script/JSCalendar.js"></script>
<script src="../script/client_validate.js"></script>
<script type="text/javascript">
function modifyFiscalYearPeriod(){
if (document.getElementById("beginDate").value > document.getElementById("endDate").value) {
alert("核算日期必须小于等于结束日期!");
document.getElementById("beginDate").focus();
return;
}
with (document.getElementById("fiscalYearPeriodForm")) {
method = "post";
action = "fiscal_year_period_modify.jsp?command=modify&id=<%=id%>";
submit();
}
}
function goBack(){
window.self.location = "fiscal_year_period_maint.jsp";
}
</script>
</head>
<body class="body1">
<form name="fiscalYearPeriodForm" target="_self"
id="fiscalYearPeriodForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
</td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0"
height="25">
<tr>
<td width="522" class="p1" height="25" nowrap>
<img src="../images/mark_arrow_03.gif" width="14" height="14">
<b>基础数据管理>>会计核算期间维护>>修改</b>
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" height="29">
<div align="right">
核算年:
</div>
</td>
<td width="78%">
<input name="fiscalYear" type="text" class="text1" value="<%=fiscalYearPeriod.getFiscalYear() %>"
id="fiscalYear" size="10" maxlength="10" readonly="true">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
核算月:
</div>
</td>
<td>
<input name="fiscalPeriod" type="text" class="text1" value="<%=fiscalYearPeriod.getFiscalPeriod() %>"
id="fiscalPeriod" size="10" maxlength="10" readonly="true">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000">*</font>开始日期:
</div>
</td>
<td>
<label>
<input type="text" name="beginDate" id="beginDate" size="10" maxlength="10"
value="<%=new SimpleDateFormat("yyyy-MM-dd").format(fiscalYearPeriod.getBeginDate()) %>" readonly="true" onClick=JSCalendar(this)>
</label>
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000">*</font>结束日期:
</div>
</td>
<td>
<input name="endDate" type="text" id="endDate"
onClick=JSCalendar(this) value="<%=new SimpleDateFormat("yyyy-MM-dd").format(fiscalYearPeriod.getEndDate()) %>" size="10"
maxlength="10" readonly="true">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000">*</font>是否可用:
</div>
</td>
<td>
<input name="periodSts" type="checkbox" class="checkbox1" <%=fiscalYearPeriod.getPeriodSts().equals("N")?"":"checked" %>
id="periodSts" >
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<div align="center">
<input name="btnModify" class="button1" type="button"
id="btnModify" value="修改" onclick="modifyFiscalYearPeriod()">
<input name="btnBack" class="button1" type="button" id="btnBack"
value="返回" onClick="goBack()">
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -