mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve
This commit is contained in:
-353
@@ -53,356 +53,3 @@ src/assets/www/pdfjs/web/compressed.tracemonkey-pldi-09.pdf.pdf
|
|||||||
node_modules_
|
node_modules_
|
||||||
node_modules__
|
node_modules__
|
||||||
plugins_
|
plugins_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# npm bug fies
|
|
||||||
_browserslist
|
|
||||||
acorn
|
|
||||||
acorn.cmd
|
|
||||||
acorn.ps1
|
|
||||||
ansi-html
|
|
||||||
ansi-html.cmd
|
|
||||||
ansi-html.ps1
|
|
||||||
atob
|
|
||||||
atob.cmd
|
|
||||||
atob.ps1
|
|
||||||
autoprefixer
|
|
||||||
autoprefixer.cmd
|
|
||||||
autoprefixer.ps1
|
|
||||||
blocking-proxy
|
|
||||||
blocking-proxy.cmd
|
|
||||||
blocking-proxy.ps1
|
|
||||||
browser-sync
|
|
||||||
browser-sync.cmd
|
|
||||||
browser-sync.ps1
|
|
||||||
browserslist.cmd
|
|
||||||
browserslist.ps1
|
|
||||||
build-optimizer
|
|
||||||
build-optimizer.cmd
|
|
||||||
build-optimizer.ps1
|
|
||||||
cap
|
|
||||||
cap.cmd
|
|
||||||
cap.ps1
|
|
||||||
capacitor
|
|
||||||
capacitor.cmd
|
|
||||||
capacitor.ps1
|
|
||||||
ci
|
|
||||||
ci.cmd
|
|
||||||
ci.ps1
|
|
||||||
cordova
|
|
||||||
cordova-browser
|
|
||||||
cordova-browser.cmd
|
|
||||||
cordova-browser.ps1
|
|
||||||
cordova-res
|
|
||||||
cordova-res.cmd
|
|
||||||
cordova-res.ps1
|
|
||||||
cordova.cmd
|
|
||||||
cordova.ps1
|
|
||||||
create
|
|
||||||
create.cmd
|
|
||||||
create.ps1
|
|
||||||
cross-env
|
|
||||||
cross-env-shell
|
|
||||||
cross-env-shell.cmd
|
|
||||||
cross-env-shell.ps1
|
|
||||||
cross-env.cmd
|
|
||||||
cross-env.ps1
|
|
||||||
css-blank-pseudo
|
|
||||||
css-blank-pseudo.cmd
|
|
||||||
css-blank-pseudo.ps1
|
|
||||||
css-has-pseudo
|
|
||||||
css-has-pseudo.cmd
|
|
||||||
css-has-pseudo.ps1
|
|
||||||
css-prefers-color-scheme
|
|
||||||
css-prefers-color-scheme.cmd
|
|
||||||
css-prefers-color-scheme.ps1
|
|
||||||
cssesc
|
|
||||||
cssesc.cmd
|
|
||||||
cssesc.ps1
|
|
||||||
cssmin
|
|
||||||
cssmin.cmd
|
|
||||||
cssmin.ps1
|
|
||||||
detect-libc
|
|
||||||
detect-libc.cmd
|
|
||||||
detect-libc.ps1
|
|
||||||
dev-ip
|
|
||||||
dev-ip.cmd
|
|
||||||
dev-ip.ps1
|
|
||||||
ecstatic
|
|
||||||
ecstatic.cmd
|
|
||||||
ecstatic.ps1
|
|
||||||
errno
|
|
||||||
errno.cmd
|
|
||||||
errno.ps1
|
|
||||||
esbuild
|
|
||||||
esbuild.cmd
|
|
||||||
esbuild.ps1
|
|
||||||
escodegen
|
|
||||||
escodegen.cmd
|
|
||||||
escodegen.ps1
|
|
||||||
esgenerate
|
|
||||||
esgenerate.cmd
|
|
||||||
esgenerate.ps1
|
|
||||||
esparse
|
|
||||||
esparse.cmd
|
|
||||||
esparse.ps1
|
|
||||||
esvalidate
|
|
||||||
esvalidate.cmd
|
|
||||||
esvalidate.ps1
|
|
||||||
extract-zip
|
|
||||||
extract-zip.cmd
|
|
||||||
extract-zip.ps1
|
|
||||||
find-process
|
|
||||||
find-process.cmd
|
|
||||||
find-process.ps1
|
|
||||||
he
|
|
||||||
he.cmd
|
|
||||||
he.ps1
|
|
||||||
hs
|
|
||||||
hs.cmd
|
|
||||||
hs.ps1
|
|
||||||
http-server
|
|
||||||
http-server.cmd
|
|
||||||
http-server.ps1
|
|
||||||
image-size
|
|
||||||
image-size.cmd
|
|
||||||
image-size.ps1
|
|
||||||
import-local-fixture
|
|
||||||
import-local-fixture.cmd
|
|
||||||
import-local-fixture.ps1
|
|
||||||
installed-package-contents
|
|
||||||
installed-package-contents.cmd
|
|
||||||
installed-package-contents.ps1
|
|
||||||
ionic-lab
|
|
||||||
ionic-lab.cmd
|
|
||||||
ionic-lab.ps1
|
|
||||||
is-ci
|
|
||||||
is-ci.cmd
|
|
||||||
is-ci.ps1
|
|
||||||
is-docker
|
|
||||||
is-docker.cmd
|
|
||||||
is-docker.ps1
|
|
||||||
ivy-ngcc
|
|
||||||
ivy-ngcc.cmd
|
|
||||||
ivy-ngcc.ps1
|
|
||||||
jasmine
|
|
||||||
jasmine.cmd
|
|
||||||
jasmine.ps1
|
|
||||||
jest
|
|
||||||
jest.cmd
|
|
||||||
jest.ps1
|
|
||||||
jetifier
|
|
||||||
jetifier-standalone
|
|
||||||
jetifier-standalone.cmd
|
|
||||||
jetifier-standalone.ps1
|
|
||||||
jetifier.cmd
|
|
||||||
jetifier.ps1
|
|
||||||
jetify
|
|
||||||
jetify.cmd
|
|
||||||
jetify.ps1
|
|
||||||
jsesc
|
|
||||||
jsesc.cmd
|
|
||||||
jsesc.ps1
|
|
||||||
jsmin
|
|
||||||
jsmin.cmd
|
|
||||||
jsmin.ps1
|
|
||||||
json5
|
|
||||||
json5.cmd
|
|
||||||
json5.ps1
|
|
||||||
karma
|
|
||||||
karma.cmd
|
|
||||||
karma.ps1
|
|
||||||
lessc
|
|
||||||
lessc.cmd
|
|
||||||
lessc.ps1
|
|
||||||
lite-server
|
|
||||||
lite-server.cmd
|
|
||||||
lite-server.ps1
|
|
||||||
localize-extract
|
|
||||||
localize-extract.cmd
|
|
||||||
localize-extract.ps1
|
|
||||||
localize-migrate
|
|
||||||
localize-migrate.cmd
|
|
||||||
localize-migrate.ps1
|
|
||||||
localize-translate
|
|
||||||
localize-translate.cmd
|
|
||||||
localize-translate.ps1
|
|
||||||
loose-envify
|
|
||||||
loose-envify.cmd
|
|
||||||
loose-envify.ps1
|
|
||||||
lt
|
|
||||||
lt.cmd
|
|
||||||
lt.ps1
|
|
||||||
md5-file
|
|
||||||
md5-file.cmd
|
|
||||||
md5-file.ps1
|
|
||||||
mime
|
|
||||||
mime.cmd
|
|
||||||
mime.ps1
|
|
||||||
mkdirp
|
|
||||||
mkdirp.cmd
|
|
||||||
mkdirp.ps1
|
|
||||||
multicast-dns
|
|
||||||
multicast-dns.cmd
|
|
||||||
multicast-dns.ps1
|
|
||||||
nanoid
|
|
||||||
nanoid.cmd
|
|
||||||
nanoid.ps1
|
|
||||||
native-run
|
|
||||||
native-run.cmd
|
|
||||||
native-run.ps1
|
|
||||||
needle
|
|
||||||
needle.cmd
|
|
||||||
needle.ps1
|
|
||||||
ng
|
|
||||||
ng-xi18n
|
|
||||||
ng-xi18n.cmd
|
|
||||||
ng-xi18n.ps1
|
|
||||||
ng.cmd
|
|
||||||
ng.ps1
|
|
||||||
ngc
|
|
||||||
ngc.cmd
|
|
||||||
ngc.ps1
|
|
||||||
ngcc
|
|
||||||
ngcc.cmd
|
|
||||||
ngcc.ps1
|
|
||||||
node-gyp
|
|
||||||
node-gyp.cmd
|
|
||||||
node-gyp.ps1
|
|
||||||
node-which
|
|
||||||
node-which.cmd
|
|
||||||
node-which.ps1
|
|
||||||
nopt
|
|
||||||
nopt.cmd
|
|
||||||
nopt.ps1
|
|
||||||
npm-packlist
|
|
||||||
npm-packlist.cmd
|
|
||||||
npm-packlist.ps1
|
|
||||||
opener
|
|
||||||
opener.cmd
|
|
||||||
opener.ps1
|
|
||||||
ot
|
|
||||||
ot.cmd
|
|
||||||
ot.ps1
|
|
||||||
pacote
|
|
||||||
pacote.cmd
|
|
||||||
pacote.ps1
|
|
||||||
parser
|
|
||||||
parser.cmd
|
|
||||||
parser.ps1
|
|
||||||
prebuild-install
|
|
||||||
prebuild-install.cmd
|
|
||||||
prebuild-install.ps1
|
|
||||||
protractor
|
|
||||||
protractor.cmd
|
|
||||||
protractor.ps1
|
|
||||||
rc
|
|
||||||
rc.cmd
|
|
||||||
rc.ps1
|
|
||||||
regjsparser
|
|
||||||
regjsparser.cmd
|
|
||||||
regjsparser.ps1
|
|
||||||
rimraf
|
|
||||||
rimraf.cmd
|
|
||||||
rimraf.ps1
|
|
||||||
sane
|
|
||||||
sane.cmd
|
|
||||||
sane.ps1
|
|
||||||
sass
|
|
||||||
sass.cmd
|
|
||||||
sass.ps1
|
|
||||||
semver
|
|
||||||
semver.cmd
|
|
||||||
semver.ps1
|
|
||||||
shjs
|
|
||||||
shjs.cmd
|
|
||||||
shjs.ps1
|
|
||||||
sshpk-conv
|
|
||||||
sshpk-conv.cmd
|
|
||||||
sshpk-conv.ps1
|
|
||||||
sshpk-sign
|
|
||||||
sshpk-sign.cmd
|
|
||||||
sshpk-sign.ps1
|
|
||||||
sshpk-verify
|
|
||||||
sshpk-verify.cmd
|
|
||||||
sshpk-verify.ps1
|
|
||||||
stencil
|
|
||||||
stencil.cmd
|
|
||||||
stencil.ps1
|
|
||||||
stylus
|
|
||||||
stylus.cmd
|
|
||||||
stylus.ps1
|
|
||||||
svgo
|
|
||||||
svgo.cmd
|
|
||||||
svgo.ps1
|
|
||||||
systeminformation
|
|
||||||
systeminformation.cmd
|
|
||||||
systeminformation.ps1
|
|
||||||
terser
|
|
||||||
terser.cmd
|
|
||||||
terser.ps1
|
|
||||||
throttleproxy
|
|
||||||
throttleproxy.cmd
|
|
||||||
throttleproxy.ps1
|
|
||||||
tree-kill
|
|
||||||
tree-kill.cmd
|
|
||||||
tree-kill.ps1
|
|
||||||
ts-jest
|
|
||||||
ts-jest.cmd
|
|
||||||
ts-jest.ps1
|
|
||||||
ts-node
|
|
||||||
ts-node.cmd
|
|
||||||
ts-node.ps1
|
|
||||||
tsc
|
|
||||||
tsc.cmd
|
|
||||||
tsc.ps1
|
|
||||||
tslint
|
|
||||||
tslint.cmd
|
|
||||||
tslint.ps1
|
|
||||||
tsserver
|
|
||||||
tsserver.cmd
|
|
||||||
tsserver.ps1
|
|
||||||
uglifyjs
|
|
||||||
uglifyjs.cmd
|
|
||||||
uglifyjs.ps1
|
|
||||||
uuid
|
|
||||||
uuid.cmd
|
|
||||||
uuid.ps1
|
|
||||||
wait-on
|
|
||||||
wait-on.cmd
|
|
||||||
wait-on.ps1
|
|
||||||
wait-port
|
|
||||||
wait-port.cmd
|
|
||||||
wait-port.ps1
|
|
||||||
watch
|
|
||||||
watch.cmd
|
|
||||||
watch.ps1
|
|
||||||
webdriver-manager
|
|
||||||
webdriver-manager.cmd
|
|
||||||
webdriver-manager.ps1
|
|
||||||
webpack
|
|
||||||
webpack-dev-server
|
|
||||||
webpack-dev-server.cmd
|
|
||||||
webpack-dev-server.ps1
|
|
||||||
webpack.cmd
|
|
||||||
webpack.ps1
|
|
||||||
node-gyp-build
|
|
||||||
node-gyp-build-optional
|
|
||||||
node-gyp-build-optional.cmd
|
|
||||||
node-gyp-build-optional.ps1
|
|
||||||
node-gyp-build-test
|
|
||||||
node-gyp-build-test.cmd
|
|
||||||
node-gyp-build-test.ps1
|
|
||||||
node-gyp-build.cmd
|
|
||||||
node-gyp-build.ps1
|
|
||||||
pbjs
|
|
||||||
pbjs.cmd
|
|
||||||
pbjs.ps1
|
|
||||||
pbts
|
|
||||||
pbts.cmd
|
|
||||||
pbts.ps1
|
|
||||||
proto-loader-gen-types
|
|
||||||
proto-loader-gen-types.cmd
|
|
||||||
proto-loader-gen-types.ps1
|
|
||||||
browserslist
|
|
||||||
@@ -291,7 +291,7 @@ export class CreateProcessPage implements OnInit {
|
|||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -319,10 +319,10 @@ export class CreateProcessPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Pedido de Parecer enviado');
|
this.toastService._successMessage('Pedido de Parecer enviado');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -344,10 +344,10 @@ export class CreateProcessPage implements OnInit {
|
|||||||
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
|
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
|
||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Pedido de Deferimento criado');
|
this.toastService._successMessage('Pedido de Deferimento criado');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -376,16 +376,16 @@ export class CreateProcessPage implements OnInit {
|
|||||||
await this.despachoService.CompleteTask({serialNumber: this.task.serialNumber}).toPromise();
|
await this.despachoService.CompleteTask({serialNumber: this.task.serialNumber}).toPromise();
|
||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Despacho criado');
|
this.toastService._successMessage('Despacho criado');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
//loader.remove();
|
//loader.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.validateField = true;
|
this.validateField = true;
|
||||||
this.toastService.badRequest('Por favor adicione uma descrição');
|
this.toastService._badRequest('Por favor adicione uma descrição');
|
||||||
}
|
}
|
||||||
loader.remove();
|
loader.remove();
|
||||||
break;
|
break;
|
||||||
@@ -411,10 +411,10 @@ export class CreateProcessPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Pedido de Parecer criado');
|
this.toastService._successMessage('Pedido de Parecer criado');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -436,10 +436,10 @@ export class CreateProcessPage implements OnInit {
|
|||||||
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
|
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
|
||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Pedido de Deferimento criado');
|
this.toastService._successMessage('Pedido de Deferimento criado');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -494,9 +494,9 @@ export class CreateProcessPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.toastService.successMessage(message);
|
this.toastService._successMessage(message);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService._badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,9 +69,9 @@ export class DarParecerPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Parecer enviado');
|
this.toastService._successMessage('Parecer enviado');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest("Parecer não solicitado");
|
this.toastService._badRequest("Parecer não solicitado");
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,10 +88,10 @@ export class DelegarPage implements OnInit {
|
|||||||
|
|
||||||
async saveTask() {
|
async saveTask() {
|
||||||
if(this.taskParticipants.length < 1){
|
if(this.taskParticipants.length < 1){
|
||||||
this.toastService.badRequest("Selecione um destinatário");
|
this.toastService._badRequest("Selecione um destinatário");
|
||||||
}
|
}
|
||||||
else if(this.taskParticipants.length > 1){
|
else if(this.taskParticipants.length > 1){
|
||||||
this.toastService.badRequest("Selecione apenas um destinatário");
|
this.toastService._badRequest("Selecione apenas um destinatário");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let body = {
|
let body = {
|
||||||
@@ -109,11 +109,11 @@ export class DelegarPage implements OnInit {
|
|||||||
this.processes.DelegateTask(body).subscribe(res=>{
|
this.processes.DelegateTask(body).subscribe(res=>{
|
||||||
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage('Processo delegado')
|
this.toastService._successMessage('Processo delegado')
|
||||||
this.close();
|
this.close();
|
||||||
},
|
},
|
||||||
(error)=>{
|
(error)=>{
|
||||||
this.toastService.badRequest("Processo não delegado")
|
this.toastService._badRequest("Processo não delegado")
|
||||||
},
|
},
|
||||||
()=>{
|
()=>{
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -224,11 +224,11 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
|||||||
|
|
||||||
this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {
|
this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {
|
||||||
laoder.remove()
|
laoder.remove()
|
||||||
this.toastService.successMessage('Reunião criada')
|
this.toastService._successMessage('Reunião criada')
|
||||||
this.modalController.dismiss()
|
this.modalController.dismiss()
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
laoder.remove()
|
laoder.remove()
|
||||||
this.toastService.badRequest('Não foi possível marcar a reunião');
|
this.toastService._badRequest('Não foi possível marcar a reunião');
|
||||||
}, ()=>{
|
}, ()=>{
|
||||||
laoder.remove()
|
laoder.remove()
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export class ForwardPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.taskParticipants.length < 1){
|
if(this.taskParticipants.length < 1){
|
||||||
this.toastService.badRequest("Selecione um destinatário");
|
this.toastService._badRequest("Selecione um destinatário");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
@@ -150,11 +150,11 @@ export class ForwardPage implements OnInit {
|
|||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.CompleteParecerPrTask(body).subscribe(res=>{
|
this.processes.CompleteParecerPrTask(body).subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage('Processo delegado');
|
this.toastService._successMessage('Processo delegado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
},
|
},
|
||||||
(error)=>{
|
(error)=>{
|
||||||
this.toastService.badRequest("Processo não delegado")
|
this.toastService._badRequest("Processo não delegado")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ export class DespachoPrPage implements OnInit {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -272,9 +272,9 @@ export class DespachoPrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -297,10 +297,10 @@ export class DespachoPrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não arquivado')
|
this.toastService._badRequest('Processo não arquivado')
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -320,10 +320,10 @@ export class DespachoPrPage implements OnInit {
|
|||||||
documents
|
documents
|
||||||
}).toPromise()
|
}).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage('Processo criado')
|
this.toastService._successMessage('Processo criado')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não criado')
|
this.toastService._badRequest('Processo não criado')
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -346,10 +346,10 @@ export class DespachoPrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage('')
|
this.toastService._successMessage('')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -373,10 +373,10 @@ export class DespachoPrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -391,11 +391,11 @@ export class DespachoPrPage implements OnInit {
|
|||||||
sendExpedienteToPending() {
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialNumber).subscribe(res => {
|
this.processes.SetTaskToPending(this.serialNumber).subscribe(res => {
|
||||||
this.popoverController.dismiss('close')
|
this.popoverController.dismiss('close')
|
||||||
this.toastService.successMessage('Processo enviado para pendentes')
|
this.toastService._successMessage('Processo enviado para pendentes')
|
||||||
this.goBack()
|
this.goBack()
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -117,15 +117,15 @@ export class DiplomaAssinarPage implements OnInit {
|
|||||||
|
|
||||||
}, (error)=>{
|
}, (error)=>{
|
||||||
try {
|
try {
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
} finally {
|
} finally {
|
||||||
if(error.status == 0) {
|
if(error.status == 0) {
|
||||||
this.toastService.badRequest('Não é possível visualizar este processo no modo offline')
|
this.toastService._badRequest('Não é possível visualizar este processo no modo offline')
|
||||||
} else {
|
} else {
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -179,11 +179,11 @@ export class DiplomaAssinarPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage(false, ()=>{
|
this.toastService._successMessage(false, ()=>{
|
||||||
this.goBack();
|
this.goBack();
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export class DiplomaPage implements OnInit {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -282,12 +282,12 @@ export class DiplomaPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage(false, () => {
|
this.toastService._successMessage(false, () => {
|
||||||
this.close();
|
this.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -308,9 +308,9 @@ export class DiplomaPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -334,9 +334,9 @@ export class DiplomaPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.toastService.successMessage('Processo concluído')
|
this.toastService._successMessage('Processo concluído')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
+4
-4
@@ -110,13 +110,13 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise()
|
await this.processes.PostTaskAction(body).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage('Evento aprovado', ()=>{
|
this.toastService._successMessage('Evento aprovado', ()=>{
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
})
|
})
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Evento não aprovado')
|
this.toastService._badRequest('Evento não aprovado')
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -141,11 +141,11 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise()
|
await this.processes.PostTaskAction(body).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage('Evento rejeitado', () =>{
|
this.toastService._successMessage('Evento rejeitado', () =>{
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Evento não rejeitado')
|
this.toastService._badRequest('Evento não rejeitado')
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -203,11 +203,11 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise()
|
await this.processes.PostTaskAction(body).toPromise()
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -256,10 +256,10 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise();
|
await this.processes.PostTaskAction(body).toPromise();
|
||||||
this.toastService.successMessage('Pedido enviado');
|
this.toastService._successMessage('Pedido enviado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest();
|
this.toastService._badRequest();
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -280,10 +280,10 @@ export class ApproveEventPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise();
|
await this.processes.PostTaskAction(body).toPromise();
|
||||||
await this.toastService.successMessage('Processo rejeitado');
|
await this.toastService._successMessage('Processo rejeitado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -358,10 +358,10 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise();
|
await this.processes.PostTaskAction(body).toPromise();
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest();
|
this.toastService._badRequest();
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -275,10 +275,10 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
|
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
// this.distartExpedientModal();
|
// this.distartExpedientModal();
|
||||||
this.toastService.successMessage('Reunião criada');
|
this.toastService._successMessage('Reunião criada');
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Reunião não criada')
|
this.toastService._badRequest('Reunião não criada')
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -300,10 +300,10 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage('Reunião criada');
|
this.toastService._successMessage('Reunião criada');
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-11
@@ -328,11 +328,11 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
||||||
await this.toastService.successMessage('Processo efetuado');
|
await this.toastService._successMessage('Processo efetuado');
|
||||||
this.modalController.dismiss(action_despacho);
|
this.modalController.dismiss(action_despacho);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService._badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -362,11 +362,11 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
||||||
await this.toastService.successMessage('Pedido enviado');
|
await this.toastService._successMessage('Pedido enviado');
|
||||||
this.modalController.dismiss(action_parecer);
|
this.modalController.dismiss(action_parecer);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService._badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -394,10 +394,10 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise();
|
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise();
|
||||||
this.toastService.successMessage('Processo efetuado');
|
this.toastService._successMessage('Processo efetuado');
|
||||||
this.modalController.dismiss(action_deferimento);
|
this.modalController.dismiss(action_deferimento);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService._badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -436,18 +436,18 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
if(this.postData.DispatchFolder.Message){
|
if(this.postData.DispatchFolder.Message){
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.despachoService.createDespacho(this.postData).toPromise();
|
this.taskResult = await this.despachoService.createDespacho(this.postData).toPromise();
|
||||||
await this.toastService.successMessage('Processo efetuado');
|
await this.toastService._successMessage('Processo efetuado');
|
||||||
this.modalController.dismiss(action_despacho_pr);
|
this.modalController.dismiss(action_despacho_pr);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService._badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
//loader.remove()
|
//loader.remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.validateField = true;
|
this.validateField = true;
|
||||||
this.toastService.badRequest('Por favor adicione uma descrição');
|
this.toastService._badRequest('Por favor adicione uma descrição');
|
||||||
}
|
}
|
||||||
loader.remove();
|
loader.remove();
|
||||||
break;
|
break;
|
||||||
@@ -474,11 +474,11 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||||
await this.toastService.successMessage('Pedido enviado');
|
await this.toastService._successMessage('Pedido enviado');
|
||||||
this.modalController.dismiss(action_parecer_pr);
|
this.modalController.dismiss(action_parecer_pr);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService._badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-17
@@ -171,9 +171,9 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage('Processo aprovado')
|
this.toastService._successMessage('Processo aprovado')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não aprovado')
|
this.toastService._badRequest('Processo não aprovado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -196,9 +196,9 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -293,11 +293,11 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
sendExpedienteToPending() {
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialNumber).subscribe(res => {
|
this.processes.SetTaskToPending(this.serialNumber).subscribe(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage('Processo enviado para pendentes')
|
this.toastService._successMessage('Processo enviado para pendentes')
|
||||||
this.goBack();
|
this.goBack();
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
this.toastService.badRequest('Processo não enviado para pendentes')
|
this.toastService._badRequest('Processo não enviado para pendentes')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,12 +349,12 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
this.getFromDB();
|
this.getFromDB();
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -441,9 +441,9 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
this.attachmentsService.AddAttachment(body).subscribe((res) => {
|
this.attachmentsService.AddAttachment(body).subscribe((res) => {
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
}, () => {
|
}, () => {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}, () => {
|
}, () => {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
});
|
});
|
||||||
@@ -479,7 +479,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -510,10 +510,10 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.expedienteService.discard({ SerialNumber: this.task.SerialNumber }).toPromise()
|
await this.expedienteService.discard({ SerialNumber: this.task.SerialNumber }).toPromise()
|
||||||
this.toastService.successMessage('Processo descartado');
|
this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -529,10 +529,10 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.expedienteService.CompleteTask(body).toPromise();
|
await this.expedienteService.CompleteTask(body).toPromise();
|
||||||
//this.toastService.successMessage('Processo descartado');
|
//this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -543,10 +543,10 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,11 +135,11 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
sendExpedienteToPending() {
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage('Processo enviado para pendentes')
|
this.toastService._successMessage('Processo enviado para pendentes')
|
||||||
this.goBack();
|
this.goBack();
|
||||||
},
|
},
|
||||||
(error)=>{
|
(error)=>{
|
||||||
this.toastService.badRequest('Processo não enviado para pendentes')
|
this.toastService._badRequest('Processo não enviado para pendentes')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,15 +184,15 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
}, (error)=>{
|
}, (error)=>{
|
||||||
try {
|
try {
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
} finally {
|
} finally {
|
||||||
if(error.status == 0) {
|
if(error.status == 0) {
|
||||||
this.toastService.badRequest('Não é possível visualizar este processo no modo offline')
|
this.toastService._badRequest('Não é possível visualizar este processo no modo offline')
|
||||||
} else {
|
} else {
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -303,9 +303,9 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage('Processo aprovado')
|
this.toastService._successMessage('Processo aprovado')
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest('Processo não aprovado')
|
this.toastService._badRequest('Processo não aprovado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -328,9 +328,9 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -448,10 +448,10 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(otherbody).toPromise()
|
await this.processes.CompleteTask(otherbody).toPromise()
|
||||||
this.toastService.successMessage('Processo descartado');
|
this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -468,10 +468,10 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
// this.toastService.successMessage('Processo descartado');
|
// this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// this.toastService.badRequest('Processo não descartado')
|
// this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -485,10 +485,10 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export class PedidoPage implements OnInit {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -370,10 +370,10 @@ export class PedidoPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -390,10 +390,10 @@ export class PedidoPage implements OnInit {
|
|||||||
note
|
note
|
||||||
}).toPromise()
|
}).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -415,10 +415,10 @@ export class PedidoPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -430,7 +430,7 @@ export class PedidoPage implements OnInit {
|
|||||||
this.goBack();
|
this.goBack();
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,11 +132,11 @@ export class InactivityPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.toastService.badRequest('Por favor, insira a sua palavra-passe');
|
this.toastService._badRequest('Por favor, insira a sua palavra-passe');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.toastService.badRequest('Por favor, insira o seu nome de utilizador');
|
this.toastService._badRequest('Por favor, insira o seu nome de utilizador');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ export class InactivityPage implements OnInit {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.toastService.badRequest('Pin incorreto')
|
this.toastService._badRequest('Pin incorreto')
|
||||||
this.code = []
|
this.code = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,11 +123,11 @@ export class LoginPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.toastService.badRequest('Por favor, insira a sua palavra-passe');
|
this.toastService._badRequest('Por favor, insira a sua palavra-passe');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.toastService.badRequest('Por favor, insira o seu nome de utilizador');
|
this.toastService._badRequest('Por favor, insira o seu nome de utilizador');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,9 +104,9 @@ export class EditActionPage implements OnInit {
|
|||||||
await this.publicationsService.UpdatePresidentialAction(body).toPromise()
|
await this.publicationsService.UpdatePresidentialAction(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.updateDesktopComponent.emit();
|
this.updateDesktopComponent.emit();
|
||||||
this.toastService.successMessage('Acção presidencial atualizada')
|
this.toastService._successMessage('Acção presidencial atualizada')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Não foi possivel atualizar a acção presidencial')
|
this.toastService._badRequest('Não foi possivel atualizar a acção presidencial')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -238,9 +238,9 @@ export class PublicationsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.publications.DeletePresidentialAction(id).toPromise();
|
await this.publications.DeletePresidentialAction(id).toPromise();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -107,9 +107,9 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -154,9 +154,9 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -180,9 +180,9 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -205,9 +205,9 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.toastService.successMessage('Processo concluído')
|
this.toastService._successMessage('Processo concluído')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -74,12 +74,12 @@ export class DespachosOptionsPage implements OnInit {
|
|||||||
sendExpedienteToPending(){
|
sendExpedienteToPending(){
|
||||||
this.popoverController.dismiss();
|
this.popoverController.dismiss();
|
||||||
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.close();
|
this.close();
|
||||||
},()=>{
|
},()=>{
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,10 +163,10 @@ export class DespachosOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -244,10 +244,10 @@ export class DespachosOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não arquivado')
|
this.toastService._badRequest('Processo não arquivado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -272,9 +272,9 @@ export class DespachosOptionsPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -298,10 +298,10 @@ export class DespachosOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,11 +100,11 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
sendExpedienteToPending() {
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialNumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.serialNumber).subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.popoverController.dismiss('close')
|
this.popoverController.dismiss('close')
|
||||||
},()=>{
|
},()=>{
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,10 +192,10 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -275,10 +275,10 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService.successMessage('')
|
this.toastService._successMessage('')
|
||||||
this.close();
|
this.close();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|||||||
@@ -142,9 +142,9 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -179,10 +179,10 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(otherbody).toPromise()
|
await this.processes.CompleteTask(otherbody).toPromise()
|
||||||
this.toastService.successMessage('Processo descartado');
|
this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -201,7 +201,7 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
// this.toastService.successMessage('Processo descartado');
|
// this.toastService.successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado');
|
this.toastService._badRequest('Processo não descartado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -213,10 +213,10 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest();
|
this.toastService._badRequest();
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -242,9 +242,9 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -258,7 +258,7 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
this.close();
|
this.close();
|
||||||
},()=>{
|
},()=>{
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ export class OptsExpedientePrPage implements OnInit {
|
|||||||
// this.toastService.successMessage('Processo descartado');
|
// this.toastService.successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado');
|
this.toastService._badRequest('Processo não descartado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,9 +162,9 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
this.attachmentsService.AddAttachment(body).subscribe((res)=> {
|
this.attachmentsService.AddAttachment(body).subscribe((res)=> {
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
},()=> {
|
},()=> {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
},()=> {
|
},()=> {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
});
|
});
|
||||||
@@ -239,9 +239,9 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,7 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
this.goBack();
|
this.goBack();
|
||||||
},()=>{
|
},()=>{
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,9 +275,9 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage('Processo aprovado')
|
this.toastService._successMessage('Processo aprovado')
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.toastService.badRequest('Processo não aprovado')
|
this.toastService._badRequest('Processo não aprovado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -333,7 +333,7 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -365,10 +365,10 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.expedienteService.discard({SerialNumber: this.task.SerialNumber}).toPromise()
|
await this.expedienteService.discard({SerialNumber: this.task.SerialNumber}).toPromise()
|
||||||
this.toastService.successMessage('Processo descartado');
|
this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -385,10 +385,10 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.toastService.successMessage('Processo descartado');
|
this.toastService._successMessage('Processo descartado');
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService._badRequest('Processo não descartado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -400,10 +400,10 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
await this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
|
||||||
this.toastService.successMessage();
|
this.toastService._successMessage();
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,11 +80,11 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
sendExpedienteToPending() {
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
this.close();
|
||||||
},()=>{
|
},()=>{
|
||||||
|
|
||||||
this.toastService.badRequest('Processo não encontrado')
|
this.toastService._badRequest('Processo não encontrado')
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -157,9 +157,9 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
this.close();
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
@@ -226,9 +226,9 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
note
|
note
|
||||||
}).toPromise()
|
}).toPromise()
|
||||||
|
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não arquivado')
|
this.toastService._badRequest('Processo não arquivado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,11 +171,11 @@ export class NewPublicationPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -199,11 +199,11 @@ export class NewPublicationPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
console.log(this.publication);
|
console.log(this.publication);
|
||||||
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -227,11 +227,11 @@ export class NewPublicationPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
@@ -258,11 +258,11 @@ export class NewPublicationPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
console.log(this.publication);
|
console.log(this.publication);
|
||||||
await this.publications.CreatePublication(this.folderId, this.publication).toPromise()
|
await this.publications.CreatePublication(this.folderId, this.publication).toPromise()
|
||||||
this.toastService.successMessage()
|
this.toastService._successMessage()
|
||||||
|
|
||||||
this.goBackToViewPublications.emit();
|
this.goBackToViewPublications.emit();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest()
|
this.toastService._badRequest()
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -94,10 +94,10 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.publications.DeletePublication(this.folderId, this.publicationId).toPromise();
|
await this.publications.DeletePublication(this.folderId, this.publicationId).toPromise();
|
||||||
this.toastService.successMessage("Publicação eliminado")
|
this.toastService._successMessage("Publicação eliminado")
|
||||||
this.goBackToViewPublications.emit();
|
this.goBackToViewPublications.emit();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest("Publicação não eliminado")
|
this.toastService._badRequest("Publicação não eliminado")
|
||||||
} finally {
|
} finally {
|
||||||
laoder.remove()
|
laoder.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user