<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<%@ include file="/WEB-INF/jspf/common.jspf" %>
<%@ include file="/WEB-INF/jspf/ztreeCommom.jsp" %>
<%@ include file="/WEB-INF/jspf/boostrapSelect.jspf" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>预览PDF</title>
    <meta http-equiv=X-UA-Compatible IE=EmulateIE7>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="${path}/static/css/updatePic/common.css" type="text/css" rel="stylesheet">
    <link href="${path}/static/css/updatePic/index.css" type="text/css" rel="stylesheet">
    <link href="${path}/static/js/recordManage/templateSearch/jquery.qtip.min.css" type="text/css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="${path}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${path}/static/js/html5shiv.js"></script>
    <script src="${path}/static/js/respond.min.js"></script>
    <![endif]-->
    <script>
        var path = "${path}";
    </script>
    <script src="${path}/static/js/recordManage/templateSearch/jquery.qtip.min.js"></script>
    <script type="text/javascript" src="${path}/static/js/udpatePic/imgUp.js"></script>
    <style type="text/css">
        body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            background-color: #F2F2F2;
        }

        .searchDiv {
            width: 100%;
            height: 13%;
            background-color: #FFF;
        }

        .contentDiv {
            width: 100%;
            height: 86%;
            margin-top: 1%;
            background-color: #FFF;
        }

        .labelDiv {
            padding-top: 2%;
            padding-right: 0;
            text-align: right;
        }

        .rowDiv {
            padding-top: 0.5%;
        }

        .inputDiv {
            padding: 0 !important;
        }

        .modal-header {
            height: 6%;
            background-color: #1D9ED7;
        }

        h4 {
            color: #fff;
            font-size: 1.0em;
            font-weight: bold;
        }

        .left {
            float: left;
            width: 30%;
            height: 100%;
        }

        .line1 {
            float: left;
            width: 1px;
            height: 100%;
            background: darkgray;
        }

        .right {
            float: left;
            width: 69%;
            height: 100%;
        }

        .treeSearch {
            width: 80%;
            margin: 4px auto;
        }

        .addCode {
            margin: 6px 27px;
        }

        .form {
            float: left;
            width: 100%;
            padding-top: 1%;
        }

        .flagDiv {
            width: 80%;
            float: left;
            padding-top: 3%;
        }

        .codeBtn {
            float: right;
            width: 20%;
        }

        .formInput {
            width: 100%;
        }

        .input-group {
            width: 80%;
            padding-left: 9%;
            margin-top: -2%;
        }

        .typeBtn {
            width: 80%;
            padding-left: 34%;
        }

        .formDiv {
            display: none;
        }

        .formHead {
            font-color: blue;
            padding-left: 18%;
            font-size: 1.5em;
            margin-bottom: 2%;
        }

        hr {
            margin: 0 !important;
        }

        .collectLabel {
            margin-top: 1%;
            text-align: right;
        }

        .collectDiv {
            margin-top: 2%;
        }

        .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
            width: 295px;
        }

        .modal-title {
            margin-top: -6px;
        }

        .seal-result {
            width: 60px;
            height: 60px;
            transform: rotate(30deg);
            border: solid 2px red;
            border-radius: 100%;
            text-align: center;
            color: red;
            font-size: 16px;
            font-weight: bold;
            line-height: 60px;
            left: 20%;
            top: 6%;
            position: absolute;
            background-color: rgba(255, 255, 255, 0.8);
            z-index: 1000;
        }
    </style>
</head>
<body style="scroll:auto" onkeydown="disabledPrint()">
<input hidden type="hidden" id="patientId" value="${patientId}">
<!--174、祈福医院扫描图片存放根目录的字段-->
<input hidden type="hidden" id="flag" value="file_path">
<!--存放扫描图片和新上传图片根目录的集合-->
<input hidden type="hidden" id="rootPaths">
<div class="main">
    <div class="headDiv">
        <div class="headSpanDiv">
            <span class="headspan">
                病案浏览
            </span>
        </div>
    </div>
    <!--病案详情-->
    <div class="searchDiv">
        <input type="hidden" id="admissId" value="${commom.admissId}">
        <div class="row rowDiv">
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">病案号：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input input-sm inpatientNo" id="inpatientNo"
                               onmouseover="this.title=this.value">
                    </div>
                </div>
            </div>
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">姓名：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input-sm input" id="name">
                    </div>
                </div>
            </div>
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">住院次数：</label>
                    <div class="col-sm-7">
                        <c:choose>
                            <c:when test="${user.roleId == 0 || user.roleId == -100}">
                                <select class="form-control input input-sm admissTimes" id="admissTimes"></select>
                            </c:when>
                            <c:otherwise>
                                <select class="form-control input input-sm admissTimes" id="admissTimes"
                                        disabled></select>
                            </c:otherwise>
                        </c:choose>

                    </div>
                    <div type="hidden" id="admissTimesValue"></div>
                </div>
            </div>
            <c:if test="${printCount == '1'}">
                <div class="seal-result">已打印</div>
            </c:if>
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">出院日期：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input-sm input" id="disDate">
                    </div>
                </div>
            </div>
        </div>
        <div class="row rowDiv">
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">出院科室：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input-sm input" id="disDeptName">
                    </div>
                </div>
            </div>
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">主要诊断：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input-sm input" id="diagName">
                    </div>
                </div>
            </div>
            <div class="col-sm-3 inputDiv">
                <div class="form-group">
                    <label class="col-sm-5 control-label labelDiv">其他诊断：</label>
                    <div class="col-sm-7">
                        <input type="text" readonly class="form-control input-sm input otherDiagName"
                               id="otherDiagName">
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="form-group">
                    <%-- <shiro:hasPermission name="/commom/addCode">
                         <div class="col-sm-4">
                             <a  href="${path}/commom/codeTable?patientId=${patientId}" target="_blank"><button type="button" class="btn btn-sm btn-primary" &lt;%&ndash;onclick="insertCode()" data-toggle="modal" data-target="#myModal1"&ndash;%&gt;>编码录入</button></a>
                         </div>
                     </shiro:hasPermission>--%>
                    <shiro:hasPermission name="/commom/updatePic">
                        <div class="col-sm-4">
                            <button type="button" class="btn btn-sm btn-primary" data-toggle="modal"
                                    data-target="#myModal3" onclick="addPic()">新增扫描图片
                            </button>
                        </div>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="/commom/metronome">
                            <div class="col-sm-4">
                                <button type="button" class="btn btn-sm btn-primary"
                                    onclick="openUrl()">高拍仪
                                </button>
                            </div>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="/commom/recoverPic">
                        <div class="btn" id="recoverPic" style="display: none">
                            <button type="button" class="btn btn-sm btn-warning" data-toggle="modal"
                                    data-target="#myModal5" onclick="recoverPic()">恢复扫描图片
                            </button>
                        </div>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="/collect/addCollect">
                        <div class="col-sm-4">
                            <button type="button" class="btn btn-sm btn-primary" data-toggle="modal"
                                    data-target="#myModal2" onclick="collect()">&nbsp;&nbsp;&nbsp;&nbsp;收藏&nbsp;&nbsp;&nbsp;&nbsp;
                            </button>
                        </div>
                    </shiro:hasPermission>
                </div>
            </div>
        </div>
    </div>
    <div class="contentDiv">
        <iframe width="100%" height="100%" src="" id="iframe" frameborder="0" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" oallowfullscreen="true" msallowfullscreen="true"></iframe>
    </div>
</div>
<!-- 模态框1（Modal）编码信息 -->
<div class="modal fade bs-example-modal-lg" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <input type="hidden" id="roleId" value="${user.roleId}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content modal1Content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    编码信息
                </h4>
            </div>
            <div class="modal-body code-body">
                <a target="_blank">
                    <iframe class="row-fluid" style="width:100%;height: 100%" src="" id="iFrame1" name="iFrame1"
                            scrolling="yes" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" oallowfullscreen="true" msallowfullscreen="true"></iframe>
                </a>
                <%-- <!--左边树-->
                 <div class="left">
                     <div class="treeSearch">
                         <input type="text" id="key" value="" class="form-control input-sm "
                                placeholder="名称"/>
                     </div>
                     <div class="addCode">
                         <button type="button" class="btn btn-sm btn-primary" onclick="addCodeType()">添加编码类别</button>
                     </div>
                     <div class="zTreeDemo">
                         <ul id="ztree" class="ztree"></ul>
                     </div>
                 </div>
                 <div class="line1"></div>
                 <div class="right">
                     <!--后边内容-->
                     <div class="form">
                         <!--类别-->
                         <div class="typeDiv formDiv" id="div1">
                             <form>
                                 <input type="hidden" id="codeTypeId">
                                 <input type="hidden" id="treeId">
                                 <div class="flagDiv">
                                     <div class="form-group input-group">
                                         <div class="col-sm-4 labelDiv">
                                             <label class="control-label">类别标志：</label>
                                         </div>
                                         <div class="col-sm-8 inputDiv">
                                             <input type="text" class="form-control input-sm " id="typeFlag">
                                         </div>
                                     </div>
                                     <div class="form-group input-group">
                                         <div class="col-sm-4 labelDiv">
                                             <label class="control-label">类别名称：</label>
                                         </div>
                                         <div class="col-sm-8 inputDiv">
                                             <input type="text" class="form-control input-sm  formInput" id="typeName">
                                         </div>
                                     </div>
                                     <div class="form-group input-group">
                                         <div class="col-sm-4 labelDiv">
                                             <label class="control-label">有效否：</label>
                                         </div>
                                         <div class="col-sm-8 inputDiv">
                                             <select class="form-control input-sm input" name="effective" id="typeEffective">
                                                 <option value="1">是</option>
                                                 <option value="0">否</option>
                                             </select>
                                         </div>
                                     </div>
                                     <div class="form-group typeBtn" id="codeTypeBtn">
                                         <shiro:hasPermission name="/commom/addCodeType">
                                             <div class="col-sm-6">
                                                 <button type="button" class="btn input-sm btn-primary" onclick="saveCodeType()">保存</button>
                                             </div>
                                         </shiro:hasPermission>
                                         <shiro:hasPermission name="/commom/delCodeTypeById">
                                             <div class="col-sm-6">
                                                 <button type="button" class="btn input-sm btn-danger" onclick="delCodeType()">删除</button>
                                             </div>
                                         </shiro:hasPermission>
                                     </div>
                                 </div>
                                 <div class="codeBtn">
                                     <shiro:hasPermission name="/collect/addCollect">
                                         <div class="btn">
                                             <button type="button" class="btn btn-sm btn-success" onclick="addCode()">添加编码</button>
                                         </div>
                                     </shiro:hasPermission>
                                 </div>
                             </form>
                         </div>
                         <!--手术编码-->
                         <div class="typeDiv formDiv" id="div2">
                             <form>
                                 <input type="hidden" id="formToken1">
                                 <div class="formHead">
                                     <span style="color:blue">手术编码信息</span>
                                     <hr>
                                 </div>
                                 <!--该手术序号-->
                                 <input type="hidden" id="currentOperateNo">
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术序号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="number" class="form-control input-sm formInput" id="operateNo" oninput="if(value.length>3)value=value.slice(0,3)">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术编码：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="operateCode">
                                             <c:forEach items="${cm3s}" var="cm3">
                                                 <option value="${cm3.code}">${cm3.code}</option>
                                             </c:forEach>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术名称：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="operateName">
                                             <c:forEach items="${cm3s}" var="cm3">
                                                 <option value="${cm3.name}">${cm3.name}</option>
                                              </c:forEach>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术日期：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control formInput input-sm  datepicker" id="operateDate">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术医生：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="operator" maxlength="25">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">I助：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="assistant1" maxlength="25">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">II助：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="assistant2" maxlength="25">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">麻醉方式：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="anaesthesiaType">
                                             <c:forEach items="${anaesthesias}" var="anaesthesia">
                                                 <option value="${anaesthesia.code}">${anaesthesia.name}</option>
                                             </c:forEach>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">切口愈合等级：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="cut">
                                             <c:forEach items="${cutHealGrades}" var="cutHealGrade">
                                                 <option value="${cutHealGrade.code}">${cutHealGrade.name}</option>
                                             </c:forEach>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">麻醉医生：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="anaesthesiaName" maxlength="25">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">手术类型：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="form-control input-sm input" id="operateClass">
                                             <c:forEach items="${operateClasses}" var="operateClass">
                                                 <option value="${operateClass.code}">${operateClass.name}</option>
                                             </c:forEach>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="formHead">
                                     <span style="color:blue">录入员信息</span>
                                     <hr>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员编号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="operCode" value="${user.userId}">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员姓名：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="operName" value="${user.userName}">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入日期：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" readonly class="form-control input-sm formInput" id="operDate">
                                     </div>
                                 </div>
                                 <div class="form-group typeBtn">
                                     <shiro:hasPermission name="/commom/addOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-primary" onclick="saveOperCode()">保存</button>
                                         </div>
                                     </shiro:hasPermission>
                                     <shiro:hasPermission name="/commom/deleteOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-danger" onclick="delOperCode()">删除</button>
                                         </div>
                                     </shiro:hasPermission>
                                 </div>
                             </form>
                         </div>
                         <!--西医诊断编码-->
                         <div class="typeDiv formDiv" id="div3">
                             <form>
                                 <input type="hidden" id="formToken2">
                                 <div class="formHead">
                                     <span style="color:blue">西医诊断信息</span>
                                     <hr>
                                 </div>
                                 <!--该诊断序号-->
                                 <input type="hidden" id="currentDiagNo">
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">诊断序号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="number" class="form-control input-sm formInput" id="diagNo" oninput="if(value.length>3)value=value.slice(0,3)">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">西医诊断ICD：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="diagCode">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">西医诊断病名：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="diagName1">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">诊断类型：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="form-control input-sm input" id="diagType">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">转归情况：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="form-control input-sm input" id="disThing">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">病理切片号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="pathologyCut" maxlength="5">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">X光片号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="xRay" maxlength="15">
                                     </div>
                                 </div>
                                 <div class="formHead">
                                     <span style="color:blue">录入员信息</span>
                                     <hr>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员编号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" id="diagOperCode" value="${user.userId}">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员姓名：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput operName" id="diagOperName" value="${user.userName}">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入日期：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" readonly class="form-control input-sm formInput" id="diagOperDate">
                                     </div>
                                 </div>
                                 <div class="form-group typeBtn">
                                     <shiro:hasPermission name="/commom/addOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-primary" onclick="saveDiag()">保存</button>
                                         </div>
                                     </shiro:hasPermission>
                                     <shiro:hasPermission name="/commom/deleteOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-danger" onclick="deleteDiag()">删除</button>
                                         </div>
                                     </shiro:hasPermission>
                                 </div>
                             </form>
                         </div>
                         <!--中医诊断编码-->
                         <div class="typeDiv formDiv" id="div4">
                             <form>
                                 <input type="hidden" id="formToken3">
                                 <div class="formHead">
                                     <span style="color:blue">中医诊断信息</span>
                                     <hr>
                                 </div>
                                 <input type="hidden" id="currentHerbDiagNo">
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">中医诊断序号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="number" class="form-control input-sm formInput" id="herbNo" oninput="if(value.length>3)value=value.slice(0,3)">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">中医诊断ICD：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="herbCode">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">中医诊断病名：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="selectpicker" data-live-search="true" id="herbName">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">诊断类型：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="form-control input-sm input" id="herbType">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">转归情况：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <select class="form-control input-sm input" id="herbThing">
                                         </select>
                                     </div>
                                 </div>
                                 <div class="formHead">
                                     <span style="color:blue">录入员信息</span>
                                     <hr>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员编号：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" value="${user.userId}" id="herbDiagOperCode">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入员姓名：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" class="form-control input-sm formInput" value="${user.userName}" id="herbDiagOperName">
                                     </div>
                                 </div>
                                 <div class="form-group input-group">
                                     <div class="col-sm-4 labelDiv">
                                         <label class="control-label">录入日期：</label>
                                     </div>
                                     <div class="col-sm-8 inputDiv">
                                         <input type="text" readonly class="form-control input-sm formInput" id="herbDiagOperDate">
                                     </div>
                                 </div>
                                 <div class="form-group typeBtn">
                                     <shiro:hasPermission name="/commom/addOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-primary" onclick="saveHerbDiag()">保存</button>
                                         </div>
                                     </shiro:hasPermission>
                                     <shiro:hasPermission name="/commom/deleteOperCode">
                                         <div class="col-sm-6">
                                             <button type="button" class="btn btn-sm btn-danger" onclick="deleteHerbDiag()">删除</button>
                                         </div>
                                     </shiro:hasPermission>
                                 </div>
                             </form>
                         </div>
                     </div>
                 </div>--%>
            </div>
        </div>
    </div>
</div>
<!-- 模态框2（Modal）添加收藏 -->
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabe2" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width:80%">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    收藏内容
                </h4>
            </div>
            <div class="modal-body" style="height:60%">
                <form class="form-horizontal" role="form" id="collectForm">
                    <input type="hidden" name="formToken" id="formToken">
                    <input type="hidden" id="collectId" value="${collect.id}">
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">标题：</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control input-sm input" id="title">
                            </div>
                            <div class="col-sm-1"></div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">收藏时间：</label>
                            <div class="col-sm-7">
                                <input type="text" readonly class="form-control input-sm input" id="collectTime">
                            </div>
                            <div class="col-sm-1"></div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">收藏类别：</label>
                            <div class="col-sm-7">
                                <select class="form-control input-sm input" id="parentId"></select>
                            </div>
                            <div class="col-sm-1"></div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">内容：</label>
                            <div class="col-sm-7">
                                <textarea class="form-control input-sm input" id="content"></textarea>
                            </div>
                            <div class="col-sm-1"></div>
                        </div>
                    </div>
                </form>
                <div style="text-align: center">
                    <button type="button" class="btn btn-sm btn-primary" onclick="saveCollect()">保存</button>
                    <button type="button" class="btn btn-sm btn-default" onclick="clearCollect()">清空</button>
                </div>
                <div class="row collectDiv">
                    <div class="form-group">
                        <label class="col-sm-4 control-label collectLabel">病案号：</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control input-sm input" readonly id="inpatientNo1">
                        </div>
                        <div class="col-sm-1"></div>
                    </div>
                </div>
                <div class="row collectDiv">
                    <div class="form-group">
                        <label class="col-sm-4 control-label collectLabel">姓名：</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control input-sm input" id="name1" readonly>
                        </div>
                        <div class="col-sm-1"></div>
                    </div>
                </div>
                <div class="row collectDiv">
                    <div class="form-group">
                        <label class="col-sm-4 control-label collectLabel">住院次数：</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control input-sm input admissTimes" readonly
                                   id="admissTimes1">
                        </div>
                        <div class="col-sm-1"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 模态框3（Modal）添加资料 -->
<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabe3" aria-hidden="true"
     自定义查询>
    <div class="modal-dialog" style="width:90%;height:90%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    上传资料
                </h4>
            </div>
            <div class="modal-body" style="min-height: 90%">
                <form class="form-horizontal" role="form" id="form" enctype="multipart/form-data">
                    <input type="hidden" name="multipartFile" id="multipartFile">
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">选择类别：</label>
                            <div class="col-sm-3">
                                <select class="form-control input-sm input" name="assortId" id="assortId" >
                                    <%--<option <c:if test="${assortId == 0}">selected</c:if> value="0">否</option>--%>
                                </select>
                            </div>
                            <%--<div class="col-sm-2">
                                <input type="file" onchange="" name=""
                                       accept="image/*" multiple id="file"/>
                            </div>--%>
                            <div class="col-sm-3">
                                <button type="button" class="btn btn-sm btn-primary" onclick="save()">确认上传</button>
                            </div>
                        </div>
                    </div>
                    <%-- <div id="img_div_1">
                         <input type="file" id="file_input" onchange="addFile(this);" />
                         <div style="position: relative;">
                             <img id="file_img" src="" width="75" onclick="file_input.click();" height="65" />
                         </div>
                         <div class="divX" id="img_zindex_div_1" onclick="del()">
                             <img src="${path}/static/img/no.jpg" width="16" height="16" />
                         </div>
                     </div>--%>
                    <div class="img-box full">
                        <section class=" img-section">
                            <div class="z_photo upimg-div clear">
                                <!--<section class="up-section fl">
                                     <span class="up-span"></span>
                                     <img src="img/buyerCenter/a7.png" class="close-upimg">
                                     <img src="img/buyerCenter/3c.png" class="type-upimg" alt="添加标签">
                                     <img src="img/test2.jpg" class="up-img">
                                     <p class="img-namep"></p>
                                     <input id="taglocation" name="taglocation" value="" type="hidden">
                                     <input id="tags" name="tags" value="" type="hidden">
                                 </section>-->
                                <section class="z_file fl">
                                    <img src="${path}/static/img/a11.png" class="add-img">
                                    <input type="file" name="file" id="file" class="file" value=""
                                           accept="image/jpg,image/jpeg,image/png,image/bmp" multiple/>
                                </section>
                            </div>
                        </section>
                    </div>
                    <aside class="mask works-mask">
                        <div class="mask-content">
                            <p class="del-p ">您确定要删除这张图片吗？</p>
                            <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span>
                            </p>
                        </div>
                    </aside>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${path}/static/js/recordManage/commomSearch/showRecord174.js?t=2022-01-17"></script>
<script type="text/javascript"
        src="${path}/static/js/recordManage/commomSearch/showRecordIframeBloodCommom.js"></script>
<script type="text/javascript" src="${path}/static/js/dateUtil.js"></script>
</body>
</html>
