예제 #1
0
        /////// <summary>
        /////// The PAtient Manager
        /////// </summary>
        ////private readonly new Business.Patient.PatientManager patientManager;

        /// <summary>Initializes a new instance of the <see cref="DocumentController"/> class.</summary>
        public DocumentController()
        {
            this.it2Business = new DocumentIt2Manager();
            var user = new AuthorizationTicketHelper().GetUserInfo();

            this.companyId = user.CompanyId;
            this.userId    = user.Id;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PatientDocumentController"/> class.
        /// </summary>
        /// <param name="patientDocumentIt2Manager">
        /// <param name="officeNumber">
        /// The office number.
        /// </param>
        public PatientDocumentController(
            ILookupServices lookupServices,
            IMiscellaneousServices miscellaneousServices,
            IPatientServices patientServices,
            IPatientDocumentServices patientDocumentServices,
            PatientDocumentIt2Manager patientDocumentIt2Manager,
            DocumentIt2Manager documentIt2Manager,
            string officeNumber)
        {
            this.lookupServices            = lookupServices;
            this.miscellaneousServices     = miscellaneousServices;
            this.patientServices           = patientServices;
            this.patientDocumentServices   = patientDocumentServices;
            this.patientDocumentIt2Manager = patientDocumentIt2Manager;

            this.documentManager = documentIt2Manager;
        }
예제 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PatientController"/> class.
        /// </summary>
        public PatientDocumentController()
        {
            this.lookupServices          = Container.Resolve <ILookupServices>();
            this.miscellaneousServices   = Container.Resolve <IMiscellaneousServices>();
            this.patientServices         = Container.Resolve <IPatientServices>();
            this.patientDocumentServices = Container.Resolve <IPatientDocumentServices>();

            this.patientDocumentIt2Manager = new PatientDocumentIt2Manager(this.lookupServices, this.miscellaneousServices, this.patientServices, this.patientDocumentServices);
            this.documentManager           = new DocumentIt2Manager();

            if (!this.User.Identity.IsAuthenticated)
            {
                return;
            }

            var authorizationTicketHelper = new AuthorizationTicketHelper();

            this.practiceLocationId = authorizationTicketHelper.GetPracticeLocationId();
        }