<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/custom.min.css">
<link rel="stylesheet" href="/thmz/css/toll_administration.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<script src="/thmz/js/mz/schedule-of-medical.js"></script>
<title>医技预约配置</title>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="panel-body">
                <form id="formSearch" class="form-horizontal" autocomplete="off">
                    <div class="form-group col-md-2 col-sm-2 col-xs-12"></div>
                    <div class="form-group col-md-8 col-sm-8 col-xs-12">
                        <div class="col-md-4 col-sm-4 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="unitCode">科室
                            </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"
                                        title="请选择" onchange="initList()"
                                        id="unitCode">
                                </select>
                            </div>
                        </div>
                        <div class="col-md-8 col-sm-8 col-xs-12 item">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="sourceRange"> 日期
                        </label>
                        <div class="col-md-10 col-sm-10 col-xs-12">
                            <div id="sourceRange" 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>
                    </div>
                    <div class="col-md-2 col-sm-2 col-xs-12" style="text-align:right;">
                        <button type="button" style="margin-left:20px" id="btn_clean" class="btn btn-primary"
                                title="重置"><i class="fa fa-rotate-left"></i>
                        </button>
                        <button type="button" style="margin-left:3px" id="btn_add" class="btn btn-primary"
                                title="新增排班"><i class="fa fa-plus"></i>
                        </button>
                    </div>
                </form>
            </div>

            <div class="row" style="margin-top: -20px;">
                <div>
                    <table id="tb_table"></table>
                </div>
            </div>
        </div>
    </div>
</div>



<!--新增或者编辑号表信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 420px;margin-left: 250px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">医技排班【<span id="classTitle">新增</span>】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="editUserForm" autocomplete="off">
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editDayGroup">日期
                            <span
                                    class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class='input-group date input-group-own' id='editDayGroup'>
                                <input type='text' class="form-control" id="editDay"/>
                                <span class="input-group-addon"><span
                                        class="glyphicon glyphicon-calendar"></span></span>
                            </div>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="deptNo">科室 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" required="required"
                                    title="请选择"  id="deptNo" onchange="showJcxm()">
                            </select>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert hide" id="jcxmDiv">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="jcxm">检查项目 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" required="required"
                                    title="请选择"  id="jcxm" >
                                <option value="0">普通胃镜（胃、十二指肠镜）检查</option>
                                <option value="1">无痛胃镜</option>
                                <option value="2">普通肠镜</option>
                                <option value="3">无痛肠镜</option>
                            </select>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="isNoticeRoomNum">是否指定诊室
                        </label>
                        <div class="checkbox">
                            <label>
                                &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="flat" checked="checked" id="isNoticeRoomNum"> 不指定
                            </label>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="roomNum">诊室号 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="roomNum" class="form-control optional" type="number"
                                   data-validate-length-range="0,10"
                                   placeholder="请输入" >
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="beginTime">开始时间 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="beginTime" class="form-control optional" type="text"
                                   maxlength="5"
                                   placeholder="请输入">
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="endTime">结束时间 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="endTime" class="form-control optional" type="text"
                                   maxlength="5"
                                   placeholder="请输入">
                        </div>
                    </div>
                    <div class="item form-group thmz_alert hide" id="totalNumDiv">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="totalNum">可预约号数 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="totalNum" class="form-control optional" type="number"
                                   data-validate-length-range="0,10"
                                   placeholder="请输入" >
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input id="requestId" type="hidden"/>
                <button type="button" class="btn btn-primary" id="saveEdit">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--新增或者编辑号表信息弹窗结尾-->


