public SubProgramController(ISubProgramRepository subprogramRepository, IProgramRepository programRepository, IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository) : base(workerroleactionpermissionRepository) { this.subprogramRepository = subprogramRepository; this.programRepository = programRepository; }
public WorkerInRoleController(IWorkerRepository workerRepository, IWorkerRoleRepository workerroleRepository, IWorkerInRoleRepository workerinroleRepository, IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository, IWorkerSubProgramRepository workersubprogramRepository, ISubProgramRepository subprogramRepository, IProgramRepository programRepository) : base(workerroleactionpermissionRepository) { this.workerRepository = workerRepository; this.workerroleRepository = workerroleRepository; this.workerinroleRepository = workerinroleRepository; this.workersubprogramRepository = workersubprogramRepository; this.subprogramRepository = subprogramRepository; this.programRepository = programRepository; }
public PermissionRegionController( IPermissionRegionRepository PermissionRegionRepository, IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository, IPermissionSubProgramRepository PermissionSubProgramRepository, IPermissionJamatkhanaRepository permissionjamatkhanaRepository, ISubProgramRepository subprogramRepository, IJamatkhanaRepository jamatkhanaRepository, IProgramRepository programRepository) : base(workerroleactionpermissionRepository) { this.permissionregionRepository = PermissionRegionRepository; this.permissionsubprogamRepository = PermissionSubProgramRepository; this.permissionjamatkhanaRepository = permissionjamatkhanaRepository; this.subprogramRepository = subprogramRepository; this.jamatkhanaRepository = jamatkhanaRepository; this.programRepository = programRepository; }
/// <summary> /// Load Worker Sub Program Multiselect Asynchronously /// </summary> /// <returns>Data in JSON</returns> public JsonResult LoadMultiSubProgramByPermission(string regionIDs, string programIDs) { if (subprogramRepository == null) { subprogramRepository = DependencyResolver.Current.GetService(typeof(ISubProgramRepository)) as ISubProgramRepository; } if (regionIDs.IsNullOrEmpty()) { regionIDs = "0"; } if (programIDs.IsNullOrEmpty()) { programIDs = "0"; } int[] arrayRegionIDs = regionIDs.Split(',').Select(n => Convert.ToInt32(n)).ToArray(); int[] arrayProgramIDs = programIDs.Split(',').Select(n => Convert.ToInt32(n)).ToArray(); var result = subprogramRepository.AllByRegionIDsAndProgramIDs(arrayRegionIDs, arrayProgramIDs); return(Json(result, JsonRequestBehavior.AllowGet)); }
public WorkerController(IWorkerRepository workerRepository, IWorkerRoleRepository workerroleRepository, IProgramRepository programRepository, ISubProgramRepository subProgramRepository, IRegionRepository regionRepository, IWorkerInRoleNewRepository workerinrolenewRepository, IWorkerSubProgramRepository workersubprogramRepository, IRegionRoleRepository regionroleRepository, IRegionSubProgramRepository regionsubprogramRepository, IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository , IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository) : base(workerroleactionpermissionRepository, workerroleactionpermissionnewRepository) { this.workerRepository = workerRepository; this.workerroleRepository = workerroleRepository; this.programRepository = programRepository; this.subprogramRepository = subProgramRepository; this.regionRepository = regionRepository; this.workerinrolenewRepository = workerinrolenewRepository; this.workersubprogramRepository = workersubprogramRepository; this.regionroleRepository = regionroleRepository; this.regionsubprogramRepository = regionsubprogramRepository; }