set gestion build
This commit is contained in:
commit
1ed2ded93b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1779,7 +1779,7 @@ class Bdd {
|
|||||||
|
|
||||||
private function setDevisIsWeekendOrNotText($devis){
|
private function setDevisIsWeekendOrNotText($devis){
|
||||||
$isWeekend = DateHelpers::isWeekend($devis['date']);
|
$isWeekend = DateHelpers::isWeekend($devis['date']);
|
||||||
$value = $isWeekend ? "Férié" : "J";
|
$value = $isWeekend ? "Ferie" : "J";
|
||||||
$devis["dayType"] = $value;
|
$devis["dayType"] = $value;
|
||||||
return $devis;
|
return $devis;
|
||||||
}
|
}
|
||||||
@ -1884,6 +1884,40 @@ class Bdd {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCalendarOrganizerNameByCalendarObjectUuid(string $calendarObjectUuid){
|
||||||
|
$calendarObject = $this->getCalendarObjectByUuid($calendarObjectUuid);
|
||||||
|
if($calendarObject != null){
|
||||||
|
$calendar = $this->getCalendarById($calendarObject['calendarid']);
|
||||||
|
if($calendar != null){
|
||||||
|
$principalUri = $calendar["principaluri"];
|
||||||
|
$organizerName = str_replace('principals/users/','',$principalUri);
|
||||||
|
$organizerName = trim($organizerName);
|
||||||
|
return $organizerName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCalendarObjectByUuid(string $calendarObjectUuid){
|
||||||
|
$sql = "SELECT * FROM ".self::CALENDAR_TABLE_PREFIX."calendarobjects WHERE uid = ?;";
|
||||||
|
$calendarObjectList = $this->execSQLNoJsonReturn($sql, [$calendarObjectUuid]);
|
||||||
|
if(!empty($calendarObjectList)){
|
||||||
|
$calendarData = $calendarObjectList[0];
|
||||||
|
return $calendarData;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCalendarById(int $calendarId){
|
||||||
|
$sql = "SELECT * FROM ".self::CALENDAR_TABLE_PREFIX."calendars WHERE id = ?;";
|
||||||
|
$calendarList = $this->execSQLNoJsonReturn($sql, [$calendarId]);
|
||||||
|
if(!empty($calendarList)){
|
||||||
|
$calendarData = $calendarList[0];
|
||||||
|
return $calendarData;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $calendarData
|
* @param $calendarData
|
||||||
* @return bool|string
|
* @return bool|string
|
||||||
|
|||||||
@ -49,8 +49,8 @@ class ExportThanatoStatisticService {
|
|||||||
'Date'.';'.
|
'Date'.';'.
|
||||||
'Heure Debut'.';'.
|
'Heure Debut'.';'.
|
||||||
'Heure Fin'.';'.
|
'Heure Fin'.';'.
|
||||||
utf8_decode(html_entity_decode('Jour/Férié')).';'.
|
utf8_decode(html_entity_decode('Jour/Ferie')).';'.
|
||||||
'Nom et Prenoms'.';'.
|
utf8_decode(html_entity_decode('Nom et Prénom')).';'.
|
||||||
'Lieu'.';'.
|
'Lieu'.';'.
|
||||||
'Pompe funebre'.';'.
|
'Pompe funebre'.';'.
|
||||||
'Pompe funebre adresse'.';'.
|
'Pompe funebre adresse'.';'.
|
||||||
|
|||||||
@ -65,6 +65,17 @@ class GestionService {
|
|||||||
$thanatoId = $thanatoIdFromDb;
|
$thanatoId = $thanatoIdFromDb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
//get from calendar object
|
||||||
|
$calendarUuid = VCalendarHelpers::GetValueFromKeyInVCalendarString("UID", $vCalendarString);
|
||||||
|
$organizerName = $this->gestionBdd->getCalendarOrganizerNameByCalendarObjectUuid($calendarUuid);
|
||||||
|
if($organizerName != null){
|
||||||
|
$thanatoIdFromDb = $this->gestionBdd->getFirstThanatoIdByName($organizerName);
|
||||||
|
if($thanatoIdFromDb != null){
|
||||||
|
$thanatoId = $thanatoIdFromDb;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return $thanatoId;
|
return $thanatoId;
|
||||||
}
|
}
|
||||||
private function GetAttendeesNameFromVCalendarString(string $vCalendarString): array
|
private function GetAttendeesNameFromVCalendarString(string $vCalendarString): array
|
||||||
|
|||||||
@ -21,7 +21,7 @@ export class Lieu {
|
|||||||
*/
|
*/
|
||||||
getDTRow() {
|
getDTRow() {
|
||||||
let myrow = [
|
let myrow = [
|
||||||
'<div>' + this.user_id + '</div>',
|
'<div>' + this.id + '</div>',
|
||||||
'<div class="editable" data-table="lieu" data-column="nom" data-id="' + this.id + '" style="display:inline">' + this.nom + '</div>',
|
'<div class="editable" data-table="lieu" data-column="nom" data-id="' + this.id + '" style="display:inline">' + this.nom + '</div>',
|
||||||
'<div class="editable" data-table="lieu" data-column="adresse" data-id="' + this.id + '" style="display:inline">' + this.adresse + '</div>',
|
'<div class="editable" data-table="lieu" data-column="adresse" data-id="' + this.id + '" style="display:inline">' + this.adresse + '</div>',
|
||||||
'<div class="editable" data-table="lieu" data-column="latitude" data-id="' + this.id + '" style="display:inline">' + this.latitude + '</div>',
|
'<div class="editable" data-table="lieu" data-column="latitude" data-id="' + this.id + '" style="display:inline">' + this.latitude + '</div>',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user