<%@page import="com.zky.zhyw.smtj.Jdbc"%> <%@page import="com.zky.util.jdbc.HashFmlBufResultSetHandler"%> <%@page import="com.zky.util.jdbc.JDBCUtils"%> <%@page import="java.sql.PreparedStatement"%> <%@page import="java.sql.Connection"%> <%@page language="java" pageEncoding="utf-8" %> <%@ page import="com.zky.manager.*"%> <%@ page import="com.zky.pub.*"%> <%@ page import="java.util.List"%> <jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/> <% Login login_obj; login_obj = (Login)session.getAttribute("login"); //获取系统时间 String sysdate = new String(""); sysdate = Common.getSysDate(request); String year="",month="",day=""; year = sysdate.substring(0,4); month = sysdate.substring(5,7); day = sysdate.substring(8,10); //受理点 String acptsiteid = login_obj.acptsiteid; String acptsitename = getPara.getDesc("TAB_DEPARTMENT","DEPARTID","DEPARTNAME",acptsiteid); //营业员姓名 String optrid = login_obj.optrid; String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid); String optrjob = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPJOB",optrid); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <script src="jquery-1.2.6.pack.js"></script> <script> (function(){ var ua=navigator.userAgent.toLowerCase(); var is=(ua.match(/\b(chrome|opera|safari|msie|firefox)\b/) || ['','mozilla'])[1]; var r='(?:'+is+'|version)[\\/: ]([\\d.]+)'; var v=(ua.match(new RegExp(r)) ||[])[1]; jQuery.browser.is=is; jQuery.browser.ver=v; jQuery.browser[is]=true; })(); (function (jQuery){ this.version = '@1.3'; this.layer = {'width' : 220, 'height': 120}; this.title = '您好有新消息'; this.time = 5000; this.anims = {'type' : 'slide', 'speed' : 800}; this.timer1 = null; this.inits = function(title, text){ if($("#message").is("div")){ return; } $(document.body).prepend('<div id="message" style=" border:#b9c9ef 1px solid;z-index:100; color:red; width:'+this.layer.width+'px;height:'+this.layer.height+'px;position:absolute; display:none;background:#cfdef4; bottom:0; right:0; overflow:hidden;"><div style="border:1px solid #fff;border-bottom:none;width:100%;height:25px;font-size:12px;overflow:hidden;color:#1f336b;"><span id="message_close" style="float:right;padding:5px 0 5px 0;width:16px;line-height:auto;color:red;font-size:14px;font-weight:bold;text-align:center;cursor:pointer;overflow:hidden;">×</span><div style="padding:5px 0 5px 5px;width:100px;line-height:18px;text-align:left;overflow:hidden;">'+title+'</div><div style="clear:both;"></div></div> <div style="padding-bottom:5px;border:1px solid #fff;border-top:none;width:100%;height:auto;font-size:12px;"><div id="message_content" style="margin:0 5px 0 5px;border:#b9c9ef 1px solid;padding:10px 0 10px 5px;font-size:12px;width:'+(this.layer.width-17)+'px;height:'+(this.layer.height-50)+'px;color:#1f336b;text-align:left;overflow:hidden;">'+text+'</div></div></div>'); $("#message_close").click(function(){ setTimeout('this.close()', 1); }); $("#message").hover(function(){ clearTimeout(timer1); timer1 = null; },function(){ timer1 = setTimeout('this.close()', time); }); }; /** * 自动弹出消息 * @param title * @param text * @param time */ function add(){ alert("添加成功"); } <% Connection conn; PreparedStatement pstmt; StringBuffer sql=new StringBuffer("SELECT c.receive_state,c.receive_id,c.receive_departid FROM tm_file_recelve c WHERE 1=1 and c.receive_state='0' and c.receive_departid='"+acptsiteid+"'"); conn=DbConn.getConn(); HashFmlBuf provideBuf=(HashFmlBuf)JDBCUtils.query(conn,sql.toString(),new HashFmlBufResultSetHandler()); request.setAttribute("provideBuf",provideBuf); String reaciveid=provideBuf.fget("receive_id", 0); StringBuffer sql1=new StringBuffer("SELECT r.receive_state,f.file_id,f.provide_count,c.empname,r.receive_departid,r.receive_id,f.provide_departid,d.departid,f.provide_staffid,d.departname,f.provide_date FROM tm_file_recelve r LEFT JOIN tm_dtl_file_provide f ON r.file_id=f.file_id LEFT JOIN tab_department d ON r.receive_departid=d.departid LEFT JOIN tab_employee c ON f.provide_staffid=c.empid WHERE 1=1 and r.receive_id='"+reaciveid+"'"); conn =DbConn.getConn(); HashFmlBuf provideBuf1=(HashFmlBuf)JDBCUtils.query(conn,sql1.toString(),new HashFmlBufResultSetHandler()); request.setAttribute("provideBuf1",provideBuf1); %> this.show = function(title, text, time){ if($("#message").is("div")){ return; } if(title==0 || !title)title = this.title; this.inits(title, "收文单位:<<%=provideBuf1.fget("departname", 0)%><br/> 发文时间:<<%=provideBuf1.fget("PROVIDE_DATE", 0)%><br/>发文数量:<<%=provideBuf1.fget("provide_count", 0)%> 份"); if(time>=0)this.time = time; switch(this.anims.type){ case 'slide':$("#message").slideDown(this.anims.speed);break; case 'fade':$("#message").fadeIn(this.anims.speed);break; case 'show':$("#message").show(this.anims.speed);break; default:$("#message").slideDown(this.anims.speed);break; } if($.browser.is=='chrome'){ setTimeout(function(){ $("#message").remove(); this.inits(title, text); $("#message").css("display","block"); },this.anims.speed-(this.anims.speed/5)); } this.rmmessage(this.time); }; this.lays = function(width, height){ if($("#message").is("div")){ return; } if(width!=0 && width)this.layer.width = width; if(height!=0 && height)this.layer.height = height; } this.anim = function(type,speed){ if($("#message").is("div")){ return; } if(type!=0 && type)this.anims.type = type; if(speed!=0 && speed){ switch(speed){ case 'slow' : ;break; case 'fast' : this.anims.speed = 500; break; case 'normal' : this.anims.speed = 500; break; default: this.anims.speed = speed; } } } this.rmmessage = function(time){ if(time>0){ timer1 = setTimeout('this.close()', time); } }; this.close = function(){ switch(this.anims.type){ case 'slide':$("#message").slideUp(this.anims.speed);break; case 'fade':$("#message").fadeOut(this.anims.speed);break; case 'show':$("#message").hide(this.anims.speed);break; default:$("#message").slideUp(this.anims.speed);break; }; setTimeout('$("#message").remove();', this.anims.speed); this.original(); } this.original = function(){ this.layer = {'width' : 500, 'height': 500}; this.title = '信息提示'; this.time = 4000; this.anims = {'type' : 'slide', 'speed' : 600}; }; jQuery.messager = this; return jQuery; })(jQuery); </script> <script type="text/javascript"> if((<%=provideBuf1.fget("receive_departid", 0)%>==<%=acptsiteid%>) && (<%=provideBuf1.fget("receive_state", 0)%>=='0')){ $(document).ready(function(){ if(1==1){ $.messager.show(0,'add'); }else{ alert("<%=provideBuf1.fget("empname", 0)%>"); } }); }else{ } </script> <HEAD id=Head1> <TITLE>无标题页</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <meta http-equiv="X-UA-Compatible" content="IE=6" /> <meta http-equiv="X-UA-Compatible" content="IE=5" /> <STYLE type=text/css> *{ FONT-SIZE: 12px; COLOR: white; } #logo { COLOR: white; } #logo A { COLOR: white; } FORM { MARGIN: 0px; } a { text-decoration: none; } a:HOVER { text-decoration: underline; } </STYLE> <SCRIPT src="Top.files/Clock.js" type=text/javascript></SCRIPT> <script type="text/javascript"> function logout(){ rtn = confirm("确定注销系统吗?") if (rtn !="0"){ parent.window.location='login.jsp'; return true; }else{ return false; } } var ie55 = /MSIE ((5\.[56789])|([6789]))/.test( navigator.userAgent ) && navigator.platform == "Win32"; if ( !ie55 ) { window.onerror = function () { return true; }; } function writeNotSupported() { if ( !ie55 ) { document.write( "<p class=\"warning\">" + "This script only works in Internet Explorer 5.5" + " or greater for Windows</p>" ); } } function getQueryString( sProp ) { var re = new RegExp( sProp + "=([^\\&]*)", "i" ); var a = re.exec( document.location.search ); if ( a == null ) return ""; return a[1]; }; function changeCssFile( sCssFile ) { var loc = String(document.location); var search = document.location.search; if ( search != "" ) loc = loc.replace( search, "" ); loc = loc + "?css=" + sCssFile; document.location.replace( loc ); } var cssFile = getQueryString( "css" ); if ( cssFile == "" ) cssFile = "css/officexp.css"; document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"" + cssFile + "\" />" ); </script> <META content="MSHTML 6.00.2900.5848" name=GENERATOR> </HEAD> <BODY style="BACKGROUND-IMAGE: url(/images/bg.gif); MARGIN: 0px; BACKGROUND-REPEAT: repeat-x "> <form id="form1"> <DIV id=logo style="BACKGROUND-IMAGE: url(/images/logo.png); BACKGROUND-REPEAT: no-repeat"> <DIV style="PADDING-RIGHT: 0px; width:101%;BACKGROUND-POSITION: right 50%; DISPLAY: block; PADDING-LEFT: 0px; BACKGROUND-IMAGE: url(/images/bg_banner_menu.gif); PADDING-BOTTOM: 0px; PADDING-TOP: 3px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 30px; TEXT-ALIGN: right"> <IMG src="/images/nav_help.gif" style="display: inline-block;vertical-align: middle;"/> <a id=HyperLink1 target='c_main' href="/help/help_bmj.htm"><b>系统帮助</b></a> <IMG src="/images/menu_seprator.gif" style="display: inline-block;vertical-align: middle;" align=absMiddle> <img src="/images/nav_changePassword.gif" style="display: inline-block;vertical-align: middle;"> <A id=HyperLink2 href="chg_pwd.jsp" target='c_main' ><b>修改密码</b></A> <IMG src="/images/menu_seprator.gif" align=absMiddle> <IMG src="/images/closewindow.png" style="display: inline-block;vertical-align: middle;" /> <A id=HyperLink3 href="javascript:window.opener=logout();window.close();"><b>退出系统</b></A> </DIV> <DIV style="DISPLAY: block; HEIGHT: 54px"></DIV> <DIV style="BACKGROUND-IMAGE: url(images/bg_nav.gif) ; width:101%; BACKGROUND-REPEAT: repeat-x; HEIGHT: 30px"> <TABLE cellSpacing=0 cellPadding=0 width="100%"> <TBODY> <TR> <TD> <DIV><IMG src="/images/nav_pre.gif" align=absMiddle><SPAN id=lblBra></SPAN> <SPAN id=lblDep><B><%=optrname%></B> 您好! 现在是<%=year%>年<%=month%>月<%=day%>日,祝您今天工作愉快!</DIV> </TD> </TR> </TBODY> </TABLE> </DIV> </DIV> </form> </BODY> </HTML>