public ErrClientWorkTypeViewModel(IErrClientWorkTypeView view)
            : base(view)
        {
            ThisView = view;

            RefreshCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (true),
                ExecuteDelegate    = x => Refresh()
            };

            ErrClientErrorTypeTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateErrClientErrorRepository();
            ClientErrorTypes         = ErrClientErrorTypeTarget.GetClientErrorTypes();

            //ClientErrorTypes.ForEach((thislist, eachContract) => RemoveWeakEventListener(eachContract, ContractRateListener));

            SelectedClientErrorType = new ClientErrorType()
            {
                DESC = "All", EXT_CLIENT_ERR_TYPE = "*"
            };
            if (ClientErrorTypes != null)
            {
                ClientErrorTypes.Insert(0, SelectedClientErrorType);
            }
            ErrClientWorkTypeTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateErrClientWorkTypeRepository();
        }
Esempio n. 2
0
        public ErrNoValidContractViewModel(IErrNoValidContractView view)
            : base(view)
        {
            ThisView = view;

            RefreshCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (true),
                ExecuteDelegate    = x => Refresh()
            };

            ErrNoValidContractTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateErrNoValidContractTypeRepository();
            AsOfDate = DateTime.Now.AddDays(-2);
        }
Esempio n. 3
0
        public BatchJobViewModel(IBatchJobView view)
            : base(view)
        {
            View = view;
            BatchJobTypeTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateBatchJobTypeRepository();
            BatchJobTarget     = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateBatchJobRepository();

            BatchJobTypes = BatchJobTypeTarget.GetBatchJobTypes();
            if (BatchJobTypes != null)
            {
                BatchJobTypes.Insert(0, allJobs);
            }

            SelectedBatchJobType = allJobs;

            RefreshCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (true),
                ExecuteDelegate    = x => Refresh()
            };
        }
        public ContractVolumeEvtViewModel(IContractVolumeEvtView view)
            : base(view)
        {
            ThisView                = view;
            VolumeEvtRateTarget     = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateVolumeEvtRateRepository();
            VolumeEvtTypeTarget     = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateVolumeEvtTypeRepository();
            ContractVolumeEvtTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateContractVolumeEvtRepository();

            SaveCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (Modified),
                ExecuteDelegate    = x => Save()
            };

            CancelCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (Modified),
                ExecuteDelegate    = x => Restore()
            };

            BackupContractVolumeEvts = new ObservableCollection <ContractVolumeEvt>();
            BackUpvolumeEvtRates     = new ObservableCollection <VolumeEvtRate>();
        }
        public AuditLogViewModel(IAuditLogView view)
            : base(view)
        {
            View      = view;
            LogFilter = AuditLogFilterType.None;
            StartDate = DateTime.Now.AddDays(-1);//400);
            EndDate   = DateTime.Now;

            AuditLogDalTarget = Spheris.Billing.Data.BillingDataFactory.NewInstance().CreateAuditLogDal();


            // If contracts enabled
            // Contracts = new ObservableCollection<KeyValuePair<long, string>>(_contracts);
            // AuditLog.GetEntries(StartDate, EndDate, SelectedContract.Key);

            // If changed by filter
            // AuditLog.GetEntries(StartDate, EndDate, ChangedBy);

            RefreshCommand = new MedQuist.BillingAdmin.ViewModels.SimpleCommand
            {
                CanExecuteDelegate = x => (true),
                ExecuteDelegate    = x => RefreshAuditLog()
            };
        }