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

📄 index.jsp

📁 有关医院方向的开发
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@ include file="../../common/common.jsp"%>
<%@ page import="com.dc.common.*"%>
<html:html>
<%
   String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
%>
<head>
	<title>员工短信发送</title>
	<link href="<%=request.getContextPath()%>/css/style.css"
		rel="stylesheet" type="text/css">
	<script language="javaScript"
		src="<%=request.getContextPath()%>/scripts/check.js"></script>
	<script language="javaScript"
		src="<%=request.getContextPath()%>/scripts/page.js"></script>
	<script language="javaScript" src="/scripts/dialog.js"></script>
	<script language="javaScript" src="/scripts/pagination.js"></script>
	<script language="javaScript" src="/scripts/selectOption.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=GBK">


	<style>
input.button1 {
	font-size: 9pt;
	color: #195793;
	background-color: white;
	border: 2px #EEECFA dash;
	background: url(<%=request.getContextPath()%>/images/newbutton.gif) no repeat;
	width: 40px;
	height: 20px;
	border: 0px;
	cursor: hand;
}


</style>
</head>

<script language="javascript">

</script>
<%
if (RenCode !=null){
	if (SysConstant.SUCRETCODE.equals(RenCode)) {
	%>
	<script language="javascript">
		    alert("短信发送成功!");
		    window.close();
	        </script>
	<%
	
	}else{
	%>
	<script language="javascript">
		    alert("短信发送失败,请联系管理员!");
	        </script>
	 <%
	}
	session.removeAttribute(SysConstant.RETCODE);
}

%>
<body class="navtree">
	<html:form action="/MobileOfficeAction" method="post">
		<html:hidden name="MobileOfficeForm" property="stuffinfo.stuffid"
			value="1" />
		<table cellpadding="1" cellspacing="0" class="nav01">
			<tr>
				<td>
					<img src="<%=request.getContextPath()%>/images/b1.gif" width="12"
						height="12" />
					您现在的位置:移动办公>>员工短信发送
					<br>
				</td>
			</tr>
		</table>
		<html:errors />

		<table id="info" border="1" bordercolor="#7FB0DE"
			bordercolordark="#ffffff" cellpadding="1" cellspacing="0"
			class="content01">

			<tr class="listHead">
				<td align=left colspan=6>
					员工信息
				</td>
			</tr>
			<tr class="listContent">
				<td align=right>
					部门名称:
				</td>
				<td align=left>
					<html:select name="MobileOfficeForm" property="stuffinfo.orgcode" style="width:100" >
					 	<html:options collection="sendmessage_departlist" property="id" labelProperty="name" />
					</html:select>
				</td>
				<td align=right>
					群组名称:
				</td>
				<td align=left>
					<html:select name="MobileOfficeForm" property="stuffinfo.groupid"  style="width:100">
					 	<html:options collection="sendmessage_grouplist" property="id" labelProperty="name" />
					</html:select>
				</td>
				
				<td align=right>
					手机号码:
				</td>
				<td align=left>
					<html:text name="MobileOfficeForm" property="stuffinfo.svcnum" value="" maxlength="20"/>
				</td>
			</tr>
			<logic:present name="hotelList">
			<tr class="listContent">
				<td align=right>
					短信模板:
				</td>
				<td align=left  colspan=5>
					<html:select name="MobileOfficeForm" property="smsInfo.smsdesc"  style="width:100">
					 	<html:options collection="msmmessage_grouplist" property="id" labelProperty="name" />
					</html:select>
				</td>
			</tr>
			</logic:present>

			<tr class="listContent">
				<td align=left colspan=6>
					<%--<input type=button class=add onClick="add();">
			        --%>
					<input type="button" class="query" onClick="query();">
				</td>
			</tr>
		</table>
		<logic:present name="hotelList">
			<div id="biaoge">
				<table class="content01">
					<tr class="listHead">
						<td align=center>
							选择
						</td>
						<td align=center>
							员工名称
						</td>
						<td align=center>
							性别
						</td>
						<td align="center">
							部门名称
						</td>
						<td align="center">
							群组
						</td>
						<td align="center">
							手机号码
						</td>
					</tr>
					<logic:iterate id="hotel" name="hotelList" indexId="index">
						<tr class="listContent">
							<td align=center>
								<input type="checkbox" name="CHECKBOXVAL"
									value="<bean:write name="hotel" property="sqlertid" />:<bean:write name="hotel" property="svcnum" />"
									class="noborder" />
							</td>
							<td align=center>
								<bean:write name="hotel" property="stuffname" />
								&nbsp;
							</td>
							<logic:equal name="hotel" value="0" property="sex">
								<td align="center">
								</td>
							</logic:equal>
							<logic:equal name="hotel" value="1" property="sex">
								<td align="center">
								</td>
							</logic:equal>
							<td align="center">
								<bean:write name="hotel"
									property="organization.orgname" />&nbsp;
							</td>
							<td align="center">
								<bean:write name="hotel" property="group.groupname" />&nbsp;
							</td>
							<td align="center">
								<bean:write name="hotel" property="svcnum" />&nbsp;
							</td>
						</tr>
					</logic:iterate>

					<tr class="listContent">
						<td align=left colspan=10>
							<input type="button" class="button1" value="发送" onClick="send();">
						</td>
					</tr>

				</table>
				<%@ include file="../../../common/page.jsp"%>

			</div>

		</logic:present>
	</html:form>

</body>
</html:html>
<script language="javascript">
function query(){
	document.forms[0].action="MobileOfficeAction.do?method=querySendMessge";
    document.forms[0].submit();
}


function send(){
	 var boxes = document.getElementsByName("CHECKBOXVAL");
	   var cn = 0;
	   for (var i = 0; i < boxes.length; i++){
	 	  	if (!boxes[i].checked){
	 	  	cn++;           	
        	}
    	}

    	if(cn == boxes.length){
    		alert('请选择发送项,谢谢!');
			return false;
		}
	if(document.forms[0].elements["smsInfo.smsdesc"].value ==""){
		alert("请选择短信模板,谢谢!");
		return;
	}
	document.forms[0].action="MobileOfficeAction.do?method=sendMessge";
    document.forms[0].submit();
}
   function gotoPage(pageNo){
		window.location.href="MobileOfficeAction.do?method=querySendMessge&pageNo="+pageNo;
	}

</script>


⌨️ 快捷键说明

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