⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editpayment.jsp

📁 SSH示范
💻 JSP
字号:
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html:html locale="true">
<head>
<TITLE><bean:message key="prompt.payment.paymentInfoEdit" /></TITLE>
<LINK href="../css/iplan.css" rel=stylesheet type="text/css">
<script language="javascript" src="../scripts/Calendar.js"></script>
<SCRIPT language=javascript>
	function closePage()
	{
		self.opener.refresh(); 
		self.close();
	}

	function save()
	{
		if(validateForm(document.form1)) {
		 	document.form1.action = "paymentAction.do?method=save";
			document.form1.submit();  
		}
	}	
	
	function del()
	{
		if(confirm("<bean:message key='prompt.confirm'/> ")) {
		 	document.form1.action = "paymentAction.do?method=delete";
         	document.form1.submit();
         	closePage()
        }
	}
	
	function customerList()
	{
    	window.open("","customerListWindow","left=600,top=50,toolbar=no,width=400,height=450,directories=no,status=yes,scrollbars=yes,resize=no,menubar=no");
       	form1.action = "selectCustomerAction.do?method=listByUserId" ;
       	form1.target = "customerListWindow";
       	form1.submit(); 
	}
	
</SCRIPT>
</head>

<html:form styleId="form1" action="/paymentAction.do?method=save">

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr align="center">
			<td align="center" class="TableTxtBold">
			<P align="center"><bean:message key="prompt.payment.paymentInfoEdit" /></P>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" align="center" class="cellBg" cellspacing="1" cellpadding="0">
					<tr>
						<td class="TableTxtBold" width="25%"><bean:message key="prompt.payment.payDate" /></td>
						<td class="TableTxtNorm"><html:text property="payment.payDateStr" size="20" maxlength="20" styleId="payDate" styleClass="formFill1line"  onclick="setDayHM(this);" readonly="true"/></td>
					</tr>
					<tr>
						<td class="TableTxtBold" width="25%"><bean:message key="prompt.payment.customerName" /></td>
						<td class="TableTxtNorm"> 
							<html:select property="payment.customerName" styleId="customerNameStr" styleClass="formFill1line" >				
								<html:options name="customerNameList" labelName="customerNameList"></html:options>
							</html:select>&nbsp;&nbsp;
							<button class="button" onclick="customerList();"><bean:message key="button.customerList" /></button>
						</td>
					</tr>						
					<tr>
						<td class="TableTxtBold" width="25%"><bean:message key="prompt.payment.cash" /></td>
						<td class="TableTxtNorm"><html:text property="payment.cash" size="10" maxlength="20" styleId="cash" styleClass="formFill1line"  /></td>
					</tr>
					<tr>
						<td class="TableTxtBold" width="25%"><bean:message key="prompt.payment.remark" /></td>
						<td class="TableTxtNorm"><html:textarea property="payment.remark" rows="20" cols="50" styleId="remark" styleClass="formFill1line" style="height:60px;width:90%;"></html:textarea></td>
					</tr>						
				</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
				<button class="button" onclick="save();"><bean:message key="button.save" /></button>
				&nbsp;
			  	<logic:empty name="paymentForm" property="payment.guid">
					<button class="button" onclick="del();" disabled="disabled"><bean:message key="button.delete" /></button>
				</logic:empty>
				<logic:notEmpty name="paymentForm" property="payment.guid">
					<button class="button" onclick="del();"><bean:message key="button.delete" /></button>
				</logic:notEmpty>				
				&nbsp;
				<button class="button" onclick="closePage();"><bean:message key="button.close" /></button>
			</td>
		</tr>		
	</table>
	<html:hidden property="payment.guid"/>
	<html:hidden property="payment.address" styleId="addressStr"/>
	<html:javascript formName="paymentForm" method="validateForm"/>
</html:form>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -