<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/jquery.webui-popover.min.css">
<link rel="stylesheet" href="/thmz/css/toll_administration.css">
<link rel="stylesheet" href="/thmz/css/jqGrid/ui.jqgrid-bootstrap.css">
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
<script src="/thmz/js/jqGrid/grid.locale-cn.js"></script>
<script src="/thmz/js/jqGrid/jquery.jqGrid.min.js"></script>
<script src="/thmz/js/yf/incoming_records.js"></script>
<div class="row" style="height: calc(100% - 60px);overflow-y: auto;">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel" style="background: #EBEBE4;">
            <div class="panel-body">
                <form id="formSearch" class="form-horizontal" autocomplete="off">
                    <input id="chargeCode" class="form-control optional" type="hidden" >
                    <input id="serial" class="form-control optional" type="hidden" >
                    <input id="manuCode" class="form-control optional" type="hidden" >
                    <input id="inputId" class="form-control optional" type="hidden" >
                    <div class="item form-group ">
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="manufactoryNameSearch">厂家
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="manufactoryNameSearch" class="form-control optional" type="text">
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="yfInNoSearch" >入库单号
                        </label>
                        <div class="col-md-1 col-sm-1 col-xs-12">
                            <input id="yfInNoSearch" class="form-control optional" type="text">
                        </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="inTypeSearch">类型</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                        id="inTypeSearch" onchange="getAll()">
                                    <option value="">全部</option>
                                    <option value="0">入库</option>
                                    <option value="1">退货</option>
                                    <option value="2">赠药</option>
                                    <option value="3">紧急入库</option>
                                </select>
                            </div>
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="reportrange_in"
                               style="width: 105px;">
                            入库日期
                        </label>
                        <div class="col-md-4 col-sm-4 col-xs-12 " style="width: 220px;">
                            <div id="reportrange_in" class="pull-right"
                                 style="background: #fff; cursor: pointer; padding: 6.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="item form-group ">
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="searchTextDrug">药品
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="searchTextDrug" class="form-control optional" type="text">
                        </div>
                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="inputNameSearch">入库人
                        </label>
                        <div class="col-md-1 col-sm-1 col-xs-12">
                            <input id="inputNameSearch" class="form-control optional" type="text">
                        </div>
                        <button type="button" id="btn_search" class="btn btn-primary"
                                title="查询" onclick="getAll()"><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>
                </form>
            </div>
            <table id="tb_table"></table>
            <div id="pager"></div>
        </div>
    </div>
</div>

<!--选择展示药房弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="pharmacyModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 420px;margin-left: 250px;margin-top: 300px;">
            <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 thmz_alert">
                        <label class="control-label col-md-4 col-sm-4 col-xs-12" for="pharmacyGroupNo">药房 <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="pharmacyGroupNo">
                                <option value="71" selected>门诊西药房</option>
                                <option value="73">住院药房</option>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary"  onclick="initTable()" id="btn_init">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--选择展示药房弹窗结尾-->


