Merge branch 'MOHEMM-Q3-DEV-LATEST' into enad-pre-live
# Conflicts: # Mohem/src/app/eit/cei-homepage/cei-homepage.component.html # Mohem/src/app/eit/cei-homepage/cei-homepage.component.tsMOHEMM-Q3-DEV-LATEST
commit
744740ac44
@ -1,3 +1,24 @@
|
||||
<p>
|
||||
add-cei works!
|
||||
</p>
|
||||
<app-generic-header
|
||||
showBack="!getPassdirfromNotifiPage"
|
||||
[updateDirection]="getPassdirfromNotifiPage"
|
||||
[headerText]="headerTitle"
|
||||
(trigger)="closeModal()"
|
||||
>
|
||||
</app-generic-header>
|
||||
|
||||
|
||||
<ion-content padding>
|
||||
<ion-item class="country dynamicField" lines="none" *ngIf="showEffectiveDate">
|
||||
<ion-label>{{'vacation-rule, effectiveDate' | translate}}</ion-label>
|
||||
<ion-label>{{showEffectiveDate}}</ion-label>
|
||||
</ion-item>
|
||||
<div #containerDiv id="containerDiv">
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
<ion-footer>
|
||||
<div class="centerDiv">
|
||||
<ion-button class="addEitOkButton" color="customnavy" ion-button (click)="submitChildEducationTransaction()">
|
||||
{{'vacation-rule, next-label' | translate}}</ion-button>
|
||||
</div>
|
||||
</ion-footer>
|
||||
@ -0,0 +1,45 @@
|
||||
.footer-button {
|
||||
border-radius: 2px;
|
||||
padding: 0 1.1em;
|
||||
min-height: 45px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
ion-label {
|
||||
color: var(--customnavy) !important;
|
||||
}
|
||||
|
||||
.daynamicForm-Label {
|
||||
font-size: 16px;
|
||||
color: #a2a5a6 !important;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
-webkit-flex: 1;
|
||||
flex: 1;
|
||||
font-size: inherit;
|
||||
white-space: normal;
|
||||
padding: 5px 0px;
|
||||
margin: 10px auto;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
.header-toolbar-new{
|
||||
--background: #269DB8;
|
||||
}
|
||||
.addEitOkButton{
|
||||
white-space: normal !important;
|
||||
text-transform: capitalize !important;
|
||||
min-height: 45px !important;
|
||||
min-width: 5px !important;
|
||||
margin: 8px !important;
|
||||
background-color: #269DB8;
|
||||
width: 80% !important;
|
||||
color: white!important;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
|
||||
.country{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
||||
<app-generic-header
|
||||
showBack="true"
|
||||
[headerText]="headerTitle">
|
||||
</app-generic-header>
|
||||
|
||||
<ion-content>
|
||||
<div>
|
||||
<div class="no-dataDiv"
|
||||
*ngIf="!getResCEITransactionList || getResCEITransactionList[0]?.Collection_Transaction.length <= 0">
|
||||
<ion-row>
|
||||
<img class="empty-data" src="../assets/imgs/box.png" />
|
||||
</ion-row>
|
||||
<h4> {{'general, noData' | translate}}</h4>
|
||||
</div>
|
||||
|
||||
<div *ngIf="getResCEITransactionList && getResCEITransactionList[0]?.Collection_Transaction.length > 0 ">
|
||||
<div *ngFor="let EITTransactionList of getResCEITransactionList; let i=index ">
|
||||
<ion-grid>
|
||||
<div>
|
||||
</div>
|
||||
<ion-grid class="grids">
|
||||
<div *ngFor="let item of EITTransactionList.Collection_Transaction">
|
||||
<ion-row *ngIf="item.DISPLAY_FLAG != 'N' " class="">
|
||||
<ion-col class="" *ngIf="item.SEGMENT_PROMPT!=''">
|
||||
<label style="color:#269DB8;font-weight: bold;" class="label" for="">{{item.SEGMENT_PROMPT}} </label>
|
||||
<br>
|
||||
<label class="label" style="color:black;" for="">{{item.SEGMENT_VALUE_DSP}} </label>
|
||||
<br>
|
||||
<hr style="background-color: grey;height: 1px">
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</div>
|
||||
</ion-grid>
|
||||
</ion-grid>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
<ion-icon class="addClass" name="add" (click)="addCEIRrq()"></ion-icon>
|
||||
@ -0,0 +1,330 @@
|
||||
.footer-button {
|
||||
border-radius: 2px;
|
||||
padding: 0 1.1em;
|
||||
min-height: 45px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.datetime{
|
||||
text-align: center;
|
||||
font-family: WorkSans-Bold;
|
||||
margin-left: 47px;
|
||||
margin-top: -19px;
|
||||
|
||||
}
|
||||
.iconCalendar{
|
||||
margin-left: 30px !important;
|
||||
width: 22% !important;
|
||||
height: 26px !important;
|
||||
margin-top: -69px !important;
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
h4 {
|
||||
font-size: 2.2rem;
|
||||
text-align: center;
|
||||
color: #000000;
|
||||
}
|
||||
.grids{
|
||||
border-radius: 20px !important;
|
||||
background: white;
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
margin: 13px;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 13px;
|
||||
padding-right: 13px;
|
||||
border: 1px solid #cac8c8;
|
||||
}
|
||||
|
||||
.bgcolor {
|
||||
|
||||
color: white;
|
||||
border-top-right-radius: 19px;
|
||||
border-top-left-radius: 15px;
|
||||
padding-top: 1;
|
||||
padding-bottom: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
/* border-radius: 12px !important; */
|
||||
background: #269DB8;
|
||||
border-bottom: 1px solid #a7a4a4;
|
||||
border-top: 1px solid #cac8c8;
|
||||
margin-left: -13px;
|
||||
margin-right: -13px;
|
||||
}
|
||||
.colEit{
|
||||
border-right: 1px solid #cac8c8;
|
||||
border-bottom-left-radius: -10px !important;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
margin-left: 18px;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.header-div {
|
||||
|
||||
background-color: #269DB8;
|
||||
text-transform: capitalize;
|
||||
height: 160px;
|
||||
// position: relative;
|
||||
display: block;
|
||||
margin-bottom: -28px;
|
||||
}
|
||||
|
||||
.header-toolbar-new{
|
||||
--background: #269DB8;
|
||||
}
|
||||
|
||||
.addClass{
|
||||
background-color: #269DB8;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
right: 8%;
|
||||
position: fixed;
|
||||
color: white;
|
||||
bottom: 5%;
|
||||
border-radius: 50%;
|
||||
z-index: 999;
|
||||
-webkit-box-shadow: 2px -1px 13px 0px rgba(0,0,0,0.59);
|
||||
-moz-box-shadow: 2px -1px 13px 0px rgba(0,0,0,0.59);
|
||||
box-shadow: 2px -1px 13px 0px rgba(0,0,0,0.59);
|
||||
}
|
||||
|
||||
.contentEit:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
// background: #269DB8;
|
||||
height: 140px;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hrClass{
|
||||
border-width: 0;
|
||||
box-sizing: content-box;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
background: #fff !important;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
.content:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: #269DB8;
|
||||
height: 140px;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
.colorBG{
|
||||
--background: #f0efef;
|
||||
}
|
||||
|
||||
.Title{
|
||||
text-align: center;
|
||||
color: white;
|
||||
margin-top: -33px;
|
||||
font-size: 17px;
|
||||
}
|
||||
.title{
|
||||
text-align: center;
|
||||
color: black;
|
||||
margin-top: 5px;
|
||||
font-size: 17px;
|
||||
}
|
||||
.today-graph{
|
||||
display: block !important;
|
||||
height: 196px;
|
||||
width: 365px;
|
||||
/* padding-left: 51px; */
|
||||
margin-left: 28px !important;
|
||||
}
|
||||
|
||||
.headerGrid{
|
||||
background-color: white !important;
|
||||
border: 1px solid #cac8c8 !important;
|
||||
padding-bottom: 53px;
|
||||
padding-top: -30px;
|
||||
margin-left: 13px;
|
||||
margin-right: 13px;
|
||||
margin-bottom: 10px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
border-radius: 20px;
|
||||
margin-top: 17px;
|
||||
}
|
||||
.result-graph{
|
||||
font-size: 14px;
|
||||
margin-left: -48px;
|
||||
margin-right: 3px;
|
||||
margin-bottom: -30px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.green-label{
|
||||
font-size: 15px !important;
|
||||
margin-left: 7px !important;
|
||||
margin-right: 42px;
|
||||
}
|
||||
.green-label-ar{
|
||||
font-size: 15px !important;
|
||||
margin-left: 7px !important;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.blue-label{
|
||||
font-size: 15px !important;
|
||||
margin-left: 7px !important;
|
||||
margin-right: 13px;
|
||||
}
|
||||
.light-label{
|
||||
font-size: 15px !important;
|
||||
margin-left: 7px !important;
|
||||
margin-right: -26px;
|
||||
}
|
||||
.light-label-ar{
|
||||
font-size: 15px !important;
|
||||
margin-right: 7px !important;
|
||||
margin-left: -26px;
|
||||
}
|
||||
|
||||
.light-dote{
|
||||
background-color: #3CB9D5;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
}
|
||||
.blue-dote{
|
||||
|
||||
background-color: #269DB8;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
}
|
||||
.green-dote{
|
||||
background-color: #1FA269;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-right: -1px;
|
||||
}
|
||||
.col{
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.gridService{
|
||||
|
||||
/* margin-top: 87px; */
|
||||
border-radius: 10px;
|
||||
/* margin-bottom: -49px; */
|
||||
margin-left: 14px;
|
||||
margin-right: 14px;
|
||||
|
||||
}
|
||||
.columns{
|
||||
margin: 3px;
|
||||
margin-bottom: 13px;
|
||||
background: white;
|
||||
border-radius: 27px;
|
||||
padding-left: 30px;
|
||||
padding-right: 6px;
|
||||
padding-top: 19px;
|
||||
padding-bottom: 8px;
|
||||
border: 1px solid #cac8c8 !important;
|
||||
}
|
||||
|
||||
|
||||
.service{
|
||||
font-size: 22px;
|
||||
color: black;
|
||||
letter-spacing: 1px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.services{
|
||||
|
||||
font-size: 12px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.adult-dote{
|
||||
background-color: #3CB9D5;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-left: -17px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.adult-dote-ar{
|
||||
background-color: #3CB9D5;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-right: 0px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.child-dote{
|
||||
|
||||
background-color: #269DB8;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-left: -17px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.child-dote-ar{
|
||||
background-color: #269DB8;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-right: 1px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.infants-dote{
|
||||
background-color: #1FA269;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-left: -17px;
|
||||
margin-right: 5px;
|
||||
// margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.infants-dote-ar{
|
||||
background-color: #1FA269;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin-right: 1px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.addEitOkButton{
|
||||
white-space: normal !important;
|
||||
text-transform: capitalize !important;
|
||||
min-height: 45px !important;
|
||||
min-width: 5px !important;
|
||||
margin: 8px !important;
|
||||
background-color: #269DB8;
|
||||
width: 80% !important;
|
||||
color: white!important;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CeiListComponent } from './cei-list.component';
|
||||
|
||||
describe('CeiListComponent', () => {
|
||||
let component: CeiListComponent;
|
||||
let fixture: ComponentFixture<CeiListComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ CeiListComponent ],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CeiListComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,127 @@
|
||||
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
|
||||
import { EITTransactionsRequest } from './../models/EITTransactionsReq';
|
||||
import { MenuResponse } from 'src/app/hmg-common/services/menu/models/menu-response';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { EitService } from '../services/eit.service';
|
||||
import { EIT_ACTION } from '../models/submit.eit.action';
|
||||
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
|
||||
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-cei-list',
|
||||
templateUrl: './cei-list.component.html',
|
||||
styleUrls: ['./cei-list.component.scss'],
|
||||
})
|
||||
export class CeiListComponent implements OnInit {
|
||||
Sdate: any;
|
||||
emp_no: any;
|
||||
balance:any;
|
||||
P_PAGE_NUM: number;
|
||||
P_PAGE_LIMIT: number;
|
||||
IsReachEnd = false;
|
||||
userName: any;
|
||||
isDelete = false;
|
||||
getResCEITransactionList: any = [];
|
||||
eitAddedList: any = [];
|
||||
getPassMnuEntryObj: any;
|
||||
selMenu: MenuResponse = new MenuResponse();
|
||||
CEITransactionsListObj: EITTransactionsRequest = new EITTransactionsRequest();
|
||||
selEmp: string;
|
||||
respID: number;
|
||||
transactionNo = 0;
|
||||
menuType = '';
|
||||
public functionName = '';
|
||||
private pAction = 0;
|
||||
public headerTitle = '';
|
||||
data: any;
|
||||
accrualNetInfants: any;
|
||||
accrualUNetChild: any;
|
||||
accrualNetAdult: any;
|
||||
|
||||
public options = {
|
||||
cutoutPercentage: 80,
|
||||
tooltips: { enabled: false },
|
||||
legend: { display: false }};
|
||||
gaugeType = 'full';
|
||||
accrualBalancesList: any;
|
||||
common: any;
|
||||
direction: string;
|
||||
|
||||
constructor(
|
||||
private cs: CommonService,
|
||||
private EITService: EitService,
|
||||
public ts: TranslatorService,
|
||||
public authService:AuthenticationService,) {
|
||||
this.direction = TranslatorService.getCurrentLanguageName();
|
||||
this.selMenu = this.cs.sharedService.getSharedData(MenuResponse.SHARED_DATA, false);
|
||||
this.selEmp = this.cs.sharedService.getSharedData(MenuResponse.SHARED_SEL_EMP, false);
|
||||
this.respID = this.cs.sharedService.getSharedData(MenuResponse.SHARED_SEL_RESP_ID, false);
|
||||
this.getPassMnuEntryObj = this.selMenu.GetMenuEntriesList;
|
||||
this.menuType = this.selMenu.List_Menu.MENU_TYPE;
|
||||
this.transactionNo = 0;
|
||||
this.functionName = this.getPassMnuEntryObj.FUNCTION_NAME;
|
||||
this.headerTitle = this.selMenu.GetMenuEntriesList.PROMPT;
|
||||
this.P_PAGE_NUM = 1;
|
||||
this.P_PAGE_LIMIT = 100;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.getCEITransactions();
|
||||
}
|
||||
|
||||
|
||||
public getCEITransactions() {
|
||||
this.IsReachEnd = false;
|
||||
this.CEITransactionsListObj.P_PAGE_LIMIT = this.P_PAGE_LIMIT;
|
||||
this.CEITransactionsListObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
||||
this.CEITransactionsListObj.P_SELECTED_EMPLOYEE_NUMBER = this.selEmp;
|
||||
this.CEITransactionsListObj.P_SELECTED_RESP_ID = this.respID;
|
||||
this.CEITransactionsListObj.P_MENU_TYPE = this.selMenu.List_Menu.MENU_TYPE;
|
||||
this.CEITransactionsListObj.P_FUNCTION_NAME = this.getPassMnuEntryObj.FUNCTION_NAME;
|
||||
this.EITService.getCEITransactionsList(this.CEITransactionsListObj).
|
||||
subscribe((result: any) => {
|
||||
this.handleCEITransactionsResult(result);
|
||||
});
|
||||
}
|
||||
|
||||
public handleCEITransactionsResult(result) {
|
||||
if (this.cs.validResponse(result)) {
|
||||
if (this.cs.hasData(result.GetEITTransactionList)) {
|
||||
this.getResCEITransactionList = result.GetEITTransactionList;
|
||||
this.P_PAGE_NUM++;
|
||||
this.CEITransactionsListObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
||||
const lastItemIndex = this.getResCEITransactionList.length - 1;
|
||||
if (result.GetEITTransactionList[lastItemIndex] && result.GetEITTransactionList[lastItemIndex].Collection_Transaction[0]) {
|
||||
const lastitem = result.GetEITTransactionList[lastItemIndex].Collection_Transaction[0];
|
||||
// tslint:disable-next-line: triple-equals
|
||||
if (lastitem.NO_OF_ROWS == lastitem.ROW_NUM) {
|
||||
this.IsReachEnd = true;
|
||||
} else {
|
||||
this.IsReachEnd = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public addCEIRrq(i?) {
|
||||
this.pAction = EIT_ACTION.ADD;
|
||||
this.cs.sharedService.setSharedData(this.pAction, EITTransactionsRequest.SUBMIT_EIT_ACTION);
|
||||
this.openCEINew(i);
|
||||
}
|
||||
|
||||
openCEINew(index) {
|
||||
let item: any = [];
|
||||
if (this.pAction == EIT_ACTION.UPDATE) {
|
||||
item = this.getResCEITransactionList[index].Collection_Transaction;
|
||||
}
|
||||
this.transactionNo++;
|
||||
// tslint:disable-next-line: max-line-length
|
||||
this.cs.sharedService.setSharedData({ dirfromNotificationPage: false, submitEITObjList: undefined, transNo: this.transactionNo }, 'AddEITData');
|
||||
this.cs.openAddCEIPage();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,127 @@
|
||||
<p>
|
||||
confirm-add-cei works!
|
||||
</p>
|
||||
<ion-header>
|
||||
<ion-toolbar class="header-toolbar-new">
|
||||
<nav-buttons></nav-buttons>
|
||||
<ion-title [ngClass]=" direction === 'en' ? 'title' : 'title-ar'" color="light">{{headerTitle}}</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
|
||||
<ion-content>
|
||||
<!-------------------------------Start New design ---------------------------------------->
|
||||
<ion-grid>
|
||||
<ion-row style="margin-top: 20px;margin-left: 12px;">
|
||||
<ion-col>
|
||||
<div size="10" [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'" >{{'general, addAttach' | translate}}</div>
|
||||
</ion-col>
|
||||
<ion-col style="padding-left: 7%;" size="2">
|
||||
<div class="fileDiv">
|
||||
<input end class="inputfile" style="margin-top: 10px;z-index: 99999;position: absolute;opacity: 0;" type="file" ng2FileSelect [uploader]="uploader"
|
||||
(change)="onFileSelected($event)" (click)="onFileSelectedclick($event)" />
|
||||
<label end for="file" class="attachLable">
|
||||
<ion-icon style="font-size: 22px;" name="add"></ion-icon>
|
||||
</label></div>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-item class="attachmentDiv" *ngIf="attachListOver?.length == 0">
|
||||
<ion-img style="height: 26px;width:100%;margin-top:12px" src="../assets/imgs/attach-icon.png"></ion-img>
|
||||
<ion-label style="margin-top: -24px;" position="floating" class="boldTxtNav">{{ 'general, notAttch' | translate}}</ion-label>
|
||||
</ion-item>
|
||||
</ion-grid>
|
||||
|
||||
<ion-grid class="attachmentDiv" *ngIf="attachListOver?.length > 0">
|
||||
<div *ngFor="let attachList of attachListOver ; let i = index">
|
||||
<ion-row>
|
||||
<ion-col size="1">
|
||||
<ion-label style="color: black !important;">
|
||||
{{attachList.AttachmentID +1 }} .
|
||||
</ion-label>
|
||||
</ion-col>
|
||||
<ion-col style="text-align: left;" size="10">
|
||||
<ion-label style="color: blue !important;" (click)="OpenAttachFiles(attachList.P_FILE_DATA,attachList.P_FILE_CONTENT_TYPE)">
|
||||
{{attachList.P_FILE_NAME }}
|
||||
</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="1">
|
||||
<button float-end [disabled]="attachList.isSuccess" class="attachImgBtn removeLable"
|
||||
(click)="removeFile(attachList)">
|
||||
<ion-icon style="font-size:22px;margin-left:-7px;margin-top:-2px;" name="close"></ion-icon>
|
||||
</button>
|
||||
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</div>
|
||||
|
||||
</ion-grid>
|
||||
<ion-grid *ngIf="attachmentRes?.length > 0">
|
||||
<div *ngFor="let attachRes of attachmentRes">
|
||||
<ion-row>
|
||||
<ion-col col-8>
|
||||
<div> <img float-start class="attachImg" src="../assets/imgs/file.png">
|
||||
</div>
|
||||
<ion-label>
|
||||
{{attachRes.FILE_NAME }} </ion-label>
|
||||
|
||||
</ion-col>
|
||||
<ion-col col-4>
|
||||
<button float-end class="attachImgBtn"
|
||||
(click)="OpenAttachFiles(attachRes.FILE_DATA,attachRes.FILE_CONTENT_TYPE)">
|
||||
<img class="attachImg" src="../assets/imgs/view.png">
|
||||
</button>
|
||||
<button float-end [disabled]="!isResubmitEIT" class="attachImgBtn" (click)="delelteFile(attachRes)"><img
|
||||
class="attachImg" src="../assets/imgs/deletegray.png"></button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</div>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
|
||||
<ion-grid class="">
|
||||
<div [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'">{{'confirmAddEit, comment' | translate}}</div>
|
||||
<ion-item class="submitNote" lines="none">
|
||||
<ion-textarea type="text" [(ngModel)]="eitComments"></ion-textarea>
|
||||
</ion-item>
|
||||
</ion-grid>
|
||||
|
||||
<ion-grid class="approvalList">
|
||||
<div [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'">{{'confirmAddEit, approverList' | translate}}</div>
|
||||
<div class="noDataDiv" *ngIf="approversList?.length == 0">
|
||||
<p>{{ 'general, empty' | translate}}</p>
|
||||
</div>
|
||||
<div style="background-color: white;border-radius: 32px;border: 1px solid #c8c4c4;" *ngIf="approversList?.length > 0">
|
||||
<ion-list class="notification-list ">
|
||||
<div class="timeline">
|
||||
<ion-item style="padding-left: 4%;" *ngFor="let employee of approversList">
|
||||
|
||||
<div class="timeline-item" slot="start">
|
||||
<div [class]="direction == 'en'? 'timeline-thumb-en timeline-icon': 'timeline-thumb-ar timeline-icon'">
|
||||
<img *ngIf="employee.EMPLOYEE_IMAGE" class="empImge"
|
||||
[src]="'data:image/png;base64,'+employee.EMPLOYEE_IMAGE">
|
||||
<img *ngIf="employee.EMPLOYEE_IMAGE == null" class="empImge"
|
||||
src="../assets/imgs/profile.png"> </div>
|
||||
</div>
|
||||
<ion-col>
|
||||
<ion-label style="color:black !important ;font-weight: bold;padding-top: 0%;">
|
||||
{{employee.APPROVER}}
|
||||
</ion-label>
|
||||
<ion-label style="color:black !important ;padding-top: 4%;">
|
||||
{{employee.POSITION_TITLE}}
|
||||
</ion-label>
|
||||
|
||||
</ion-col>
|
||||
<div class="line"></div>
|
||||
</ion-item>
|
||||
</div>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<ion-footer>
|
||||
<div class="centerDiv">
|
||||
<ion-button class="confirmEitOkButton" color="customnavy" ion-button (click)="openSubmitModal()">
|
||||
{{ (isDelete ? 'general, delete' : 'general, submit') | translate }}</ion-button>
|
||||
</div>
|
||||
</ion-footer>
|
||||
@ -0,0 +1,8 @@
|
||||
import { Response } from '../../hmg-common/services/models/response';
|
||||
import { EitRespModel } from './eit.response.model'
|
||||
|
||||
export class AddCeiResponse extends Response {
|
||||
public static SHARED_DATA = 'add-cei-response';
|
||||
SubmitCEITransactionList: EitRespModel;
|
||||
}
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
import { EitTransactionModel } from './eit.transaction.model';
|
||||
|
||||
export class CeiRequest {
|
||||
public static SHARED_DATA = 'cei-request';
|
||||
public P_MENU_TYPE: string;
|
||||
public P_SELECTED_EMPLOYEE_NUMBER: string;
|
||||
public P_FUNCTION_NAME: string;
|
||||
public P_SELECTED_RESP_ID: Number;
|
||||
P_CONTACT_RELATIONSHIP_ID: Number;
|
||||
P_DESC_FLEX_CONTEXT_CODE: string;
|
||||
EITTransactionTBL: EitTransactionModel[];
|
||||
}
|
||||
Loading…
Reference in New Issue