<!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-SubStation-edit" th:object="${tBdSubstation}">
            <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="StationID" th:field="*{StationID}" class="form-control" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">工位名称：</label>
                <div class="col-sm-8">
                    <input name="StationName" th:field="*{StationName}" 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="StationCode" th:field="*{StationCode}" class="form-control" readonly="readonly">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工位类型：</label>
                <div class="col-sm-8">
                    <select name="StationType" class="form-control m-b" th:field="*{StationType}">
                        <option th:each="st:${stationtype}" th:value="${st.ID}" th:text="${st.typeName}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统数据表：</label>
                <div class="col-sm-8">
                    <input name="TableName" th:field="*{TableName}" class="form-control" readonly="readonly">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">参数个数：</label>
                <div class="col-sm-8">
                    <input name="paraCount" th:field="*{paraCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排序id：</label>
                <div class="col-sm-8">
                    <input name="OrderID" th:field="*{OrderID}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">上下限是否显示：</label>
                <div class="col-sm-8">
                    <select name="LimitID" class="form-control m-b" th:field="*{LimitID}" th:with="type=${@dict.getType('limitshow')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">线路类型：</label>
                <div class="col-sm-8">
                    <select name="LineID" class="form-control"  th:field="*{LineID}">
                        <option th:each="st:${linename}" th:value="${st.LineID}" th:text="${st.LineTypeName}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "nanjing/SubStation";
        $("#form-SubStation-edit").validate({
            focusCleanup: true
        });

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