@seniorsistemas/yms-integration 1.19.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +31 -0
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- package/esm5/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- package/fesm2015/seniorsistemas-yms-integration.js +31 -0
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +31 -0
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.d.ts +1 -0
|
@@ -1949,6 +1949,16 @@
|
|
|
1949
1949
|
driver: true
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
|
+
if (this.visitors.length > 0) {
|
|
1953
|
+
this.visitors[0].visitor = {
|
|
1954
|
+
name: mot.nome,
|
|
1955
|
+
document: mot.cpf,
|
|
1956
|
+
contact: this.getContatoMotorista(mot),
|
|
1957
|
+
visitorSituation: VisitorSituation.CHECK_IN_PENDING,
|
|
1958
|
+
documentType: this.getDocumentType(),
|
|
1959
|
+
driver: true
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1952
1962
|
};
|
|
1953
1963
|
VisitanteComponent.prototype.adicionaVisitantesGrid = function () {
|
|
1954
1964
|
var _this = this;
|
|
@@ -2041,6 +2051,14 @@
|
|
|
2041
2051
|
if (visitor.document === visitante.document) {
|
|
2042
2052
|
visitor.contact = visitante.contact;
|
|
2043
2053
|
visitor.name = visitante.name;
|
|
2054
|
+
var novoVisitante_1 = _this.buildVisitorCredentialsDto(visitor);
|
|
2055
|
+
_this.visitors.forEach(function (result) {
|
|
2056
|
+
if (result.visitor.document === novoVisitante_1.visitor.document) {
|
|
2057
|
+
result.visitor.name = novoVisitante_1.visitor.name;
|
|
2058
|
+
result.visitor.contact = novoVisitante_1.visitor.contact;
|
|
2059
|
+
}
|
|
2060
|
+
});
|
|
2061
|
+
_this.visitorsChange.emit(_this.visitors);
|
|
2044
2062
|
_this.visitorFound = true;
|
|
2045
2063
|
}
|
|
2046
2064
|
});
|
|
@@ -2068,6 +2086,19 @@
|
|
|
2068
2086
|
this.visitorsChange.emit(this.visitors);
|
|
2069
2087
|
this.hasChange.emit(true);
|
|
2070
2088
|
};
|
|
2089
|
+
VisitanteComponent.prototype.buildVisitorCredentialsDto = function (visitor) {
|
|
2090
|
+
var visitorCredentialsDto = new VisitorCredentialsDto();
|
|
2091
|
+
var visitante = {
|
|
2092
|
+
name: visitor.name,
|
|
2093
|
+
document: visitor.document,
|
|
2094
|
+
contact: visitor.contact,
|
|
2095
|
+
documentType: visitor.documentType,
|
|
2096
|
+
visitorSituation: visitor.visitorSituation,
|
|
2097
|
+
driver: false
|
|
2098
|
+
};
|
|
2099
|
+
visitorCredentialsDto.visitor = visitante;
|
|
2100
|
+
return visitorCredentialsDto;
|
|
2101
|
+
};
|
|
2071
2102
|
VisitanteComponent.prototype.model = function (visitante) {
|
|
2072
2103
|
var _this = this;
|
|
2073
2104
|
var isDriver = visitante.document === this.motorista.cpf;
|