<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('门店员工信息表修改')" />
</head>
<style>

</style>
<script>

</script>
<body>
<div class="ui-layout-center">
    <form class="form-horizontal" id="form-SMdyyglMdygxxStoreemployeeinfo-edit" th:object="${user}">
        <h4 class="form-header h4">基本信息</h4>
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                    <label class="col-sm-1 control-label">序号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="sequenceNumber" placeholder="序号" th:value="${sequenceNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">门店名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="storeName" placeholder="门店名称" th:value="${storeName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">建档日期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="建档Date" placeholder="建档日期" th:value="${建档Date}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">员工编码:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="employeeCode" placeholder="员工编码" th:value="${employeeCode}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">员工姓名:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="employeeName" placeholder="员工姓名" th:value="${employeeName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">门店编号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="departmentId" placeholder="门店编号" th:value="${departmentId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">门店编码:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="storeCode" placeholder="门店编码" th:value="${storeCode}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">出生日期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="birthDate" placeholder="出生日期" th:value="${birthDate}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">联系电话:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="contactNumber" placeholder="联系电话" th:value="${contactNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">民族:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="nationality" placeholder="民族" th:value="${nationality}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">执证书编号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="certificateNumber" placeholder="执证书编号" th:value="${certificateNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">资格证书:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="qualificationCertificate" placeholder="资格证书" th:value="${qualificationCertificate}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">职务:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="position" placeholder="职务" th:value="${position}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">毕业院校:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="graduationInstitution" placeholder="毕业院校" th:value="${graduationInstitution}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">专业:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="major" placeholder="专业" th:value="${major}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">文化专业:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="educationalSpecialty" placeholder="文化专业" th:value="${educationalSpecialty}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>

<script>
    function submitHandler() {
        var prefix = ctx + "mdyygl/smdyyglmdygxxstoreemployeeinfo";
        if ($.validate.form()) {
            var data = $("#form-SMdyyglMdygxxStoreemployeeinfo-edit").serializeArray();
            /*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
            var roleIds = $.form.selectCheckeds("role");
            var postIds = $.form.selectSelects("post");
            data.push({"name": "status", "value": status});
            data.push({"name": "roleIds", "value": roleIds});
            data.push({"name": "postIds", "value": postIds});*/
            $.operate.saveTab(prefix + "/sMdyyglMdygxxStoreemployeeinfoEdit", data);
        }
    }
</script>
