quickbird-uk / QuickbirdUWPDashboard

Quickbird UWP App and Server
http://www.quickbird.co.uk/
GNU General Public License v3.0
27 stars 7 forks source link

Location Management Page #40

Open VladimirAkopyan opened 6 years ago

VladimirAkopyan commented 6 years ago

For the moment there is no Location Management, we just give each device a bogus location. There needs to be UI area where location can be created. Since locations are not deleted, only marked as deleted, the locations that are "deleted" must be hidden.

VladimirAkopyan commented 6 years ago

Current location fields:

    public class Location : BaseEntity
    {
        [Required]
        public string Name { get; set; }

        [JsonIgnore]
        public virtual Person Person { get; set; }

        [Required]
        public Guid PersonId { get; set; }

        [JsonIgnore]
        public virtual List<Device> Devices { get; set; }

        [JsonIgnore]
        public virtual List<CropCycle> CropCycles { get; set; }

        [JsonIgnore]
        public virtual List<SensorHistory> SensorHistory { get; set; }

        [JsonIgnore]
        public virtual List<RelayHistory> RelayHistory { get; set; }
    }
VladimirAkopyan commented 6 years ago

Basically we only have to worry about the name. Could add description if deemed nessesary.