<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/common/date-util.js"></script>
<script src="/thmz/js/mz/drug_win.js"></script>
<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="item form-group ">
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="groupNoSearch" hidden>药房编号
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12" hidden>
                            <input id="groupNoSearch" class="form-control optional" type="text">
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="winNoSearch">窗口编号
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="winNoSearch" class="form-control optional" type="text">
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="winNameSearch">窗口名称
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="winNameSearch" class="form-control optional" type="text">
                        </div>
                        <button type="button" id="btn_search" class="btn btn-primary"
                                title="查询药房" onclick="getAllDrugWin()"><i class="glyphicon glyphicon-search"></i>
                        </button>
                        <button type="button" id="btn_reset" class="btn btn-primary"
                                title="重置" onclick="resetSearch()"><i class="fa fa-rotate-left"></i>
                        </button>
                    </div>
                    <div class="item form-group ">
                        <button type="button" id="btn_add" class="btn btn-primary"
                                title="添加发药窗口"><i class="fa fa-plus"></i>
                        </button>
                    </div>

                </form>
            </div>
            <table id="tb_table"></table>
        </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: 520px;margin-left: 250px;margin-top: 120px;">
            <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="editDrugWinForm" autocomplete="off">
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="winNo">窗口编号 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <input id="winNo" class="form-control optional" type="text" required="required" data-validate-length-range="1,2">
                        </div>
                    </div>
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="winName">窗口名称 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <input id="winName" class="form-control optional" type="text" required="required" data-validate-length-range="1,16">
                        </div>
                    </div>
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="groupNo">药房 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <select class="form-control selectpicker" required="required" title="请选择" data-toggle="dropdown" style="min-width: 100%;"
                                    id="groupNo" data-live-search="true" >
                            </select>
                        </div>
                    </div>
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="winCate">状态 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <select class="form-control selectpicker" required="required" title="请选择" data-toggle="dropdown" style="min-width: 100%;"
                                    id="winCate">
                                <option value="0" selected>关闭</option>
                                <option value="1">开启</option>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input id="requestId" type="hidden"/>
                <button type="button" class="btn btn-primary" id="btn_save">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--新增或者编辑菜单信息弹窗结尾-->



