Exemple #1
0
        /*************************************************************************/

        /**
         *  Set Assignment
         *  @param assignment MAssignment
         */
        public void SetMAssignment(MResourceAssignment assignment)
        {
            if (assignment == null)
            {
                return;
            }
            if (!IsAssignment())
            {
                throw new ArgumentException("Assignment Slot not an Assignment");
            }
            //
            _mAssignment = assignment;
            SetStartTime(_mAssignment.GetAssignDateFrom());
            SetEndTime(_mAssignment.GetAssignDateTo());
            SetName(_mAssignment.GetName());
            SetDescription(_mAssignment.GetDescription());
            SetStatus(_mAssignment.IsConfirmed() ? STATUS_Confirmed : STATUS_NotConfirmed);
        }       //	setMAssignment
Exemple #2
0
        }       //	MAssignmentSlot

        /**
         *	Assignment Constructor
         *  @param assignment MAssignment
         */
        public MAssignmentSlot(MResourceAssignment assignment)
        {
            SetStatus(assignment.IsConfirmed() ? STATUS_Confirmed : STATUS_NotConfirmed);
            SetMAssignment(assignment);
            //	log.fine( toString());
        }       //	MAssignmentSlot