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

📄 chargeselect.jsp

📁 这是一个针对医院管理的一个系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>chargeSelect.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="/HospitalManageSystem/css/share_css.css">
	
	<script type="text/javascript">
		function ttt(text){
			var form = document.totalChargeForm;
			if(text=="totalChargeSelect"){
				var p = form.patient_id.value;
				if(p==""){
					alert("请输入查询条件!");
					document.totalChargeForm.patient_id.focus();
					return false;
				}
				form.method.value=text;
				document.totalChargeForm.submit();
				return true;
			}else{
			var r = form.registers_charge.value;
			var d = form.deal_charge.value;
			var e = form.examination_charge.value;
			if(r==""){
				alert("请输入挂号费");
				document.totalChargeForm.registers_charge.focus();
				return false;
			}
			if(d==""){
				alert("请输入处置费");
				document.totalChargeForm.deal_charge.focus();
				return false;
			}
			if(e==""){
				alert("请输入化验费");
				document.totalChargeForm.examination_charge.focus();
				return false;
			}
			if(r!=parseFloat(r)){
				alert("价钱格式不正确!");
				document.totalChargeForm.registers_charge.focus();
				return false;
			}
			if(d!=parseFloat(d)){
				alert("价钱格式不正确!");
				document.totalChargeForm.deal_charge.focus();
				return false;
			}
			if(e!=parseFloat(e)){
				alert("价钱格式不正确!");
				document.totalChargeForm.examination_charge.focus();
				return false;
			}
			form.method.value=text;
			document.totalChargeForm.submit();
			}
			return true;
		}
	</script>
  </head>
  
  <body>
    <html:form action="/totalCharge">
    <table align=center bgcolor=cyan style="height:40px;" width="785" height="68">
    	<tr>
    		<td>
    			<html:hidden property="method" value=""/>
    			请输入病人编号:<html:text property="patient_id" value=""></html:text>
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			<html:button property="dd" onclick="return ttt('totalChargeSelect')">查询</html:button>
    		</td>
    	</tr>
    </table>
    <logic:present name="inf">
    	<table align=center border=1 width="785" height="88">
    		<tr>
    			<td align=right>所用药物总价:</td>
    			<td><font color=red><%=session.getAttribute("totalprice")%></font>元</td>
    		</tr>
    		<tr>
    			<td align=right>挂号费:</td>
    			<td><html:text property="registers_charge" value=""/>元</td>
    		</tr>
    		<tr>
    			<td align=right>处置费:</td>
    			<td><html:text property="deal_charge" value=""/>元</td>
    		</tr>
    		<tr>
    			<td align=right>化验费:</td>
    			<td><html:text property="examination_charge" value=""/>元</td>
    		</tr>
    		<tr>
    			<td><html:button property="ss" value="录入" onclick="return ttt('totalChargeInput')"/></td>
    		</tr>
    	</table>
    </logic:present>
    <logic:notPresent name="inf">
    
    </logic:notPresent>
    </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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