修改表格高度

master
zengwh 6 years ago
parent a123c85634
commit 7acf1bf3c3

@ -7,6 +7,7 @@
package com.emr.controller;
import com.emr.entity.Emr_Dictionary;
import com.emr.entity.Power_User;
import com.emr.service.Emr_DictionaryService;
import com.emr.util.ExceptionPrintUtil;
import org.apache.shiro.SecurityUtils;
@ -17,6 +18,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@ -62,22 +64,19 @@ public class DictionaryController {
@ResponseBody
@RequestMapping(value = "/saveInfo")
public String saveInfo(Emr_Dictionary emrDictionary) {
public String saveInfo(Emr_Dictionary emrDictionary, HttpServletRequest request) {
String result="";
int bol=0;
Emr_Dictionary dic2 = new Emr_Dictionary();
// 从session获取用户名
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
Power_User powerUser = (Power_User)request.getSession().getAttribute("CURRENT_USER");
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String nowTime = format1.format(new Date());
try{
if(emrDictionary.getId()!=null){
//判断类别代码或代码是否已经存在
//存在修改
emrDictionary.setUpdater(username);
emrDictionary.setUpdater(powerUser.getUserName());
emrDictionary.setUpdateTime(nowTime);
bol=emrDictionaryService.updateCloById(emrDictionary);
if (bol == 1) {
@ -86,10 +85,10 @@ public class DictionaryController {
result = "修改失败!";
}
}else{
emrDictionary.setCreater(username);
emrDictionary.setCreater(powerUser.getUserName());
emrDictionary.setCreateTime(nowTime);
//判断类别代码或代码是否已经存在
if(emrDictionary.getCode()!=null && emrDictionary.getCode()!=""){
if(emrDictionary.getCode()!=null && !"".equals(emrDictionary.getCode())){
dic2.setCode(emrDictionary.getCode());
dic2.setParentId(emrDictionary.getParentId());
//根据代码查询该父类下是否存在是否已经存在

@ -2,6 +2,7 @@ package com.emr.controller;
import com.alibaba.fastjson.JSONObject;
import com.emr.entity.Power_User;
import com.emr.util.ActionScopeUtils;
import com.emr.util.HttpClientUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.StringUtils;
@ -22,18 +23,22 @@ import javax.servlet.http.HttpServletRequest;
*/
@Controller
public class LoginController {
@Value("${TOKEN_EXPIRE_TIME}")
private long TOKEN_EXPIRE_TIME;
@Value("${STR_SPLIT}")
private String STR_SPLIT;
@Value("${POWER_URLHEAD}")
private String POWER_URLHEAD;
@Value("${POWER_JSP}")
private String POWER_JSP;
@Value("${WEBSOCKET_URLHEAD}")
private String WEBSOCKET_URLHEAD;
@Value("${powerUrl}")
private String powerUrl;
@RequestMapping(value = "/toLogin")
public String toLogin(Model model) {
public String toLogin() {
return "redirect:/login.jsp";
}
@ -70,16 +75,20 @@ public class LoginController {
}
ObjectMapper mapper = new ObjectMapper();
Power_User powerUser = mapper.readValue(objects[0].toString(), Power_User.class);
//设置进session
request.getSession().setAttribute("CURRENT_USER", powerUser);
if (null == powerUser.getUserId()) {
return "redirect:/error.jsp";
}
UsernamePasswordToken userToken = new UsernamePasswordToken(userName, "123456");
Subject subject = SecurityUtils.getSubject();
subject.login(userToken);
model.addAttribute("POWER_URLHEAD", POWER_JSP);
request.getSession().setAttribute("token", token);
model.addAttribute("POWER_URLHEAD", POWER_URLHEAD);
model.addAttribute("POWER_JSP", POWER_JSP);
//传递通知需要的数据
model.addAttribute("WEBSOCKET_URLHEAD", WEBSOCKET_URLHEAD);
model.addAttribute("STR_SPLIT", STR_SPLIT);
//设置进session
ActionScopeUtils.setSessionAttribute("token",token,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)));
ActionScopeUtils.setSessionAttribute("CURRENT_USER",powerUser,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)));
}else{
return "redirect:"+POWER_URLHEAD+"/login";
}

@ -2,6 +2,7 @@ package com.emr.controller;
import com.emr.util.PropertiesUtils;
import org.apache.cxf.endpoint.Client;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@ -24,11 +25,13 @@ public class WebServiceLoad {
public void contextInitialized() {
new Thread(() -> {
String token = "ORsaVDUBE1RFRFRETE5BR05ERVQ3JyBURkRGRA==";
String POWER_URLHEAD = PropertiesUtils.getProperty("POWER_JSP");
String POWER_IP = PropertiesUtils.getProperty("POWER_IP");
String POWER_PORT = PropertiesUtils.getProperty("POWER_PORT");
//创建连接工厂
JAXDynamicClientFactory dcf = JAXDynamicClientFactory.newInstance();
//创建客户端
Client client = dcf.createClient(POWER_URLHEAD + "/WebService/PowerWebService?wsdl");
String url = "http://"+POWER_IP+":"+POWER_PORT+ "/power/WebService/PowerWebService?wsdl";
Client client = dcf.createClient(url);
try {
//动态调用getInfosByUserId方法
client.invoke("getInfosByUserId", token, "emr_medical_record");

@ -482,10 +482,7 @@ public class inHospitalController {
if (StringUtils.isNotBlank(masterId)) {
path2 += masterId + "\\";
}
// 从session获取用户名
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
String username = (String) session.getAttribute("userSession");//获取前面登录的用户名
Power_User powerUser = (Power_User)request.getSession().getAttribute("CURRENT_USER");
//类循环
if (fileObj != null && fileObj.size() > 0) {
for (int x = 0; x < fileObj.size(); x++) {
@ -509,7 +506,7 @@ public class inHospitalController {
entity.setRelationId(masterId);
entity.setAssortId(obj.get("selectVal").toString());
entity.setUpdateTime(nowTime);
entity.setUpdater(username);
entity.setUpdater(powerUser.getUserName());
int bol = 0;
String id= obj.get("id").toString();
try {
@ -576,7 +573,7 @@ public class inHospitalController {
//上传图片
imgs[t].transferTo(new File( pictureUrl+path2 + pathType + trueFileName));
entity.setId(idTime);
entity.setCreater(username);
entity.setCreater(powerUser.getUserName());
entity.setCreateTime(nowTime);
entity.setEffective(1);
entity.setMaxPicture(picSrc + path2 + pathType + trueFileName);
@ -600,7 +597,7 @@ public class inHospitalController {
//新的图片地址
entity.setMaxPicture(picSrc + path2 + pathType + trueFileName);
entity.setId(idTime);
entity.setCreater(username);
entity.setCreater(powerUser.getUserName());
entity.setCreateTime(nowTime);
entity.setEffective(1);
//插入记录

@ -431,7 +431,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
if (headNurseCheckFlag) {
if (headNurseCheckPower == 1 && headNurseCheckEffective == 1) {
targetCode = EnumVerify.DocState.HeadNurseCheck.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Generate.getCode() + "," + status + "," + targetCode +","+masterId+")'>"+headNurseSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Generate.getCode() + "," + status + "," + targetCode +","+masterId+")' title="+headNurseSumbitName+">"+headNurseSumbitName+"</button>";
}
} else {
@ -439,41 +439,41 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
if (!EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DortorSubmit)) {
if (doctorSumbitPower == 1 && doctorSubmitEffective == 1) {
targetCode = EnumVerify.DocState.DortorSubmit.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+ "," + masterId +")'>"+doctorSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+ "," + masterId +")' title="+doctorSumbitName+">"+doctorSumbitName+"</button>";
}
}
//没有医生质控员提交
if (!EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DortorCheck) && EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DortorSubmit) || doctorSubmitEffective == 0) {
if (doctorCheckSumbitPower == 1 && dortorCheckEffective == 1) {
targetCode = EnumVerify.DocState.DortorCheck.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+","+masterId+")'>"+doctorCheckSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+","+masterId+")' title="+doctorCheckSumbitName+">"+doctorCheckSumbitName+"</button>";
}
}
//没有科主任审核
if (!EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DirectorCheck) && EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DortorCheck) || (dortorCheckEffective == 0 && doctorSubmitEffective == 0) || (dortorCheckEffective == 0 && EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.DortorSubmit))) {
if (directorCheckSumbitPower == 1 && directorCheckEffective == 1) {
targetCode = EnumVerify.DocState.DirectorCheck.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+","+masterId+")'>"+directorCheckSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Dortor.getCode() + "," + status + "," + targetCode+","+masterId+")' title="+directorCheckSumbitName+">"+directorCheckSumbitName+"</button>";
}
}
//没有护士提交
if (!EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.NurseSubmit)) {
if (nurseSumbitPower == 1 && nurseSubmitEffective == 1) {
targetCode = EnumVerify.DocState.NurseSubmit.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Nurse.getCode() + "," + status + "," + targetCode+","+masterId+")'>"+nurseSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Nurse.getCode() + "," + status + "," + targetCode+","+masterId+")' title="+nurseSumbitName+">"+nurseSumbitName+"</button>";
}
//没有护士质控员提交
}
if (!EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.NurseCheck) && EnumVerify.DocState.HasCurrentState(status, EnumVerify.DocState.NurseSubmit) || nurseSubmitEffective == 0) {
if (nurseCheckSumbitPower == 1 && nurseCheckEffective == 1) {
targetCode = EnumVerify.DocState.NurseCheck.getCode();
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Nurse.getCode() + "," + status + "," + targetCode+","+masterId+")'>"+nurseCheckSumbitName+"</button>";
btns += "<button type='button' class='btn btn-primary btn-sm' onclick='verifyInfo(" + EnumVerify.Checker.Nurse.getCode() + "," + status + "," + targetCode+","+masterId+")' title="+nurseCheckSumbitName+">"+nurseCheckSumbitName+"</button>";
}
}
}
//退回按钮
if(StringUtils.isNotBlank(btns) && backPower == 1){
btns += "<button type='button' class='btn btn-warning btn-sm ' onclick='returnInfo("+status + "," + targetCode + "," + masterId + ")'>退回</button>";
btns += "<button type='button' class='btn btn-warning btn-sm ' onclick='returnInfo("+status + "," + targetCode + "," + masterId + ")' title='退回'>退回</button>";
}
}
}

@ -2,7 +2,6 @@ package com.emr.shiro;
import com.alibaba.fastjson.JSONObject;
import com.emr.util.HttpClientUtils;
import org.apache.poi.ss.formula.functions.T;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.*;
import org.apache.shiro.authz.AuthorizationInfo;
@ -10,12 +9,8 @@ import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.PrincipalCollection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import java.util.List;
import java.util.Set;
/**
* @author HJL
* @create 2019/4/29

@ -0,0 +1,43 @@
package com.emr.util;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
/**
*
* @Author: ljx
* @Date: 2019/4/23 18:24
* @Version 1.0
*/
public class ActionScopeUtils {
public static HttpSession getSession(HttpServletRequest request){
return request.getSession();
}
public static HttpServletRequest getRequest(){
return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
}
public static void setSessionAttribute(String key,Object value,int expireTime){
getSession(getRequest()).setAttribute(key,value);
getSession(getRequest()).setMaxInactiveInterval(expireTime);
}
public static Object getSessionAttribute(String key){
return getSession(getRequest()).getAttribute(key);
}
public static void setRequestAttribute(String key,Object value){
getRequest().setAttribute(key,value);
}
public static Object getRequestAttribute(String key){
return getRequest().getAttribute(key);
}
}

@ -5,7 +5,7 @@ import java.io.*;
import java.util.Properties;
public class PropertiesUtils {
private static String fileName = "\\config\\jdbc.properties";
private static String fileName = "\\config\\config.properties";
private static Properties props;
synchronized static private void loadProps(){

@ -30,7 +30,7 @@
<!--启动任务定时器-->
<task:annotation-driven/>
<context:property-placeholder location="classpath:config/jdbc.properties" />
<context:property-placeholder location="classpath:config/*.properties" />
<!--配置数据源-->
@ -46,6 +46,7 @@
<property name="testOnBorrow" value="false"/><!--借出连接时不要测试,否则很影响性能-->
<property name="testWhileIdle" value="true"/><!-- 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除.-->
<property name="minEvictableIdleTimeMillis" value="1800000"/><!-- 池中的连接空闲30分钟后被回收,默认值就是30分钟-->
<property name="maxWait" value="${maxWait}"/>
</bean>

@ -1,3 +1,36 @@
#power\u6743\u9650\u7CFB\u7EDFIP\u548C\u7AEF\u53E3
POWER_IP = 192.168.1.3
POWER_PORT = 8080
#power\u6743\u9650\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
POWER_URLHEAD = http://${POWER_IP}:${POWER_PORT}/power
#jsp\u9875\u9762\u524D\u7AEF\u8DF3\u8F6Cpower\u6743\u9650\u7CFB\u7EDFIP\u548C\u7AEF\u53E3
POWER_JSPHEAD = ${POWER_IP}
POWER_JSP = ${POWER_URLHEAD}
#power\u6743\u9650\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934\u5982\uFF1Ahttp://192.168.1.3:8081/power
powerUrl=${POWER_URLHEAD}/font/getMenusByUserIdAndSysFlag
#\u6821\u9A8C\u5B8C\u6574\u6027webService\u670D\u52A1\u63A5\u53E3
#\u6821\u9A8C\u5B8C\u6574\u6027IP
CHECKSUCCESS_IP = ${POWER_IP}
#\u6821\u9A8C\u5B8C\u6574\u6027\u7AEF\u53E3
CHECKSUCCESS_PORT = 8888
HomepageDictionary=http://${CHECKSUCCESS_IP}:${CHECKSUCCESS_PORT}/filing/services/HomepageDictionary?wsdl
HomepageMethod=CheckData
#webSocket\u670D\u52A1\u5668\u5730\u5740
WEBSOCKET_URLHEAD = ${POWER_IP}:8088
#session\u8FC7\u671F\u65F6\u95F4,\u5355\u4F4D\u79D2
TOKEN_EXPIRE_TIME = 7200
#\u901A\u77E5\u5B57\u7B26\u4E32\u95F4\u9694\u7B26
STR_SPLIT = *^:|,.
recallReason=\u533B\u9662\u9700\u8981\u8FD9\u4EFD\u6587\u6863
#pdf\u6C34\u5370
pdfWater = \u4F5B\u5C71\u5E02\u9AD8\u660E\u4EBA\u6C11\u533B\u9662

@ -5,31 +5,7 @@ jdbc.password=docus702
filters=stat
maxWait=60000
#Oracle
oracle.driver=oracle.jdbc.driver.OracleDriver
oracle.url=jdbc:oracle:thin:@192.168.10.6:1521/orc1
oracle.username=pacs
oracle.password=pacs
#hibernate config
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.hbm2ddl.auto=update
#hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
hibernate.current_session_context_class=thread
hibernate.jdbc.batch_size=50
hibernate.enable_lazy_load_no_trans=true
#\u83DC\u5355\u63A5\u53E3http://120.27.212.36:8888/power/font/getMenusByUserIdAndSysFlag
#powerUrl=http://120.27.212.36:8888/power/font/getMenusByUserIdAndSysFlag
#POWER_URLHEAD=http://120.27.212.36:8888/power
#power\u6743\u9650\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934\u5982\uFF1Ahttp://192.168.1.3:8081/power
powerUrl=http://192.168.1.3:8080/power/font/getMenusByUserIdAndSysFlag
POWER_URLHEAD=http://192.168.1.3:8080/power
POWER_JSP=http://192.168.1.3:8080/power
recallReason=\u533B\u9662\u9700\u8981\u8FD9\u4EFD\u6587\u6863
HomepageDictionary=http://200.100.104.40:8081/filing/services/HomepageDictionary?wsdl
HomepageMethod=CheckData

@ -0,0 +1,86 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="${path}/static/naranja/css/naranja.min.css"/>
<script type="text/javascript" src="${path}/static/naranja/js/naranja.js"></script>
<script type="text/javascript" src="${path}/static/naranja/sockjs.js"></script>
<script>
var powerUrlHead = $("#POWER_JSP").val();
/************************通知操作************************************/
$(function(){
getNoticeCount();
})
//赋值未通知数量
function getNoticeCount(){
var roleId = $("#roleId").val();
var userId = '';
if(roleId != 0){
userId = $("#userId").val();
}
//赋值未通知数量
$.ajax({
type:'get',
url:powerUrlHead+'/font/notice/getUnReadCount?userId='+userId,
dataType:'json',
sync:false,
success:function(data){
if(data.code == 100){
$("#noticeCount").text(data.extend.unReadCount);
}
}
})
}
//每隔1分钟轮询一次未通知数量
setInterval(function () {
getNoticeCount();
}, 60*1000);
//跳转到通知
function noticeManage1(noticeId){
//noticeId = 'emr_record'为跳转病案管理系统的病案未审批页面
var url = '';
if(noticeId == 'emr_medical_record'){
var approveUrl = $("#approveUrl").val();
url = path+approveUrl+"?flag=1";
parent.$("#iFrame1").prop("src",url);
}else{
url = powerUrlHead+"/gatewayPage?noticeId="+noticeId;
window.location.href = url;
}
}
/*******************************webSocket***********************************/
var userId = $("#userId").val();
var webSocketUrl = $("#webSocketUrl").val();
var strSplit = $("#strSplit").val();
var ws = new WebSocket("ws://"+webSocketUrl);
ws.onopen = function(){
ws.send("emr_medical_record_"+userId);
console.log("连接...")
}
//处理服务器发送来的数据
ws.onmessage = function(e){
var msg = e.data.split(strSplit);
narn('warn',msg[0],msg[1],msg[2]);
}
ws.onclose = function(){
console.log("连接关闭");
}
ws.onerror = function(){
console.log('连接失败');
}
function narn (type,title,text,noticeId) {
naranja()[type]({
title: title,
text: text,
timeout: 1000*60,
buttons: [{
text: '查看详情',
click: function (e) {
noticeManage1(noticeId)
}
}]
})
}
</script>

@ -671,7 +671,7 @@
</div>
</div>
</body>
<script src="${path}/static/js/beHospList/beHospList.js"></script>
<script src="${path}/static/js/beHospList/beHospList.js?time=2020-08-12"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-07-24"></script>
</html>

@ -168,7 +168,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(219), //定义表格的高度。
//height: getHeight(219), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -348,6 +348,7 @@
//console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");

@ -114,7 +114,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/flowInfo/flowInfoList.js"></script>
<script src="${path}/static/js/flowInfo/flowInfoList.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -126,5 +126,5 @@
</div>
</div>
</body>
<script src="${path}/static/js/holidaySet/holidaySetList.js"></script>
<script src="${path}/static/js/holidaySet/holidaySetList.js?time=2020-08-12"></script>
</html>

@ -521,7 +521,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(220), //定义表格的高度。
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -738,6 +738,7 @@
// console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");

@ -25,6 +25,9 @@
.indexSelected{
background-color: #42515F;
}
.navbar-custom-menu{
padding-right:17px;
}
#indexTreeMenu:hover{
overflow-y: auto;
overflow-x: hidden;
@ -32,6 +35,14 @@
#indexTreeMenu::-webkit-scrollbar{
display: none;
}
.pageTab{
font-weight: bold;
font-size: 14px;
padding-left: 15px;
}
.content{
padding-top:0px;
}
</style>
</head>
@ -151,16 +162,20 @@
});
</script>
<body class="skin-blue" data-spy="scroll" data-target="#scrollspy">
<input type="hidden" id="POWER_URLHEAD" value="${POWER_URLHEAD}">
<input type="hidden" id="POWER_JSP" value="${POWER_JSP}">
<input type="hidden" id="webSocketUrl" value="${WEBSOCKET_URLHEAD}">
<input type="hidden" id="strSplit" value="${STR_SPLIT}">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="../index2.html" class="logo">
<div class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<%--<span class="logo-mini"><b>A</b>LT</span>--%>
<!-- logo for regular state and mobile devices -->
<p>病案归档系统</p>
</a>
</div>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
@ -170,6 +185,12 @@
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="noticeManage1(-1)">
<span class="label label-warning" id="noticeCount">0</span>
<i class="fa fa-envelope-o" style="font-size: 25px;"></i>
</a>
</li>
<li class="user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/img/user2-160x160.jpg" class="user-image"
@ -201,9 +222,9 @@
<li>
<div class="margin">
<div class="btn-group">
<button type="button" class="btn btn-default">操作</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
aria-expanded="false" style="height:34px">
操作
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
@ -297,6 +318,7 @@
<div class="content-wrapper">
<span class="pageTab">归档列表/病案室终审</span>
<section class="content">
<!-- 内容 src="${path}/paper/allPaper"-->
<div class="page-content-wrapper">
@ -355,12 +377,13 @@
</div>
</div>
</div>
<%@ include file="/WEB-INF/jspf/webSocket.jspf" %>
<script>
$(document).ready(function () {
const headerHeight = $(".main-header").height() || 0;
const footerHeight = ($(".main-footer").height() || 0) + 31;
const windowHeight = $(window).height();
$("#iFrame1").css("height", windowHeight - headerHeight - footerHeight - 32);
var headerHeight = $(".main-header").height() || 0;
var footerHeight = ($(".main-footer").height() || 0) + 31;
var windowHeight = $(window).height();
$("#iFrame1").css("height", windowHeight - headerHeight - footerHeight - 36);
$("#indexTreeMenu").css("height",windowHeight - headerHeight);
})
</script>

@ -642,7 +642,7 @@
</div>
</div>
</body>
<script src="${path}/static/js/lastVerifyList/lastVerifyList.js"></script>
<script src="${path}/static/js/lastVerifyList/lastVerifyList.js?time=2020-08-12"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-07-24"></script>
</html>

@ -179,7 +179,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(220), //定义表格的高度。
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -313,6 +313,7 @@
//console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");

@ -213,5 +213,5 @@
</div>
</div>
</body>
<script src="${path}/static/js/medicalRecallList/medicalRecallList.js"></script>
<script src="${path}/static/js/medicalRecallList/medicalRecallList.js?time=2020-08-12"></script>
</html>

@ -87,7 +87,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/finalStatistics.js"></script>
<script src="${path}/static/js/statistics/finalStatistics.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
</body>
</html>

@ -110,7 +110,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/finalStatisticsDetail.js"></script>
<script src="${path}/static/js/statistics/finalStatisticsDetail.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -71,7 +71,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/firstStatistics.js"></script>
<script src="${path}/static/js/statistics/firstStatistics.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
</body>
</html>

@ -75,7 +75,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/printCount.js"></script>
<script src="${path}/static/js/statistics/printCount.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
</body>
</html>

@ -75,7 +75,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/printInfo.js"></script>
<script src="${path}/static/js/statistics/printInfo.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
</body>
</html>

@ -117,7 +117,7 @@
</div>
</c:if>
</div>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
<script src="${path}/static/js/statistics/recordStatistics.js"></script>
</body>

@ -75,7 +75,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/scanCount.js"></script>
<script src="${path}/static/js/statistics/scanCount.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
</body>
</html>

@ -75,7 +75,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/scanInfo.js"></script>
</body>
</html>

@ -110,7 +110,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/statisticsDetail.js"></script>
<script src="${path}/static/js/statistics/statisticsDetail.js?time=2020-08-12"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -667,7 +667,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(260), //定义表格的高度。
//height: getHeight(260), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -899,6 +899,7 @@
// console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");

@ -707,7 +707,7 @@
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(197), //定义表格的高度。
//height: getHeight(197), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -874,6 +874,7 @@
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -1,5 +0,0 @@
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>

@ -1,23 +0,0 @@
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2019/4/29
Time: 10:31
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<form action="login" method="post">
<input type="text" name="username"/>
<br>
<input type="password" name="password"/>
<br>
<input type="submit" value="登录"/>
</form>
例如用户名admin 密码123456
</body>
</html>

File diff suppressed because one or more lines are too long

@ -20,7 +20,7 @@ function initTable() {
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(220), //定义表格的高度。
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -157,13 +157,13 @@ function initTable() {
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
var html = "";
if (index != null && index.indexOf("select") !== -1) {
html = html + '<button type="button" class="btn btn-danger btn-sm selInfo" >查看</button>';
html = html + '<button type="button" class="btn btn-danger btn-sm selInfo" title="查看">查看</button>';
}
if (row.btns != '' && row.btns != null) {
html += row.btns;
}
if (index != null && index.indexOf("showFlow") !== -1) {
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo">查看流程</button>'
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo" title="查看流程">查看流程</button>'
}
return html;
},
@ -246,7 +246,8 @@ function initTable() {
],
onLoadSuccess: function () { //加载成功时执行
$(".page-list").show();
tipLoad = 0
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0

@ -99,6 +99,12 @@ function initDateInput(startTimeId,endTimeId){
function getHeight(height) {
return $(window).height() - height;
}
//重设表格高度
function reloadTableHeight(tableId) {
$("#"+tableId+".fixed-table-container").css({ "padding-bottom": "0px", height: $("#"+tableId+".fixed-table-body table").height() + 20 });
$('#'+tableId).bootstrapTable('resetView', { height: "auto" });
}
//加载时段
function loadTimeInterval(){
$.ajax({

@ -21,7 +21,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(224), //定义表格的高度。
//height: getHeight(224), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -150,6 +150,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -163,7 +163,7 @@ function initTable() {
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(266), //定义表格的高度。
//height: getHeight(266), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -262,7 +262,8 @@ function initTable() {
],
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad = 0
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0

@ -24,7 +24,7 @@ function initTable() {
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(220), //定义表格的高度。
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -91,38 +91,38 @@ function initTable() {
checkbox: true,
width: 25,
align: 'center',
valign: 'middle',
valign: 'middle'
},
{
title: '住院号',
field: 'inpNo',
align: 'left',
valign: 'middle',
valign: 'middle'
},
{
title: '住院次数',
field: 'visitId',
align: 'center',
valign: 'middle',
valign: 'middle'
},
{
title: '姓名',
field: 'name',
align: 'left',
valign: 'middle',
valign: 'middle'
},
{
title: '性别',
field: 'sex',
align: 'center',
valign: 'middle',
valign: 'middle'
},
{
title: '出院科室',
field: 'deptName',
align: 'left',
valign: 'middle',
valign: 'middle'
},
{
title: '出院日期',
@ -135,7 +135,7 @@ function initTable() {
{
title: '主管医生',
field: 'doctorInCharge',
align: 'left',
align: 'left'
},
{
title: '状态',
@ -161,16 +161,16 @@ function initTable() {
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
var html = "";
if (index != null && index != "" && index.indexOf("select") != -1) {
html = '<button type="button" class="btn btn-danger btn-sm selInfo" >查看</button>';
html = '<button type="button" class="btn btn-danger btn-sm selInfo" title="查看">查看</button>';
}
if (index != null && index != "" && index.indexOf("last") != -1) {
html += '<button type="button" class="btn btn-sm btn-primary verifyInfo">审核</button>';
html += '<button type="button" class="btn btn-sm btn-primary verifyInfo" title="审核">审核</button>';
}
if (index != null && index != "" && index.indexOf("back") != -1) {
html += '<button type="button" class="btn btn-warning btn-sm returnInfo" >退回</button>';
html += '<button type="button" class="btn btn-warning btn-sm returnInfo" title="退回">退回</button>';
}
if (index != null && index != "" && index.indexOf("showFlow") != -1) {
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo">查看流程</button>'
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo" title="查看流程">查看流程</button>'
}
return html;
},
@ -276,6 +276,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -38,7 +38,6 @@ function initTable() {
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(185), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -226,6 +225,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -101,6 +101,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -20,7 +20,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(224), //定义表格的高度。
//height: getHeight(224), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -161,6 +161,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -101,6 +101,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -112,6 +112,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -148,6 +148,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -58,7 +58,6 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(100), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
showHeader: true,//是否显示列头。
//是否显示导出按钮
@ -149,7 +148,7 @@ function initTable1() {
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
height: getHeight(150), //定义表格的高度。
//height: getHeight(150), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
showHeader: true,//是否显示列头。
//查询条件
@ -210,6 +209,7 @@ function initTable1() {
],
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
reloadTableHeight("table1");
},
//展开详情事件
onExpandRow: function (index, row, $detail) {//點擊datagrid 展開按鈕事件
@ -242,7 +242,7 @@ function initTable2() {
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
height: getHeight(150), //定义表格的高度。
//height: getHeight(150), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
showHeader: true,//是否显示列头。
//是否显示导出按钮
@ -319,6 +319,7 @@ function initTable2() {
],
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
reloadTableHeight("table2");
}
});
}

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -94,6 +94,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -17,7 +17,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getStaticTableHeight(), //定义表格的高度。
//height: getStaticTableHeight(), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -136,6 +136,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

@ -14,9 +14,9 @@ $(function () {
})
//指定扫描打印表格高度
function getStaticTableHeight(){
/*function getStaticTableHeight(){
return $(window).height() - 150;
}
}*/
function initDateInput(idVal){
$('#startTime'+idVal).datepicker({
language: "zh-CN",

@ -20,7 +20,7 @@ function initTable() {
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: getHeight(224), //定义表格的高度。
//height: getHeight(224), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -165,6 +165,7 @@ function initTable() {
onLoadSuccess: function (result) { //加载成功时执行
$(".page-list").show();
tipLoad =0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
tipLoad = 0;

File diff suppressed because one or more lines are too long

@ -0,0 +1,25 @@
body, html { font-size: 100%; padding: 0; margin: 0;}
/* Reset */
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
body{
font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
}

@ -0,0 +1,213 @@
.naranja-notification {
height: 0;
box-sizing: content-box;
padding: 10px 0;
transition: padding .7s cubic-bezier(0, .5, 0, 1), height .7s
cubic-bezier(0, .5, 0, 1)
}
.naranja-notification * {
box-sizing: border-box
}
.naranja-notification .narj-log {
background-color: #F9F9F9
}
.naranja-notification .narj-log button {
border: 1px solid #D2D2D2;
background-color: white
}
.naranja-notification .narj-log button:first-of-type {
color: #0099E5
}
.naranja-notification .narj-success {
background-color: #B8F4BC
}
.naranja-notification .narj-success button {
border: 1px solid #6ED69A;
background-color: #B8F4BC;
opacity: .9;
color: #11B674
}
.naranja-notification .narj-success button:first-of-type {
opacity: 1
}
.naranja-notification .narj-warn {
background-color: #FFDD85
}
.naranja-notification .narj-warn button {
border: 1px solid #F5CE69;
background-color: #FFDD85;
opacity: .9;
color: #D9993F
}
.naranja-notification .narj-warn button:first-of-type {
opacity: 1
}
.naranja-notification .narj-error {
background-color: #ED9286
}
.naranja-notification .narj-error button {
border: 1px solid #ED8476;
background-color: #ED9286;
opacity: .9;
color: #C24343
}
.naranja-notification .narj-error button:first-of-type {
opacity: 1
}
.naranja-notification .naranja-body-notification {
animation: .4s fadeUpIn 1 cubic-bezier(0, .5, 0, 1);
position: relative;
display: flex;
width: 310px;
border-radius: 4px;
padding: 7px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.16);
margin-bottom: 7px;
margin-top: 12px;
opacity: 1;
transition: opacity .15s ease, marginTop .3s ease, marginBottom .3s ease,
padding .3s ease
}
.naranja-notification .naranja-body-notification:hover .naranja-close-icon
{
opacity: .7
}
.naranja-notification .naranja-body-notification:hover .naranja-close-icon:hover
{
opacity: 1
}
.naranja-notification .naranja-body-notification>div {
display: inline-flex;
justify-content: center;
align-items: center
}
.naranja-notification .naranja-body-notification .naranja-text-and-title
{
padding-left: 15px;
flex-direction: column;
justify-content: center;
align-items: flex-start
}
.naranja-notification .naranja-body-notification .naranja-text-and-title>p
{
margin: 5px;
font-family: 'Open Sans'
}
.naranja-notification .naranja-body-notification .naranja-text-and-title>div
{
width: 100%
}
.naranja-notification .naranja-body-notification .naranja-text-and-title>div button
{
float: right;
margin-left: 6px;
margin-top: 10px;
margin-bottom: 2px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
border-radius: 3px;
padding: 2px 11px;
font-size: 14px;
text-align: center;
outline: none;
border-width: 1px;
box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.2);
cursor: pointer
}
.naranja-notification .naranja-body-notification .naranja-text-and-title>div button:active
{
opacity: .7
}
.naranja-notification .naranja-body-notification .naranja-title {
font-size: 20px;
opacity: 1
}
.naranja-notification .naranja-body-notification .naranja-parragraph {
font-size: 14px;
opacity: .6;
padding-right: 30px;
line-height: 1.4em
}
.naranja-close-icon {
position: absolute;
right: 7px;
top: 7px;
opacity: 0;
cursor: pointer;
transition: opacity .25s ease
}
@
keyframes fadeUpIn {
from {opacity: .2;
box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
transform: scale(.95)
}
75%{
opacity
:
1
}
to {
opacity: 1;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.16);
transform: scale(1)
}
}
.naranja-notification-box {
z-index:999;
box-sizing: content-box;
display: flex;
flex-direction: column-reverse;
position: fixed;
bottom: 0;
right: 0;
width: 315px;
height: auto;
max-height: 100vh;
overflow: auto;
padding: 8px;
padding-top: 20px
}
.naranja-notification-box .naranja-notification-advice {
position: fixed;
right: 138px;
top: -39px;
transform: translateY(0);
cursor: pointer;
transition: transform .3s ease
}
.naranja-notification-box .naranja-notification-advice.active {
transform: translateY(60px)
}

@ -0,0 +1,276 @@
// bip sound
// http://soundbible.com/mp3/A-Tone-His_Self-1266414414.mp3
(function (factory) {
// checking for exports avalible
if (typeof module !== 'undefined' && module.exports) {
// export Collection
module.exports = factory
} else {
// else add to root variable
window['naranja'] = factory
}
})(function () {
function setSideUpAnimation (finalNotification) {
setTimeout(function () {
var notificaciónHeight = finalNotification
.querySelector('.naranja-body-notification')
.offsetHeight
finalNotification.style.height = notificaciónHeight + 'px'
}, 0)
}
function createText (text) {
return document.createTextNode(text)
}
/**
* provide a reusable way to create html
* elements
* @param tag String html tag name
* @param classes Array<String> html tag classes
*/
function createElement (tag, classes) {
var $HTMLElement = document.createElement(tag)
if ( !!classes ) {
classes.forEach(function (className) {
$HTMLElement.classList.add(className)
})
}
return $HTMLElement
}
var $narjContainer = document.querySelector('.naranja-notification-box')
if (!$narjContainer) {
$narjContainer = createElement('div', ['naranja-notification-box'])
$newNotificationsAdvice = createElement('div', ['naranja-notification-advice'])
$newNotificationsAdvice.addEventListener('click', function () {
$narjContainer.scrollTop = '0'
})
$narjContainer.appendChild($newNotificationsAdvice)
document.body.appendChild($narjContainer)
}
$narjContainer.__proto__.unshifElement = function (node) {
this.insertBefore(node, this.childNodes[0])
}
$narjContainer.addEventListener('scroll', function (e) {
if (e.currentTarget.scrollTop < 20) {
$newNotificationsAdvice.classList.remove('active')
}
})
return {
log: function (argm) {
this.createNotification('log', argm)
},
success: function (argm) {
this.createNotification('success', argm)
},
warn: function (argm) {
this.createNotification('warn', argm)
},
error: function (argm) {
this.createNotification('error', argm)
},
/*
* Internal methods for
* launch notifications
*/
createNotification: function (type, argm) {
this.type = type
this.title = argm.title
this.text = argm.text
this.icon = (argm.icon === undefined) ? true : argm.icon
this.buttons = argm.buttons
var $notification = this.$createContainer()
var $body = $notification.querySelector('div')
this.$notification = $notification
this.$body = $body
// render icon if exists
if (this.icon) {
var $iconContainer = createElement('div', [
'naranja-icon',
'narj-icon-' + type
])
$iconContainer.innerHTML = this.chooseIcon[type]
$body.appendChild($iconContainer)
}
var $title = this.createTitle()
var $text = this.createText()
var $textAndTitleContainer = createElement('div', [
'naranja-text-and-title'
])
$textAndTitleContainer.appendChild($title)
$textAndTitleContainer.appendChild($text)
$body.appendChild($textAndTitleContainer)
// render buttons fragment if exists
if (this.buttons) {
var $buttons = this.createButtons($notification, $body)
$body
.querySelector('.naranja-text-and-title')
.appendChild($buttons)
}
var $close = createElement('div', [
'naranja-close-icon'
])
$close.addEventListener('click', (function () {
this.closeNotification()
}).bind(this))
// var $close = document.createElement('div')
// $close.classList.add('naranja-close-icon')
$close.innerHTML = this.chooseIcon.close
$body.appendChild($close)
$narjContainer.unshifElement($notification)
setSideUpAnimation($notification)
if ($narjContainer.scrollTop > 20) {
$newNotificationsAdvice.classList.add('active')
$newNotificationsAdvice.innerHTML = this.chooseIcon.newNotification
}
if (argm.timeout !== 'keep') {
setTimeout(
(function () {
this.closeNotification()
}).bind(this),
argm.timeout || 5000
)
}
},
$createContainer: function () {
// generate box for notification
var $container = createElement('div', [
'naranja-notification',
'naranja-' + this.type
])
var $innerContainer = createElement('div', [
'naranja-body-notification',
'narj-' + this.type
])
$container.appendChild($innerContainer)
return $container
},
createTitle: function () {
var $parragraph = createElement('p', [
'naranja-title'
])
var $tt = createText(this.title)
$parragraph.appendChild($tt)
return $parragraph
},
createText: function () {
var $title = createElement('p', [
'naranja-parragraph'
])
var $tx = document.createTextNode(this.text)
$title.appendChild($tx)
return $title
},
createButtons: function ($notification, $body) {
var $buttonsContainer = createElement('div', [
'naranja-buttons-container'
])
var self = this
this.buttons.forEach(function (button) {
var $buttonElement = createElement('button')
$buttonElement.appendChild(document.createTextNode(button.text))
$buttonElement.addEventListener('click', function (event) {
self.removeNotification = true
event.preventClose = function () {
self.removeNotification = false
}
event.closeNotification = function () {
self.closeNotification()
}
button.click(event)
if (self.removeNotification) self.closeNotification()
})
$buttonsContainer.appendChild($buttonElement)
})
return $buttonsContainer
},
closeNotification: function () {
var self = this
if ( !this.elementWasRemoved ) {
self.$body.style.opacity = '0'
setTimeout(function () {
self.$body.style.marginTop = '0px'
self.$body.style.marginBottom = '0px'
self.$body.style.padding = '0px'
self.$notification.style.height = 0 + 'px'
self.$notification.style.padding = 0 + 'px'
setTimeout(function () {
self.$notification
.parentNode
.removeChild(
self.$notification
)
}, 600);
if ($narjContainer.scrollTop < 20) {
$newNotificationsAdvice.classList.remove('active')
}
}, 150)
}
this.elementWasRemoved = true
},
chooseIcon: {
log: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#EEEEEE"/><path d="M26.595 37.5C26.3313 37.9546 25.9528 38.332 25.4973 38.5943C25.0419 38.8566 24.5256 38.9947 24 38.9947C23.4744 38.9947 22.9581 38.8566 22.5027 38.5943C22.0472 38.332 21.6687 37.9546 21.405 37.5M39 31.5H9C10.1935 31.5 11.3381 31.0259 12.182 30.182C13.0259 29.3381 13.5 28.1935 13.5 27V19.5C13.5 16.7152 14.6062 14.0445 16.5754 12.0754C18.5445 10.1062 21.2152 9 24 9C26.7848 9 29.4555 10.1062 31.4246 12.0754C33.3938 14.0445 34.5 16.7152 34.5 19.5V27C34.5 28.1935 34.9741 29.3381 35.818 30.182C36.6619 31.0259 37.8065 31.5 39 31.5V31.5Z" stroke="black" stroke-opacity="0.73" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',
success: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#6ED69A" fill-opacity="0.62"/><path d="M36 16.5L19.5 33L12 25.5" stroke="#11B674" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',
warn: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#F5CE69"/><path d="M24 16.5C24.8285 16.5 25.5 17.1716 25.5 18V24C25.5 24.8284 24.8285 25.5 24 25.5C23.1715 25.5 22.5 24.8284 22.5 24V18C22.5 17.1716 23.1715 16.5 24 16.5Z" fill="#DCA14E"/><path d="M25.5 28.5C25.5 27.6716 24.8285 27 24 27C23.1715 27 22.5 27.6716 22.5 28.5V30C22.5 30.8284 23.1715 31.5 24 31.5C24.8285 31.5 25.5 30.8284 25.5 30V28.5Z" fill="#DCA14E"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 24C7.5 14.8873 14.8873 7.5 24 7.5C33.1127 7.5 40.5 14.8873 40.5 24C40.5 33.1127 33.1127 40.5 24 40.5C14.8873 40.5 7.5 33.1127 7.5 24ZM24 10.5C16.5441 10.5 10.5 16.5442 10.5 24C10.5 31.4558 16.5441 37.5 24 37.5C31.4559 37.5 37.5 31.4558 37.5 24C37.5 16.5442 31.4559 10.5 24 10.5Z" fill="#DCA14E"/></svg>',
error: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#ED8476"/><path d="M34.0607 16.0607C34.6465 15.4749 34.6465 14.5251 34.0607 13.9393C33.4749 13.3536 32.5251 13.3536 31.9394 13.9393L24 21.8787L16.0607 13.9393C15.4749 13.3536 14.5251 13.3536 13.9394 13.9393C13.3535 14.5251 13.3535 15.4749 13.9394 16.0607L21.8787 24L13.9394 31.9393C13.3535 32.5251 13.3535 33.4749 13.9394 34.0607C14.5251 34.6464 15.4749 34.6464 16.0607 34.0607L24 26.1213L31.9394 34.0607C32.5251 34.6464 33.4749 34.6464 34.0607 34.0607C34.6465 33.4749 34.6465 32.5251 34.0607 31.9393L26.1213 24L34.0607 16.0607Z" fill="#C54F4F"/></svg>',
close: '<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.70711 1.7071C10.0976 1.31659 10.0976 0.683407 9.70711 0.292889C9.31659 -0.0976295 8.68341 -0.0976295 8.29289 0.292889L5 3.58578L1.70711 0.292889C1.31659 -0.0976295 0.68342 -0.0976295 0.292894 0.292889C-0.0976315 0.683407 -0.0976315 1.31659 0.292894 1.7071L3.58579 5L0.292894 8.29289C-0.0976315 8.68341 -0.0976315 9.31659 0.292894 9.7071C0.68342 10.0976 1.31659 10.0976 1.70711 9.7071L5 6.41421L8.29289 9.7071C8.68341 10.0976 9.31659 10.0976 9.70711 9.7071C10.0976 9.31659 10.0976 8.68341 9.70711 8.29289L6.41422 5L9.70711 1.7071Z" fill="black" fill-opacity="0.37"/></svg>',
newNotification: '<svg width="41" height="41" viewBox="0 0 41 41" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#filter0_d)"><circle cx="20.5" cy="16.5" r="16.5" fill="#C08AE1"/></g><path d="M13 21L21 13L29 21" stroke="black" stroke-opacity="0.6" stroke-width="3"/><defs><filter id="filter0_d" x="0" y="0" width="41" height="41" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>'
}
}
})

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save