public MergeRenovationDTO(BaseRenovationDTO baseRenovation, int secondRoomId, string newRoomDescription, TypeOfMapObject roomType)
 {
     this.baseRenovation = baseRenovation;
     SecondRoomId        = secondRoomId;
     NewRoomDescription  = newRoomDescription;
     RoomType            = roomType;
 }
 public DivideRenovationDTO(BaseRenovationDTO baseRenovation, string firstRoomDescription, string secondRoomDescription, TypeOfMapObject firstRoomType, TypeOfMapObject secondRoomType)
 {
     this.baseRenovation   = baseRenovation;
     FirstRoomDescription  = firstRoomDescription;
     SecondRoomDescription = secondRoomDescription;
     FirstRoomType         = firstRoomType;
     SecondRoomType        = secondRoomType;
 }
예제 #3
0
        public Room(TypeOfMapObject mapObjectType, DepartmentOfMapObject department, MapObject building, int floor, String description = "")
            : base(mapObjectType, description)
        {
            Department = new MapObjectDepartment(department);
            Floor      = floor;
            BuildingId = building.MapObjectEntity.Id;

            FormatObjectDescription(Description);
        }
예제 #4
0
        private MergeRenovationDTO CreateMergeRenovationDTOFromUserInput(BaseRenovationDTO baseRenovationDTO)
        {
            baseRenovationDTO.TypeOfRenovation = TypeOfRenovation.MERGE_RENOVATION;

            int             secondRoomId          = (int)((MapObject)SecondRoomForMergingComboBox.SelectedItem).MapObjectEntity.Id;
            string          mergedRoomDescription = MergedRoomDescriptionTextBox.Text;
            TypeOfMapObject mergedRoomType        = (TypeOfMapObject)MergedRoomTypeComboBox.SelectedItem;

            return(new MergeRenovationDTO(baseRenovationDTO, secondRoomId, mergedRoomDescription, mergedRoomType));
        }
예제 #5
0
        private DivideRenovationDTO CreateDivideRenovationDTOFromUserInput(BaseRenovationDTO baseRenovationDTO)
        {
            baseRenovationDTO.TypeOfRenovation = TypeOfRenovation.DIVIDE_RENOVATION;

            string firstRoomDescription  = RenovationFirstRoomDescriptionTextBox.Text;
            string secondRoomDescription = RenovationSecondRoomDescriptionTextBox.Text;

            TypeOfMapObject firstRoomType  = (TypeOfMapObject)RenovationFirstRoomTypeComboBox.SelectedItem;
            TypeOfMapObject secondRoomType = (TypeOfMapObject)RenovationSecondRoomTypeComboBox.SelectedItem;

            return(new DivideRenovationDTO(baseRenovationDTO, firstRoomDescription, secondRoomDescription, firstRoomType, secondRoomType));
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            TypeOfMapObject typeOfSelectedObject = (TypeOfMapObject)value;

            if (CheckIsRoomType(typeOfSelectedObject))
            {
                return(Visibility.Visible);
            }
            else
            {
                return(Visibility.Collapsed);
            }
        }
 private Boolean CheckIsRoomType(TypeOfMapObject typeOfMapObject)
 => typeOfMapObject == TypeOfMapObject.EXAMINATION_ROOM ||
 typeOfMapObject == TypeOfMapObject.HOSPITALIZATION_ROOM ||
 typeOfMapObject == TypeOfMapObject.OPERATION_ROOM;
예제 #8
0
 public RoomDTO(long id, TypeOfMapObject usage)
 {
     this.Id    = id;
     this.Usage = usage;
 }
 public MapObjectType(TypeOfMapObject mapObjectType)
 {
     TypeOfMapObject = mapObjectType;
 }
예제 #10
0
 public MapObjectEntity(TypeOfMapObject mapObjectType, string description = "")
     : base()
 {
     MapObjectType = new MapObjectType(mapObjectType);
     Description   = description;
 }