public SubmissionController(IProviderService _providerService1, IProviderApplicationService _providerApplicationService1, IProcessControlService _processControlService1, IFormDataService _formDataService1, IClassroomInstructorService _classroomInstructorService1)
 {
     this._providerService1            = _providerService1;
     this._providerApplicationService1 = _providerApplicationService1;
     this._processControlService1      = _processControlService1;
     this._formDataService1            = _formDataService1;
     this._classroomInstructorService1 = _classroomInstructorService1;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubmissionController" /> class.
 /// </summary>
 /// <param name="providerService">The provider service.</param>
 /// <param name="providerApplicationService">The provider application service.</param>
 /// <param name="processControlService">The process control service.</param>
 /// <param name="formDataService">The form data service.</param>
 /// <param name="classroomInstructorService">The classroom instructor service.</param>
 /// <param name="providerProfileExtraService">The provider profile extra service.</param>
 /// <param name="commentService">The comment service.</param>
 /// <param name="providerSelectionService">The provider selection service.</param>
 public SubmissionController(IProviderService providerService, IProviderApplicationService providerApplicationService, IProcessControlService processControlService, IFormDataService formDataService, IClassroomInstructorService classroomInstructorService, IProviderProfileExtraService providerProfileExtraService, ICommentService commentService, IProviderSelectionService providerSelectionService)
 {
     this._providerService             = providerService;
     this._providerApplicationService  = providerApplicationService;
     this._processControlService       = processControlService;
     this._formDataService             = formDataService;
     this._classroomInstructorService  = classroomInstructorService;
     this._providerProfileExtraService = providerProfileExtraService;
     this._commentService           = commentService;
     this._providerSelectionService = providerSelectionService;
 }
예제 #3
0
 public FormService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics,
                    List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics,
                    List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics,
                    List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics,
                    List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics,
                    List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager,
                    IRestrictedItemAccessManager accessManager, IFormDataService dataSrv,
                    IFormSchemeDataService formSchemeDataService, CustomFieldFactoryProvider <JObject> fieldFactoryPrvider,
                    IFileManager fileManager)
     : base(
         baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics,
         baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager,
         accessManager, dataSrv)
 {
     _formDataSrv           = dataSrv;
     _formSchemeDataService = formSchemeDataService;
     _fieldFactoryPrvider   = fieldFactoryPrvider;
     _fileManager           = fileManager;
     _formsBaseFolderPath   = AppDomain.CurrentDomain.BaseDirectory + SettingHelper.UploadsBasePath + "Forms";
 }
예제 #4
0
        /// <summary>
        /// Creates a new <see cref="Startup"/> object
        /// </summary>
        /// <param name="env"></param>
        public Startup(IHostingEnvironment env)
        {
            IConfigurationBuilder builder = new ConfigurationBuilder()
                                            .SetBasePath(env.ContentRootPath)
                                            .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                                            .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                                            .AddEnvironmentVariables();

            Configuration = builder.Build();

            _formDataService = new FormDataService();

            FeedingTimes feedingTimes = _formDataService.GetFeedingTimes();

            _pinController = new AquaPinController(feedingTimes.Feedings, feedingTimes.Pinches);

            TankSpecs tankSpecs = _formDataService.GetTankSpecs();

            _i2CController       = new AquaI2CController(tankSpecs.Width, tankSpecs.Height, tankSpecs.Depth);
            _pinMasterController = new PinMasterController(_i2CController, _pinController, tankSpecs.WaterChangeTime);
        }
예제 #5
0
 /// <summary>
 /// Constructs a new <see cref="FeedingController"/>
 /// </summary>
 /// <param name="formDataService"></param>
 public FeedingController(IFormDataService formDataService, IAquaPinController aquaPinController)
 {
     _formDataService   = formDataService;
     _aquaPinController = aquaPinController;
 }
예제 #6
0
 /// <summary>
 /// Constructs a new
 /// </summary>
 /// <param name="formDataService"></param>
 public TankController(IFormDataService formDataService, IAquaI2CController aquaI2CController, IPinMasterController pinMasterController)
 {
     _formDataService     = formDataService;
     _aquaI2CController   = aquaI2CController;
     _pinMasterController = pinMasterController;
 }
예제 #7
0
        public static void SeedData(IFormDataService formDataService)
        {
            Claim claim = new Claim
            {
                ClaimNumber    = "12346-CSF",
                ClientID       = "CL-333",
                DateOfEvent    = DateTime.Now,
                ScopeOfWork    = null,
                TypeOfLocation = ClaimLocationType.COMMERCIAL,
                TypeOfClaim    = ClaimType.ELECTRICAL
            };

            ContactInfo primaryContact = new ContactInfo
            {
                FirstName = "John",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "418-555-5555"
            };

            ContactInfo insuredPerson = new ContactInfo
            {
                FirstName = "Jane",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "123-456-6666"
            };

            Client client = new Client
            {
                ClientID       = "CL-333",
                CompanyName    = "SSQ",
                OtherContact   = null,
                PrimaryContact = primaryContact
            };

            Document document = new Document
            {
                DocumentContent = null,
                DocumentName    = "testDoc456",
                DocumentPath    = "C//Users//Documents//"
            };

            InsuredEntity insuredEntity = new InsuredEntity
            {
                InsuredContactInfo = insuredPerson
            };

            InvestigationProject project = new InvestigationProject
            {
                ProjectClaim         = claim,
                ProjectClient        = client,
                ProjectID            = "TestID-1123456",
                ProjectInsuredEntity = insuredEntity,
                ProjectLocationType  = claim.TypeOfLocation,
                ProjectType          = claim.TypeOfClaim,
                ProjectStatus        = ProjectStatus.PENDING
            };

            project.ProjectDocuments.Add(document);

            formDataService.AddProject(project);
        }
예제 #8
0
 public FormDataController(IFormDataService formDataService)
 {
     _formDataService = formDataService;
 }
예제 #9
0
 public FormDataApiService(IFormDataService formDataService, IFormDataItemService formDataItemService)
 {
     _formDataService     = formDataService;
     _formDataItemService = formDataItemService;
 }
예제 #10
0
 public SuperFormController(IFormDataService formDataService)
 {
     _formDataService = formDataService;
 }