git pull made

This commit is contained in:
Eudes Inácio
2023-02-17 12:24:25 +01:00
9 changed files with 94 additions and 27 deletions
+6
View File
@@ -67,10 +67,16 @@ export class UserSession {
SharedCalendars: { SharedCalendars: {
CalendarId: string CalendarId: string
CalendarName: "Oficial" | "Pessoal"; CalendarName: "Oficial" | "Pessoal";
/**
* @description User Role Id
*/
CalendarRoleId: string; CalendarRoleId: string;
Id: number; Id: number;
OwnerUserId: string; OwnerUserId: string;
TypeShare: number; TypeShare: number;
/**
* @description deprecated
*/
CalendarToken: string; CalendarToken: string;
}[] }[]
UserName: string UserName: string
@@ -19,6 +19,7 @@ import { NgxMatDateFormats } from '@angular-material-components/datetime-picker'
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker'; import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
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 { RoleIdService } from 'src/app/services/role-id.service';
const moment = _rollupMoment || _moment; const moment = _rollupMoment || _moment;
@@ -116,15 +117,15 @@ export class BookMeetingModalPage implements OnInit {
private navParams: NavParams, private navParams: NavParams,
private attachmentsService: AttachmentsService, private attachmentsService: AttachmentsService,
public calendarService: EventsService, public calendarService: EventsService,
authService: AuthService,
private toastService: ToastService, private toastService: ToastService,
public ThemeService: ThemeService, public ThemeService: ThemeService,
public eventService: EventsService, public eventService: EventsService,
public RoleIdService: RoleIdService
) { ) {
this.taskParticipants = []; this.taskParticipants = [];
this.loggeduser = SessionStore.user;
this.task = this.navParams.get('task'); this.task = this.navParams.get('task');
this.postData = new Event(); this.postData = new Event();
@@ -256,7 +257,7 @@ export class BookMeetingModalPage implements OnInit {
async saveTask() { async saveTask() {
if(this.loggeduser.Profile == 'MDGPR') { if(SessionStore.user.Profile == 'MDGPR') {
this.injectValidation() this.injectValidation()
this.runValidation() this.runValidation()
if(this.Form.invalid) return false if(this.Form.invalid) return false
+3 -17
View File
@@ -257,29 +257,16 @@ export class EventsService {
this.calendarNames[sharedCalendar.CalendarId] = e.FullName this.calendarNames[sharedCalendar.CalendarId] = e.FullName
this.myCalendarNames[sharedCalendar.CalendarId] = e.FullName this.myCalendarNames[sharedCalendar.CalendarId] = e.FullName
console.log('ROLE',e.Role, e.FullName)
if(!this.calendarNamesAry.find(x => x.Role == e.Role)) { if(!this.calendarNamesAry.find(x => x.Role == e.Role)) {
/* if(e.Role == "Presidente da República") {
this.calendarNamesAry.push(e.Role)
console.log('PR ROLE',this.calendarNamesAry)
} else if (e.Role == "Ministro e Director do Gabinete do PR"){
this.calendarNamesAry.push(e.Role)
console.log('MD ROLE',this.calendarNamesAry)
} else {
this.calendarNamesAry.push(e.FullName)
console.log('NORMAL ROLE',this.calendarNamesAry)
} */
//this.calendarRole.push(e.Role)
let objectShared = { let objectShared = {
"Fullname": e.FullName, "Fullname": e.FullName,
"Role": e.Role "Role": e.Role,
"RoleId": sharedCalendar.CalendarRoleId
} }
this.calendarNamesAry.push(objectShared) this.calendarNamesAry.push(objectShared)
console.log('objectShared',this.calendarNamesAry)
this.calendarNamesType[e.FullName] = {} this.calendarNamesType[e.FullName] = {}
} }
@@ -298,7 +285,6 @@ export class EventsService {
if(!this.calendarNamesAry.includes('Meu calendario')) { if(!this.calendarNamesAry.includes('Meu calendario')) {
this.calendarNamesAry.push('Meu calendario') this.calendarNamesAry.push('Meu calendario')
console.log(this.calendarNamesAry)
this.calendarNamesType['Meu calendario'] = {} this.calendarNamesType['Meu calendario'] = {}
} }
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { NotificationMessageService } from './notification-message.service';
describe('NotificationMessageService', () => {
let service: NotificationMessageService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(NotificationMessageService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -0,0 +1,13 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class NotificationMessageService {
constructor() { }
/*** @description Sem acesso à internet. Por favor verifique sua conexão */
noInternetConnection = 'Sem acesso à internet. Por favor verifique sua conexão'
}
+16
View File
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { RoleIdService } from './role-id.service';
describe('RoleIdService', () => {
let service: RoleIdService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(RoleIdService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
+23
View File
@@ -0,0 +1,23 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class RoleIdService {
constructor() { }
/**
* @description President role id
*/
PV: number = 100000011
/**
* @description Vice president role id
*/
PRES: number = 100000014
/**
* @description Consultant role id
*/
Consultant: number = 99999872
}
+6
View File
@@ -1432,3 +1432,9 @@ pre {
font-family: 'Roboto' !important; font-family: 'Roboto' !important;
font-size: 12pt !important; font-size: 12pt !important;
} }
ion-textarea textarea {
min-height: 137px;
line-height: 21px;
}
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "d44ca806e", "shortSHA": "87d8863d7",
"SHA": "d44ca806efc86c21048752383dd3b5169e68670e", "SHA": "87d8863d7dafa4532fa72e06f94188cb9222c34d",
"branch": "no_bug_movemente", "branch": "no_bug_movemente",
"lastCommitAuthor": "'Eudes Inácio'", "lastCommitAuthor": "'Eudes Inácio'",
"lastCommitTime": "'Thu Feb 16 15:43:15 2023 +0100'", "lastCommitTime": "'Fri Feb 17 12:18:28 2023 +0100'",
"lastCommitMessage": "pull made", "lastCommitMessage": "Verb of the action changed",
"lastCommitNumber": "4795", "lastCommitNumber": "4796",
"change": "", "change": "",
"changeStatus": "On branch no_bug_movemente\nYour branch is ahead of 'origin/no_bug_movemente' by 6 commits.\n (use \"git push\" to publish your local commits)\n\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/delegar/delegar.page.html\n\tmodified: src/app/pages/agenda/new-event/new-event.page.html\n\tmodified: src/app/pages/agenda/new-event/new-event.page.scss\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.html\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar/diplomas-gerar.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts\n\tmodified: src/app/pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts\n\tmodified: src/app/shared/agenda/new-event/new-event.page.html\n\tmodified: src/app/shared/popover/deploma-options/deploma-options.page.ts\n\tmodified: src/app/shared/popover/despachos-options/despachos-options.page.ts\n\tmodified: src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.ts\n\tmodified: src/app/shared/popover/diplomas-gerar-options/diplomas-gerar-options.page.ts\n\tmodified: src/app/shared/popover/opts-expediente-pr/opts-expediente-pr.page.ts\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.ts\n\tmodified: src/app/shared/popover/request-options/request-options.page.ts", "changeStatus": "On branch no_bug_movemente\nYour branch and 'origin/no_bug_movemente' have diverged,\nand have 7 and 8 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/models/user.model.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts\n\tmodified: src/app/services/events.service.ts\n\tnew file: src/app/services/notification-message.service.spec.ts\n\tnew file: src/app/services/notification-message.service.ts\n\tnew file: src/app/services/role-id.service.spec.ts\n\tnew file: src/app/services/role-id.service.ts\n\tmodified: src/global.scss",
"changeAuthor": "eudes.inacio" "changeAuthor": "eudes.inacio"
} }