| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
- <%@ page import="cn.sinobest.framework.comm.iface.IOperator" %>
- <%@ page import="cn.sinobest.sysmngr.comm.ConVar" %>
- <%@ page import="cn.sinobest.framework.util.ConfUtil" %>
- <%@ page import="cn.sinobest.framework.util.Util" %>
- <%@ page import="cn.sinobest.sysmngr.service.blank.BlankService" %>
- <%@ page import="java.util.List" %>
- <%@ include file="/jsp/framework/head.jsp"%>
-
- <%
- response.setHeader("Pragma","No-cache");
- response.setHeader("Cache-Control","no-cache");
- response.setDateHeader("Expires", 0);
- IOperator Operator = null;
- Object obj = request.getSession().getAttribute(ConVar.LOGIN_SESSION_ID);
- String OperID="";
- String OperType2 = "";
- String BAE001="";
- String operUnitId = "-1";
- String wherebts=" 1=2 ";
- //待办任务列表的排序
- boolean isUnit = false;
- if(obj != null){
-
- Operator = (IOperator)obj;
- OperID = Operator.getOperID();
- BlankService blankService = (BlankService)Util.getBean("blankService");
- OperType2 = Operator.getOperType2();
- BAE001 = Operator.getBAE001();
- operUnitId = Operator.getOperUnitID();
-
- if("4".equals(OperType2) || "5".equals(OperType2)){
- isUnit = true;
- }
-
-
- if(Util.isEmpty(operUnitId)){
- operUnitId = "-1";
- }
-
- wherebts = "LOCATE(BAE001,'"+BAE001+"') = 1 and nvl(OPERUNITID,"+operUnitId+") = "+operUnitId
- + " and nvl(OPERUNITTYPE,"+OperType2+") = "+OperType2;
-
- //如果是定点医院用户或者是定点药店用户 ,则不接受通用的信息
- if(isUnit){
- wherebts = "OPERUNITID='"+ operUnitId +"' "
- + "or (LOCATE(BAE001,'"+BAE001+"') = 1 and OPERUNITTYPE = '"+OperType2+"' "
- + "and OPERUNITID is null)";
- }
- //需要弹出的公告的where语句
-
- }
- %>
- <style>
- .task-select{margin:0px;padding:0px;height:8px;border:0px;font-size:12px;}
- </style>
- <hnisi:gNavStr />
- <form name="aForm">
- <TABLE width="99%" height="99%" border="0" cellpadding="0" cellspacing="0">
- <TR height="100%" >
-
- <TD style="height:100%;width:100%">
-
- <table style="width:100%;height:100%;" border="0" cellpadding="0" cellspacing="0">
- <tr id='trBulletin' >
- <td style="width:100%" >
- <table style="width:100%;height:100%;" >
- <tr height="20px">
- <td style="width:50%;height:20px" class="blank_td_title"><span>公告栏 </span></td>
- <td style="width:50%;height:20px" class="blank_td_title"><span style="width:30%">公告列表</span><span style="width:65%;text-align:right;padding-right:10px"></span></td>
- </tr>
- <tr height="160px">
- <td style="width:50%;" >
- <div id="div_bulletin_show" style="overflow:auto;padding-left:5px;width:100%;height:100%;border: #B5B8C8 1px solid;"></div>
- </td>
- <td style="width:50%;">
- <hnisi:glt id="fw_blank_bulletin" height="300" hasPage="true" pageSize="6" hasTitle="false" whereCls="<%=wherebts%>"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="width:100%">
- <table style="width:100%;height:100%;" >
- <tr height="320">
- <td width="100%">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- </TD>
-
- </TR>
- </TABLE>
- </form>
- </body>
-
- <script type="text/javascript">
- var _enter = false;
- function doShow(COLID){
- var target = document.all.fw_blank_bulletin;
- var opts = jQuery.data(target, 'fwdatagrid').options;
- var data = opts.data;
- var rows = data.rows;
- var sValue = COLID +'';
- _enter = true;
-
- for(var i=0; i<rows.length; i++) {
- if(sValue==''){
- jQuery('#div_bulletin_show').html(rows[i]["CONTENT"]);
- break;
- }
-
- if(rows[i]["COLID"] == sValue){
- jQuery('#div_bulletin_show').html(rows[i]["CONTENT"]);
- break;
- }
- }
- }
-
- $(function(){
- doShow('');
- CFW.oGlt.doClick('fw_blank_bulletin','doClickRow');
- });
- function doClickRow(rowIndex,rowData){
- if(_enter){_enter=false; return true;}
- jQuery('#div_bulletin_show').html(rowData["CONTENT"]);
- }
- </script>
-
- </html>
|