<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('编码规则详细')" />
</head>
<body>
    <div class="main-content">
        <form class="form-horizontal" th:object="${sysCodeRule}">
            <h4 class="form-header h4">基本信息</h4>
            <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">
                            <p class="form-control-plaintext" th:text="*{ruleCode}"></p>
                        </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">
                            <p class="form-control-plaintext" th:text="*{ruleName}"></p>
                        </div>
                    </div>
                </div>
            </div>
            <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">
                            <p class="form-control-plaintext" th:text="*{codePrefix}"></p>
                        </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">
                            <p class="form-control-plaintext" th:text="*{dateFormat}"></p>
                        </div>
                    </div>
                </div>
            </div>
            <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">
                            <p class="form-control-plaintext" th:text="*{serialLength}"></p>
                        </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">
                            <p class="form-control-plaintext" th:text="*{currentSerial}"></p>
                        </div>
                    </div>
                </div>
            </div>
            <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">
                            <p class="form-control-plaintext" th:text="*{@dict.getLabel('ams_code_reset_cycle', resetCycle)}"></p>
                        </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">
                            <p class="form-control-plaintext" th:text="*{lastSerialKey}"></p>
                        </div>
                    </div>
                </div>
            </div>
            <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">
                            <p class="form-control-plaintext" th:text="*{@dict.getLabel('ams_enabled_status', enabled)}"></p>
                        </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">
                            <p class="form-control-plaintext" th:text="*{remark}"></p>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
</body>
</html>
