示例#1
0
 public IEnumerable <Tab> GetListOfAllTab()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Tab>(null));
 }
示例#2
0
 public IList <CarModel> GetCarModels()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <CarModel>(null).OrderBy(x => x.ModelName).ToList());
 }
示例#3
0
 public IList <ServiceType> GetServiceTypes()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <ServiceType>(null).ToList());
 }
示例#4
0
 public IList <Grant> GetGrants()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Grant>(x => x.Status == "Active").ToList());
 }
示例#5
0
 public IList <SoleVendorSupplier> GetSoleVendorSuppliers(int SupplierTypeId)
 {
     return(WorkspaceFactory.CreateReadOnly().Query <SoleVendorSupplier>(x => x.SupplierType.Id == SupplierTypeId && x.Status == "Active").ToList());
 }
示例#6
0
 public IList <Beneficiary> GetBeneficiaries()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Beneficiary>(x => x.Status == "Active").ToList());
 }
示例#7
0
 public IList <ItemAccount> GetAdvanceAccount()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <ItemAccount>(x => x.AccountName == "Account Receivable").ToList());
 }
 public IList <Laboratory> GetLabratories()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Laboratory>(null).OrderBy(x => x.LaboratoryName).ToList());
 }
示例#9
0
 public IList <AppUser> GetProgramManagers()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(x => x.EmployeePosition.PositionName == "Program Manager" || x.EmployeePosition.PositionName == "Operational Manager" || x.EmployeePosition.PositionName == "Country Director" || x.EmployeePosition.PositionName == "Deputy Country Director").ToList());
 }
示例#10
0
 public IList <AppUser> GetUsers()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(null).ToList());
 }
 public IList <Facility> GetFacilities()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Facility>(null).OrderBy(x => x.FacilityName).ToList());
 }
示例#12
0
 public IList <AppUser> GetDrivers()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(x => x.EmployeePosition.PositionName == "Driver" || x.EmployeePosition.PositionName == "Admin/HR Assisitance (Driver)").ToList());
 }
示例#13
0
 public IList <AssignJob> GetAssignJobs()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AssignJob>(null).ToList());
 }
示例#14
0
 public IList <EmployeePosition> GetEmployeePositions()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <EmployeePosition>(null).ToList());
 }
示例#15
0
 public IList <EmployeeLeave> GetEmployeeLeaves()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <EmployeeLeave>(null).ToList());
 }
示例#16
0
 public IList <EmployeePosition> GetEmployeePositions()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <EmployeePosition>(x => x.Status == "Active").ToList());
 }
示例#17
0
 public IList <EmployeeLeave> GetEmployeeLeaves(int UserId)
 {
     return(WorkspaceFactory.CreateReadOnly().Query <EmployeeLeave>(x => x.AppUser.Id == UserId).OrderByDescending(x => x.Id).ToList());
 }
示例#18
0
 public IList <JobTitle> GetJobTitles()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <JobTitle>(null).OrderBy(x => x.JobTitleName).ToList());
 }
示例#19
0
 public IList <AppUser> GetAppUsersByEmployeePosition(int employeePosition)
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(x => x.EmployeePosition.Id == employeePosition).ToList());
 }
示例#20
0
 public IList <Program> GetPrograms()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Program>(null).OrderBy(x => x.ProgramName).ToList());
 }
示例#21
0
 public IList <ItemAccountChecklist> GetItemAccountChecklists()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <ItemAccountChecklist>(x => x.Status == "Active").OrderBy(x => x.ChecklistName).ToList());
 }
示例#22
0
 public IList <ProGrant> GetProjectGrants()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <ProGrant>(null).ToList());
 }
示例#23
0
 public IList <SoleVendorSupplier> GetSoleVendorSuppliers()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <SoleVendorSupplier>(x => x.Status == "Active").OrderBy(x => x.SupplierName).ToList());
 }
示例#24
0
 public IList <ApprovalSetting> GetApprovalSettings()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <ApprovalSetting>(null).ToList());
 }
示例#25
0
 public IList <CarRental> GetCarRentals()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <CarRental>(x => x.Status == "Active").ToList());
 }
示例#26
0
 public IList <AppUser> GetProgramManagers()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(x => x.EmployeePosition.PositionName.Contains("Program Manager") || x.EmployeePosition.PositionName == "Vice President & Country Director, Ethiopia" || x.EmployeePosition.PositionName == "Finance Manager" || x.EmployeePosition.PositionName == "Senior Deputy Country Director" || x.EmployeePosition.PositionName == "Coordinator, Program Operations" || x.EmployeePosition.PositionName == "M&E Manager" || x.EmployeePosition.PositionName == "Head, Administration & HR").ToList());
 }
示例#27
0
 public IList <Vehicle> GetVehicles()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <Vehicle>(x => x.Status == "Active").OrderBy(x => x.AppUser).ToList());
 }
示例#28
0
 public IList <AppUser> GetEmployeeList()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <AppUser>(x => x.IsActive == true).OrderBy(x => x.FullName).ToList());
 }
示例#29
0
 public IList <LeaveType> GetLeaveTypes()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <LeaveType>(x => x.Status == "Active").ToList());
 }
示例#30
0
 public IList <PocModule> GetListOfAllPocModules()
 {
     return(WorkspaceFactory.CreateReadOnly().Query <PocModule>(null).ToList());
 }