<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('平台合约模板信息表新增')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-role-add">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                            <label class="col-sm-3 control-label">创建日期:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="creationDate" id="creationDate" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">主题:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="theme" id="theme" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">合约分类:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="contractCategory" id="contractCategory" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">合约性质:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="contractNature" id="contractNature" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">开始时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="startTime" id="startTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">结束时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="endTime" id="endTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">签约开始时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="signingStartTime" id="signingStartTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">签约结束时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="signingEndTime" id="signingEndTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="status" id="status" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">投放状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="tfStatus" id="tfStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">投放连锁:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="tfChain" id="tfChain" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">投放成功数量:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="successfulDeployments" id="successfulDeployments" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">启用连锁数量:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="enabledChains" id="enabledChains" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                </div>
            </div>

        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">

    function submitHandler() {
        if ($.validate.form()) {
            add();
        }
    }

    function add() {
           var creationDate = $("input[name='creationDate']").val();
           var theme = $("input[name='theme']").val();
           var contractCategory = $("input[name='contractCategory']").val();
           var contractNature = $("input[name='contractNature']").val();
           var startTime = $("input[name='startTime']").val();
           var endTime = $("input[name='endTime']").val();
           var signingStartTime = $("input[name='signingStartTime']").val();
           var signingEndTime = $("input[name='signingEndTime']").val();
           var status = $("input[name='status']").val();
           var tfStatus = $("input[name='tfStatus']").val();
           var tfChain = $("input[name='tfChain']").val();
           var successfulDeployments = $("input[name='successfulDeployments']").val();
           var enabledChains = $("input[name='enabledChains']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "jkgl/sjkglgyhypthycontracttemplateinfo/sJkglGyhyPthyContracttemplateinfoAdd",
            data : {
                "creationDate": creationDate,
                "theme": theme,
                "contractCategory": contractCategory,
                "contractNature": contractNature,
                "startTime": startTime,
                "endTime": endTime,
                "signingStartTime": signingStartTime,
                "signingEndTime": signingEndTime,
                "status": status,
                "tfStatus": tfStatus,
                "tfChain": tfChain,
                "successfulDeployments": successfulDeployments,
                "enabledChains": enabledChains,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
