<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
<link rel="stylesheet" href="/thmz/css/custom.min.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/mz/instruction_code.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">
            <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="searchText">搜索
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="searchText" class="form-control optional" type="text" placeholder="拼音码|五笔码|内容">
                        </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="delFlagSearch">停用</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                        id="delFlagSearch" onchange="getAllMzZdInstruction()">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </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="instructionTypeSearch">类型</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required" title="请选择"
                                        id="instructionTypeSearch" onchange="getAllMzZdInstruction()">
                                    <option value="0">西药</option>
                                    <option value="1">中药</option>
                                    <option value="2">通用</option>
                                </select>
                            </div>
                        </div>
                        <button type="button" id="btn_search" class="btn btn-primary"
                                title="查询" onclick="getAllMzZdInstruction()"><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>
                        <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 modal-title-thmz">嘱托管理【<span id="classTitle">新增</span>】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="editGroupForm" autocomplete="off">
                    <input id="code" class="form-control" type="hidden">
                    <input id="delFlag" class="form-control" type="hidden">
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="instructionText">嘱托内容 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <input id="instructionText" class="form-control optional" type="text" required="required" data-validate-length-range="1,60">
                        </div>
                    </div>
                    <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="instructionType">嘱托类型 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                            <select class="form-control show-tick" required="required" title="请选择"
                                    id="instructionType">
                                <option value="0">西药</option>
                                <option value="1">中药</option>
                                <option value="2">通用</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>
<!--新增或者编辑嘱托弹窗结尾-->



