<!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-bsxx-edit" th:object="${tgjjBsxx}">
            <input name="ID" th:field="*{ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">借款合同编号：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.JKHTBH}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">借款人姓名：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.JKRXM}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">借款人证件类型：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.JKRZJLX}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">借款人证件号：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.JKRZJH}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否为首套住房贷款：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.SFST}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否为首笔住房贷款：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.SFSB}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">贷款类型：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.DKLX}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">约定放款日期：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.YDFKRQ, 'yyyy-MM-dd')}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">约定到期日期：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.YDDQRQ, 'yyyy-MM-dd')}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">贷款开户日期：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.DKKHRQ, 'yyyy-MM-dd')}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">首次还款日期：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.SCHKRQ, 'yyyy-MM-dd')}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">贷款状态：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.DKZT}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">贷款结清日期：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.DKJQRQ, 'yyyy-MM-dd')}"></div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">中心编号：</label>
                <div class="form-control-static" th:text="${tgjjBsxx.ZXBH}"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">处理类型：</label>
                <div class="form-control-static" th:if="${tgjjBsxx.CLLX == '1'}">插入</div>
                <div class="form-control-static" th:if="${tgjjBsxx.CLLX == '2'}">更新</div>
                <div class="form-control-static" th:if="${tgjjBsxx.CLLX == '3'}">删除</div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最后更新时间戳：</label>
                <div class="form-control-static" th:text="${#dates.format(tgjjBsxx.lastUpdateTime, 'yyyy-MM-dd')}"></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/bsxx";
        $("#form-bsxx-edit").validate({
            focusCleanup: true
        });

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

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

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

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

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

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

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