<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/request.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-12 col-sm-12 col-xs-12">
                        <div class="col-md-2 col-sm-2 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="initSourceList()"
                                        id="unitCode">
                                </select>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="ampmParams">号段</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                        onchange="initSourceList()"
                                        id="ampmParams">
                                </select>
                            </div>
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="sourceRange"> 源表日期
                        </label>
                        <div class="col-md-3 col-sm-3 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>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="newRange"> 新表日期
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                            <div id="newRange" 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 class="form-group col-md-12 col-sm-12 col-xs-12">
                        <div class="btn-group col-md-3 col-sm-3 col-xs-12" id="source_group">
                            <button class="btn btn-sm btn-default" type="button" onclick="sourceChange(this)">&nbsp;&nbsp;基础号表&nbsp;&nbsp;
                            </button>
                            <button class="btn btn-sm btn-primary" type="button" onclick="sourceChange(this)">&nbsp;&nbsp;源号表&nbsp;&nbsp;
                            </button>
                        </div>
                        <div class="btn-group col-md-4 col-sm-4 col-xs-12"></div>
                        <div class="col-md-5 col-sm-5 col-xs-12" style="text-align:right;    padding-left: 50px;">
                            <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_query" class="btn btn-primary"-->
                                    <!--title="查询"><i class="fa fa-search"></i>-->
                            <!--</button>-->
                            <button type="button" style="margin-left:3px" id="btn_add" class="btn btn-primary"
                                    title="新增排班"><i class="fa fa-plus"></i>
                            </button>
                            <button type="button" style="margin-left:3px" id="btn_creat" class="btn btn-primary"
                                    title="生成新号表">生成新号表
                            </button>
                            <button type="button" style="margin-left:3px" id="btn_cancel" class="btn btn-primary hide"
                                    title="取消生成新号表">取消生成新号表
                            </button>
                            <button type="button" style="margin-left:3px" id="btn_save" class="btn btn-primary"
                                    title="保存号表信息"><i class="fa fa-check"></i>
                            </button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="row" style="margin-top: -20px;">
                <div>
                    <table id="tb_table"></table>
                </div>
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <table id="tb_table_1"></table>
                </div>
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <table id="tb_table_2"></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="ampm">号段 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                    id="ampm">
                            </select>
                        </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" >
                            </select>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="doctorParam">医生
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" data-live-search="true" title="请选择"
                                    id="doctorParam">
                            </select>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="chargeType">号别 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                    id="chargeType">
                            </select>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="checkFee">检查费 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="checkFee" 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="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>
<!--新增或者编辑号表信息弹窗结尾-->


