specialist page update

production
Sultan Khan 7 years ago
parent 985a9a31a7
commit f21be03b02

@ -309,7 +309,8 @@ export class AuthenticationService {
user.CompanyImageDescription=result.CompanyImageDescription; user.CompanyImageDescription=result.CompanyImageDescription;
user.CompanyImageURL=result.CompanyImageURL; user.CompanyImageURL=result.CompanyImageURL;
user.LogInTokenID = this.cs.sharedService.getSharedData( user.LogInTokenID = this.cs.sharedService.getSharedData(
AuthenticationService.LOGIN_DATA AuthenticationService.LOGIN_DATA,
false
).LogInTokenID; ).LogInTokenID;
return user; return user;
} }

@ -23,7 +23,7 @@
</ion-list> </ion-list>
<ion-list no-lines *ngIf="specialistEmpList && specialistEmpList.length>0"> <ion-list no-lines *ngIf="specialistEmpList && specialistEmpList.length>0">
<ion-item no-border *ngFor="let subordinate of specialistEmpList;let i=index" (click)="getSpecialistInfo(i);"> <ion-item no-border *ngFor="let subordinate of specialistEmpList;let i=index" (click)="getSpecialistInfo(i);">
<ion-avatar item-start> <ion-avatar slot="start">
<img <img
[src]="subordinate.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+subordinate.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"> [src]="subordinate.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+subordinate.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'">
</ion-avatar> </ion-avatar>

@ -26,7 +26,6 @@ export class SelectInput extends UiElement {
"<div class='custom-text-area-element' style='" + this.hidden + "'>" + "<div class='custom-text-area-element' style='" + this.hidden + "'>" +
"<label class='daynamicForm-Label " + requiredClass + "' id='title' >" + this.label + "</label>" + "<label class='daynamicForm-Label " + requiredClass + "' id='title' >" + this.label + "</label>" +
"<select class='daynamicForm-Select' id='" + this.elementId + "' " + this.disabled + ">" + "<select class='daynamicForm-Select' id='" + this.elementId + "' " + this.disabled + ">" +
// "<option value='" + this.value + "' >" + this.value + "</option>" +
"</select>" + "</select>" +
"</div> "; "</div> ";

@ -7,8 +7,8 @@
<ion-content padding> <ion-content padding>
<div #containerDiv id="containerDiv"> <!-- <div #containerDiv id="containerDiv"> -->
</div> <!-- </div> -->
<div style="padding: 0 10px;" [innerHTML]='"vacation-rule, tip" | translate'></div> <div style="padding: 0 10px;" [innerHTML]='"vacation-rule, tip" | translate'></div>
<ion-card *ngFor="let item of GetVacationRulesList; let i = index;"> <ion-card *ngFor="let item of GetVacationRulesList; let i = index;">

@ -37,7 +37,7 @@ export class HomeComponent implements OnInit {
this.P_PAGE_NUM = 1; this.P_PAGE_NUM = 1;
this.P_PAGE_LIMIT = 50; this.P_PAGE_LIMIT = 50;
this.button = new ButtonInput('btnSubmit', 'Submit', 'containerDiv', 'Y'); //this.button = new ButtonInput('btnSubmit', 'Submit', 'containerDiv', 'Y');
// this.dateTime = new DateTimeInput('Start Date', 'SDate', '', 'containerDiv', 'Y', 'Y', 'Y'); // this.dateTime = new DateTimeInput('Start Date', 'SDate', '', 'containerDiv', 'Y', 'Y', 'Y');
// this.date = new DateInput('Start Date', 'SDate', '', 'containerDiv', 'Y', 'Y', 'Y'); // this.date = new DateInput('Start Date', 'SDate', '', 'containerDiv', 'Y', 'Y', 'Y');
// this.numberInput = new NumberInput('Roll No.:', 'rollNo', '', 'containerDiv', 'Y', 'Y', 'Y'); // this.numberInput = new NumberInput('Roll No.:', 'rollNo', '', 'containerDiv', 'Y', 'Y', 'Y');
@ -56,11 +56,11 @@ export class HomeComponent implements OnInit {
this.getVacationRules(); this.getVacationRules();
// let elem = document.getElementById('btnSubmit'); // let elem = document.getElementById('btnSubmit');
const elemDiv = document.createElement('div'); // const elemDiv = document.createElement('div');
// elemDiv.id = this.elementID; // elemDiv.id = this.elementID;
elemDiv.className = ''; // elemDiv.className = '';
elemDiv.innerHTML = this.button.getTemplate(); //elemDiv.innerHTML = this.button.getTemplate();
// elemDiv.innerHTML = this.dateTime.getTemplate(); // elemDiv.innerHTML = this.dateTime.getTemplate();
// elemDiv.innerHTML = this.date.getTemplate(); // elemDiv.innerHTML = this.date.getTemplate();
// elemDiv.innerHTML = this.numberInput.getTemplate(); // elemDiv.innerHTML = this.numberInput.getTemplate();
@ -68,14 +68,14 @@ export class HomeComponent implements OnInit {
// elemDiv.innerHTML = this.textAreaInput.getTemplate(); // elemDiv.innerHTML = this.textAreaInput.getTemplate();
// elemDiv.innerHTML = this.timeInput.getTemplate(); // elemDiv.innerHTML = this.timeInput.getTemplate();
document.getElementById('containerDiv').appendChild(elemDiv); //document.getElementById('containerDiv').appendChild(elemDiv);
let elem = document.getElementById("btnSubmit"); // let elem = document.getElementById("btnSubmit");
// console.log(elem); // console.log(elem);
elem.addEventListener("click", (e) => { // elem.addEventListener("click", (e) => {
this.showAlert(); // this.showAlert();
e.stopImmediatePropagation(); // e.stopImmediatePropagation();
}); // });
} }

Loading…
Cancel
Save