<!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-bg-edit" th:object="${gtgsBg}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group personName">
                <label class="col-sm-2 control-label">统一社会信用代码：</label>
                <div class="col-sm-4">
                    <input name="uniformSocialCreditCode" th:field="*{uniformSocialCreditCode}" class="form-control" type="text" required>
                </div>

                <label class="col-sm-2 control-label">注册号：</label>
                <div class="col-sm-4">
                    <input name="registrationNumber" th:field="*{registrationNumber}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">单位名称：</label>
                <div class="col-sm-4">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text" required>
                </div>

                <label class="col-sm-2 control-label">组成形式：</label>
                <div class="col-sm-4">
                    <input name="operatorZipCode" th:field="*{organizationType}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营场所地址：</label>
                <div class="col-sm-4">
                    <input name="premisesAddr" th:field="*{premisesAddr}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">经营场所联系电话：</label>
                <div class="col-sm-4">
                    <input name="premisesPhone" th:field="*{premisesPhone}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">从业人员：</label>
                <div class="col-sm-4">
                    <input name="employee" th:field="*{employee}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">资金数额：</label>
                <div class="col-sm-4">
                    <input name="capitalMoney" th:field="*{capitalMoney}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者：</label>
                <div class="col-sm-4">
                    <input name="operatorName" th:field="*{operatorName}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label">申请前职业状况：</label>
                <div class="col-sm-4">
                    <input name="capitalMoney" th:field="*{operatorVocationalStatus}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者民族：</label>
                <div class="col-sm-4">
                    <input name="operatorNational" th:field="*{operatorNational}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">经营者性别：</label>
                <div class="col-sm-4">
                    <input name="operatorSex" th:field="*{operatorSex}" class="form-control" type="text">
<!--                    <select name="status" th:field="*{operatorSex}" th:with="type=${@dict.getType('organizationSex')}">-->
<!--                        <option value=""></option>-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}">-->
<!--                        </option>-->
<!--                    </select>-->
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者身份证号：</label>
                <div class="col-sm-4">
                    <input name="operatorIdCard" th:field="*{operatorIdCard}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label">经营者手机号：</label>
                <div class="col-sm-4">
                    <input name="operatorPhone" th:field="*{operatorPhone}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者政治面貌：</label>
                <div class="col-sm-4">
                    <input name="operatorPolitical" th:field="*{operatorPolitical}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">经营者文化程度：</label>
                <div class="col-sm-4">
                    <input name="operatorEducation" th:field="*{operatorEducation}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者固话：</label>
                <div class="col-sm-4">
                    <input name="operatorTel" th:field="*{operatorTel}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">经营者住所：</label>
                <div class="col-sm-4">
                    <input name="operatorAddress" th:field="*{operatorAddress}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group personName">
                <label class="col-sm-2 control-label">邮编：</label>
                <div class="col-sm-4">
                    <input name="operatorZipCode" th:field="*{operatorZipCode}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-4">
                </div>
            </div>




            <div class="form-group personName">
                <label class="col-sm-2 control-label">经营者拍照：</label>
                <div class="col-sm-4">
                    <img  style=" height: 168px;width:164px; "  class="form-control" th:src="*{operatorPhoto}">
                </div>

                <label class="col-sm-2 control-label">经营者签名：</label>
                <div class="col-sm-4">
                    <img style=" height: 168px;width:267px; "  class="form-control"  th:src="*{operatorSignature}">
                </div>
            </div>



            <div class="form-group personName">
                <label class="col-sm-2 control-label">身份证正面：</label>
                <div class="col-sm-4">
                    <img  style=" height: 168px;width:267px; "  class="form-control"  th:src="*{operatorCardFore}">
                </div>

                <label class="col-sm-2 control-label">身份证反面：</label>
                <div class="col-sm-4">
                    <img  style=" height: 168px;width:267px; "  class="form-control"  th:src="*{operatorCardBack}">
                </div>
            </div>
            <div class="form-group personName">
                <label class="col-sm-2 control-label">身份证头像：</label>
                <div class="col-sm-4">
                    <img  style=" height: 168px;width:164px; "  class="form-control"  th:src="*{operatorCardAvatar}">
                </div>

                <label class="col-sm-2 control-label">：</label>
                <div class="col-sm-4">
                    <!--                <img th:src="*{operatorCardBack}">-->
                </div>
            </div>






            <div class="form-group personName"th:style="${gtgsBg.alterationCompanyName==null}?'display:none':'display:block'">
                <label class="col-sm-2 control-label">变更前名称：</label>
                <div class="col-sm-4">
                    <input  th:value="*{companyName}" class="form-control" type="text" required>
                </div>


                <label class="col-sm-2 control-label">变更后名称：</label>
                <div class="col-sm-4">
                    <input name="newCompanyName" th:field="*{newCompanyName}"  class="form-control" type="text">
                </div>
            </div>



            <div class="form-group personName"th:style="${gtgsBg.alterationBusinessScope==null}?'display:none':'display:block'">
                <label class="col-sm-2 control-label">变更前经营范围：</label>
                <div class="col-sm-4">
                    <textarea  class="form-control" rows="3">[[*{businessScope}]]</textarea>
                </div>

                <label class="col-sm-2 control-label">变更后经营范围：</label>
                <div class="col-sm-4">
                <textarea name="cancellationReason" class="form-control" rows="3"
                >[[*{newBusinessScope}]]</textarea>
                </div>
            </div>

            <div class="form-group personName"th:style="${gtgsBg.alterationPremisesAddr==null}?'display:none':'display:block'">
                <label class="col-sm-2 control-label">变更前经营场所：</label>
                <div class="col-sm-4">
                    <input  th:value="*{premisesAddr}" class="form-control" type="text" required>

                </div>


                <label class="col-sm-2 control-label">变更后经营场所：</label>
                <div class="col-sm-4">
                    <input name="newPremisesAddr" th:field="*{newPremisesAddr}"   class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">正本打印：</label>
                <div class="col-sm-4 ">
                    <select class="form-control" name="isprint"  >
                        <option value="1"  th:selected="*{printFlg}=='1'">已打印</option>
                        <option value="0"  th:selected="*{printFlg}=='0'">未打印</option>
                    </select>
                </div>
                <label class="col-sm-2 control-label">副本打印：</label>
                <div class="col-sm-4 ">
                    <select class="form-control" name="isprintF"  >
                        <option value="1"  th:selected="*{printCopyFlg}=='1'">已打印</option>
                        <option value="0"  th:selected="*{printCopyFlg}=='0'">未打印</option>
                    </select>
                </div>

            </div>
<!--            <div class="form-group">-->
<!--                <div class="col-sm-offset-2 col-sm-10">-->
<!--                    <button type="button" class="btn btn-sm btn-primary" onclick="submitChangeFlag('2')"><i-->
<!--                            class="fa fa-check"></i>通 过-->
<!--                    </button>&nbsp;-->
<!--                    <button type="button" class="btn btn-sm btn-danger" onclick="submitChangeFlag('3')"><i-->
<!--                            class="fa fa-reply-all"></i>退 回-->
<!--                    </button>-->
<!--                </div>-->
<!--            </div>-->

            <div class="form-group" th:style="${gtgsBg.alterationCompanyName==null}?'display:none':'display:block'">
                <label class="col-sm-3 control-label">个体名称变更预登字号：</label>
                <div class="col-sm-8">
                    <input name="documentNumberOn" id="documentNumberOn" th:field="*{documentNumberOn}"
                           class="form-control" readonly>
                </div>

            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">准予变更登记通知书文号：</label>
                <div class="col-sm-8">
                    <input name="documentNumber" id="documentNumber" th:field="*{documentNumber}"
                           class="form-control" readonly>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/bg";
        $("#form-bg-edit").validate({
            focusCleanup: true
        });

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