Example #1
0
 public void InsertDeformity(DEFORMITY deformity, string fk)
 {
     deformity.DEFORMITYID = Guid.NewGuid().ToString();
     deformity.TREEID      = fk;
     _databaseHelper.InsertDeformity(deformity);
     _databaseHelper.SetPlotSynch(null, deformity.TREEID);
 }
Example #2
0
 public void DeleteDeformity(DEFORMITY _table)
 {
     //           _databaseHelper.DeleteDeformity(ID);
     _table.IsDeleted = "Y";
     _databaseHelper.UpdateDeformity(_table);
     _databaseHelper.SetPlotSynch(null, _table.TREEID);
 }
 // Insert new to DB
 public void InsertDeformity(DEFORMITY deformity)
 {
     try
     {
         sqliteconnection.Insert(deformity);
     }
     catch (Exception ex)
     { logger.LogWrite(ex.Message); }
 }
 public DeformityListViewModel(INavigation navigation, string fk)
 {
     _navigation          = navigation;
     _deformity           = new DEFORMITY();
     _deformityRepository = new DeformityRepository();
     _fk                 = fk;
     AddCommand          = new Command(async() => await ShowAdd(_fk));
     DeleteAllCommand    = new Command(async() => await DeleteAll());
     ShowFilteredCommand = new Command <DEFORMITY>(async(x) => await ShowDeformity(x));
     FetchDetails();
 }
 public AddDeformityViewModel(INavigation navigation, string selectedID)
 {
     _navigation          = navigation;
     _deformity           = new DEFORMITY();
     _deformity.TREEID    = selectedID;
     _deformityRepository = new DeformityRepository();
     _fk           = selectedID;
     AddCommand    = new Command(async() => await Update());
     DeleteCommand = new Command(async() => await Delete());
     ListCause     = PickerService.CauseItems().ToList();
     ListType      = PickerService.TypeItems().ToList();
 }
        public DeformityDetailsViewModel(INavigation navigation, string selectedID)
        {
            _navigation = navigation;
            _deformity  = new DEFORMITY();
            //_vegetation.VEGETATIONID  = selectedID;
            _deformityRepository = new DeformityRepository();
            _fk           = selectedID;
            AddCommand    = new Command(async() => await Update());
            DeleteCommand = new Command(async() => await Delete());
            ListCause     = PickerService.CauseItems().ToList();
            ListType      = PickerService.TypeItems().ToList();

            FetchDetails(selectedID);
        }
Example #7
0
 public AddDeformityViewModel(INavigation navigation, string selectedID)
 {
     _navigation          = navigation;
     _deformity           = new DEFORMITY();
     _deformity.TREEID    = selectedID;
     _deformityRepository = new DeformityRepository();
     _fk                   = selectedID;
     AddCommand            = new Command(async() => await Update());
     DeleteCommand         = new Command(async() => await Delete());
     ListCause             = PickerService.CauseItems().ToList();
     ListType              = PickerService.TypeItems().OrderBy(x => x.ID).ToList();
     IsChanged             = false;
     OnAppearingCommand    = new Command(() => OnAppearing());
     OnDisappearingCommand = new Command(() => OnDisappearing());
 }
 // Update Data
 public void UpdateDeformity(DEFORMITY deformity)
 {
     sqliteconnection.Update(deformity);
 }
 async Task ShowDeformity(DEFORMITY _deformity)
 {
     // launch the form - filtered to a specific projectid
     await _navigation.PushAsync(new DeformityDetailsPage(_deformity.DEFORMITYID ));
 }
Example #10
0
 public void UpdateDeformity(DEFORMITY deformity)
 {
     _databaseHelper.UpdateDeformity(deformity);
     _databaseHelper.SetPlotSynch(null, deformity.TREEID);
 }
 public void UpdateDeformity(DEFORMITY deformity)
 {
     _databaseHelper.UpdateDeformity(deformity);
 }
 public Task DeleteTaskAsync(DEFORMITY item)
 {
     return(restService.DeleteAsync(tablename, item.DEFORMITYID));
 }