|
|
|
@ -14,6 +14,7 @@ import { EitService } from '../services/eit.service';
|
|
|
|
import { AddEitResponse } from '../models/add.eit.response';
|
|
|
|
import { AddEitResponse } from '../models/add.eit.response';
|
|
|
|
import { FileUploader } from 'ng2-file-upload';
|
|
|
|
import { FileUploader } from 'ng2-file-upload';
|
|
|
|
import { SubmitEitModalComponent } from '../submit-eit-modal/submit-eit-modal.component';
|
|
|
|
import { SubmitEitModalComponent } from '../submit-eit-modal/submit-eit-modal.component';
|
|
|
|
|
|
|
|
import { HomeComponent } from 'src/app/notification/home/home.component';
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
|
selector: 'app-confirm-add-eit',
|
|
|
|
selector: 'app-confirm-add-eit',
|
|
|
|
@ -234,6 +235,7 @@ export class ConfirmAddEitComponent implements OnInit {
|
|
|
|
// this.navCtrl.popToRoot();
|
|
|
|
// this.navCtrl.popToRoot();
|
|
|
|
|
|
|
|
|
|
|
|
// this.cs.openHome();
|
|
|
|
// this.cs.openHome();
|
|
|
|
|
|
|
|
this.cs.sharedService.setSharedData(true, HomeComponent.COUNT_CHANGED);
|
|
|
|
this.cs.openNotificationPage();
|
|
|
|
this.cs.openNotificationPage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -249,7 +251,7 @@ export class ConfirmAddEitComponent implements OnInit {
|
|
|
|
//open the modal with return data
|
|
|
|
//open the modal with return data
|
|
|
|
let attachDocID = attachItems.ATTACHED_DOCUMENT_ID;
|
|
|
|
let attachDocID = attachItems.ATTACHED_DOCUMENT_ID;
|
|
|
|
|
|
|
|
|
|
|
|
this.cs.sharedService.setSharedData( this.P_TransactionID, 'TransactionID');
|
|
|
|
this.cs.sharedService.setSharedData(this.P_TransactionID, 'TransactionID');
|
|
|
|
this.cs.sharedService.setSharedData(this.attachListOver.length, 'indexLastObj');
|
|
|
|
this.cs.sharedService.setSharedData(this.attachListOver.length, 'indexLastObj');
|
|
|
|
|
|
|
|
|
|
|
|
const modal = await this.modalController.create({
|
|
|
|
const modal = await this.modalController.create({
|
|
|
|
@ -298,7 +300,7 @@ export class ConfirmAddEitComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
/*****submit modal********/
|
|
|
|
/*****submit modal********/
|
|
|
|
async openSubmitModal() {
|
|
|
|
async openSubmitModal() {
|
|
|
|
this.cs.sharedService.setSharedData( this.attachListOver, 'submitAttachmentList');
|
|
|
|
this.cs.sharedService.setSharedData(this.attachListOver, 'submitAttachmentList');
|
|
|
|
this.cs.sharedService.setSharedData(this.eitComments, 'eitComments');
|
|
|
|
this.cs.sharedService.setSharedData(this.eitComments, 'eitComments');
|
|
|
|
const modal = await this.modalController.create({
|
|
|
|
const modal = await this.modalController.create({
|
|
|
|
component: SubmitEitModalComponent,
|
|
|
|
component: SubmitEitModalComponent,
|
|
|
|
@ -482,7 +484,7 @@ export class ConfirmAddEitComponent implements OnInit {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onFileSelectedclick(event){
|
|
|
|
onFileSelectedclick(event) {
|
|
|
|
event.target.value = '';
|
|
|
|
event.target.value = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -529,7 +531,7 @@ export class ConfirmAddEitComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
pushObject(fileData, name, type) {
|
|
|
|
pushObject(fileData, name, type) {
|
|
|
|
|
|
|
|
|
|
|
|
console.log("before push: "+ this.index);
|
|
|
|
console.log("before push: " + this.index);
|
|
|
|
//this.attachListOver.length++;
|
|
|
|
//this.attachListOver.length++;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
let array = name.split('.');
|
|
|
|
let array = name.split('.');
|
|
|
|
|