<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改储能状态')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-energystoragestatus-edit" th:object="${tEnergyStorageStatus}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据时间：</label>
                <div class="col-sm-8">
                    <input name="dataTime" th:field="*{dataTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障状态：</label>
                <div class="col-sm-8">
                    <input name="faultState" th:field="*{faultState}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实时充电量：</label>
                <div class="col-sm-8">
                    <input name="ssCdl" th:field="*{ssCdl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实时状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="ssStatus" value="">
                        <label th:for="ssStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">今日发电：</label>
                <div class="col-sm-8">
                    <input name="jrFd" th:field="*{jrFd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">今日放电：</label>
                <div class="col-sm-8">
                    <input name="jrfd" th:field="*{jrfd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池温度：</label>
                <div class="col-sm-8">
                    <input name="dcwd" th:field="*{dcwd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">SOH充电量：</label>
                <div class="col-sm-8">
                    <input name="sohCdl" th:field="*{sohCdl}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zhny/energystoragestatus";
        $("#form-energystoragestatus-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-energystoragestatus-edit').serialize());
            }
        }
    </script>
</body>
</html>