diff --git a/frontend/main/src/app/carriers/carriers.component.html b/frontend/main/src/app/carriers/carriers.component.html index ba41c63..70bfe17 100644 --- a/frontend/main/src/app/carriers/carriers.component.html +++ b/frontend/main/src/app/carriers/carriers.component.html @@ -1 +1,42 @@ -

carriers works!

+ + + + + + + + + + + + + + + + +
Razão socialE-mailCNPJ
+ + +
+
+ + + + + + + + + + + + + + + + + +
IDRazão socialE-mailCNPJAções
{{i}}{{carrier.name}}{{carrier.email}}{{carrier.cnpj}} + + +
\ No newline at end of file diff --git a/frontend/main/src/app/carriers/carriers.component.ts b/frontend/main/src/app/carriers/carriers.component.ts index f669fed..9b514ff 100644 --- a/frontend/main/src/app/carriers/carriers.component.ts +++ b/frontend/main/src/app/carriers/carriers.component.ts @@ -6,10 +6,38 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./carriers.component.css'] }) export class CarriersComponent implements OnInit { + carriers!:Array + name!:string + email!:string + cnpj!:string + + constructor() { } + + ngOnInit(): void { + this.carriers = new Array() + this.carriers.push({name:"Total Express", email:"total@express.com", cnpj:"4564564566454655"}) + this.carriers.push({name:"Jadlog", email:"jadlog@jadlog.com", cnpj:"4564664656565456"}) + this.carriers.push({name:"Braspress", email:"braspress@braspress.com", cnpj:"1231323132312"}) + this.carriers.push({name:"Correios", email:"correios@correios.com", cnpj:"7897987899789"}) + + } + + adicionar(){ + if(this.name){ + this.carriers.push({name:this.name, email:this.email, cnpj:this.cnpj}) + this.name ="" + this.email="" + this.cnpj="" + } + } + + + deletar(index:number){ + this.carriers.splice(index,1) + } - constructor() { } - - ngOnInit(): void { - } - -} + alterar(index:number){ + // this.carriers.splice(index,1) + } + + } \ No newline at end of file diff --git a/frontend/main/src/app/home/home.component.html b/frontend/main/src/app/home/home.component.html index c90ec42..379edb3 100644 --- a/frontend/main/src/app/home/home.component.html +++ b/frontend/main/src/app/home/home.component.html @@ -1,5 +1,75 @@
-

Home

+
+
+
+

Welcome!!

+

Where do you want to go?

+
+
+
+ +
+
+
+
+
+

Dashboards

+



Clique para ver os Dashboards

+
+
+
+
+
+
+

User

+



Clique para ver User

+
+
+
+
+
+
+

Packages

+



Clique para ver Packages

+
+
+
+
+ +
+
+
+
+

Finance

+



Clique para ver Finance

+
+
+
+
+
+
+

Quotes

+



Clique para ver Quotes

+
+
+
+
+
+
+

About us

+



Clique para ver About Us

+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/frontend/main/src/app/packreg/packreg.component.html b/frontend/main/src/app/packreg/packreg.component.html index cdd3928..ed9ef16 100644 --- a/frontend/main/src/app/packreg/packreg.component.html +++ b/frontend/main/src/app/packreg/packreg.component.html @@ -1 +1,48 @@ -

packreg works!

+ + + + + + + + + + + + + + + + + + + +
Centro de DistribuiçãoOrigemDestinoDimensões
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
Número de pedidoCentro de DistribuiçãoOrigemDestinoDimensõesAções
{{i}}{{register.cd}}{{register.origem}}{{register.destino}}{{register.dimensao}} +
diff --git a/frontend/main/src/app/packreg/packreg.component.ts b/frontend/main/src/app/packreg/packreg.component.ts index 536ae28..c04f7e7 100644 --- a/frontend/main/src/app/packreg/packreg.component.ts +++ b/frontend/main/src/app/packreg/packreg.component.ts @@ -7,9 +7,36 @@ import { Component, OnInit } from '@angular/core'; }) export class PackregComponent implements OnInit { + registers!:Array +cd!:string +origem!:string +destino!:string +dimensao!:string + constructor() { } ngOnInit(): void { + this.registers = new Array() + this.registers.push({cd:"Total Express", origem:"Blumenau", destino:"Fortaleza", dimensao:"Grande"}) + this.registers.push({cd:"Jadlog", origem:"Florianópolis", destino:"Rio de Janeiro", dimensao:"Pequeno"}) + this.registers.push({cd:"Braspress", origem:"São Paulo", destino:"Porto Alegre", dimensao:"Médio"}) + this.registers.push({cd:"Correios", origem:"Brusque", destino:"Florianópolis", dimensao:"Pequeno"}) + + } + + adicionar(){ + if(this.cd){ + this.registers.push({cd:this.cd, origem:this.origem, destino:this.destino, dimensao:this.dimensao}) + this.cd ="" + this.origem="" + this.destino="" + this.dimensao="" + } + } + + + deletar(index:number){ + this.registers.splice(index,1) } } diff --git a/frontend/main/src/app/users/users.component.html b/frontend/main/src/app/users/users.component.html index 065c5c6..72942f2 100644 --- a/frontend/main/src/app/users/users.component.html +++ b/frontend/main/src/app/users/users.component.html @@ -1 +1,45 @@ -

users works!

+ + + + + + + + + + + + + + + + +
NomeE-mailCPF
+ + + + + +
+
+ + + + + + + + + + + + + + + + + +
IDNomeE-mailCPFAções
{{i}}{{user.name}}{{user.email}}{{user.cpf}} + + +
\ No newline at end of file diff --git a/frontend/main/src/app/users/users.component.ts b/frontend/main/src/app/users/users.component.ts index b5e720c..f4d47fa 100644 --- a/frontend/main/src/app/users/users.component.ts +++ b/frontend/main/src/app/users/users.component.ts @@ -6,10 +6,39 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./users.component.css'] }) export class UsersComponent implements OnInit { +users!:Array +name!:string +email!:string +cpf!:string constructor() { } ngOnInit(): void { + this.users = new Array() + this.users.push({name:"Mateus Felipe", email:"mateusgoettems@gmail.com", cpf:"03215415454"}) + this.users.push({name:"Bruno Roberto", email:"bruno@gmail.com", cpf:"03215415454"}) + this.users.push({name:"Cristian Schaufer", email:"cristian@gmail.com", cpf:"03215415454"}) + this.users.push({name:"Kalil", email:"kalil@gmail.com", cpf:"03215415454"}) + } + adicionar(){ + if(this.name){ + this.users.push({name:this.name, email:this.email, cpf:this.cpf}) + this.name ="" + this.email="" + this.cpf="" + } + } + + + deletar(index:number){ + this.users.splice(index,1) + } + + alterar(index:number){ + // this.users.splice(index,1) + } + + }