📄 setplan.jsp
字号:
<%@ page contentType = "text/html;charset=GBK"%>
<%@ taglib uri="/WEB-INF/tag.tld" prefix="tag" %>
<%@ page import="cn.com.juneng.system.common.COMMON"%>
<%@ page import="cn.com.juneng.contract.service.ContractService" %>
<%@ page import="cn.com.juneng.contract.vo.ContractVOImpl" %>
<%@ page import="cn.com.juneng.system.common.SpringBeanFactory" %>
<%@ page import="cn.com.juneng.system.service.SysDicItemService" %>
<%@ page import="cn.com.juneng.system.vo.SysDicItemVOImpl" %>
<%@ page import="java.util.List" %>
<link href="<%=request.getContextPath()%>/css/commonPage.css" rel="stylesheet" type="text/css">
<style>
.list_condition_td_title {
COLOR: #000000; LETTER-SPACING: 1px; BACKGROUND-COLOR: #d6ebff; TEXT-ALIGN: right;PADDING-RIGHT: 3px;
}
.list_condition_td_title2 {
COLOR: #000000; LETTER-SPACING: 1px; background: url("../images/logo_formain.gif"); TEXT-ALIGN: right;PADDING-RIGHT: 3px;
}
.list_condition_td_input {
/*
font-size:9pt;
*/
COLOR: #000000; BACKGROUND-COLOR: #e6e5e5;PADDING-LEFT: 3px;
}
</style>
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/COMMON.js'></script>
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/calendar.js'></script>
<%
ContractService contractService = (ContractService)SpringBeanFactory.getBean("contractService");
SysDicItemService sysDicItemService = (SysDicItemService)SpringBeanFactory.getBean("sysDicItemService");
String rid=(String)request.getParameter("rid");
String plancount=(String)request.getParameter("count");
if(!COMMON.isEmpty(rid)&&rid.indexOf("&")>1){
plancount=rid.substring(rid.lastIndexOf("="));
rid=rid.substring(0,rid.indexOf("&"));
}
ContractVOImpl vo=contractService.findByPrimaryKey(rid);
String contractno=vo.getCode();
String contractname=vo.getName();
int count=0;
count=Integer.parseInt(plancount);
List perlist=null;
if(count>=1){
String querySql = " kind ='P00"+count+"' ";
perlist = sysDicItemService.getList(querySql," order by code asc",0,100);
}
double payall=0;
String tmpdetail="";
if(!COMMON.isEmpty(vo.getSumcount()))
payall=vo.getSumcount().doubleValue();
%>
<table >
<tr>
<td class="tHeading"><div align='center'><b>合同收款计划</b></div></td>
</tr>
<%
if(request.getAttribute("Error")!=null){%>
<tr>
<td ><font color='red'><%=request.getAttribute("Error")%></font></td>
</tr>
<%}%>
</table>
<center>
<%
String info = (String)request.getAttribute("info");
if(info!=null){
%>
<script>
alert("<%=info%>");
window.close();
</script>
<%
}
%>
</center>
<form name="form1" action="<%=request.getContextPath()%>/payplan/PayplanAction.jsp" method="post" onsubmit="return CheckForm(this)">
<input type="hidden" name="readonly" value="<tag:attr source="VO" attr="readonly" />">
<input type="hidden" name="currentPage" value="<tag:attr source="VO" attr="currentPage" />">
<input type="hidden" name="actionType" value="moreSave">
<input type="hidden" name="rid" value="<tag:attr source="VO" attr="rid" />">
<input type="hidden" name="tmp1" value="1">
<input type="hidden" name="contractid" value="<%=rid%>">
<input type="hidden" name="contractno" value="<%=contractno%>"></td>
<input type="hidden" name="contractname" value="<%=contractname%>"></td>
<table class="its">
<tr>
<td width="10%" class="list_condition_td_title">支付批次</td>
<td width="10%" class="list_condition_td_title2">款项名称</td>
<td width="5%" class="list_condition_td_title">比例(%)</td>
<td width="5%" class="list_condition_td_title2">金额(元)</td>
<td width="5%" class="list_condition_td_title">支付方式</td>
<td width="5%" class="list_condition_td_title2">支付人</td>
<td width="8%" class="list_condition_td_title">支付日期</td>
<td width="5%" class="list_condition_td_title2">提醒天数</td>
</tr>
<%for(int i=0;i<perlist.size();i++)
{
SysDicItemVOImpl dicvo= (SysDicItemVOImpl)perlist.get(i);
tmpdetail=dicvo.getDetail();
double money=payall*Double.parseDouble(tmpdetail.substring(0,tmpdetail.indexOf("%")))/100;
%>
<tr>
<td width="10%" class="list_condition_td_input" >
<input size=15 type="text" name="batchno" value="<%=contractno+"--00"+(i+1)%>" required='true'></td>
<td width="10%" class="list_condition_td_input" ><input size=15 type="text" name="tmp3" value="<tag:attr source="VO" attr="tmp3" />"></td>
<td width="4%" class="list_condition_td_input" ><input size=8 type="text" name="percenge" value="<%=dicvo.getDetail()%>"></td>
<td width="5%" class="list_condition_td_input" >
<input size=12 type="text" name="paysum" value="<%=money%>" check="isFloat('0+')"></td>
<td width="5%" class="list_condition_td_input" ><input size=8 type="text" name="paytype" value="<tag:attr source="VO" attr="paytype" />"></td>
<td width="5%" class="list_condition_td_input" ><input size=10 type="text" name="receiver" value="<tag:attr source="VO" attr="receiver" />"></td>
<td width="8%" class="list_condition_td_input" ><input size=10 type="text" readonly onfocus="setday(this)" name="plandate" value="<tag:attr source="VO" attr="plandate" />" required='true'></td>
<td width="5%" class="list_condition_td_input" ><input size=8 type="text" name="tmp4" value="<tag:attr source="VO" attr="tmp4" />" check="isInt('0+')"></td>
</tr>
<%}%>
</table>
<%if(!vo.isReadonly()){%><input type=submit value="保存"><%}%>
<input type=button value="返回" onclick='back()'>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -