Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6947879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:44:59+00:00 2026-05-27T13:44:59+00:00

here i am getting this error message: Error 5 Ambiguity between ‘OPTFDashboard.Common.Modules.CNAAll.ViewModels.CNAAllViewModel.Shift’ and ‘OPTFDashboard.Common.Modules.CNAAll.ViewModels.CNAAllViewModel.Shift’

  • 0

here i am getting this error message:

Error 5 Ambiguity between
‘OPTFDashboard.Common.Modules.CNAAll.ViewModels.CNAAllViewModel.Shift’
and
‘OPTFDashboard.Common.Modules.CNAAll.ViewModels.CNAAllViewModel.Shift’ C:\OPTFDashboard\Common\Modules\CNAAll\ViewModels\CNAAllViewModel.cs 34 117 Common

I am trying to bind the selected nurses shift (day,eve, all) to refresh the data displayed per this choice.

using System;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Windows.Data;
using OPTFDashboard.Common.Modules.CNABathing.DataAccess;
using OPTFDashboard.Common.Ribbon;
using OPTFDashboard.Common.Utility;
using OPTFDashboard.DataModel;
using OPTFDashboard.ViewModel;
using OPTFDashboard.Common.Modules.CNAAll.DataAccess;

namespace OPTFDashboard.Common.Modules.CNAAll.ViewModels
{
    [Export]
    class CNAAllViewModel : TabViewModel, ISelectedContentTab
    {
        private readonly String[] _shift = new String[] { "ALL", "DAY", "EVE", "NIGHT" };
        public CNAAllViewModel()
            : base()
        {
            DisplayName = "All CNA";

            StartDate = DateTime.Now.AddMonths(-3);
            EndDate = DateTime.Now.AddDays(19);

            GroupDataCollection = new ObservableCollection<GroupData>()

            {
                RibbonControlHelper.CreateFacilitySelection()
                , new GroupData("Criterria"
                , RibbonControlHelper.CreateDateSelection(StartDate,EndDate,(s, e) => { StartDate = s; EndDate = e; RefreshData(); })
                , RibbonControlHelper.CreateUnitSelection(UnitChanged)

                , RibbonControlHelper.CreateComboBox("Shift", "Shift", "Select Shift to show.", _shift, (type) => { Shift = type; })




                )
            };
        }


        private string Shift;
        private DateTime startDate;
        public DateTime StartDate
        {
            get { return startDate; }
            set { startDate = value; }
        }

        private DateTime endDate;
        public DateTime EndDate
        {
            get { return endDate; }
            set { endDate = value; }
        }

        public ObservableCollection<GroupData> GroupDataCollection { get; private set; }

        private String UnitCode { get; set; }
        private void UnitChanged(Unit unit)
        {
            UnitCode = unit == null ? "" : unit.Description;
            RefreshData();

        }


        protected override void RefreshData()
        {
            if (FacilitiesAreChanging) { return; }

            Loading = true;
            // this is the details section. 

            // Load CNABathing
            CNAAllRepository.DetailedCNABathing(FacilitySelectionService.SelectedFacilities, StartDate, EndDate, UnitCode,
            (cnabathingdetails) =>
            {
                var data = new ListCollectionView(cnabathingdetails);
                data.GroupDescriptions.Add(new PropertyGroupDescription("FACILITY_KEY"));
                data.GroupDescriptions.Add(new PropertyGroupDescription("UNIT"));
                DataCNABathing = data;
            });

            CNAAllRepository.DetailedCNABowel(FacilitySelectionService.SelectedFacilities, startDate, endDate, UnitCode,
                    (cna) =>
                    {
                        var data = new ListCollectionView(cna);
                        data.GroupDescriptions.Add(new PropertyGroupDescription("FACILITY_KEY"));
                        data.GroupDescriptions.Add(new PropertyGroupDescription("UNIT"));
                        DataCNABowel = data;
                    });

            CNAAllRepository.DetailedCNAIntakeVSOutput(FacilitySelectionService.SelectedFacilities, StartDate, EndDate, UnitCode, 
               (CNAIntakeVSOutputDetails) =>
               {
                   var data = new ListCollectionView(CNAIntakeVSOutputDetails);
                   data.GroupDescriptions.Add(new PropertyGroupDescription("FACILITY_KEY"));
                   data.GroupDescriptions.Add(new PropertyGroupDescription("UNIT"));
                   DataCNAIntakeVSOutput = data;
               });

            CNAAllRepository.DetailedCNAPoorEating((FacilitySelectionService.SelectedFacilities), startDate, endDate, UnitCode, "0",
                (cnaPoorEatingDetail) =>
                {
                    var data = new ListCollectionView(cnaPoorEatingDetail);
                    data.GroupDescriptions.Add(new PropertyGroupDescription("UNIT"));
                    DataCNAPoorEating = data;
                });

            Loading = false;
        }


        private ListCollectionView _DataCNABathing;
        public ListCollectionView DataCNABathing
        {
            get { return _DataCNABathing; }
            set { this.SetReferenceProperty("DataCNABathing", ref _DataCNABathing, value); }
        }

        private ListCollectionView _DataCNABowel;
        public ListCollectionView DataCNABowel
        {
            get { return _DataCNABowel; }
            set { this.SetReferenceProperty("DataCNABowel", ref _DataCNABowel, value); }
        }

        private ListCollectionView _DataCNAIntakeVSOutput;
        public ListCollectionView DataCNAIntakeVSOutput
        {
            get { return _DataCNAIntakeVSOutput; }
            set { this.SetReferenceProperty("DataCNAIntakeVSOutput", ref _DataCNAIntakeVSOutput, value); }
        }

        private ListCollectionView _DataCNAPoorEating;
        public ListCollectionView DataCNAPoorEating
        {
            get { return _DataCNAPoorEating; }
            set { this.SetReferenceProperty("DataCNAPoorEating", ref _DataCNAPoorEating, value); }
        }


        // here we will put the shift pulldown :

       private String _Type;
        private String Shift
     {
         get { return _Type; }
         set { if (this.SetReferenceProperty("Shift", ref _Type, value)) { RefreshData(); } }

     }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:45:00+00:00Added an answer on May 27, 2026 at 1:45 pm

    You have a private property called Shift, and a private field called Shift. Remove one of them.

    private string Shift;
    
    ...
    
    private String Shift
    {
       get { return _Type; }
       set { if (this.SetReferenceProperty("Shift", ref _Type, value)) { RefreshData(); } }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error message: error C3861: 'dim': identifier not found Here are
I'm getting this error: -[NSCFArray insertObject:atIndex:]: attempt to insert nil Here is the .m
I keep getting this error while trying to modify some tables. Here's my code:
i am developing parser using bison...in my grammar i am getting this error Here
Ok... changing the question here... I'm getting an error when I try this: SELECT
I'm getting this error message: Notice: Undefined offset: 1 in C:\xampp\htdocs\evantechbd\secure\content\right_cat_pr.php on line 18
I keep getting this error message when trying to write to the Event log
I am getting this error message when I try to Add Web Reference to
I'm getting this error message when trying to run my application. I don't know
I am getting this error message: --------------------------- You have an error in your SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.