<!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="contractValidPeriod" id="contractValidPeriod" 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="signingValidPeriod" id="signingValidPeriod" 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="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="isDrugMaintenanceConfigured" id="isDrugMaintenanceConfigured" 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="participationCount" id="participationCount" 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="verificationCount" id="verificationCount" 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 contractValidPeriod = $("input[name='contractValidPeriod']").val();
           var signingValidPeriod = $("input[name='signingValidPeriod']").val();
           var status = $("input[name='status']").val();
           var contractNature = $("input[name='contractNature']").val();
           var isDrugMaintenanceConfigured = $("input[name='isDrugMaintenanceConfigured']").val();
           var participationCount = $("input[name='participationCount']").val();
           var verificationCount = $("input[name='verificationCount']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "jkgl/sjkglgyhyhyglcontractinfo/sJkglGyhyHyglContractinfoAdd",
            data : {
                "creationDate": creationDate,
                "theme": theme,
                "contractCategory": contractCategory,
                "contractValidPeriod": contractValidPeriod,
                "signingValidPeriod": signingValidPeriod,
                "status": status,
                "contractNature": contractNature,
                "isDrugMaintenanceConfigured": isDrugMaintenanceConfigured,
                "participationCount": participationCount,
                "verificationCount": verificationCount,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
