public ActionResult Add([ModelBinder(typeof(DevExpressEditorsBinder))]  LayoutModel layoutModel)
        {
            var _HiddenUid = Request["_HiddenUid"];

            layoutModel._HiddenUid = _HiddenUid;

            layoutModel._UserId = (int)Session["userId"];

            layoutService = new LayoutService();


            if (ModelState.IsValid)
            {
                if (layoutModel._HiddenUid != "")
                {
                    layoutModel.Data = System.IO.File.ReadAllBytes(LayoutUploadControlHelper.GetFilePath(layoutModel._HiddenUid));
                }

                layoutService.Add(layoutModel);
                layoutModel = layoutService.GetNewModel();
            }
            else
            {
                string message = GetErrorModel();

                throw new Exception(string.Format("[VALIDATION] {0}", message));
            }


            layoutModel._FormMode = Models.FormModeEnum.New;


            return(PartialView(VIEW_FORM_PARTIAL, layoutModel));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CityController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="hostingEnvironment">HOsting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="city">The country.</param>
 /// <param name="masterService">The master service.</param>
 public CityController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMapper mapper, ICityService city, IMasterService masterService)
     : base(mapper, configuration)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.city          = city;
     this.masterService = masterService;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor method for MasterDataController
 /// </summary>
 /// <param name="masterService"></param>
 /// <param name="appSettings"></param>
 /// <param name="httpContextAccessor"></param>
 public MasterDataController(IMasterService masterService, IOptions <AppSettings> appSettings,
                             IHttpContextAccessor httpContextAccessor)
 {
     _masterService       = masterService;
     _appSettings         = appSettings;
     _httpContextAccessor = httpContextAccessor;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CountryController" /> class.
 /// </summary>
 /// <param name="configuration">Config</param>
 /// <param name="hostingEnviorment">Hosting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="country">The country.</param>
 /// <param name="masterService">The master service.</param>
 public CountryController(IConfiguration configuration, IHostingEnvironment hostingEnviorment, IMapper mapper, ICountryService country, IMasterService masterService)
     : base(mapper, configuration)
 {
     this.hostingEnviorment = hostingEnviorment;
     this.country           = country;
     this.masterService     = masterService;
 }
Ejemplo n.º 5
0
        public UserRightsController()
        {
            _MenuRights = new MenuItemRightsUService();

            _masterService = new MasterService();
            _SalryProCond  = new SalaryprocCondService();
        }
Ejemplo n.º 6
0
 public AudioEditWindow(List<AudioUoW> audios, IMasterService ms)
 {
     _ms = ms;
     _audios = audios;
     InitializeComponent();
     Setup();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisaController" /> class.
 /// </summary>
 /// <param name="dealsServices">Deal Service</param>
 /// <param name="configuration">Config</param>
 /// <param name="visaServices">visa Service</param>
 /// <param name="mapper">mapper</param>
 /// <param name="masterService">master service</param>
 public VisaController(IDealService dealsServices, IConfiguration configuration, IMasterService masterService, IVisaService visaServices, IMapper mapper)
     : base(mapper, configuration)
 {
     this.dealsServices = dealsServices;
     this.masterService = masterService;
     this.visaServices  = visaServices;
 }
Ejemplo n.º 8
0
        public MasterDataUnitTests()
        {
            builder = new ContainerBuilder();
            builder.RegisterModule <AutofacModule>();
            IEnumerable <Crop> cropList = new List <Crop>()
            {
                new Crop {
                    CropCode = "CC", CropName = "Cauliflower"
                },
                new Crop {
                    CropCode = "TO", CropName = "Tomato"
                }
            };

            IEnumerable <BreedingStation> breedingStationList = new List <BreedingStation>()
            {
                new BreedingStation {
                    BreedingStationCode = "NL", BreedingStationName = "Netherlands"
                },
                new BreedingStation {
                    BreedingStationCode = "NP", BreedingStationName = "Nepal"
                },
            };
            var masterdatarepo = A.Fake <IMasterRepository>();

            A.CallTo(() => masterdatarepo.GetCropAsync()).Returns(cropList);
            A.CallTo(() => masterdatarepo.GetBreedingStationAsync()).Returns(breedingStationList);

            builder.RegisterInstance(masterdatarepo).As <IMasterRepository>().SingleInstance();

            var container = builder.Build();

            _masterService = container.Resolve <IMasterService>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="BookingController" /> class.
 /// </summary>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="masterService">Master Service</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="bookingService">Booking Service</param>
 /// <param name="configuration">Configuration</param>
 public BookingController(IHostingEnvironment hostingEnvironment, IMasterService masterService, IMapper mapper, IBookingService bookingService, IConfiguration configuration)
     : base(mapper, configuration)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.masterService      = masterService;
     this.bookingService     = bookingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CurationController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="masterService">Master Service</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="curationService">Curation Service</param>
 public CurationController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMasterService masterService, IMapper mapper, ICurationsService curationService)
     : base(mapper, configuration)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.masterService      = masterService;
     this.curationService    = curationService;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeBannersController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="masterService">Master Service</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="hostingEnvironment">The hosting environment.</param>
 /// <param name="homeBanner">The home banner.</param>
 public HomeBannersController(IConfiguration configuration, IMasterService masterService, IMapper mapper, IHostingEnvironment hostingEnvironment, IHomeBannerService homeBanner)
     : base(mapper, configuration)
 {
     this.masterService      = masterService;
     this.hostingEnvironment = hostingEnvironment;
     this.homeBanner         = homeBanner;
 }
Ejemplo n.º 12
0
        public ActionResult DetailPartial(int Id = 0)
        {
            UserModel userModel;

            userService = new UserService();

            if (Id == 0)
            {
                userModel           = userService.GetNewModel();
                userModel._FormMode = FormModeEnum.New;
            }
            else
            {
                userModel = userService.GetById(Id);
                if (userModel != null)
                {
                    userModel._FormMode = FormModeEnum.Edit;
                }
                else
                {
                    throw new Exception("[VALIDATION]-Data not exists");
                }
            }

            return(PartialView(VIEW_FORM_PARTIAL, userModel));
        }
Ejemplo n.º 13
0
 public AccountController(IFormsAuthenticationService formsService, IMembershipService membershipService, IUserService userService, IMasterService masterService)
 {
     this.formsService = formsService;
     this.membershipService = membershipService;
     this.userService = userService;
     this.masterService = masterService;
 }
Ejemplo n.º 14
0
 public TrendModel()
 {
     masterService = new MasterService();
     this.Exchange = masterService.GetDropDownData(new DropDownRequest { Identifier = DropDownIdentifier.EXCHANGE });
     this.Symbols = masterService.GetDropDownData(new DropDownRequest
         { Identifier = DropDownIdentifier.SYMBOL, Exchange = selectedExchange });
 }
        public ActionResult DetailPartial(int Id = 0)
        {
            LayoutModel layoutModel;

            layoutService = new LayoutService();

            if (Id == 0)
            {
                layoutModel           = layoutService.GetNewModel();
                layoutModel._FormMode = FormModeEnum.New;
            }
            else
            {
                layoutModel = layoutService.GetById(Id);
                if (layoutModel != null)
                {
                    layoutModel._FormMode = FormModeEnum.Edit;
                }
                else
                {
                    throw new Exception("[VALIDATION]-Data not exists");
                }
            }

            return(PartialView(VIEW_FORM_PARTIAL, layoutModel));
        }
Ejemplo n.º 16
0
        public ActionResult DetailPartial(int Id = 0)
        {
            RoleModel roleModel;

            roleService = new RoleService();

            if (Id == 0)
            {
                roleModel           = roleService.GetNewModel();
                roleModel._FormMode = FormModeEnum.New;
            }
            else
            {
                roleModel = roleService.GetById(Id);
                if (roleModel != null)
                {
                    roleModel._FormMode = FormModeEnum.Edit;
                }
                else
                {
                    throw new Exception("[VALIDATION]-Data not exists");
                }
            }

            return(PartialView("Partial/Role_Form_Partial", roleModel));
        }
Ejemplo n.º 17
0
        public ActionResult Add([ModelBinder(typeof(DevExpressEditorsBinder))]  RoleModel roleModel)
        {
            roleModel._UserId = (int)Session["userId"];

            roleService = new RoleService();

            fillCheckValue(roleModel);

            if (ModelState.IsValid)
            {
                roleService.Add(roleModel);
                roleModel = roleService.GetNewModel();
            }
            else
            {
                string message = GetErrorModel();

                throw new Exception(string.Format("[VALIDATION] {0}", message));
            }


            roleModel._FormMode = Models.FormModeEnum.New;

            return(PartialView(VIEW_FORM_PARTIAL, roleModel));
        }
Ejemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchPageController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="masterService">Master Service</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 public SearchPageController(IConfiguration configuration, IMasterService masterService, IHomePageService homePageService, IHostingEnvironment hostingEnvironment, IMapper mapper)
     : base(mapper, configuration)
 {
     this.masterService      = masterService;
     this.homePageService    = homePageService;
     this.hostingEnvironment = hostingEnvironment;
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateController" /> class.
 /// </summary>
 /// <param name="configuration">Config</param>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="state">The country.</param>
 /// <param name="masterService">The master service.</param>
 public StateController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMapper mapper, IStateService state, IMasterService masterService)
     : base(mapper, configuration)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.state         = state;
     this.masterService = masterService;
 }
Ejemplo n.º 20
0
 public AuthController(IAuthService authService, IJWTSettings jwtSettings, IAccountService accountService, IMasterService masterService)
 {
     _authService    = authService;
     _jwtSettings    = jwtSettings;
     _accountService = accountService;
     _masterService  = masterService;
 }
Ejemplo n.º 21
0
 public AudioEditWindow(List <AudioUoW> audios, IMasterService ms)
 {
     _ms     = ms;
     _audios = audios;
     InitializeComponent();
     Setup();
 }
Ejemplo n.º 22
0
 public EnrollmentService(IUnitOfWork <SchoolDBContext> unitOfWork,
                          IAppUserService appUserService,
                          IMasterService _masterService)
 {
     _unitOfWork         = unitOfWork;
     _appUserService     = appUserService;
     this._masterService = _masterService;
 }
Ejemplo n.º 23
0
 public RDTController(IRDTService rdtService, IFileService fileService,
                      ITestService testService, IMasterService masterService)
 {
     this._rdtService = rdtService;
     _fileService     = fileService;
     _testService     = testService;
     _masterService   = masterService;
 }
 public EnrollmentsController(IUnitOfWork <SchoolDBContext> unitOfWork,
                              IMasterService masterService,
                              IEnrollmentService enrollmentService)
 {
     _unitOfWork        = unitOfWork;
     _masterService     = masterService;
     _enrollmentService = enrollmentService;
 }
Ejemplo n.º 25
0
 public FileAttachmentService(IConfiguration config,
                              IMasterService masterService,
                              IParameterRepository paramRepo)
 {
     _config        = config;
     _masterService = masterService;
     _paramRepo     = paramRepo;
 }
Ejemplo n.º 26
0
 public AccountController(IOrderService orderService, IContactService contactService, IMasterService masterService
                          , IRegistrationService registrationService)
 {
     _orderService        = orderService;
     _contactService      = contactService;
     _masterService       = masterService;
     _registrationService = registrationService;
 }
Ejemplo n.º 27
0
 public GradesController(SchoolDBContext schoolDBContext,
                         IMasterService masterService,
                         IGradeService gradeService)
 {
     _schoolDBContext = schoolDBContext;
     _masterService   = masterService;
     _gradeService    = gradeService;
 }
Ejemplo n.º 28
0
 public MasterController(IMasterService masterService,
                         IInvoiceService invoiceService,
                         IDocumentService documentService)
 {
     _masterService   = masterService;
     _invoiceService  = invoiceService;
     _documentService = documentService;
 }
Ejemplo n.º 29
0
        public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService)
        {
            _serializationProvider = serializationProvider;
            _controlService = controlService;
            _productManagementService = productManagementService;
            _masterService = masterService;
        }
Ejemplo n.º 30
0
 public FileController(IUserService userService, IUserDealerMapService userDealerMapServiceService,
                       IMasterService masterService, IRetailService retailService)
 {
     this._userService = userService;
     _userDealerMapServiceService = userDealerMapServiceService;
     _masterService = masterService;
     _retailService = retailService;
 }
Ejemplo n.º 31
0
 public YearService(IUnitOfWork <SchoolDBContext> unitOfWork,
                    IAppUserService appUserService,
                    IMasterService masterService)
 {
     _unitOfWork     = unitOfWork;
     _appUserService = appUserService;
     _masterService  = masterService;
 }
Ejemplo n.º 32
0
 public SemestersController(SchoolDBContext schoolDBContext,
                            IMasterService masterService,
                            ISemesterService semesterService)
 {
     _schoolDBContext = schoolDBContext;
     _masterService   = masterService;
     _semesterService = semesterService;
 }
Ejemplo n.º 33
0
 public RepairController(IRepairService repairService, IHistoryStatusService historyStatusService,
                         IRepairStatusService repairStatusService, IOwnerService ownerService, IMasterService masterService)
 {
     _repairService        = repairService;
     _historyStatusService = historyStatusService;
     _repairStatusService  = repairStatusService;
     _ownerService         = ownerService;
     _masterService        = masterService;
 }
Ejemplo n.º 34
0
 public IncentiveController(IMasterService masterService, IIncentiveService incentiveService, IDealerManpowerService manpowerService)
 {
     this.masterService = masterService;
     this.incentiveService = incentiveService;
     this.manpowerService = manpowerService;
     if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) {
         System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>();
     }
 }
Ejemplo n.º 35
0
 public CompanyService(ICompanyRepository companyRepositry, IUserRepository userRepository, IMasterRepository masterRepository, IMasterService masterService, IUserService userService, ILogger <CompanyService> logger) : base(companyRepositry)
 {
     this.companyRepositry = companyRepositry;
     this.userRepository   = userRepository;
     this.masterRepository = masterRepository;
     this.masterService    = masterService;
     this.userService      = userService;
     this.logger           = logger;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CancellationPolicyController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="cancellationService">Cancellation Service</param>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="hotel">Type of the hoteroom.</param>
 /// <param name="masterService">The master service.</param>
 /// <param name="vendorService">Vendor Service</param>
 public CancellationPolicyController(IConfiguration configuration, ICancellationService cancellationService, IHostingEnvironment hostingEnvironment, IMapper mapper, IHotelierService hotel, IMasterService masterService, IVendorService vendorService)
     : base(mapper, configuration)
 {
     this.cancellationService = cancellationService;
     this.hostingEnvironment  = hostingEnvironment;
     this.vendorService       = vendorService;
     this.hotelierServices    = hotel;
     this.masterService       = masterService;
 }
Ejemplo n.º 37
0
 public MasterController(IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IDealerManpowerService dealerManpowerService, IUserService userService, IUserDealerMapService userDealerMapService)
 {
     this.masterService = masterService;
     this.competencyProfileMapService = competencyProfileMapService;
     this.trainingProfileMapService = trainingProfileMapService;
     this.dealerManpowerService = dealerManpowerService;
     this.userService = userService;
     this.userDealerMapService = userDealerMapService;
 }
Ejemplo n.º 38
0
 public HomeController(IMasterService masterService, IUserService userService, IUserDealerMapService userDealerMapService)
 {
     this.masterService = masterService;
     this.userService = userService;
     this.userDealerMapService = userDealerMapService;
     if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) {
         System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>();
     }
 }
Ejemplo n.º 39
0
		public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_masterService = masterService;
			_activationLogService = activationLogService;
			_keyManagementService = keyManagementService;
		}
Ejemplo n.º 40
0
 public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService)
 {
     this.userService = userService;
     this.userDealerMapService = userDealerMapService;
     this.manpowerTargetService = manpowerTargetService;
     this.manpowerService = manpowerService;
     this.masterService = masterService;
     this.targetService = targetService;
     if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) {
         System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>();
     }
 }
Ejemplo n.º 41
0
        public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
			IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
			IActivationLogService activationLogService, IMasterService masterService)
        {
            _controlService = controlService;
            _keyService = keyService;
            _keyPairService = keyPairService;
            _serializationProvider = serializationProvider;
            _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
            _activationLogService = activationLogService;
            _masterService = masterService;
        }
Ejemplo n.º 42
0
 public AppointmentService(IPatientVisitAppointmentDocument patientVisitAppointmentDocument,
                             IBlockAppointmentDocument blockAppointmentDocument,
                             IOtherAppointmentDocument otherAppointmentDocument,
                             IRecurrenceGroupDocument recurrenceDocument,
                             IPatientDocument patientDocument, IAppointmentDocument appointmentDocument, IMasterService masterService)
 {
     _blockAppointmentDocument = blockAppointmentDocument;
     _otherAppointmentDocument = otherAppointmentDocument;
     _patientVisitAppointmentDocument = patientVisitAppointmentDocument;
     _recurrenceDocument = recurrenceDocument;
     _patientDocument = patientDocument;
     _appointmentDocument = appointmentDocument;
     _masterService = masterService;
 }
Ejemplo n.º 43
0
 public ReportController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService, IUserRegionStateService regionStateService)
 {
     _manpowerService = manpowerService;
     _userService = userService;
     _profileService = profileService;
     _masterService = masterService;
     _competencyProfileMapService = competencyProfileMapService;
     _trainingProfileMapService = trainingProfileMapService;
     _manpowerTargetService = manpowerTargetService;
     _userDealerMapServiceService = userDealerMapServiceService;
     _targetService = targetService;
     _dealerManpowerService = dealerManpowerService;
     _regionStateService = regionStateService;
 }
Ejemplo n.º 44
0
        public MainWindow(IVideoManagementService vms, IVideoNetworkService vns, IStorageService ss, IMasterService ms, IAudioNetworkService ans, IAudioManagementService ams, ISocialMediaService sms)
        {
            _vms = vms;
            _vns = vns;
            _ss = ss;
            _ms = ms;
            _ans = ans;
            _ams = ams;
            _sms = sms;

            InitializeComponent();
            SetFolderDefaults();
            CheckCredentials();
        }
Ejemplo n.º 45
0
 public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService, IProfileService profileService, ICompetencyProfileMapService competencyProfileMapService)
 {
     _userService = userService;
     _userDealerMapService = userDealerMapService;
     _manpowerTargetService = manpowerTargetService;
     _manpowerService = manpowerService;
     _masterService = masterService;
     _targetService = targetService;
     _profileService = profileService;
     _competencyProfileMapService = competencyProfileMapService;
     if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null)
     {
         System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>();
     }
 }
Ejemplo n.º 46
0
 public ValidationController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService)
 {
     this.manpowerService = manpowerService;
     this.userService = userService;
     this.profileService = profileService;
     this.masterService = masterService;
     this.competencyProfileMapService = competencyProfileMapService;
     this.trainingProfileMapService = trainingProfileMapService;
     this.attritionProfileMapService = attritionProfileMapService;
     this.manpowerTargetService = manpowerTargetService;
     this.userDealerMapServiceService = userDealerMapServiceService;
     this.targetService = targetService;
     this.salaryService = salaryService;
     this.dealerManpowerService = dealerManpowerService;
     this.dsmDseTargetMapService = dsmDseTargetMapService;
 }
Ejemplo n.º 47
0
 public DealerController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService)
 {
     this.manpowerService = manpowerService;
     this.userService = userService;
     this.profileService = profileService;
     this.masterService = masterService;
     this.competencyProfileMapService = competencyProfileMapService;
     this.trainingProfileMapService = trainingProfileMapService;
     this.attritionProfileMapService = attritionProfileMapService;
     this.manpowerTargetService = manpowerTargetService;
     this.userDealerMapServiceService = userDealerMapServiceService;
     this.targetService = targetService;
     this.salaryService = salaryService;
     this.dealerManpowerService = dealerManpowerService;
     this.dsmDseTargetMapService = dsmDseTargetMapService;
     if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) {
         System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>();
     }
 }
Ejemplo n.º 48
0
 public PatientController(IPatientService patientService, IMasterService masterService)
 {
     _patientService = patientService;
     _masterService = masterService;
 }
Ejemplo n.º 49
0
 /// <summary>
 /// Assigns the master service.
 /// </summary>
 /// <param name="linkType">Type of the link.</param>
 private void AssignMasterService(string linkType)
 {
     switch (linkType.ToLower())
     {
         case Client:
             this.masterService = DIContainer.Instance.Resolve<ClientService>();
             break;
         case Designation:
             this.masterService = DIContainer.Instance.Resolve<DesignationService>();
             break;
         case EstimationCategory:
             this.masterService = DIContainer.Instance.Resolve<EstimationCategoryService>();
             break;
         case RoleGroup:
             this.masterService = DIContainer.Instance.Resolve<RoleGroupService>();
             break;
         case Role:
             this.masterService = DIContainer.Instance.Resolve<RoleService>();
             break;
         case WorkCategoryGroup:
             this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>();
             break;
         case WorkCategory:
             this.masterService = DIContainer.Instance.Resolve<WorkCategoryService>();
             break;
     }
 }
Ejemplo n.º 50
0
 /// <summary>
 /// Initializes the work category group.
 /// </summary>
 /// <param name="presenter">The presenter.</param>
 private void InitializeWorkCategoryGroup(MasterPresenter presenter)
 {
     this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>();
     presenter.AssignWorkCategoryGroup(this.masterService.RetrieveList(SessionData.Instance.UserInfo.Developer.DeveloperID));
 }
 public SoundCloudAudioNetworkService(IStorageService ss, IAPIKeyService aks, IMasterService ms)
 {
     _ss = ss;
     _aks = aks;
     _ms = ms;
 }
Ejemplo n.º 52
0
 /// <summary>
 /// Initializes the master details.
 /// </summary>
 /// <param name="linkType">Type of the link.</param>
 /// <param name="presenter">The presenter.</param>
 private void InitializeMasterDetails(string linkType, MasterPresenter presenter)
 {
     switch (linkType.ToLower())
     {
         case Client:
             this.AddBreadcrumbItem(Resources.ManageClients, Url.MasterAction());
             this.masterService = DIContainer.Instance.Resolve<ClientService>();
             presenter.InactiveApplicable = true;
             break;
         case Designation:
             this.AddBreadcrumbItem(Resources.ManageDesignations, Url.MasterAction());
             this.masterService = DIContainer.Instance.Resolve<DesignationService>();
             break;
         case EstimationCategory:
             this.AddBreadcrumbItem(Resources.ManageEstimationCategories, Url.MasterAction());
             this.InitializeRoleGroup(presenter); 
             this.masterService = DIContainer.Instance.Resolve<EstimationCategoryService>();
             presenter.IsRoleGroup = true;
             break;
         case RoleGroup:
             this.AddBreadcrumbItem(Resources.ManageRoleGroups, Url.MasterAction());
             this.masterService = DIContainer.Instance.Resolve<RoleGroupService>();
             break;
         case Role:
             this.AddBreadcrumbItem(Resources.ManageRoles, Url.MasterAction());
             this.InitializeRoleGroup(presenter);                  
             this.masterService = DIContainer.Instance.Resolve<RoleService>();
             presenter.GroupApplicable = true;
             presenter.IsRoleGroup = true;
             break;
         case WorkCategoryGroup:
             this.AddBreadcrumbItem(Resources.ManageWorkCategoryGroup, Url.MasterAction());
             this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>();
             break;
         case WorkCategory:
             this.AddBreadcrumbItem(Resources.ManageWorkCategory, Url.MasterAction());
             this.InitializeWorkCategoryGroup(presenter);
             this.masterService = DIContainer.Instance.Resolve<WorkCategoryService>();
             presenter.GroupApplicable = true;
             break;
     }
 }