<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
<link rel="stylesheet" href="/thmz/css/bootstrap/css/daterangepicker.css"/>
<link rel="stylesheet" href="/thmz/css/iCheck/blue.css">
<link rel="stylesheet" href="/thmz/css/custom.min.css">
<link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
<link rel="stylesheet" href="/thmz/css/registration.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<script src="/thmz/js/dependent/icheck.js"></script>
<script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
<script src="/thmz/js/dependent/validator.js"></script>
<script src="/thmz/js/mz/registration_list.js"></script>
<script src="/thmz/js/dependent/LodopFuncs.js"></script>
<title>挂号列表</title>
<style>
    .thmz_alert .alert::after {
        content: '';
        display: block;
        height: 0;
        width: 0;
        border-color: transparent transparent #CE5454 transparent;
        border-style: solid;
        border-width: 11px 7px;
        position: absolute;
        left: 23px;
        top: -23px;
    }

    .thmz_alert .alert {
        float: right;
        margin-right: 10px;
        margin-top: 12px;
    }

    .input-group-own {
        margin-bottom: 0px;
    }
</style>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">

        <div class="col-md-3 col-sm-3 col-xs-12">
            <div class="title">
                <div>挂号列表</div>
            </div>
        </div>

        <div class="col-md-9 col-sm-9 col-xs-12">
            <form class="form-horizontal form-label-left" novalidate autocomplete="off">
                <div class="item form-group">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="serialNoParams">机制号</label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="serialNoParams" class="form-control col-md-7 col-xs-12"
                                   placeholder="机制号" type="text">
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="deptNoParam">科室
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="deptNoParam" onchange="initListDoctorSelect()">
                            </select>
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="doctorParam">医生
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="doctorParam">
                            </select>
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="phoneParam">手机
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="phoneParam" class="form-control col-md-7 col-xs-12"
                                   placeholder="手机" type="text">
                        </div>
                    </div>
                </div>
                <div class="item form-group">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="userNameParam">患者ID/姓名 </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="userNameParam" class="form-control col-md-7 col-xs-12"
                                   placeholder="患者ID/姓名" type="text">
                        </div>
                        <!--<label class="control-label col-md-1 col-sm-1 col-xs-12" for="sourceParam">来源-->
                        <!--</label>-->
                        <!--<div class="col-md-3 col-sm-3 col-xs-12">-->
                            <!--<select class="form-control selectpicker show-tick" required="required" id="sourceParam">-->
                            <!--</select>-->
                        <!--</div>-->
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="reportrange">时间
                        </label>
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <div id="reportrange" class="pull-right"
                                 style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc">
                                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                                <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
                            </div>
                        </div>
                        <div class="col-md-3 col-sm-3 col-xs-12" style="padding: 2px 4px;">
                            <button type="button"
                                    style="margin-bottom: 10px !important;float: right;margin-right: 10px;"
                                    class="btn btn-primary" id="queryListButton" title="查询">
                                <i class="fa fa-search"></i>
                            </button>
                            <button type="button" style="margin-bottom: 10px !important;float: right;margin-right: 10px;"  id="btn_excel" class="btn btn-primary"
                                    title="导出EXCEL"><i class="fa fa-file-excel-o"></i>
                            </button>
                            <button type="button"
                                    style="margin-bottom: 10px !important;float: right;margin-right: 10px;"
                                    class="btn btn-primary" title="重置" onclick="clearParams();">
                                <i class="fa fa-rotate-left"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="btn-group" id="regi_List_btn_group">
            <button class="btn btn-sm btn-primary" type="button" onclick="titleButtonChange(this)">&nbsp;&nbsp;全部&nbsp;&nbsp;</button>
            <button class="btn btn-sm btn-default" type="button" onclick="titleButtonChange(this)"><i
                    class="fa fa-circle green"></i> &nbsp;&nbsp;挂号<span id="registrationNum">6</span>人&nbsp;&nbsp;
            </button>
            <button class="btn btn-sm btn-default" type="button" onclick="titleButtonChange(this)"><i
                    class="fa fa-circle blue"></i> &nbsp;&nbsp;已诊<span id="haveClinicalNum">3</span>人&nbsp;&nbsp;
            </button>
            <button class="btn btn-sm btn-default" type="button" onclick="titleButtonChange(this)"><i
                    class="fa fa-circle red"></i> &nbsp;&nbsp;退号<span id="backNoNum">6</span>人&nbsp;&nbsp;
            </button>
        </div>
        <div class="btn-group" id="regi_List_type">
            <button class="btn btn-sm btn-primary" type="button" onclick="listTypeChange(this)"><i
                    class="fa fa-photo"></i>&nbsp;&nbsp;卡片&nbsp;&nbsp;
            </button>
            <button class="btn btn-sm btn-default" type="button" onclick="listTypeChange(this)"><i
                    class="fa fa-table green"></i> &nbsp;&nbsp;表格&nbsp;&nbsp;
            </button>
        </div>
        <table id="tb_regi_list"></table>
        <div element-loading-text="加载中，请稍后" style="height: calc(100% - 50px);overflow-y: auto;" id="card_regi_list">
        </div>
        <!--分页条-->
        <div class="page">
            <button type="button" class="btn btn-default" style="width: 100%; height: 40px;" onclick="loadRegistrationList(false);">
                <span>
                    剩余
                    <span id="totalNum">7</span>
                    条数据 展开更多
                </span>
            </button>
        </div>

    </div>
</div>




<!--修改挂号信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editRegiModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">挂号管理【修改】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group"
                         style="margin-left: 10px;border: 1px solid #ddd;padding-top: 20px;padding-bottom: 20px;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                患者：<span id="editRegiFormSickName" style="color: #2e69eb;">林彦韦</span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                付款方式：<span id="editRegiFormPayType">现金</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                手机号：<span id="editRegiFormPhone">12345678903</span>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                科室：<span id="editRegiFormDeptName">挂号室</span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                医生：<span id="editRegiFormDoctorName">云医生</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                挂号时间：<span id="editRegiFormRegiDate">2019-07-09 09:18:27</span>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                挂号信息
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                原科室：<span id="editRegiFormOrginDeptName">挂号室</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editRegiFormNewDeptName"
                                       style="font-weight: 400;"><span class="required">*</span>科室：
                                </label>
                                <div class="col-md-8 col-sm-8 col-xs-12">
                                    <select class="form-control selectpicker show-tick" data-live-search="true"
                                            required="required"
                                            id="editRegiFormNewDeptName">
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                原医生：<span id="editRegiFormOrginDoctorName">云医生</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <label
                                        class="control-label col-md-4 col-sm-4 col-xs-12"
                                        for="editRegiFormNewDoctorName" style="font-weight: 400;">
                                    <span class="required">*</span>医生：
                                </label>

                                <div class="col-md-8 col-sm-8 col-xs-12">
                                    <select class="form-control selectpicker show-tick" data-live-search="true"
                                            required="required"
                                            id="editRegiFormNewDoctorName"></select>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEditRegi">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改挂号信息弹窗结尾-->


<!--修改用户信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editUserModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 760px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">患者档案【修改】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="editUserForm" autocomplete="off">
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserCode">编码</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserCode" class="form-control col-md-7 col-xs-12" type="text" readonly>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserName">姓名 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,16"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserAge">年龄 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group input-group-own">
                                    <input id="editUserAge" type="number" class="form-control"
                                           data-validate-minmax="0,200"
                                           placeholder="请输入" required="required">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default dropdown-toggle"
                                                data-toggle="dropdown"
                                                aria-expanded="false" style="margin-right: 0px;">岁 <span
                                                class="caret"></span>
                                        </button>
                                        <!--<ul class="dropdown-menu dropdown-menu-right" role="menu"
                                            style="width: 50px;min-width: 50px;">
                                            <li><a href="#">岁</a>
                                            </li>
                                            <li><a href="#">月</a>
                                            </li>
                                            <li><a href="#">天</a>
                                            </li>
                                        </ul>-->
                                    </div>
                                    <!-- /btn-group -->
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserGender">性别 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required"
                                        id="editUserGender">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserBirthDayGroup">出生日期
                                <span
                                        class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class='input-group date input-group-own' id='editUserBirthDayGroup'>
                                    <input type='text' class="form-control" id="editUserBirthDay"/>
                                    <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserCardNo">卡号 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserCardNo" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="1,8"
                                           placeholder="请输入" required="required" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-credit-card"></i></a></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserPhoneNum">手机号码 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserPhoneNum" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="11,11"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserPatientsNature">病人性质
                                <span
                                        class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required"
                                        id="editUserPatientsNature">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserIdCard">身份证
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserIdCard" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="18,18"
                                           placeholder="请输入" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-newspaper-o"></i></a></span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserAddress">地址</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserAddress" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                    </div>

                    <!--         <div class="item form-group">
                                 <div class="col-md-6 col-sm-6 col-xs-12">
                                     <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserRemark">备注</label>
                                     <div class="col-md-8 col-sm-8 col-xs-12">
                                         <input id="editUserRemark" class="form-control col-md-7 col-xs-12"
                                                data-validate-length-range="2,10"
                                                placeholder="请输入" required="required" type="text">
                                     </div>
                                 </div>-->
                    <!--                 <div class="col-md-6 col-sm-6 col-xs-12">
                                         <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserMaritalStrtus">婚姻状况
                                             <span
                                                     class="required">*</span>
                                         </label>
                                         <div class="col-md-8 col-sm-8 col-xs-12">
                                             <select class="form-control selectpicker show-tick" required="required"
                                                     id="editUserMaritalStrtus">
                                             </select>
                                         </div>
                                     </div>-->
                    <!--  </div>-->
                    <!--<div class="item form-group">-->
                    <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                    <!--<label class="control-label col-md-4 col-sm-4 col-xs-12"-->
                    <!--for="editUserBloodGrouping">血型</label>-->
                    <!--<div class="col-md-8 col-sm-8 col-xs-12">-->
                    <!--<select class="form-control selectpicker show-tick" required="required"-->
                    <!--id="editUserBloodGrouping">-->
                    <!--</select>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                紧急联系人
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserContact">联系人</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContact" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入"  type="text">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12"
                                   for="editUserContactPhone">联系电话</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContactPhone" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEditUser">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改用户信息弹窗结尾-->


<!--挂号管理【退号】弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="backNoModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 780px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">挂号管理【退号】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group"
                         style="margin-left: 10px;border: 1px solid #ddd;padding-top: 20px;padding-bottom: 20px;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="col-md-2 col-sm-2 col-xs-12">
                                患者：<span id="backNoSickName" style="color: #2e69eb;"></span>
                                <input type="hidden" id="backNoPatientId"/>
                                <input type="hidden" id="backNoTimes"/>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                付款方式：<span id="backNoPayType"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                号段：<span id="backNoAmpm"></span>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                手机号：<span id="backNoPhone"></span>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                            <div class="col-md-2 col-sm-2 col-xs-12">
                                科室：<span id="backNoDeptName"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                号别：<span id="backNoChargeType"></span>
                            </div>
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                医生：<span id="backNoDoctorName"></span>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                挂号时间：<span id="backNoRegiDate"></span>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-top: 10px !important;"
                                    class="btn btn-primary">
                                收费信息
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <table id="tb_fee_info"></table>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <!--<div style="float: left;margin-left: 10px;">-->
                    <!--<input type="checkbox"/>&nbsp;&nbsp;打印-->
                <!--</div>-->
                <button type="button" class="btn btn-primary" id="saveBackNo" onclick="saveBackNo();">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--挂号管理【退号】弹窗结尾-->


<!--打印弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="printOrPreviewModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 380px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-3 col-sm-3 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-9 col-sm-9 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;">
                        请选择打印或预览
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="printButton" onclick="printModal(this)">打印</button>
                <button type="button" class="btn btn-default" id="previewButton">预览</button>
            </div>
        </div>
    </div>
</div>
<!--打印弹窗结尾-->


<!--打印内容弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="printModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 380px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 10px;">
                        请选择打印格式
                    </div>
                    <div class="checkbox" style="margin-bottom: 10px;">
                        <label>
                            <input type="checkbox" class="flat" checked="checked"> 挂号单
                        </label>
                    </div>
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" class="flat" checked="checked"> 挂号收费单
                        </label>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="printConfirmButton">打印</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--打印内容弹窗结尾-->


<!--卡号查询病人信息不存在弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="newCardModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 480px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-2 col-sm-2 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-10 col-sm-10 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;">
                        未找到病人信息，现在注册病人资料吗？
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="$('#newCardModal').modal('hide')">确定</button>
                <button type="button" class="btn btn-default">取消</button>
            </div>
        </div>
    </div>
</div>
<!--卡号查询病人信息不存在弹窗结尾-->


<!--窗口设置弹窗开始-->
<!--<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="editWindowsModal"-->
     <!--style="top:20%;">-->
    <!--<div class="modal-dialog modal-sm">-->
        <!--<div class="modal-content" style="width: 480px;">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>-->
                <!--</button>-->
                <!--<h4 class="modal-title">窗口设置</h4>-->
            <!--</div>-->
            <!--<div class="modal-body">-->
                <!--<form class="form-horizontal form-label-left" novalidate autocomplete="off">-->
                    <!--<div class="item form-group">-->
                        <!--<div class="col-md-12 col-sm-12 col-xs-12 item">-->
                            <!--<label class="control-label col-md-3 col-sm-3 col-xs-12" for="userName">窗口号 <span-->
                                    <!--class="required">*</span>-->
                            <!--</label>-->
                            <!--<div class="col-md-3 col-sm-3 col-xs-12">-->
                                <!--<input id="windowsNum" class="form-control col-md-7 col-xs-12"-->
                                       <!--data-validate-length-range="1,3"-->
                                       <!--placeholder="请输入" required="required" type="text" data-placement="bottom-right">-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</form>-->
            <!--</div>-->
            <!--<div class="modal-footer">-->
                <!--<button type="button" class="btn btn-primary" onclick="saveWindows()">确定</button>-->
                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
<!--窗口设置弹窗结尾-->


<!--打印设置弹窗开始-->
<!--<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="editPrintModal"-->
     <!--style="top:20%;">-->
    <!--<div class="modal-dialog modal-sm">-->
        <!--<div class="modal-content" style="width: 480px;">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>-->
                <!--</button>-->
                <!--<h4 class="modal-title">打印设置</h4>-->
            <!--</div>-->
            <!--<div class="modal-body">-->
                <!--<form class="form-horizontal form-label-left" novalidate autocomplete="off">-->
                    <!--<div class="item form-group">-->
                        <!--<div class="col-md-1 col-sm-1 col-xs-12 item"></div>-->
                        <!--<div class="col-md-3 col-sm-3 col-xs-12 item">-->
                            <!--<label class="control-label" for="printSelect">打印机名称 <span-->
                                    <!--class="required">*</span>-->
                            <!--</label>-->
                        <!--</div>-->
                        <!--<div class="col-md-7 col-sm-7 col-xs-12 item">-->
                            <!--<select class="form-control selectpicker show-tick" required="required" id="printSelect">-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<div class="col-md-1 col-sm-1 col-xs-12 item"></div>-->
                    <!--</div>-->
                <!--</form>-->
            <!--</div>-->
            <!--<div class="modal-footer">-->
                <!--<button type="button" class="btn btn-primary" onclick="savePrint()">确定</button>-->
                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
<!--打印设置弹窗结尾-->



<!--退费重收弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="confirmFeeModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 480px;margin-top: 200px;margin-left: 100px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">退记账重收</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="payType">收款方式 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" required="true"
                                    id="payType" onchange="checkFee()"></select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input id="serialNo" type="hidden"/>
                <button type="button" class="btn btn-primary" id="saveConfirmFee">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--退费重收弹窗结尾-->


<!--修改付款方式弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editPayModeModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 480px;margin-top: 200px;margin-left: 100px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" onclick="clearEditPayMode()"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">修改付款方式</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="item form-group">
                        <label class="control-label col-md-12 col-sm-12 col-xs-12" id="editPayModeTip" style="text-align: left">
                        </label>
                    </div>
                    <div class="item form-group">
                        <label class="col-md-1 col-sm-1 col-xs-12">
                        </label>
                        <label class="col-md-3 col-sm-3 col-xs-12">收款方式
                        </label>
                        <label class="col-md-6 col-sm-6 col-xs-12" for="payTypeEditPayMode">
                            <select class="form-control selectpicker show-tick" required="true"
                                    id="payTypeEditPayMode" ></select>
                        </label>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input id="patientId" type="hidden"/>
                <input id="times" type="hidden"/>
                <button type="button" class="btn btn-primary" onclick="saveEditPayMode()">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearEditPayMode()">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改付款方式弹窗结尾-->

<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>