public CustomersController(IOptions <AppSettings> ASettings, CustomersContext ADBContext, IFoxDataService foxDataService, IHttpContextAccessor httpContextAccessor) { this.Settings = ASettings; if (Settings != null) { Settings.Value.Configure(httpContextAccessor); } EntityMapper.Settings = Settings.Value; FoxDataService = foxDataService; DBContext = ADBContext; DBContext.Database.SetCommandTimeout(Settings.Value.CommandTimeout); }
public DiaryController(IOptions <CustomAppSettings> ASettings, DiaryContext ADBContext, IFoxDataService foxDataService, IHttpContextAccessor httpContextAccessor) { Settings = ASettings; HttpContextAccessor = httpContextAccessor; if (Settings != null) { Settings.Value.Configure(httpContextAccessor); } EntityMapper.Settings = Settings.Value; DBContext = ADBContext; FoxDataService = foxDataService; appointmentStatus = new AppointmentStatusHelper(FoxDataService); }
public AppointmentStatusHelper(IFoxDataService foxDataService) { Open = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoAperto", "A"); Closed = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoChiuso", "C"); Deleted = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoCancellato", "X"); NotCompleted = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoNonCompletato", "N"); Completed = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_STATOCOMPLETATO", "CP"); Rescheduled = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoRischedulato", "R"); CheckIn = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoCheckIn", "K"); Error = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatoError", "E"); Confirmed = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatusConfirmed", "D"); Unconfirmed = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_STATUSUNCONFIRMED", "A"); // CHANGED in A for CR NP-3642 Workflow = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatusWorkflow", "W"); WorkflowRejected = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatusWorkflowRejected", "RE"); Arrived = foxDataService.GetGlobalParameterValue <string>("AG_B_APPOINTMENT_StatusArrived", "C"); }
public CommonController(IOptions <CustomAppSettings> ASettings, CommonContext ADBContext, IFoxDataService foxDataService) { this.Settings = ASettings; DBContext = ADBContext; FoxDataService = foxDataService; }