Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { Component, OnInit } from '@angular/core';
import { AppModule } from "../app.module";
@Component({
selector: 'app-register-equipment',
templateUrl: './register-equipment.component.html',
styleUrls: ['./register-equipment.component.scss']
})
export class RegisterEquipmentComponent implements OnInit {
machineData = {
id:'',
room:'',
lastMaintenance:'',
nextMaintenance:'',
machineState:'',
address: {
street:'',
buildingNumber:'',
district:'',
city:'',
state:''
}
}
constructor() {
}
ngOnInit() {
}
//nomes dos metodos a serem mudados conforme a necessidade: basta mudar aqui e no html
onSubmit() {
window.alert("Número de Série: "+this.machineData.id
+"\nSala: "+this.machineData.room
+"\nData da última manutenção: "+this.machineData.lastMaintenance
+"\nData da próxima manutenção: "+this.machineData.nextMaintenance
+"\nEstado da Máquina: "+this.machineData.machineState
+"\nRua: "+this.machineData.address.street
+"\nNúmero: "+this.machineData.address.buildingNumber
+"\nBairro: "+this.machineData.address.district
+"\nCidade: "+this.machineData.address.city
+"\nEstado: "+this.machineData.address.state
);
}
scanQRCode () {
window.alert("scanning QR code");
}
uploadSomething () {
window.alert("upload something");
}
}