|
|
@@ -124,6 +124,7 @@ class EquipmentManagementController extends Controller{
|
|
|
'FAMI_COFA AS CODIGOFAMILIA',
|
|
|
'FAMI_NOFA AS NOMBREFAMILIA',
|
|
|
'FAMI_ICON AS ICONO',
|
|
|
+ 'FAMI_ICPE AS ICONO_PERSONALIZADO',
|
|
|
'FAMI_ESTA AS ESTADO',
|
|
|
'FAMI_USRE AS USRREG',
|
|
|
'FAMI_FERE AS FECREG',
|
|
|
@@ -471,6 +472,7 @@ class EquipmentManagementController extends Controller{
|
|
|
'SUBF_COSU AS CODIGOSUBFAMILIA',
|
|
|
'SUBF_NOSU AS NOMBRESUBFAMILIA',
|
|
|
'SUBF_ICON AS ICONO',
|
|
|
+ 'SUBF_ICPE AS ICONO_PERSONALIZADO',
|
|
|
'SUBF_ESTA AS ESTADO',
|
|
|
'SUBF_USRE AS USRREG',
|
|
|
'SUBF_FERE AS FECREG',
|
|
|
@@ -2442,10 +2444,8 @@ class EquipmentManagementController extends Controller{
|
|
|
['PCEQ_NULI', '=', $line],
|
|
|
['PCEQ_ESRE', '=', 'Revisión'],
|
|
|
])->get()->all();
|
|
|
-
|
|
|
|
|
|
$idUserEnc = $this->encryptionController->encrypt($idUser);
|
|
|
-
|
|
|
foreach($pendingEquipments as $key=>$equipment){
|
|
|
$equipment->IDREG = $this->encryptionController->encrypt($equipment->IDREG);
|
|
|
$equipment->CODIGO = $this->encryptionController->encrypt($equipment->CODIGO);
|
|
|
@@ -2454,12 +2454,13 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $response = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|
|
|
);
|
|
|
|
|
|
+ $response = json_decode($publicUri->original, true);
|
|
|
if($response['error']){
|
|
|
return $this->responseController->makeresponse(true, $response['msg'], [], 500);
|
|
|
}else{
|
|
|
@@ -2590,9 +2591,9 @@ class EquipmentManagementController extends Controller{
|
|
|
$originLocationFilt = array_filter($locationsArrDec, function ($v, $k) use ($originLocation) {
|
|
|
return $v['CODE'] == $originLocation;
|
|
|
}, ARRAY_FILTER_USE_BOTH);
|
|
|
+
|
|
|
$pendingEquipment->UBICACION_ORIGEN = end($originLocationFilt)['LOCATION'] . " (" . $pendingEquipment->UBICACION_ORIGEN . ")";
|
|
|
$levelsArr = [];
|
|
|
-
|
|
|
|
|
|
for($i = 5; $i > 0; $i--){
|
|
|
$levelsArr[] = [
|
|
|
@@ -2648,7 +2649,7 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $publicUri = $this->documentManagementController->getPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|
|
|
@@ -2789,8 +2790,6 @@ class EquipmentManagementController extends Controller{
|
|
|
return $this->responseController->makeResponse(true, 'El pre-registro se encuentra aprobado.', [], 400);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
$now = $this->functionsController->now();
|
|
|
$nowStr = $now->toDateTimeString();
|
|
|
if($form['status'] == 'Rechazado'){
|
|
|
@@ -3024,7 +3023,7 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $publicUri = $this->documentManagementController->getPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|
|
|
@@ -3133,7 +3132,7 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $publicUri = $this->documentManagementController->getPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|
|
|
@@ -3223,7 +3222,7 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $publicUri = $this->documentManagementController->getPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|
|
|
@@ -3409,7 +3408,7 @@ class EquipmentManagementController extends Controller{
|
|
|
$imagesGalleryFn = [];
|
|
|
foreach($imagesGalleryArr as $imageCode){
|
|
|
$imageCodeEnc = $this->encryptionController->encrypt($imageCode);
|
|
|
- $publicUri = $this->documentManagementController->getPublicDocumentURL(
|
|
|
+ $publicUri = $this->documentManagementController->privateGetPublicDocumentURL(
|
|
|
$imageCodeEnc,
|
|
|
$idUserEnc,
|
|
|
$line
|