View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Resouce Affectation - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Resouce Affectation

More
16 Fév 2017 09:01 #1 by antonio.grr
Could you please explain me the exact meaning ad usage of fields
idResourceSelect
idResource
idContact
idUser

Obviously idContact is used when a contact is affected, but I'm not able to understand usage and meaning of other fields.
And what about code

if (SqlList::getNameFromId('Resource', $this->idResource) == $this->idResource) {
$this->idResource = null;
}
in Affectation construct method ?

Thank you for your attention

Please Connexion or Create an account to join the conversation.

More
16 Fév 2017 19:19 #2 by babynus
Replied by babynus on topic Resouce Affectation
idResource is always set.
It is the id in the table resource, whatever the personn is a resource, a user or a constact.
If personn allocated is a contact, idContact is set.
If personn allocated is a user, idUser is set.
If personn allocated is a resource, idResourceSelect is set.
(it is historical that idResource is the always set field, so we had to rename idResourceSelect for selected resource)

if (SqlList::getNameFromId('Resource', $this->idResource) == $this->idResource) {
$this->idResource = null;
}

This wa shistorically used to reset idResource if it's not a resource. It will be re-calculated on control() function.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
17 Fév 2017 07:53 #3 by antonio.grr
Replied by antonio.grr on topic Resouce Affectation
But the method SqlList::getNameFromId returns the name of the resource, that cannot be compared with the id .

Please Connexion or Create an account to join the conversation.

More
17 Fév 2017 08:20 #4 by babynus
Replied by babynus on topic Resouce Affectation
If id is returned , it means name has not been found ;)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.