<ion-header>
    <ion-navbar>
        <ion-title>信息查询</ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <div class="content">
        <ng-container *ngIf="type == 1">
            <div class="item-box">
                <div class="left">统一社会信用代码:</div>
                <div class="right">
                    <span>{{ infoObj.xydm || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">单位名称:</div>
                <div class="right">
                    <span>{{ infoObj.mc || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">宗旨和业务范围:</div>
                <div class="right">
                    <span>{{ infoObj.zzyw || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">住所:</div>
                <div class="right">
                    <span>{{ infoObj.txdz || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">法定代表人:</div>
                <div class="right">
                    <span>{{ infoObj.frmc || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">经费来源:</div>
                <div class="right">
                    <span>{{ infoObj.jfxsLabel || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">开办资金:</div>
                <div class="right">
                    <span>{{ infoObj.kbzj || '-'}}万元</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">举办单位:</div>
                <div class="right">
                    <span>{{ infoObj.zgbm || '-'}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">证书有效期:</div>
                <div class="right">
                    <span>{{ infoObj.printStartTimeStr }} -- {{ infoObj.printEndTimeStr }}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">原事证号:</div>
                <div class="right">
                    <span>{{ infoObj.zsh || '-'}}</span>
                </div>
            </div>
            <p>年度报告情况</p>
            <div>
                <ng-container *ngFor="let year of infoObj?.ndbgUnitList">
                    <div class="item-box" (click)="goToYearReport(year)">
                        <div class="left">{{year.year}}</div>
                        <div class="right year">
                            <span
                                  [ngClass]="{'select':year.is_public == '0'}">{{ year.is_public == '0' ? '未上报' : '已公开'}}</span>
                        </div>
                    </div>
                </ng-container>
            </div>
        </ng-container>
        <ng-container *ngIf="type == 2">
            <div class="item-box">
                <div class="left">机构名称:</div>
                <div class="right">
                    <span>{{infoObj?.name || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">机构性质:</div>
                <div class="right">
                    <span>{{infoObj?.jgxzStr || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">机构地址:</div>
                <div class="right">
                    <span>{{infoObj?.jgdz || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">负责人:</div>
                <div class="right">
                    <span>{{infoObj?.fzr || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">统一社会信用代码:</div>
                <div class="right">
                    <span>{{infoObj?.xydm || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">颁发日期:</div>
                <div class="right">
                    <span>{{infoObj?.issueDateStr || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">编制数:</div>
                <div class="right">
                    <span>{{infoObj?.bzrs || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">实有人数:</div>
                <div class="right">
                    <span>{{infoObj?.syrs || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">联系人:</div>
                <div class="right">
                    <span>{{infoObj?.lxr || "-"}}</span>
                </div>
            </div>
            <div class="item-box">
                <div class="left">联系电话:</div>
                <div class="right">
                    <span>{{infoObj?.lxdh || "-"}}</span>
                </div>
            </div>
        </ng-container>

    </div>
</ion-content>
