finished all assigned tasks
parent
f119467787
commit
84abf319ac
@ -0,0 +1,33 @@
|
||||
<ion-content>
|
||||
<img *ngIf="userInfo.PAYROLL_CODE === 'CS' " style="width: 100%; max-width: 100%;" src="../assets/imgs/IDTOP.png">
|
||||
<img *ngIf="userInfo.PAYROLL_CODE !== 'CS' " style="width: 100%; max-width: 100%;" src="../assets/imgs/IDTOP_HMG.png.png">
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<img style="width: 65%; bottom: 0%; position:absolute" [src]="'data:image/png;base64,'+userInfo.EMPLOYEE_IMAGE">
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<p><b style="font-size: 25px !important;">{{userInfo.ASSIGNMENT_NUMBER}}</b></p>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<p><b style="font-size: 20px !important;">{{userInfo.EMPLOYEE_DISPLAY_NAME}}</b></p>
|
||||
<p style="font-size: 15px !important;">{{userInfo.JOB_NAME}}</p>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col offset="2">
|
||||
<img style="width: 85%; max-width: 100%;" [src]="userInfo.EmployeeQR">
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
</ion-content>
|
||||
|
||||
|
||||
<ion-footer>
|
||||
<div class="centerDiv" style="margin-top: 20px !important;">
|
||||
<ion-button class="button-login" (click)="dismiss()"><b>{{ts.trPK('general','close')}}</b></ion-button>
|
||||
</div>
|
||||
</ion-footer>
|
||||
@ -0,0 +1,13 @@
|
||||
.button-login{
|
||||
--background: #c1272d !important;
|
||||
background: #c1272d !important;
|
||||
white-space: normal;
|
||||
color: var(--light);
|
||||
text-transform: capitalize;
|
||||
min-height: 1.0cm;
|
||||
--border-radius: 33px !important;
|
||||
border-radius: 33px !important;
|
||||
--min-height: 1.6cm !important;
|
||||
width: 315px;
|
||||
}
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DigitalIdComponent } from './digital-id.component';
|
||||
|
||||
describe('DigitalIdComponent', () => {
|
||||
let component: DigitalIdComponent;
|
||||
let fixture: ComponentFixture<DigitalIdComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DigitalIdComponent ],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DigitalIdComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,30 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-digital-id',
|
||||
templateUrl: './digital-id.component.html',
|
||||
styleUrls: ['./digital-id.component.scss'],
|
||||
})
|
||||
export class DigitalIdComponent implements OnInit {
|
||||
userInfo: any;
|
||||
|
||||
constructor(
|
||||
public modalCtrl: ModalController,
|
||||
public ts: TranslatorService,
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.userInfo = JSON.parse(localStorage.getItem('digitalIDUser'));
|
||||
console.log(this.userInfo);
|
||||
}
|
||||
|
||||
|
||||
dismiss() {
|
||||
this.modalCtrl.dismiss({
|
||||
'dismissed': true
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
Loading…
Reference in New Issue