示例#1
0
        private void ExecuteAddScheduledMaintenance(object parameter)
        {
            MaintenanceRecordModel mm = new MaintenanceRecordModel()
            {
                AssetID   = Asset.ID,
                Completed = false,
                Name      = string.Empty,
                ScheduledMaintenanceDate = DateTime.Now
            };

            mm.ID = AddScheduledMaintenance(mm);
            ScheduledMaintenance.Add(mm);
        }
示例#2
0
        private void ExecuteAddMaintenance(object parameter)
        {
            MaintenanceRecordModel mm = new MaintenanceRecordModel()
            {
                AssetID         = Asset.ID,
                Name            = string.Empty,
                MaintenanceDate = DateTime.Now,
                MaintainedBy    = string.Empty,
                Completed       = true
            };

            mm.ID = AddMaintenanceRecord(mm);
            MaintenanceRecords.Add(mm);
        }