mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
add attachments
This commit is contained in:
@@ -35,12 +35,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
<span class="app-name">{{document.appName}}</span>
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { AnimationController, ModalController, NavParams } from '@ionic/angular'
|
|||||||
import { SearchList } from 'src/app/models/search-document';
|
import { SearchList } from 'src/app/models/search-document';
|
||||||
import { SearchPage } from 'src/app/pages/search/search.page';
|
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-add-note',
|
selector: 'app-add-note',
|
||||||
templateUrl: './add-note.page.html',
|
templateUrl: './add-note.page.html',
|
||||||
@@ -20,7 +20,8 @@ export class AddNotePage implements OnInit {
|
|||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private animationController: AnimationController,
|
private animationController: AnimationController,
|
||||||
private navParams: NavParams,
|
private navParams: NavParams,
|
||||||
public ThemeService: ThemeService
|
public ThemeService: ThemeService,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.note = '';
|
this.note = '';
|
||||||
this.hideThisFeature = this.navParams.get('showAttachmentBtn');
|
this.hideThisFeature = this.navParams.get('showAttachmentBtn');
|
||||||
|
|||||||
@@ -146,6 +146,7 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import { fullTask } from 'src/app/models/dailyworktask.model';
|
|||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
import { SessionStore } from 'src/app/store/session.service';
|
import { SessionStore } from 'src/app/store/session.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
parse: {
|
parse: {
|
||||||
@@ -99,7 +99,8 @@ export class CreateProcessPage implements OnInit {
|
|||||||
private despachoService: DespachoService,
|
private despachoService: DespachoService,
|
||||||
private pedidoService: PedidoService,
|
private pedidoService: PedidoService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
private httpsErrorHanlde: HttpErrorHandle
|
private httpsErrorHanlde: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
this.task = this.navParams.get('task');
|
this.task = this.navParams.get('task');
|
||||||
@@ -354,7 +355,9 @@ export class CreateProcessPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.task.activityInstanceName == 'Tarefa de Despacho' || this.task.activityInstanceName == 'Reexecutar Despacho') {
|
if (this.task.activityInstanceName == 'Tarefa de Despacho' || this.task.activityInstanceName == 'Reexecutar Despacho') {
|
||||||
|
// create parecer
|
||||||
await this.despachoService.createParecer(this.postData).toPromise();
|
await this.despachoService.createParecer(this.postData).toPromise();
|
||||||
|
// task complete
|
||||||
await this.despachoService.solicitarParecer({ note: this.postData.DispatchFolder.Message, serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName }).toPromise();
|
await this.despachoService.solicitarParecer({ note: this.postData.DispatchFolder.Message, serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName }).toPromise();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
@@ -40,12 +40,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
<span class="app-name">{{document.appName}}</span>
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data || document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { ProcessesService } from 'src/app/services/processes.service';
|
|||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
import { ThemeService } from 'src/app/services/theme.service';
|
import { ThemeService } from 'src/app/services/theme.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dar-parecer',
|
selector: 'app-dar-parecer',
|
||||||
@@ -25,7 +26,8 @@ export class DarParecerPage implements OnInit {
|
|||||||
private animationController: AnimationController,
|
private animationController: AnimationController,
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
private httpErroHanlde: HttpErrorHandle
|
private httpErroHanlde: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.serialNumber = this.navParams.get('serialNumber');
|
this.serialNumber = this.navParams.get('serialNumber');
|
||||||
this.instanceId = this.navParams.get('ProcessInstanceID');
|
this.instanceId = this.navParams.get('ProcessInstanceID');
|
||||||
|
|||||||
@@ -62,12 +62,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
<span class="app-name">{{document.appName}}</span>
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data || document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { SearchList } from 'src/app/models/search-document';
|
|||||||
import { SearchPage } from 'src/app/pages/search/search.page';
|
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-delegar',
|
selector: 'app-delegar',
|
||||||
@@ -47,7 +47,8 @@ export class DelegarPage implements OnInit {
|
|||||||
public alertController: AlertController,
|
public alertController: AlertController,
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
private httpErrorHandle: HttpErrorHandle
|
private httpErrorHandle: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.task = this.navParams.get('task');
|
this.task = this.navParams.get('task');
|
||||||
this.postData = new Event();
|
this.postData = new Event();
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ export class DocumentDetailPage implements OnInit {
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
taskAction: taskAction,
|
taskAction: taskAction,
|
||||||
task: this.DocumentTask,
|
task: this.DocumentTask,
|
||||||
seachDocuments: this.LoadedDocument,
|
|
||||||
aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID
|
aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: classs,
|
||||||
|
|||||||
@@ -317,12 +317,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{(document.Data ||document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data ||document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import { ThemeService } from 'src/app/services/theme.service';
|
|||||||
import { SessionStore } from 'src/app/store/session.service';
|
import { SessionStore } from 'src/app/store/session.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
@@ -109,7 +110,8 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
|||||||
private eventService: EventService,
|
private eventService: EventService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
public _eventService: EventsService,
|
public _eventService: EventsService,
|
||||||
private httpErroHandle: HttpErrorHandle
|
private httpErroHandle: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
this.document = this.navParams.get('document')
|
this.document = this.navParams.get('document')
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ export class ViewDocumentPage implements OnInit {
|
|||||||
private alertController: AlertController,
|
private alertController: AlertController,
|
||||||
) {
|
) {
|
||||||
this.file = this.navParams.get('file');
|
this.file = this.navParams.get('file');
|
||||||
console.log(this.file )
|
|
||||||
this.applicationId = this.navParams.get('applicationId');
|
this.applicationId = this.navParams.get('applicationId');
|
||||||
this.docId = this.navParams.get('docId');
|
this.docId = this.navParams.get('docId');
|
||||||
this.Document = this.navParams.get('Document')
|
this.Document = this.navParams.get('Document')
|
||||||
@@ -45,6 +44,14 @@ export class ViewDocumentPage implements OnInit {
|
|||||||
this.file.title = 'Sem Título'
|
this.file.title = 'Sem Título'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log({
|
||||||
|
file: this.file,
|
||||||
|
applicationId: this.applicationId,
|
||||||
|
docId: this.docId,
|
||||||
|
Document: this.Document,
|
||||||
|
task: this.task,
|
||||||
|
attachment: this.attachment
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,10 +101,8 @@ export class ViewDocumentPage implements OnInit {
|
|||||||
component: EventDetailsDocumentsOptionsPage,
|
component: EventDetailsDocumentsOptionsPage,
|
||||||
cssClass: 'model aside-modal search-submodal',
|
cssClass: 'model aside-modal search-submodal',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
fulltask: this.task,
|
content: "", // check
|
||||||
task: this.task,
|
Document:this.Document // check
|
||||||
content: "",
|
|
||||||
Document:this.Document
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
@@ -127,11 +132,13 @@ export class ViewDocumentPage implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
classs = 'modal modal-desktop showAsideOptions'
|
classs = 'modal modal-desktop showAsideOptions'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check passing
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: DocumentSetUpMeetingPage,
|
component: DocumentSetUpMeetingPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
subject: this.task.workflowInstanceDataFields.Subject,
|
subject: this.task.workflowInstanceDataFields.Subject, // check
|
||||||
document: this.Document,
|
document: this.Document, // document
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: classs,
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
@@ -156,13 +163,14 @@ export class ViewDocumentPage implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
classs = 'modal modal-desktop showAsideOptions'
|
classs = 'modal modal-desktop showAsideOptions'
|
||||||
}
|
}
|
||||||
|
// check passing
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ExpedientTaskModalPage,
|
component: ExpedientTaskModalPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
taskAction: taskAction,
|
taskAction: taskAction, // check
|
||||||
task: this.task,
|
task: this.task, // check
|
||||||
seachDocuments: this.Document,
|
document: this.Document, // nope
|
||||||
aplicationId: this.Document.ApplicationId || this.Document.ApplicationID
|
aplicationId: this.Document.ApplicationId || this.Document.ApplicationID // check
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: classs,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ export class Folder{
|
|||||||
Nad:number;
|
Nad:number;
|
||||||
Subject: string;
|
Subject: string;
|
||||||
Message:string;
|
Message:string;
|
||||||
SourceSecFsId?:string;
|
SourceSecFsId:string;
|
||||||
SourceType:string;
|
SourceType:string;
|
||||||
SourceId:string;
|
SourceId:string;
|
||||||
DeadlineType: string;
|
DeadlineType: string;
|
||||||
SubjectTypes: string[];
|
SubjectTypes: string[];
|
||||||
NumberPDPP?:string;
|
NumberPDPP:string;
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data || document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
|||||||
import { ChatMethodsService } from 'src/app/services/chat/chat-methods.service';
|
import { ChatMethodsService } from 'src/app/services/chat/chat-methods.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
parse: {
|
parse: {
|
||||||
@@ -101,7 +102,8 @@ export class NewEventPage implements OnInit {
|
|||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
private platform: Platform,
|
private platform: Platform,
|
||||||
private chatMethodService: ChatMethodsService,
|
private chatMethodService: ChatMethodsService,
|
||||||
private hhtpErrorHandle: HttpErrorHandle
|
private hhtpErrorHandle: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
this.postEvent = new Event();
|
this.postEvent = new Event();
|
||||||
|
|||||||
+1
@@ -280,6 +280,7 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
|
|||||||
+3
-2
@@ -22,7 +22,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
|||||||
import { RoleIdService } from 'src/app/services/role-id.service';
|
import { RoleIdService } from 'src/app/services/role-id.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
const moment = _rollupMoment || _moment;
|
const moment = _rollupMoment || _moment;
|
||||||
|
|
||||||
@@ -124,7 +124,8 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
public eventService: EventsService,
|
public eventService: EventsService,
|
||||||
public RoleIdService: RoleIdService,
|
public RoleIdService: RoleIdService,
|
||||||
private httpErroHandle: HttpErrorHandle
|
private httpErroHandle: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|||||||
+3
-2
@@ -196,12 +196,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
<span class="app-name">{{document.appName}}</span>
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
<span class="close-button text-black" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data || document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
+33
-1
@@ -26,7 +26,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
|||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { RouteService } from 'src/app/services/route.service';
|
import { RouteService } from 'src/app/services/route.service';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
parse: {
|
parse: {
|
||||||
@@ -95,6 +95,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
Form: FormGroup;
|
Form: FormGroup;
|
||||||
validateFrom = false;
|
validateFrom = false;
|
||||||
validateField = false;
|
validateField = false;
|
||||||
|
document: any
|
||||||
|
|
||||||
get toppingsValues() {
|
get toppingsValues() {
|
||||||
return this.toppings.value;
|
return this.toppings.value;
|
||||||
@@ -113,6 +114,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
public p: PermissionService,
|
public p: PermissionService,
|
||||||
private httpErroHandle: HttpErrorHandle,
|
private httpErroHandle: HttpErrorHandle,
|
||||||
private RouteService: RouteService,
|
private RouteService: RouteService,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
|
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
@@ -122,9 +124,39 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
|
|
||||||
this.SearchFolder = this.navParams.get('SearchFolder');
|
this.SearchFolder = this.navParams.get('SearchFolder');
|
||||||
this.aplicationId = this.navParams.get('aplicationId')
|
this.aplicationId = this.navParams.get('aplicationId')
|
||||||
|
this.document = this.navParams.get('document')
|
||||||
|
|
||||||
this.taskType = this.navParams.get('taskAction');
|
this.taskType = this.navParams.get('taskAction');
|
||||||
|
|
||||||
|
|
||||||
|
if(this.document) {
|
||||||
|
const doc: any = this.document
|
||||||
|
|
||||||
|
this.documents.push({
|
||||||
|
ApplicationId: (doc.ApplicationType || doc.ApplicationId),
|
||||||
|
ApplicationType: (doc.ApplicationType || doc.ApplicationId),
|
||||||
|
SourceId: (doc.Id || doc.DocId || doc.SourceId),
|
||||||
|
Id: (doc.Id || doc.DocId || doc.SourceId),
|
||||||
|
EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),
|
||||||
|
Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),
|
||||||
|
Data: (doc.DocDate || doc.Data),
|
||||||
|
DocDate: (doc.DocDate || doc.Data),
|
||||||
|
Assunto: doc.Assunto,
|
||||||
|
} as any)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DocumentToSave = this.documents.map((e) => {
|
||||||
|
return {
|
||||||
|
ApplicationId: e.ApplicationType,
|
||||||
|
SourceId: e.Id
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
console.log('this.document', this.document)
|
||||||
|
|
||||||
|
|
||||||
this.selectedTypes = ['99999850'];
|
this.selectedTypes = ['99999850'];
|
||||||
|
|
||||||
this.postData = new Despacho();
|
this.postData = new Despacho();
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import { DespachoService } from 'src/app/Rules/despacho.service';
|
|||||||
import { CustomTaskPipe } from '../pipes/custom-task.pipe';
|
import { CustomTaskPipe } from '../pipes/custom-task.pipe';
|
||||||
import { SessionStore } from 'src/app/store/session.service';
|
import { SessionStore } from 'src/app/store/session.service';
|
||||||
import { EventsService } from './events.service';
|
import { EventsService } from './events.service';
|
||||||
import { SortService } from './functions/sort.service';
|
|
||||||
import { customTask } from '../models/dailyworktask.model';
|
import { customTask } from '../models/dailyworktask.model';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
@@ -486,4 +485,14 @@ export class TaskService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
attachmentAppName(e) {
|
||||||
|
const ApplicationId = e.ApplicationId || e.ApplicationType
|
||||||
|
if( ApplicationId =='8' || ApplicationId ==8) {
|
||||||
|
return 'Correspondencia'
|
||||||
|
} else if (ApplicationId =='361' || ApplicationId ==361) {
|
||||||
|
return 'ArquivoDespachoElect'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,12 +318,13 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
<span class="attach-title-item">{{document.Assunto}}</span>
|
||||||
<span class="app-name">{{document.appName}}</span>
|
<span class="app-name" *ngIf="!document.appName">{{ TaskService.attachmentAppName(document)}}</span>
|
||||||
|
<span class="app-name" *ngIf="document.appName">{{document.appName}}</span>
|
||||||
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
<span class="close-button text-black cursor-pointer" (click)="removeAttachment(i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{(document.EntidadeOrganicaNome || document.Sender)}}</span><span class="span-right"> {{(document.Data || document.DocDate) | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { ServerConnectionService } from 'src/app/services/server-connection.serv
|
|||||||
import { SessionStore } from 'src/app/store/session.service';
|
import { SessionStore } from 'src/app/store/session.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
|
import { TaskService } from 'src/app/services/task.service'
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
parse: {
|
parse: {
|
||||||
dateInput: "YYYY-MMMM-DD HH:mm"
|
dateInput: "YYYY-MMMM-DD HH:mm"
|
||||||
@@ -135,7 +135,8 @@ export class NewEventPage implements OnInit {
|
|||||||
private dateAdapter: DateAdapter<any>,
|
private dateAdapter: DateAdapter<any>,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
private chatMethodService: ChatMethodsService,
|
private chatMethodService: ChatMethodsService,
|
||||||
private hhtpErrorHandle: HttpErrorHandle
|
private hhtpErrorHandle: HttpErrorHandle,
|
||||||
|
public TaskService: TaskService
|
||||||
) {
|
) {
|
||||||
this.dateAdapter.setLocale('pt');
|
this.dateAdapter.setLocale('pt');
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "4eff2575b",
|
"shortSHA": "081fe8692",
|
||||||
"SHA": "4eff2575b69312a72f16c8e30e03bd6a797bb762",
|
"SHA": "081fe8692c8575cc102a91c6357d193d52cb9c0f",
|
||||||
"branch": "developer-prod",
|
"branch": "developer-prod",
|
||||||
"lastCommitAuthor": "'Eudes Inácio'",
|
"lastCommitAuthor": "'Eudes Inácio'",
|
||||||
"lastCommitTime": "'Wed Aug 30 20:54:47 2023 +0100'",
|
"lastCommitTime": "'Wed Aug 30 20:56:46 2023 +0100'",
|
||||||
"lastCommitMessage": "add file on chat its hide",
|
"lastCommitMessage": "pull made",
|
||||||
"lastCommitNumber": "5250",
|
"lastCommitNumber": "5252",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch developer-prod\nYour branch and 'origin/developer-prod' have diverged,\nand have 3 and 1 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/models/folder.model.ts\n\tmodified: src/assets/images/theme/gov/icons-delete.svg",
|
"changeStatus": "On branch developer-prod\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/modals/add-note/add-note.page.html\n\tmodified: src/app/modals/add-note/add-note.page.ts\n\tmodified: src/app/modals/create-process/create-process.page.html\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/modals/dar-parecer/dar-parecer.page.html\n\tmodified: src/app/modals/dar-parecer/dar-parecer.page.ts\n\tmodified: src/app/modals/delegar/delegar.page.html\n\tmodified: src/app/modals/delegar/delegar.page.ts\n\tmodified: src/app/modals/document-detail/document-detail.page.ts\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n\tmodified: src/app/modals/view-document/view-document.page.ts\n\tmodified: src/app/models/folder.model.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.page.html\n\tmodified: src/app/pages/agenda/new-event/new-event.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html\n\tmodified: src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts\n\tmodified: src/app/services/task.service.ts\n\tmodified: src/app/shared/agenda/new-event/new-event.page.html\n\tmodified: src/app/shared/agenda/new-event/new-event.page.ts",
|
||||||
"changeAuthor": "eudes.inacio"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user