<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('自行检查')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-check-edit" th:object="${tdCheck}">
        <input name="checkId" th:field="*{checkId}" type="hidden">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">报告人：</label>
                    <div class="col-sm-8">
                        <input name="adduser" disabled th:field="*{adduser}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">报告人单位：</label>
                    <div class="col-sm-8">
                        <input name="depart" disabled th:field="*{depart}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label">检查开始时间：</label>
                    <div class="col-sm-10">
                        <div class="input-group date">
                            <input name="checkStartTime" disabled th:value="${#dates.format(tdCheck.checkStartTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">人员检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentryjt_' + dict.dictCode}" name="checkcontentryjt" th:value="${dict.dictValue}" th:field="*{checkcontentryjt}">
                            <label th:for="${'checkcontentryjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentry" disabled th:field="*{checkcontentry}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">文件检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentrywjjt_' + dict.dictCode}" name="checkcontentrywjjt" th:value="${dict.dictValue}" th:field="*{checkcontentrywjjt}">
                            <label th:for="${'checkcontentrywjjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentrywj" disabled th:field="*{checkcontentrywj}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">资产检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentrysbjt_' + dict.dictCode}" name="checkcontentrysbjt" th:value="${dict.dictValue}" th:field="*{checkcontentrysbjt}">
                            <label th:for="${'checkcontentrysbjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentrysb" disabled th:field="*{checkcontentrysb}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">管理制度检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentryglzdjt_' + dict.dictCode}" name="checkcontentryglzdjt" th:value="${dict.dictValue}" th:field="*{checkcontentryglzdjt}">
                            <label th:for="${'checkcontentryglzdjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentryglzd" disabled th:field="*{checkcontentryglzd}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">泄密事件检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentryxmsjjt_' + dict.dictCode}" name="checkcontentryxmsjjt" th:value="${dict.dictValue}" th:field="*{checkcontentryxmsjjt}">
                            <label th:for="${'checkcontentryxmsjjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentryxmsj" disabled th:field="*{checkcontentryxmsj}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">其他内容检查：</label>
                    <div class="col-sm-10">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_self_check')}">
                            <input type="radio" required th:id="${'checkcontentryxmsjotherjt_' + dict.dictCode}" name="checkcontentryxmsjotherjt" th:value="${dict.dictValue}" th:field="*{checkcontentryxmsjotherjt}">
                            <label th:for="${'checkcontentryxmsjotherjt_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <textarea name="checkcontentryother" disabled th:field="*{checkcontentryother}" class="form-control" ></textarea>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/check";
    $("#form-check-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/selfcheck", $('#form-check-edit').serialize());
        }
    }

    $("input[name='checkStartTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='checkEndTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='checkownresulttime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>
