Esempio n. 1
0
        public OrgUnit(string name, OrgUnit parent, OrgUnitType orgUnitType) : this()
        {
            Name = name;

            ParentId = parent?.id;
            Parent   = parent;

            OrgUnitTypeId = orgUnitType.Id;
            OrgUnitType   = orgUnitType;
        }
Esempio n. 2
0
        public void ChangeDetails(string facilityName, string facilityCode, FacilityType facilityType, string telNumber, string mobileNumber, string faxNumber, OrgUnit orgUnit)
        {
            FacilityName = facilityName;
            FacilityCode = facilityCode;

            FacilityTypeId = facilityType.Id;
            FacilityType   = facilityType;

            TelNumber    = telNumber;
            MobileNumber = mobileNumber;
            FaxNumber    = faxNumber;

            OrgUnitId = orgUnit?.Id;
            OrgUnit   = orgUnit;
        }