<!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="sequenceNumber" id="sequenceNumber" 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="storeName" id="storeName" 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="建档Date" id="建档Date" 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="employeeCode" id="employeeCode" 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="employeeName" id="employeeName" 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="departmentId" id="departmentId" 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="storeCode" id="storeCode" 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="birthDate" id="birthDate" 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="contactNumber" id="contactNumber" 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="nationality" id="nationality" 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="certificateNumber" id="certificateNumber" 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="qualificationCertificate" id="qualificationCertificate" 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="position" id="position" 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="graduationInstitution" id="graduationInstitution" 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="major" id="major" 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="educationalSpecialty" id="educationalSpecialty" 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 sequenceNumber = $("input[name='sequenceNumber']").val();
           var storeName = $("input[name='storeName']").val();
           var 建档Date = $("input[name='建档Date']").val();
           var employeeCode = $("input[name='employeeCode']").val();
           var employeeName = $("input[name='employeeName']").val();
           var departmentId = $("input[name='departmentId']").val();
           var storeCode = $("input[name='storeCode']").val();
           var birthDate = $("input[name='birthDate']").val();
           var contactNumber = $("input[name='contactNumber']").val();
           var nationality = $("input[name='nationality']").val();
           var certificateNumber = $("input[name='certificateNumber']").val();
           var qualificationCertificate = $("input[name='qualificationCertificate']").val();
           var position = $("input[name='position']").val();
           var graduationInstitution = $("input[name='graduationInstitution']").val();
           var major = $("input[name='major']").val();
           var educationalSpecialty = $("input[name='educationalSpecialty']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "mdyygl/smdyyglmdygxxstoreemployeeinfo/sMdyyglMdygxxStoreemployeeinfoAdd",
            data : {
                "sequenceNumber": sequenceNumber,
                "storeName": storeName,
                "建档Date": 建档Date,
                "employeeCode": employeeCode,
                "employeeName": employeeName,
                "departmentId": departmentId,
                "storeCode": storeCode,
                "birthDate": birthDate,
                "contactNumber": contactNumber,
                "nationality": nationality,
                "certificateNumber": certificateNumber,
                "qualificationCertificate": qualificationCertificate,
                "position": position,
                "graduationInstitution": graduationInstitution,
                "major": major,
                "educationalSpecialty": educationalSpecialty,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
